]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
Avoid assuming maximum string length is constant [PR102960].
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5213506e 7#
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
1c710c3c
DJ
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
22e05272 90as_myself=
5213506e
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
1c710c3c
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
5213506e
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
5213506e
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
5213506e
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
87264276
PB
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 211do
5213506e
RW
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
5213506e
RW
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 266 else
5213506e
RW
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
1c710c3c 271 fi
5213506e
RW
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
1c710c3c 301
5213506e
RW
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e
RW
356
357
358} # as_fn_mkdir_p
22e05272
JM
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
5213506e
RW
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
22e05272
JM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
5213506e
RW
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 407# script with STATUS, using 1 if that was 0.
5213506e
RW
408as_fn_error ()
409{
22e05272
JM
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5213506e 414 fi
22e05272 415 $as_echo "$as_me: error: $2" >&2
5213506e
RW
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
5213506e 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
5213506e
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
1c710c3c 437
5213506e 438as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
5213506e
RW
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
1c710c3c 456
2aeb72e9
DD
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 463
1c710c3c 464
5213506e
RW
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
1c710c3c 474 sed '
5213506e
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
1c710c3c 479 N
5213506e
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 482 t loop
5213506e 483 s/-\n.*//
1c710c3c 484 ' >$as_me.lineno &&
5213506e
RW
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c 487
22e05272
JM
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
1c710c3c
DJ
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
1c710c3c
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
5213506e
RW
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
1c710c3c
DJ
511esac
512
5213506e
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
1c710c3c 516else
5213506e
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
1c710c3c 519fi
5213506e
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 522 as_ln_s='ln -s'
5213506e
RW
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 526 # In both cases, we have to default to `cp -pR'.
5213506e 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 528 as_ln_s='cp -pR'
5213506e
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
22e05272 532 as_ln_s='cp -pR'
2aeb72e9 533 fi
1c710c3c 534else
22e05272 535 as_ln_s='cp -pR'
1c710c3c 536fi
5213506e
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
539
540if mkdir -p . 2>/dev/null; then
5213506e 541 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
22e05272
JM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
0b0dc272 549
1c710c3c
DJ
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
22e05272
JM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
1c710c3c
DJ
559
560# Name of the host.
22e05272 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1c710c3c
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
1c710c3c
DJ
565#
566# Initializations.
567#
671aa708 568ac_default_prefix=/usr/local
5213506e 569ac_clean_files=
1c710c3c 570ac_config_libobj_dir=.
5213506e 571LIBOBJS=
1c710c3c
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
2aeb72e9 576
1c710c3c
DJ
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
5213506e 583PACKAGE_URL=
1c710c3c
DJ
584
585ac_unique_file="move-if-change"
5213506e
RW
586enable_option_checking=no
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589compare_exclusions
590stage2_werror_flag
591stage1_checking
592stage1_cflags
593MAINT
594MAINTAINER_MODE_FALSE
595MAINTAINER_MODE_TRUE
596COMPILER_NM_FOR_TARGET
597COMPILER_LD_FOR_TARGET
598COMPILER_AS_FOR_TARGET
599FLAGS_FOR_TARGET
600RAW_CXX_FOR_TARGET
601WINDMC_FOR_TARGET
602WINDRES_FOR_TARGET
603STRIP_FOR_TARGET
e7a82751 604READELF_FOR_TARGET
5213506e 605RANLIB_FOR_TARGET
e4a9a572 606OTOOL_FOR_TARGET
5213506e 607OBJDUMP_FOR_TARGET
9bccfdf5 608OBJCOPY_FOR_TARGET
5213506e
RW
609NM_FOR_TARGET
610LIPO_FOR_TARGET
611LD_FOR_TARGET
3b5e8ee4 612DSYMUTIL_FOR_TARGET
5213506e
RW
613DLLTOOL_FOR_TARGET
614AS_FOR_TARGET
615AR_FOR_TARGET
b4c522fa 616GDC_FOR_TARGET
632e2a07 617GOC_FOR_TARGET
5213506e 618GFORTRAN_FOR_TARGET
5213506e
RW
619GCC_FOR_TARGET
620CXX_FOR_TARGET
621CC_FOR_TARGET
e7a82751 622READELF
e4a9a572 623OTOOL
5213506e
RW
624OBJDUMP
625OBJCOPY
626WINDMC
627WINDRES
628STRIP
629RANLIB
630NM
631LIPO
632LD
3b5e8ee4 633DSYMUTIL
5213506e
RW
634DLLTOOL
635AS
636AR
637RUNTEST
638EXPECT
639MAKEINFO
640FLEX
641LEX
642M4
643BISON
644YACC
5213506e
RW
645WINDRES_FOR_BUILD
646WINDMC_FOR_BUILD
647RANLIB_FOR_BUILD
648NM_FOR_BUILD
649LD_FOR_BUILD
650LDFLAGS_FOR_BUILD
b4c522fa 651GDC_FOR_BUILD
632e2a07 652GOC_FOR_BUILD
5213506e 653GFORTRAN_FOR_BUILD
3b5e8ee4 654DSYMUTIL_FOR_BUILD
5213506e
RW
655DLLTOOL_FOR_BUILD
656CXX_FOR_BUILD
657CXXFLAGS_FOR_BUILD
84401ce5
RP
658CPPFLAGS_FOR_BUILD
659CPP_FOR_BUILD
5213506e
RW
660CFLAGS_FOR_BUILD
661CC_FOR_BUILD
662AS_FOR_BUILD
663AR_FOR_BUILD
aae29963 664target_configdirs
5213506e 665configdirs
5213506e 666build_configdirs
5213506e
RW
667INSTALL_GDB_TK
668GDB_TK
669CONFIGURE_GDB_TK
670build_tooldir
671tooldir
672GCC_SHLIB_SUBDIR
673RPATH_ENVVAR
ffedf511
RW
674target_configargs
675host_configargs
676build_configargs
e12c4094 677BUILD_CONFIG
6f57bdf6 678LDFLAGS_FOR_TARGET
5213506e
RW
679CXXFLAGS_FOR_TARGET
680CFLAGS_FOR_TARGET
681DEBUG_PREFIX_CFLAGS_FOR_TARGET
682SYSROOT_CFLAGS_FOR_TARGET
3c36aa6b 683get_gcc_base_ver
1c01ebf6 684extra_host_zlib_configure_flags
d7f09764 685extra_host_libiberty_configure_flags
fca38047 686stage1_languages
cdfee50a 687host_shared
45b3824d
TS
688extra_linker_plugin_flags
689extra_linker_plugin_configure_flags
33ad93b9 690islinc
eae1a5d4 691isllibs
5213506e 692poststage1_ldflags
ed2eaa9f 693poststage1_libs
5213506e 694stage1_ldflags
0b21f5d3 695stage1_libs
0ff2d841 696extra_isl_gmp_configure_flags
5213506e
RW
697extra_mpc_mpfr_configure_flags
698extra_mpc_gmp_configure_flags
699extra_mpfr_configure_flags
700gmpinc
701gmplibs
7ffcf5d6 702HAVE_CXX11_FOR_BUILD
ffac9597 703HAVE_CXX11
5213506e
RW
704do_compare
705GNATMAKE
706GNATBIND
707ac_ct_CXX
708CXXFLAGS
709CXX
710OBJEXT
711EXEEXT
712ac_ct_CC
713CPPFLAGS
714LDFLAGS
715CFLAGS
716CC
5f520819 717extra_liboffloadmic_configure_flags
5213506e
RW
718target_subdir
719host_subdir
720build_subdir
721build_libsubdir
87264276
PB
722AWK
723SED
5213506e
RW
724LN_S
725LN
726INSTALL_DATA
727INSTALL_SCRIPT
728INSTALL_PROGRAM
729target_os
730target_vendor
731target_cpu
732target
733host_os
734host_vendor
735host_cpu
736host
737target_noncanonical
738host_noncanonical
739build_noncanonical
740build_os
741build_vendor
742build_cpu
743build
744TOPLEVEL_CONFIGURE_ARGUMENTS
745target_alias
746host_alias
747build_alias
748LIBS
749ECHO_T
750ECHO_N
751ECHO_C
752DEFS
753mandir
754localedir
755libdir
756psdir
757pdfdir
758dvidir
759htmldir
760infodir
761docdir
762oldincludedir
763includedir
764localstatedir
765sharedstatedir
766sysconfdir
767datadir
768datarootdir
769libexecdir
770sbindir
771bindir
772program_transform_name
773prefix
774exec_prefix
775PACKAGE_URL
776PACKAGE_BUGREPORT
777PACKAGE_STRING
778PACKAGE_VERSION
779PACKAGE_TARNAME
780PACKAGE_NAME
781PATH_SEPARATOR
782SHELL'
783ac_subst_files='serialization_dependencies
784host_makefile_frag
785target_makefile_frag
786alphaieee_frag
787ospace_frag'
788ac_user_opts='
789enable_option_checking
790with_build_libsubdir
a05c2c75 791with_system_zlib
85c64bbe
BS
792enable_as_accelerator_for
793enable_offload_targets
fe5bfa67 794enable_offload_defaulted
5213506e 795enable_gold
21539e2e 796enable_ld
78edb32f 797enable_compressed_debug_sections
87e6d9dc
TB
798enable_libquadmath
799enable_libquadmath_support
5213506e
RW
800enable_libada
801enable_libssp
1873ec0c 802enable_libstdcxx
5f520819 803enable_liboffloadmic
ff3ac0f4 804enable_bootstrap
5213506e
RW
805with_mpc
806with_mpc_include
807with_mpc_lib
808with_mpfr_dir
809with_mpfr
810with_mpfr_include
811with_mpfr_lib
812with_gmp_dir
813with_gmp
814with_gmp_include
815with_gmp_lib
5213506e 816with_stage1_libs
aac9103b 817with_static_standard_libraries
0b21f5d3 818with_stage1_ldflags
5213506e 819with_boot_libs
ed2eaa9f 820with_boot_ldflags
33ad93b9
RG
821with_isl
822with_isl_include
823with_isl_lib
824enable_isl_version_check
d7f09764 825enable_lto
45b3824d
TS
826enable_linker_plugin_configure_flags
827enable_linker_plugin_flags
cdfee50a 828enable_host_shared
5213506e 829enable_stage1_languages
43c40f3e 830enable_objc_gc
114bf3f1
MK
831with_target_bdw_gc
832with_target_bdw_gc_include
833with_target_bdw_gc_lib
3c36aa6b 834with_gcc_major_version_only
5213506e
RW
835with_build_sysroot
836with_debug_prefix_map
5646b7b9 837with_build_config
beeda1d9 838enable_vtable_verify
5213506e
RW
839enable_serial_configure
840with_build_time_tools
841enable_maintainer_mode
842enable_stage1_checking
843enable_werror
5213506e
RW
844'
845 ac_precious_vars='build_alias
846host_alias
847target_alias
848CC
849CFLAGS
850LDFLAGS
851LIBS
852CPPFLAGS
853CXX
854CXXFLAGS
855CCC
ffedf511
RW
856build_configargs
857host_configargs
858target_configargs
5213506e
RW
859AR
860AS
861DLLTOOL
3b5e8ee4 862DSYMUTIL
5213506e
RW
863LD
864LIPO
865NM
866RANLIB
867STRIP
868WINDRES
869WINDMC
870OBJCOPY
871OBJDUMP
e4a9a572 872OTOOL
e7a82751 873READELF
5213506e
RW
874CC_FOR_TARGET
875CXX_FOR_TARGET
876GCC_FOR_TARGET
5213506e 877GFORTRAN_FOR_TARGET
632e2a07 878GOC_FOR_TARGET
b4c522fa 879GDC_FOR_TARGET
5213506e
RW
880AR_FOR_TARGET
881AS_FOR_TARGET
882DLLTOOL_FOR_TARGET
3b5e8ee4 883DSYMUTIL_FOR_TARGET
5213506e
RW
884LD_FOR_TARGET
885LIPO_FOR_TARGET
886NM_FOR_TARGET
9bccfdf5 887OBJCOPY_FOR_TARGET
5213506e 888OBJDUMP_FOR_TARGET
e4a9a572 889OTOOL_FOR_TARGET
5213506e 890RANLIB_FOR_TARGET
e7a82751 891READELF_FOR_TARGET
5213506e
RW
892STRIP_FOR_TARGET
893WINDRES_FOR_TARGET
894WINDMC_FOR_TARGET'
895
671aa708
NN
896
897# Initialize some variables set by options.
1c710c3c
DJ
898ac_init_help=
899ac_init_version=false
5213506e
RW
900ac_unrecognized_opts=
901ac_unrecognized_sep=
671aa708
NN
902# The variables have the same names as the options, with
903# dashes changed to underlines.
1c710c3c 904cache_file=/dev/null
671aa708 905exec_prefix=NONE
671aa708 906no_create=
671aa708
NN
907no_recursion=
908prefix=NONE
909program_prefix=NONE
910program_suffix=NONE
911program_transform_name=s,x,x,
912silent=
913site=
914srcdir=
671aa708
NN
915verbose=
916x_includes=NONE
917x_libraries=NONE
1c710c3c
DJ
918
919# Installation directory options.
920# These are left unexpanded so users can "make install exec_prefix=/foo"
921# and all the variables that are supposed to be based on exec_prefix
922# by default will actually change.
923# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 924# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
925bindir='${exec_prefix}/bin'
926sbindir='${exec_prefix}/sbin'
927libexecdir='${exec_prefix}/libexec'
5213506e
RW
928datarootdir='${prefix}/share'
929datadir='${datarootdir}'
671aa708
NN
930sysconfdir='${prefix}/etc'
931sharedstatedir='${prefix}/com'
932localstatedir='${prefix}/var'
671aa708
NN
933includedir='${prefix}/include'
934oldincludedir='/usr/include'
5213506e
RW
935docdir='${datarootdir}/doc/${PACKAGE}'
936infodir='${datarootdir}/info'
937htmldir='${docdir}'
938dvidir='${docdir}'
939pdfdir='${docdir}'
940psdir='${docdir}'
941libdir='${exec_prefix}/lib'
942localedir='${datarootdir}/locale'
943mandir='${datarootdir}/man'
79c06341 944
671aa708 945ac_prev=
5213506e 946ac_dashdash=
671aa708
NN
947for ac_option
948do
671aa708
NN
949 # If the previous option needs an argument, assign it.
950 if test -n "$ac_prev"; then
5213506e 951 eval $ac_prev=\$ac_option
671aa708
NN
952 ac_prev=
953 continue
954 fi
79c06341 955
5213506e 956 case $ac_option in
22e05272
JM
957 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958 *=) ac_optarg= ;;
959 *) ac_optarg=yes ;;
5213506e 960 esac
671aa708
NN
961
962 # Accept the important Cygnus configure options, so we can diagnose typos.
963
5213506e
RW
964 case $ac_dashdash$ac_option in
965 --)
966 ac_dashdash=yes ;;
671aa708
NN
967
968 -bindir | --bindir | --bindi | --bind | --bin | --bi)
969 ac_prev=bindir ;;
970 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 971 bindir=$ac_optarg ;;
671aa708
NN
972
973 -build | --build | --buil | --bui | --bu)
1c710c3c 974 ac_prev=build_alias ;;
671aa708 975 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 976 build_alias=$ac_optarg ;;
671aa708
NN
977
978 -cache-file | --cache-file | --cache-fil | --cache-fi \
979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980 ac_prev=cache_file ;;
981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
983 cache_file=$ac_optarg ;;
984
985 --config-cache | -C)
986 cache_file=config.cache ;;
671aa708 987
5213506e 988 -datadir | --datadir | --datadi | --datad)
671aa708 989 ac_prev=datadir ;;
5213506e 990 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 991 datadir=$ac_optarg ;;
671aa708 992
5213506e
RW
993 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994 | --dataroo | --dataro | --datar)
995 ac_prev=datarootdir ;;
996 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998 datarootdir=$ac_optarg ;;
999
671aa708 1000 -disable-* | --disable-*)
5213506e 1001 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 1002 # Reject names that are not valid shell variable names.
5213506e 1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1004 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1005 ac_useropt_orig=$ac_useropt
1006 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007 case $ac_user_opts in
1008 *"
1009"enable_$ac_useropt"
1010"*) ;;
1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1012 ac_unrecognized_sep=', ';;
1013 esac
1014 eval enable_$ac_useropt=no ;;
1015
1016 -docdir | --docdir | --docdi | --doc | --do)
1017 ac_prev=docdir ;;
1018 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019 docdir=$ac_optarg ;;
1020
1021 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1022 ac_prev=dvidir ;;
1023 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024 dvidir=$ac_optarg ;;
671aa708
NN
1025
1026 -enable-* | --enable-*)
5213506e 1027 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1028 # Reject names that are not valid shell variable names.
5213506e 1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1030 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1034 *"
1035"enable_$ac_useropt"
1036"*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
2aeb72e9 1039 esac
5213506e 1040 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1041
1042 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044 | --exec | --exe | --ex)
1045 ac_prev=exec_prefix ;;
1046 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048 | --exec=* | --exe=* | --ex=*)
1c710c3c 1049 exec_prefix=$ac_optarg ;;
671aa708
NN
1050
1051 -gas | --gas | --ga | --g)
1052 # Obsolete; use --with-gas.
1053 with_gas=yes ;;
1054
1c710c3c
DJ
1055 -help | --help | --hel | --he | -h)
1056 ac_init_help=long ;;
1057 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058 ac_init_help=recursive ;;
1059 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060 ac_init_help=short ;;
671aa708
NN
1061
1062 -host | --host | --hos | --ho)
1c710c3c 1063 ac_prev=host_alias ;;
671aa708 1064 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1065 host_alias=$ac_optarg ;;
671aa708 1066
5213506e
RW
1067 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068 ac_prev=htmldir ;;
1069 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070 | --ht=*)
1071 htmldir=$ac_optarg ;;
1072
671aa708
NN
1073 -includedir | --includedir | --includedi | --included | --include \
1074 | --includ | --inclu | --incl | --inc)
1075 ac_prev=includedir ;;
1076 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1078 includedir=$ac_optarg ;;
671aa708
NN
1079
1080 -infodir | --infodir | --infodi | --infod | --info | --inf)
1081 ac_prev=infodir ;;
1082 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1083 infodir=$ac_optarg ;;
671aa708
NN
1084
1085 -libdir | --libdir | --libdi | --libd)
1086 ac_prev=libdir ;;
1087 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1088 libdir=$ac_optarg ;;
671aa708
NN
1089
1090 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091 | --libexe | --libex | --libe)
1092 ac_prev=libexecdir ;;
1093 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1095 libexecdir=$ac_optarg ;;
671aa708 1096
5213506e
RW
1097 -localedir | --localedir | --localedi | --localed | --locale)
1098 ac_prev=localedir ;;
1099 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100 localedir=$ac_optarg ;;
1101
671aa708 1102 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1103 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1104 ac_prev=localstatedir ;;
1105 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1106 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1107 localstatedir=$ac_optarg ;;
671aa708
NN
1108
1109 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110 ac_prev=mandir ;;
1111 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1112 mandir=$ac_optarg ;;
671aa708
NN
1113
1114 -nfp | --nfp | --nf)
1115 # Obsolete; use --without-fp.
1116 with_fp=no ;;
1117
1118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1119 | --no-cr | --no-c | -n)
671aa708
NN
1120 no_create=yes ;;
1121
1122 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124 no_recursion=yes ;;
1125
1126 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128 | --oldin | --oldi | --old | --ol | --o)
1129 ac_prev=oldincludedir ;;
1130 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1133 oldincludedir=$ac_optarg ;;
671aa708
NN
1134
1135 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136 ac_prev=prefix ;;
1137 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1138 prefix=$ac_optarg ;;
671aa708
NN
1139
1140 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141 | --program-pre | --program-pr | --program-p)
1142 ac_prev=program_prefix ;;
1143 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1145 program_prefix=$ac_optarg ;;
671aa708
NN
1146
1147 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148 | --program-suf | --program-su | --program-s)
1149 ac_prev=program_suffix ;;
1150 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1152 program_suffix=$ac_optarg ;;
671aa708
NN
1153
1154 -program-transform-name | --program-transform-name \
1155 | --program-transform-nam | --program-transform-na \
1156 | --program-transform-n | --program-transform- \
1157 | --program-transform | --program-transfor \
1158 | --program-transfo | --program-transf \
1159 | --program-trans | --program-tran \
1160 | --progr-tra | --program-tr | --program-t)
1161 ac_prev=program_transform_name ;;
1162 -program-transform-name=* | --program-transform-name=* \
1163 | --program-transform-nam=* | --program-transform-na=* \
1164 | --program-transform-n=* | --program-transform-=* \
1165 | --program-transform=* | --program-transfor=* \
1166 | --program-transfo=* | --program-transf=* \
1167 | --program-trans=* | --program-tran=* \
1168 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1169 program_transform_name=$ac_optarg ;;
671aa708 1170
5213506e
RW
1171 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172 ac_prev=pdfdir ;;
1173 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174 pdfdir=$ac_optarg ;;
1175
1176 -psdir | --psdir | --psdi | --psd | --ps)
1177 ac_prev=psdir ;;
1178 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179 psdir=$ac_optarg ;;
1180
671aa708
NN
1181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182 | -silent | --silent | --silen | --sile | --sil)
1183 silent=yes ;;
1184
1185 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186 ac_prev=sbindir ;;
1187 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188 | --sbi=* | --sb=*)
1c710c3c 1189 sbindir=$ac_optarg ;;
671aa708
NN
1190
1191 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193 | --sharedst | --shareds | --shared | --share | --shar \
1194 | --sha | --sh)
1195 ac_prev=sharedstatedir ;;
1196 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199 | --sha=* | --sh=*)
1c710c3c 1200 sharedstatedir=$ac_optarg ;;
671aa708
NN
1201
1202 -site | --site | --sit)
1203 ac_prev=site ;;
1204 -site=* | --site=* | --sit=*)
1c710c3c 1205 site=$ac_optarg ;;
671aa708
NN
1206
1207 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208 ac_prev=srcdir ;;
1209 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1210 srcdir=$ac_optarg ;;
671aa708
NN
1211
1212 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213 | --syscon | --sysco | --sysc | --sys | --sy)
1214 ac_prev=sysconfdir ;;
1215 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1217 sysconfdir=$ac_optarg ;;
671aa708
NN
1218
1219 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1220 ac_prev=target_alias ;;
671aa708 1221 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1222 target_alias=$ac_optarg ;;
671aa708
NN
1223
1224 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225 verbose=yes ;;
1226
1c710c3c
DJ
1227 -version | --version | --versio | --versi | --vers | -V)
1228 ac_init_version=: ;;
671aa708
NN
1229
1230 -with-* | --with-*)
5213506e 1231 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1232 # Reject names that are not valid shell variable names.
5213506e 1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1234 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1238 *"
1239"with_$ac_useropt"
1240"*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
2aeb72e9 1243 esac
5213506e 1244 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1245
1246 -without-* | --without-*)
5213506e 1247 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1248 # Reject names that are not valid shell variable names.
5213506e 1249 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1250 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1251 ac_useropt_orig=$ac_useropt
1252 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253 case $ac_user_opts in
1254 *"
1255"with_$ac_useropt"
1256"*) ;;
1257 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1258 ac_unrecognized_sep=', ';;
1259 esac
1260 eval with_$ac_useropt=no ;;
671aa708
NN
1261
1262 --x)
1263 # Obsolete; use --with-x.
1264 with_x=yes ;;
1265
1266 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267 | --x-incl | --x-inc | --x-in | --x-i)
1268 ac_prev=x_includes ;;
1269 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1271 x_includes=$ac_optarg ;;
671aa708
NN
1272
1273 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275 ac_prev=x_libraries ;;
1276 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1278 x_libraries=$ac_optarg ;;
671aa708 1279
22e05272
JM
1280 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1281Try \`$0 --help' for more information"
671aa708
NN
1282 ;;
1283
1c710c3c
DJ
1284 *=*)
1285 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1286 # Reject names that are not valid shell variable names.
5213506e
RW
1287 case $ac_envvar in #(
1288 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1289 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1290 esac
1291 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1292 export $ac_envvar ;;
1293
671aa708 1294 *)
1c710c3c 1295 # FIXME: should be removed in autoconf 3.0.
5213506e 1296 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1297 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1298 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1299 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1300 ;;
1301
1302 esac
1303done
1304
1305if test -n "$ac_prev"; then
1c710c3c 1306 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1307 as_fn_error $? "missing argument to $ac_option"
af71363e 1308fi
af71363e 1309
5213506e
RW
1310if test -n "$ac_unrecognized_opts"; then
1311 case $enable_option_checking in
1312 no) ;;
22e05272 1313 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1314 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1315 esac
5213506e 1316fi
2aeb72e9 1317
5213506e
RW
1318# Check all directory arguments for consistency.
1319for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1320 datadir sysconfdir sharedstatedir localstatedir includedir \
1321 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1322 libdir localedir mandir
2aeb72e9 1323do
5213506e
RW
1324 eval ac_val=\$$ac_var
1325 # Remove trailing slashes.
1326 case $ac_val in
1327 */ )
1328 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1329 eval $ac_var=\$ac_val;;
1330 esac
1331 # Be sure to have absolute directory names.
2aeb72e9 1332 case $ac_val in
5213506e
RW
1333 [\\/$]* | ?:[\\/]* ) continue;;
1334 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1335 esac
22e05272 1336 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1337done
1338
1c710c3c
DJ
1339# There might be people who depend on the old broken behavior: `$host'
1340# used to hold the argument of --host etc.
1341# FIXME: To remove some day.
1342build=$build_alias
1343host=$host_alias
1344target=$target_alias
0b0dc272 1345
1c710c3c
DJ
1346# FIXME: To remove some day.
1347if test "x$host_alias" != x; then
1348 if test "x$build_alias" = x; then
1349 cross_compiling=maybe
1c710c3c
DJ
1350 elif test "x$build_alias" != "x$host_alias"; then
1351 cross_compiling=yes
1352 fi
1353fi
1354
1355ac_tool_prefix=
1356test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357
1358test "$silent" = yes && exec 6>/dev/null
671aa708 1359
671aa708 1360
5213506e
RW
1361ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362ac_ls_di=`ls -di .` &&
1363ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1364 as_fn_error $? "working directory cannot be determined"
5213506e 1365test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1366 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1367
1368
671aa708
NN
1369# Find the source files, if location was not specified.
1370if test -z "$srcdir"; then
1371 ac_srcdir_defaulted=yes
5213506e
RW
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir=`$as_dirname -- "$as_myself" ||
1374$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378$as_echo X"$as_myself" |
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\/\)[^/].*/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\).*/{
1392 s//\1/
1393 q
1394 }
1395 s/.*/./; q'`
671aa708 1396 srcdir=$ac_confdir
5213506e 1397 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1398 srcdir=..
1399 fi
1400else
1401 ac_srcdir_defaulted=no
1402fi
5213506e
RW
1403if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1405 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1406fi
1407ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408ac_abs_confdir=`(
22e05272 1409 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1410 pwd)`
1411# When building in place, set srcdir=.
1412if test "$ac_abs_confdir" = "$ac_pwd"; then
1413 srcdir=.
1414fi
1415# Remove unnecessary trailing slashes from srcdir.
1416# Double slashes in file names in object file debugging info
1417# mess up M-x gdb in Emacs.
1418case $srcdir in
1419*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420esac
87841584
AM
1421case $srcdir in
1422 *" "*)
22e05272 1423 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1424 ;;
1425esac
ac9e6043
RW
1426ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1427
5213506e
RW
1428for ac_var in $ac_precious_vars; do
1429 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_env_${ac_var}_value=\$${ac_var}
1431 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1433done
1c710c3c
DJ
1434
1435#
1436# Report the --help message.
1437#
1438if test "$ac_init_help" = "long"; then
1439 # Omit some internal or obsolete options to make the list less imposing.
1440 # This message is too long to be a string in the A/UX 3.1 sh.
1441 cat <<_ACEOF
1442\`configure' configures this package to adapt to many kinds of systems.
1443
1444Usage: $0 [OPTION]... [VAR=VALUE]...
1445
1446To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447VAR=VALUE. See below for descriptions of some of the useful variables.
1448
1449Defaults for the options are specified in brackets.
1450
1451Configuration:
1452 -h, --help display this help and exit
1453 --help=short display options specific to this package
1454 --help=recursive display the short help of all the included packages
1455 -V, --version display version information and exit
22e05272 1456 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
DJ
1457 --cache-file=FILE cache test results in FILE [disabled]
1458 -C, --config-cache alias for \`--cache-file=config.cache'
1459 -n, --no-create do not create output files
1460 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1461
1c710c3c
DJ
1462Installation directories:
1463 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1464 [$ac_default_prefix]
1c710c3c 1465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1466 [PREFIX]
1c710c3c
DJ
1467
1468By default, \`make install' will install all the files in
1469\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1470an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471for instance \`--prefix=\$HOME'.
1472
1473For better control, use the options below.
1474
1475Fine tuning of the installation directories:
5213506e
RW
1476 --bindir=DIR user executables [EPREFIX/bin]
1477 --sbindir=DIR system admin executables [EPREFIX/sbin]
1478 --libexecdir=DIR program executables [EPREFIX/libexec]
1479 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1480 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1481 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1482 --libdir=DIR object code libraries [EPREFIX/lib]
1483 --includedir=DIR C header files [PREFIX/include]
1484 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1487 --infodir=DIR info documentation [DATAROOTDIR/info]
1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1489 --mandir=DIR man documentation [DATAROOTDIR/man]
1490 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1491 --htmldir=DIR html documentation [DOCDIR]
1492 --dvidir=DIR dvi documentation [DOCDIR]
1493 --pdfdir=DIR pdf documentation [DOCDIR]
1494 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1495_ACEOF
1496
1497 cat <<\_ACEOF
1498
1499Program names:
1500 --program-prefix=PREFIX prepend PREFIX to installed program names
1501 --program-suffix=SUFFIX append SUFFIX to installed program names
1502 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1503
1504System types:
1505 --build=BUILD configure for building on BUILD [guessed]
1506 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1507 --target=TARGET configure for building compilers for TARGET [HOST]
1508_ACEOF
1509fi
1510
1511if test -n "$ac_init_help"; then
1512
1513 cat <<\_ACEOF
1514
1515Optional Features:
5213506e 1516 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1517 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1518 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1519 --enable-as-accelerator-for=ARG
1520 build as offload target compiler. Specify offload
1521 host triple by ARG
1522 --enable-offload-targets=LIST
1523 enable offloading to devices from comma-separated
1524 LIST of TARGET[=DIR]. Use optional path to find
1525 offload target compiler during the build
fe5bfa67
TB
1526 --enable-offload-defaulted
1527 If enabled, configured but not installed offload compilers and
1528 libgomp plugins are silently ignored. Useful for distribution
1529 compilers where those are in separate optional packages.
1530
21539e2e 1531 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1532 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1533 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1534 Enable compressed debug sections for gas, gold or ld
1535 by default
87e6d9dc
TB
1536 --disable-libquadmath do not build libquadmath directory
1537 --disable-libquadmath-support
1538 disable libquadmath support for Fortran
30b74385
RW
1539 --enable-libada build libada directory
1540 --enable-libssp build libssp directory
1873ec0c 1541 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1542 --enable-liboffloadmic=ARG
1543 build liboffloadmic [ARG={no,host,target}]
ff3ac0f4 1544 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9 1545 --disable-isl-version-check
560d18d3 1546 disable check for isl version
d7f09764 1547 --enable-lto enable link time optimization support
45b3824d
TS
1548 --enable-linker-plugin-configure-flags=FLAGS
1549 additional flags for configuring linker plugins
1550 [none]
1551 --enable-linker-plugin-flags=FLAGS
1552 additional flags for configuring and building linker
1553 plugins [none]
cdfee50a 1554 --enable-host-shared build host code as shared libraries
33e39b66
AS
1555 --enable-stage1-languages[=all]
1556 choose additional languages to build during stage1.
1557 Mostly useful for compiler development
43c40f3e
RO
1558 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1559 Objective-C runtime
318a4e6d 1560 --enable-vtable-verify Enable vtable verification feature
30b74385 1561 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1562 force sequential configuration of sub-packages for
1563 the host, target or build machine, or all
1564 sub-packages
1565 --enable-maintainer-mode
1566 enable make rules and dependencies not useful (and
1567 sometimes confusing) to the casual installer
1568 --enable-stage1-checking[=all]
1569 choose additional checking for stage1 of the
1570 compiler
1c710c3c
DJ
1571 --enable-werror enable -Werror in bootstrap stage2 and later
1572
1573Optional Packages:
1574 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1575 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1576 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1577 --with-system-zlib use installed libz
33e39b66
AS
1578 --with-mpc=PATH specify prefix directory for installed MPC package.
1579 Equivalent to --with-mpc-include=PATH/include plus
1580 --with-mpc-lib=PATH/lib
1581 --with-mpc-include=PATH specify directory for installed MPC include files
1582 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1583 --with-mpfr-dir=PATH this option has been REMOVED
1584 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1585 Equivalent to --with-mpfr-include=PATH/include plus
1586 --with-mpfr-lib=PATH/lib
1c710c3c 1587 --with-mpfr-include=PATH
30b74385
RW
1588 specify directory for installed MPFR include files
1589 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1590 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1591 --with-gmp=PATH specify prefix directory for the installed GMP
1592 package. Equivalent to
1593 --with-gmp-include=PATH/include plus
1594 --with-gmp-lib=PATH/lib
30b74385
RW
1595 --with-gmp-include=PATH specify directory for installed GMP include files
1596 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1597 --with-stage1-libs=LIBS libraries for stage1
aac9103b
TT
1598 --with-static-standard-libraries
1599 use -static-libstdc++ and -static-libgcc
1600 (default=auto)
33e39b66
AS
1601 --with-stage1-ldflags=FLAGS
1602 linker flags for stage1
33e39b66
AS
1603 --with-boot-libs=LIBS libraries for stage2 and later
1604 --with-boot-ldflags=FLAGS
1605 linker flags for stage2 and later
e357a5e0 1606 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1607 package. Equivalent to
33ad93b9
RG
1608 --with-isl-include=PATH/include plus
1609 --with-isl-lib=PATH/lib
560d18d3
AK
1610 --with-isl-include=PATH Specify directory for installed isl include files
1611 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1612 --with-target-bdw-gc=PATHLIST
1613 specify prefix directory for installed bdw-gc
1614 package. Equivalent to
1615 --with-target-bdw-gc-include=PATH/include plus
1616 --with-target-bdw-gc-lib=PATH/lib
1617 --with-target-bdw-gc-include=PATHLIST
1618 specify directories for installed bdw-gc include
1619 files
1620 --with-target-bdw-gc-lib=PATHLIST
1621 specify directories for installed bdw-gc library
3c36aa6b
JJ
1622 --with-gcc-major-version-only
1623 use only GCC major number in filesystem paths
30b74385 1624 --with-build-sysroot=SYSROOT
1c710c3c 1625 use sysroot as the system root during the build
c8aea42c 1626 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1627 map A to B, C to D ... in debug information
1628 --with-build-config='NAME NAME2...'
1629 use config/NAME.mk build configuration
30b74385 1630 --with-build-time-tools=PATH
1c710c3c 1631 use given path to find target tools during the build
1c710c3c
DJ
1632
1633Some influential environment variables:
1634 CC C compiler command
1635 CFLAGS C compiler flags
1636 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1637 nonstandard directory <lib dir>
5213506e 1638 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1639 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1640 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1641 CXX C++ compiler command
1642 CXXFLAGS C++ compiler flags
ffedf511
RW
1643 build_configargs
1644 additional configure arguments for build directories
1645 host_configargs
1646 additional configure arguments for host directories
1647 target_configargs
1648 additional configure arguments for target directories
278a7a38
AO
1649 AR AR for the host
1650 AS AS for the host
1651 DLLTOOL DLLTOOL for the host
3b5e8ee4 1652 DSYMUTIL DSYMUTIL for the host
278a7a38
AO
1653 LD LD for the host
1654 LIPO LIPO for the host
1655 NM NM for the host
1656 RANLIB RANLIB for the host
1657 STRIP STRIP for the host
1658 WINDRES WINDRES for the host
901119ae 1659 WINDMC WINDMC for the host
278a7a38
AO
1660 OBJCOPY OBJCOPY for the host
1661 OBJDUMP OBJDUMP for the host
e4a9a572 1662 OTOOL OTOOL for the host
e7a82751 1663 READELF READELF for the host
278a7a38
AO
1664 CC_FOR_TARGET
1665 CC for the target
1666 CXX_FOR_TARGET
1667 CXX for the target
1668 GCC_FOR_TARGET
1669 GCC for the target
278a7a38
AO
1670 GFORTRAN_FOR_TARGET
1671 GFORTRAN for the target
632e2a07
ILT
1672 GOC_FOR_TARGET
1673 GOC for the target
b4c522fa
IB
1674 GDC_FOR_TARGET
1675 GDC for the target
278a7a38
AO
1676 AR_FOR_TARGET
1677 AR for the target
1678 AS_FOR_TARGET
1679 AS for the target
1680 DLLTOOL_FOR_TARGET
1681 DLLTOOL for the target
3b5e8ee4
IS
1682 DSYMUTIL_FOR_TARGET
1683 DSYMUTIL for the target
278a7a38
AO
1684 LD_FOR_TARGET
1685 LD for the target
1686 LIPO_FOR_TARGET
1687 LIPO for the target
1688 NM_FOR_TARGET
1689 NM for the target
9bccfdf5
AP
1690 OBJCOPY_FOR_TARGET
1691 OBJCOPY for the target
278a7a38
AO
1692 OBJDUMP_FOR_TARGET
1693 OBJDUMP for the target
e4a9a572
IS
1694 OTOOL_FOR_TARGET
1695 OTOOL for the target
278a7a38
AO
1696 RANLIB_FOR_TARGET
1697 RANLIB for the target
e7a82751
RM
1698 READELF_FOR_TARGET
1699 READELF for the target
278a7a38
AO
1700 STRIP_FOR_TARGET
1701 STRIP for the target
1702 WINDRES_FOR_TARGET
1703 WINDRES for the target
901119ae
KT
1704 WINDMC_FOR_TARGET
1705 WINDMC for the target
1c710c3c
DJ
1706
1707Use these variables to override the choices made by `configure' or to help
1708it to find libraries and programs with nonstandard names/locations.
1709
5213506e 1710Report bugs to the package provider.
1c710c3c 1711_ACEOF
5213506e 1712ac_status=$?
1c710c3c
DJ
1713fi
1714
1715if test "$ac_init_help" = "recursive"; then
1716 # If there are subdirs, report their specific --help.
1c710c3c 1717 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1718 test -d "$ac_dir" ||
1719 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1720 continue
1c710c3c
DJ
1721 ac_builddir=.
1722
5213506e
RW
1723case "$ac_dir" in
1724.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1725*)
1726 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1727 # A ".." for each directory in $ac_dir_suffix.
1728 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1729 case $ac_top_builddir_sub in
1730 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1732 esac ;;
1733esac
1734ac_abs_top_builddir=$ac_pwd
1735ac_abs_builddir=$ac_pwd$ac_dir_suffix
1736# for backward compatibility:
1737ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1738
1739case $srcdir in
5213506e 1740 .) # We are building in place.
1c710c3c 1741 ac_srcdir=.
5213506e
RW
1742 ac_top_srcdir=$ac_top_builddir_sub
1743 ac_abs_top_srcdir=$ac_pwd ;;
1744 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1745 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1746 ac_top_srcdir=$srcdir
1747 ac_abs_top_srcdir=$srcdir ;;
1748 *) # Relative name.
1749 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1750 ac_top_srcdir=$ac_top_build_prefix$srcdir
1751 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1752esac
5213506e
RW
1753ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1754
1755 cd "$ac_dir" || { ac_status=$?; continue; }
1756 # Check for guested configure.
1757 if test -f "$ac_srcdir/configure.gnu"; then
1758 echo &&
1759 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1760 elif test -f "$ac_srcdir/configure"; then
1761 echo &&
1762 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1763 else
5213506e
RW
1764 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1765 fi || ac_status=$?
1766 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1767 done
1768fi
1769
5213506e 1770test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1771if $ac_init_version; then
1772 cat <<\_ACEOF
5213506e 1773configure
22e05272 1774generated by GNU Autoconf 2.69
1c710c3c 1775
22e05272 1776Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1777This configure script is free software; the Free Software Foundation
1778gives unlimited permission to copy, distribute and modify it.
1779_ACEOF
5213506e 1780 exit
0b0dc272 1781fi
5213506e
RW
1782
1783## ------------------------ ##
1784## Autoconf initialization. ##
1785## ------------------------ ##
1786
1787# ac_fn_c_try_compile LINENO
1788# --------------------------
1789# Try to compile conftest.$ac_ext, and return whether this succeeded.
1790ac_fn_c_try_compile ()
1791{
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext
1794 if { { ac_try="$ac_compile"
1795case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798esac
1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800$as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_compile") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1807 fi
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest.$ac_objext; then :
1813 ac_retval=0
1814else
1815 $as_echo "$as_me: failed program was:" >&5
1816sed 's/^/| /' conftest.$ac_ext >&5
1817
1818 ac_retval=1
1819fi
22e05272
JM
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 as_fn_set_status $ac_retval
5213506e
RW
1822
1823} # ac_fn_c_try_compile
1824
1825# ac_fn_cxx_try_compile LINENO
1826# ----------------------------
1827# Try to compile conftest.$ac_ext, and return whether this succeeded.
1828ac_fn_cxx_try_compile ()
1829{
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext
1832 if { { ac_try="$ac_compile"
1833case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836esac
1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838$as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_compile") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1845 fi
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_cxx_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest.$ac_objext; then :
1851 ac_retval=0
1852else
1853 $as_echo "$as_me: failed program was:" >&5
1854sed 's/^/| /' conftest.$ac_ext >&5
1855
1856 ac_retval=1
1857fi
22e05272
JM
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
5213506e
RW
1860
1861} # ac_fn_cxx_try_compile
1862
0b21f5d3
EB
1863# ac_fn_cxx_try_link LINENO
1864# -------------------------
1865# Try to link conftest.$ac_ext, and return whether this succeeded.
1866ac_fn_cxx_try_link ()
1867{
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 rm -f conftest.$ac_objext conftest$ac_exeext
1870 if { { ac_try="$ac_link"
1871case "(($ac_try" in
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1874esac
1875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876$as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_link") 2>conftest.err
1878 ac_status=$?
1879 if test -s conftest.err; then
1880 grep -v '^ *+' conftest.err >conftest.er1
1881 cat conftest.er1 >&5
1882 mv -f conftest.er1 conftest.err
1883 fi
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && {
1886 test -z "$ac_cxx_werror_flag" ||
1887 test ! -s conftest.err
1888 } && test -s conftest$ac_exeext && {
1889 test "$cross_compiling" = yes ||
22e05272 1890 test -x conftest$ac_exeext
0b21f5d3
EB
1891 }; then :
1892 ac_retval=0
1893else
1894 $as_echo "$as_me: failed program was:" >&5
1895sed 's/^/| /' conftest.$ac_ext >&5
1896
1897 ac_retval=1
1898fi
1899 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1900 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1901 # interfere with the next link command; also delete a directory that is
1902 # left behind by Apple's compiler. We do this before executing the actions.
1903 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
0b21f5d3
EB
1906
1907} # ac_fn_cxx_try_link
1908
5213506e
RW
1909# ac_fn_c_try_link LINENO
1910# -----------------------
1911# Try to link conftest.$ac_ext, and return whether this succeeded.
1912ac_fn_c_try_link ()
1913{
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 rm -f conftest.$ac_objext conftest$ac_exeext
1916 if { { ac_try="$ac_link"
1917case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920esac
1921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922$as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_link") 2>conftest.err
1924 ac_status=$?
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1929 fi
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && {
1932 test -z "$ac_c_werror_flag" ||
1933 test ! -s conftest.err
1934 } && test -s conftest$ac_exeext && {
1935 test "$cross_compiling" = yes ||
22e05272 1936 test -x conftest$ac_exeext
5213506e
RW
1937 }; then :
1938 ac_retval=0
1939else
1940 $as_echo "$as_me: failed program was:" >&5
1941sed 's/^/| /' conftest.$ac_ext >&5
1942
1943 ac_retval=1
1944fi
1945 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1946 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1947 # interfere with the next link command; also delete a directory that is
1948 # left behind by Apple's compiler. We do this before executing the actions.
1949 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status $ac_retval
5213506e
RW
1952
1953} # ac_fn_c_try_link
1954cat >config.log <<_ACEOF
1c710c3c
DJ
1955This file contains any messages produced by compilers while
1956running configure, to aid debugging if configure makes a mistake.
1957
1958It was created by $as_me, which was
22e05272 1959generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1960
1961 $ $0 $@
1962
1963_ACEOF
5213506e 1964exec 5>>config.log
1c710c3c
DJ
1965{
1966cat <<_ASUNAME
1967## --------- ##
1968## Platform. ##
1969## --------- ##
1970
1971hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1972uname -m = `(uname -m) 2>/dev/null || echo unknown`
1973uname -r = `(uname -r) 2>/dev/null || echo unknown`
1974uname -s = `(uname -s) 2>/dev/null || echo unknown`
1975uname -v = `(uname -v) 2>/dev/null || echo unknown`
1976
1977/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1978/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1979
1980/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1981/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1982/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1983/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1984/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1985/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1986/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1987
1988_ASUNAME
1989
1990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991for as_dir in $PATH
1992do
1993 IFS=$as_save_IFS
1994 test -z "$as_dir" && as_dir=.
5213506e
RW
1995 $as_echo "PATH: $as_dir"
1996 done
1997IFS=$as_save_IFS
1c710c3c
DJ
1998
1999} >&5
2000
2001cat >&5 <<_ACEOF
2002
2003
2004## ----------- ##
2005## Core tests. ##
2006## ----------- ##
2007
2008_ACEOF
2009
2010
2011# Keep a trace of the command line.
2012# Strip out --no-create and --no-recursion so they do not pile up.
2013# Strip out --silent because we don't want to record it for future runs.
2014# Also quote any args containing shell meta-characters.
2015# Make two passes to allow for proper duplicate-argument suppression.
2016ac_configure_args=
2017ac_configure_args0=
2018ac_configure_args1=
1c710c3c
DJ
2019ac_must_keep_next=false
2020for ac_pass in 1 2
2021do
2022 for ac_arg
2023 do
2024 case $ac_arg in
2025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2027 | -silent | --silent | --silen | --sile | --sil)
2028 continue ;;
5213506e
RW
2029 *\'*)
2030 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2031 esac
2032 case $ac_pass in
5213506e 2033 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2034 2)
5213506e 2035 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2036 if test $ac_must_keep_next = true; then
2037 ac_must_keep_next=false # Got value, back to normal.
2038 else
2039 case $ac_arg in
2040 *=* | --config-cache | -C | -disable-* | --disable-* \
2041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2043 | -with-* | --with-* | -without-* | --without-* | --x)
2044 case "$ac_configure_args0 " in
2045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2046 esac
2047 ;;
2048 -* ) ac_must_keep_next=true ;;
2049 esac
2050 fi
5213506e 2051 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2052 ;;
2053 esac
2054 done
2055done
5213506e
RW
2056{ ac_configure_args0=; unset ac_configure_args0;}
2057{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2058
2059# When interrupted or exit'd, cleanup temporary files, and complete
2060# config.log. We remove comments because anyway the quotes in there
2061# would cause problems or look ugly.
5213506e
RW
2062# WARNING: Use '\'' to represent an apostrophe within the trap.
2063# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2064trap 'exit_status=$?
2065 # Save into config.log some information that might help in debugging.
2066 {
2067 echo
2068
22e05272 2069 $as_echo "## ---------------- ##
1c710c3c 2070## Cache variables. ##
22e05272 2071## ---------------- ##"
1c710c3c
DJ
2072 echo
2073 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2074(
2075 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2076 eval ac_val=\$$ac_var
2077 case $ac_val in #(
2078 *${as_nl}*)
2079 case $ac_var in #(
2080 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2081$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2082 esac
2083 case $ac_var in #(
2084 _ | IFS | as_nl) ;; #(
2085 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2086 *) { eval $ac_var=; unset $ac_var;} ;;
2087 esac ;;
2088 esac
2089 done
1c710c3c 2090 (set) 2>&1 |
5213506e
RW
2091 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2092 *${as_nl}ac_space=\ *)
1c710c3c 2093 sed -n \
5213506e
RW
2094 "s/'\''/'\''\\\\'\'''\''/g;
2095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2096 ;; #(
1c710c3c 2097 *)
5213506e 2098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2099 ;;
5213506e
RW
2100 esac |
2101 sort
2102)
1c710c3c
DJ
2103 echo
2104
22e05272 2105 $as_echo "## ----------------- ##
1c710c3c 2106## Output variables. ##
22e05272 2107## ----------------- ##"
1c710c3c
DJ
2108 echo
2109 for ac_var in $ac_subst_vars
2110 do
5213506e
RW
2111 eval ac_val=\$$ac_var
2112 case $ac_val in
2113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2114 esac
2115 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2116 done | sort
2117 echo
2118
2119 if test -n "$ac_subst_files"; then
22e05272 2120 $as_echo "## ------------------- ##
5213506e 2121## File substitutions. ##
22e05272 2122## ------------------- ##"
1c710c3c
DJ
2123 echo
2124 for ac_var in $ac_subst_files
2125 do
5213506e
RW
2126 eval ac_val=\$$ac_var
2127 case $ac_val in
2128 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2129 esac
2130 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2131 done | sort
2132 echo
2133 fi
2134
2135 if test -s confdefs.h; then
22e05272 2136 $as_echo "## ----------- ##
1c710c3c 2137## confdefs.h. ##
22e05272 2138## ----------- ##"
1c710c3c 2139 echo
5213506e 2140 cat confdefs.h
1c710c3c
DJ
2141 echo
2142 fi
2143 test "$ac_signal" != 0 &&
5213506e
RW
2144 $as_echo "$as_me: caught signal $ac_signal"
2145 $as_echo "$as_me: exit $exit_status"
1c710c3c 2146 } >&5
5213506e
RW
2147 rm -f core *.core core.conftest.* &&
2148 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2149 exit $exit_status
5213506e 2150' 0
1c710c3c 2151for ac_signal in 1 2 13 15; do
5213506e 2152 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2153done
2154ac_signal=0
2155
2156# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2157rm -f -r conftest* confdefs.h
2158
2159$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2160
2161# Predefined preprocessor variables.
2162
2163cat >>confdefs.h <<_ACEOF
2164#define PACKAGE_NAME "$PACKAGE_NAME"
2165_ACEOF
2166
1c710c3c
DJ
2167cat >>confdefs.h <<_ACEOF
2168#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2169_ACEOF
2170
1c710c3c
DJ
2171cat >>confdefs.h <<_ACEOF
2172#define PACKAGE_VERSION "$PACKAGE_VERSION"
2173_ACEOF
0b0dc272 2174
1c710c3c
DJ
2175cat >>confdefs.h <<_ACEOF
2176#define PACKAGE_STRING "$PACKAGE_STRING"
2177_ACEOF
2178
1c710c3c
DJ
2179cat >>confdefs.h <<_ACEOF
2180#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2181_ACEOF
2182
5213506e
RW
2183cat >>confdefs.h <<_ACEOF
2184#define PACKAGE_URL "$PACKAGE_URL"
2185_ACEOF
2186
1c710c3c
DJ
2187
2188# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2189# Prefer an explicitly selected file to automatically selected ones.
2190ac_site_file1=NONE
2191ac_site_file2=NONE
2192if test -n "$CONFIG_SITE"; then
22e05272
JM
2193 # We do not want a PATH search for config.site.
2194 case $CONFIG_SITE in #((
2195 -*) ac_site_file1=./$CONFIG_SITE;;
2196 */*) ac_site_file1=$CONFIG_SITE;;
2197 *) ac_site_file1=./$CONFIG_SITE;;
2198 esac
5213506e
RW
2199elif test "x$prefix" != xNONE; then
2200 ac_site_file1=$prefix/share/config.site
2201 ac_site_file2=$prefix/etc/config.site
2202else
2203 ac_site_file1=$ac_default_prefix/share/config.site
2204 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2205fi
5213506e
RW
2206for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2207do
2208 test "x$ac_site_file" = xNONE && continue
22e05272 2209 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2211$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2212 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2213 . "$ac_site_file" \
2214 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216as_fn_error $? "failed to load site script $ac_site_file
2217See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2218 fi
2219done
2220
2221if test -r "$cache_file"; then
22e05272
JM
2222 # Some versions of bash will fail to source /dev/null (special files
2223 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2224 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2226$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2227 case $cache_file in
5213506e
RW
2228 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2229 *) . "./$cache_file";;
1c710c3c
DJ
2230 esac
2231 fi
671aa708 2232else
5213506e
RW
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2234$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2235 >$cache_file
2236fi
2237
2238# Check that the precious variables saved in the cache have kept the same
2239# value.
2240ac_cache_corrupted=false
5213506e 2241for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2243 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2244 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2245 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2246 case $ac_old_set,$ac_new_set in
2247 set,)
5213506e
RW
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2249$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2250 ac_cache_corrupted=: ;;
2251 ,set)
5213506e
RW
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2253$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2254 ac_cache_corrupted=: ;;
2255 ,);;
2256 *)
2257 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2258 # differences in whitespace do not lead to failure.
2259 ac_old_val_w=`echo x $ac_old_val`
2260 ac_new_val_w=`echo x $ac_new_val`
2261 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2263$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2264 ac_cache_corrupted=:
2265 else
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2267$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2268 eval $ac_var=\$ac_old_val
2269 fi
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2271$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2273$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2274 fi;;
2275 esac
2276 # Pass precious variables to config.status.
2277 if test "$ac_new_set" = set; then
2278 case $ac_new_val in
5213506e 2279 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2280 *) ac_arg=$ac_var=$ac_new_val ;;
2281 esac
2282 case " $ac_configure_args " in
2283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2284 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2285 esac
2286 fi
2287done
2288if $ac_cache_corrupted; then
5213506e
RW
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2292$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2293 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2294fi
5213506e
RW
2295## -------------------- ##
2296## Main body of script. ##
2297## -------------------- ##
671aa708 2298
2aeb72e9
DD
2299ac_ext=c
2300ac_cpp='$CPP $CPPFLAGS'
2301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2303ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304
1c710c3c
DJ
2305
2306
2307
1c710c3c
DJ
2308
2309
0115d4a3 2310
1c710c3c 2311
ad33ff57
RW
2312progname=$0
2313# if PWD already has a value, it is probably wrong.
2314if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2315
2316# Export original configure arguments for use by sub-configures.
2317# Quote arguments with shell meta charatcers.
2318TOPLEVEL_CONFIGURE_ARGUMENTS=
2319set -- "$progname" "$@"
2320for ac_arg
2321do
2322 case "$ac_arg" in
2323 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2324 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2325 # if the argument is of the form -foo=baz, quote the baz part only
2326 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2327 *) ;;
2328 esac
2329 # Add the quoted argument to the list.
2330 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2331done
2332if test "$silent" = yes; then
2333 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2334fi
2335# Remove the initial space we just introduced and, as these will be
2336# expanded by make, quote '$'.
2337TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2338
1c710c3c
DJ
2339
2340# Find the build, host, and target systems.
671aa708 2341ac_aux_dir=
5213506e 2342for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2343 if test -f "$ac_dir/install-sh"; then
2344 ac_aux_dir=$ac_dir
2345 ac_install_sh="$ac_aux_dir/install-sh -c"
2346 break
2347 elif test -f "$ac_dir/install.sh"; then
2348 ac_aux_dir=$ac_dir
2349 ac_install_sh="$ac_aux_dir/install.sh -c"
2350 break
2351 elif test -f "$ac_dir/shtool"; then
2352 ac_aux_dir=$ac_dir
2353 ac_install_sh="$ac_aux_dir/shtool install -c"
2354 break
2355 fi
671aa708
NN
2356done
2357if test -z "$ac_aux_dir"; then
22e05272 2358 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2359fi
5213506e
RW
2360
2361# These three variables are undocumented and unsupported,
2362# and are intended to be withdrawn in a future Autoconf release.
2363# They can cause serious problems if a builder's source tree is in a directory
2364# whose full name contains unusual characters.
2365ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2366ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2367ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2368
671aa708 2369
1c710c3c 2370# Make sure we can run config.sub.
5213506e 2371$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2372 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2373
2374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2375$as_echo_n "checking build system type... " >&6; }
22e05272 2376if ${ac_cv_build+:} false; then :
5213506e
RW
2377 $as_echo_n "(cached) " >&6
2378else
2379 ac_build_alias=$build_alias
2380test "x$ac_build_alias" = x &&
2381 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2382test "x$ac_build_alias" = x &&
22e05272 2383 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2384ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2385 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2386
2387fi
2388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2389$as_echo "$ac_cv_build" >&6; }
2390case $ac_cv_build in
2391*-*-*) ;;
22e05272 2392*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2393esac
1c710c3c 2394build=$ac_cv_build
5213506e
RW
2395ac_save_IFS=$IFS; IFS='-'
2396set x $ac_cv_build
2397shift
2398build_cpu=$1
2399build_vendor=$2
2400shift; shift
2401# Remember, the first character of IFS is used to create $*,
2402# except with old shells:
2403build_os=$*
2404IFS=$ac_save_IFS
2405case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2406
671aa708 2407
1c710c3c
DJ
2408 case ${build_alias} in
2409 "") build_noncanonical=${build} ;;
2410 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2411esac
2412
2413
af71363e 2414
1c710c3c
DJ
2415 case ${host_alias} in
2416 "") host_noncanonical=${build_noncanonical} ;;
2417 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2418esac
2419
af71363e 2420
1c710c3c
DJ
2421
2422 case ${target_alias} in
2423 "") target_noncanonical=${host_noncanonical} ;;
2424 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2425esac
2426
af71363e 2427
1c710c3c
DJ
2428
2429
2430test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2431 test "$program_prefix$program_suffix$program_transform_name" = \
2432 NONENONEs,x,x, &&
1c710c3c 2433 program_transform_name=s,y,y,
af71363e 2434
5213506e
RW
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2436$as_echo_n "checking host system type... " >&6; }
22e05272 2437if ${ac_cv_host+:} false; then :
5213506e 2438 $as_echo_n "(cached) " >&6
af71363e 2439else
5213506e
RW
2440 if test "x$host_alias" = x; then
2441 ac_cv_host=$ac_cv_build
2442else
2443 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2444 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2445fi
1c710c3c 2446
af71363e 2447fi
5213506e
RW
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2449$as_echo "$ac_cv_host" >&6; }
2450case $ac_cv_host in
2451*-*-*) ;;
22e05272 2452*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2453esac
1c710c3c 2454host=$ac_cv_host
5213506e
RW
2455ac_save_IFS=$IFS; IFS='-'
2456set x $ac_cv_host
2457shift
2458host_cpu=$1
2459host_vendor=$2
2460shift; shift
2461# Remember, the first character of IFS is used to create $*,
2462# except with old shells:
2463host_os=$*
2464IFS=$ac_save_IFS
2465case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2466
2467
5213506e
RW
2468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2469$as_echo_n "checking target system type... " >&6; }
22e05272 2470if ${ac_cv_target+:} false; then :
5213506e 2471 $as_echo_n "(cached) " >&6
1c710c3c 2472else
5213506e
RW
2473 if test "x$target_alias" = x; then
2474 ac_cv_target=$ac_cv_host
2475else
2476 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2477 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2478fi
1c710c3c
DJ
2479
2480fi
5213506e
RW
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2482$as_echo "$ac_cv_target" >&6; }
2483case $ac_cv_target in
2484*-*-*) ;;
22e05272 2485*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2486esac
1c710c3c 2487target=$ac_cv_target
5213506e
RW
2488ac_save_IFS=$IFS; IFS='-'
2489set x $ac_cv_target
2490shift
2491target_cpu=$1
2492target_vendor=$2
2493shift; shift
2494# Remember, the first character of IFS is used to create $*,
2495# except with old shells:
2496target_os=$*
2497IFS=$ac_save_IFS
2498case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2499
2500
2501# The aliases save the names the user supplied, while $host etc.
2502# will get canonicalized.
2503test -n "$target_alias" &&
2504 test "$program_prefix$program_suffix$program_transform_name" = \
2505 NONENONEs,x,x, &&
2506 program_prefix=${target_alias}-
5213506e 2507
671aa708 2508test "$program_prefix" != NONE &&
5213506e 2509 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2510# Use a double $ so make ignores it.
2511test "$program_suffix" != NONE &&
5213506e
RW
2512 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2513# Double any \ or $.
1c710c3c 2514# By default was `s,x,x', remove it if useless.
5213506e
RW
2515ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2516program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2517
671aa708
NN
2518
2519
775956d0
NN
2520# Get 'install' or 'install-sh' and its variants.
2521# Find a good install program. We prefer a C program (faster),
2522# so one script is as good as another. But avoid the broken or
2523# incompatible versions:
2524# SysV /etc/install, /usr/sbin/install
2525# SunOS /usr/etc/install
2526# IRIX /sbin/install
2527# AIX /bin/install
1c710c3c 2528# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2529# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2530# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2531# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2532# OS/2's system install, which has a completely different semantic
775956d0 2533# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2534# Reject install programs that cannot install multiple files.
5213506e
RW
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2536$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2537if test -z "$INSTALL"; then
22e05272 2538if ${ac_cv_path_install+:} false; then :
5213506e 2539 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2540else
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
5213506e
RW
2546 # Account for people who put trailing slashes in PATH elements.
2547case $as_dir/ in #((
2548 ./ | .// | /[cC]/* | \
1c710c3c 2549 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2550 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2551 /usr/ucb/* ) ;;
2552 *)
2553 # OSF1 and SCO ODT 3.0 have their own names for install.
2554 # Don't use installbsd from OSF since it installs stuff as root
2555 # by default.
2556 for ac_prog in ginstall scoinst install; do
2557 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2558 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2559 if test $ac_prog = install &&
1c710c3c 2560 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2561 # AIX install. It has an incompatible calling convention.
2562 :
1c710c3c
DJ
2563 elif test $ac_prog = install &&
2564 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2565 # program-specific install script used by HP pwplus--don't use.
2566 :
775956d0 2567 else
38d24731
RW
2568 rm -rf conftest.one conftest.two conftest.dir
2569 echo one > conftest.one
2570 echo two > conftest.two
2571 mkdir conftest.dir
2572 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2573 test -s conftest.one && test -s conftest.two &&
2574 test -s conftest.dir/conftest.one &&
2575 test -s conftest.dir/conftest.two
2576 then
2577 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2578 break 3
2579 fi
775956d0
NN
2580 fi
2581 fi
2582 done
1c710c3c
DJ
2583 done
2584 ;;
2585esac
5213506e
RW
2586
2587 done
2588IFS=$as_save_IFS
1c710c3c 2589
38d24731 2590rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2591
2592fi
2593 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2594 INSTALL=$ac_cv_path_install
775956d0 2595 else
38d24731
RW
2596 # As a last resort, use the slow shell script. Don't cache a
2597 # value for INSTALL within a source directory, because that will
775956d0 2598 # break other packages using the cache if that directory is
38d24731 2599 # removed, or if the value is a relative name.
1c710c3c 2600 INSTALL=$ac_install_sh
775956d0
NN
2601 fi
2602fi
5213506e
RW
2603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2604$as_echo "$INSTALL" >&6; }
775956d0
NN
2605
2606# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2607# It thinks the first close brace ends the variable substitution.
2608test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2609
1c710c3c 2610test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2611
2612test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2613
5213506e
RW
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2615$as_echo_n "checking whether ln works... " >&6; }
22e05272 2616if ${acx_cv_prog_LN+:} false; then :
5213506e 2617 $as_echo_n "(cached) " >&6
ad6717df
PB
2618else
2619 rm -f conftestdata_t
2620echo >conftestdata_f
2621if ln conftestdata_f conftestdata_t 2>/dev/null
2622then
2623 acx_cv_prog_LN=ln
2624else
2625 acx_cv_prog_LN=no
2626fi
2627rm -f conftestdata_f conftestdata_t
2628
2629fi
2630if test $acx_cv_prog_LN = no; then
2631 LN="cp"
5213506e
RW
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2633$as_echo "no, using $LN" >&6; }
ad6717df
PB
2634else
2635 LN="$acx_cv_prog_LN"
5213506e
RW
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2637$as_echo "yes" >&6; }
ad6717df
PB
2638fi
2639
5213506e
RW
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2641$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2642LN_S=$as_ln_s
2643if test "$LN_S" = "ln -s"; then
5213506e
RW
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2645$as_echo "yes" >&6; }
fb0103e5 2646else
5213506e
RW
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2648$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2649fi
2650
87264276
PB
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2652$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2653if ${ac_cv_path_SED+:} false; then :
87264276
PB
2654 $as_echo_n "(cached) " >&6
2655else
2656 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2657 for ac_i in 1 2 3 4 5 6 7; do
2658 ac_script="$ac_script$as_nl$ac_script"
2659 done
2660 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2661 { ac_script=; unset ac_script;}
2662 if test -z "$SED"; then
2663 ac_path_SED_found=false
2664 # Loop through the user's path and test for each of PROGNAME-LIST
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH
2667do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_prog in sed gsed; do
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2673 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2674# Check for GNU ac_path_SED and select it if it is found.
2675 # Check for GNU $ac_path_SED
2676case `"$ac_path_SED" --version 2>&1` in
2677*GNU*)
2678 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2679*)
2680 ac_count=0
2681 $as_echo_n 0123456789 >"conftest.in"
2682 while :
2683 do
2684 cat "conftest.in" "conftest.in" >"conftest.tmp"
2685 mv "conftest.tmp" "conftest.in"
2686 cp "conftest.in" "conftest.nl"
2687 $as_echo '' >> "conftest.nl"
2688 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2690 as_fn_arith $ac_count + 1 && ac_count=$as_val
2691 if test $ac_count -gt ${ac_path_SED_max-0}; then
2692 # Best one so far, save it but keep looking for a better one
2693 ac_cv_path_SED="$ac_path_SED"
2694 ac_path_SED_max=$ac_count
2695 fi
2696 # 10*(2^10) chars as input seems more than enough
2697 test $ac_count -gt 10 && break
2698 done
2699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2700esac
2701
2702 $ac_path_SED_found && break 3
2703 done
2704 done
2705 done
2706IFS=$as_save_IFS
2707 if test -z "$ac_cv_path_SED"; then
22e05272 2708 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2709 fi
2710else
2711 ac_cv_path_SED=$SED
2712fi
2713
2714fi
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2716$as_echo "$ac_cv_path_SED" >&6; }
2717 SED="$ac_cv_path_SED"
2718 rm -f conftest.sed
2719
2720for ac_prog in gawk mawk nawk awk
2721do
2722 # Extract the first word of "$ac_prog", so it can be a program name with args.
2723set dummy $ac_prog; ac_word=$2
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2726if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2727 $as_echo_n "(cached) " >&6
2728else
2729 if test -n "$AWK"; then
2730 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2731else
2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH
2734do
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2739 ac_cv_prog_AWK="$ac_prog"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 break 2
2742 fi
2743done
2744 done
2745IFS=$as_save_IFS
2746
2747fi
2748fi
2749AWK=$ac_cv_prog_AWK
2750if test -n "$AWK"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2752$as_echo "$AWK" >&6; }
2753else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755$as_echo "no" >&6; }
2756fi
2757
2758
2759 test -n "$AWK" && break
2760done
2761
775956d0 2762
ee6a22df
L
2763srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2764
2765# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2766# a relative path.
2767if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2768 INSTALL="${srcpwd}/install-sh -c"
2769fi
2770
671aa708
NN
2771# Set srcdir to "." if that's what it is.
2772# This is important for multilib support.
2773pwd=`${PWDCMD-pwd}`
671aa708
NN
2774if test "${pwd}" = "${srcpwd}" ; then
2775 srcdir=.
79c06341
JL
2776fi
2777
671aa708 2778topsrcdir=$srcpwd
5d4a5ee6 2779
671aa708 2780extra_host_args=
afabd8e6 2781
671aa708
NN
2782### To add a new directory to the tree, first choose whether it is a target
2783### or a host dependent tool. Then put it into the appropriate list
2784### (library or tools, host or target), doing a dependency sort.
79c06341 2785
1c710c3c 2786# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2787# configdirs, or target_configdirs; see the serialization section below.
79c06341 2788
1c710c3c
DJ
2789# Dependency sorting is only needed when *configuration* must be done in
2790# a particular order. In all cases a dependency should be specified in
671aa708 2791# the Makefile, whether or not it's implicitly specified here.
79c06341 2792
671aa708
NN
2793# Double entries in build_configdirs, configdirs, or target_configdirs may
2794# cause circular dependencies and break everything horribly.
79c06341 2795
23f6b2f9
PB
2796# these library is used by various programs built for the build
2797# environment
2798#
929315a9 2799build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2800
2801# these tools are built for the build environment
85bfb75e 2802build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2803
671aa708 2804# these libraries are used by various programs built for the host environment
eae1a5d4 2805#f
36230329 2806host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
671aa708 2807
671aa708
NN
2808# these tools are built for the host environment
2809# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2810# know that we are building the simulator.
2811# binutils, gas and ld appear in that order because it makes sense to run
2812# "make check" in that particular order.
38e3d868 2813# If --enable-gold is used, "gold" may replace "ld".
2efd8b1f 2814host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
671aa708 2815
671aa708
NN
2816# these libraries are built for the target environment, and are built after
2817# the host libraries and the host tools (which may be a cross compiler)
8499116a 2818# Note that libiberty is not a target library.
291f172e 2819target_libraries="target-libgcc \
eff02e4f 2820 target-libbacktrace \
671aa708
NN
2821 target-libgloss \
2822 target-newlib \
6d3b5aea 2823 target-libgomp \
5f520819 2824 target-liboffloadmic \
48310492 2825 target-libatomic \
0a35513e 2826 target-libitm \
cb543528 2827 target-libstdc++-v3 \
f35db108 2828 target-libsanitizer \
2077db1b 2829 target-libvtv \
77008252 2830 target-libssp \
1ec601bf 2831 target-libquadmath \
6de9cd9a 2832 target-libgfortran \
012447ea 2833 target-libffi \
d9cdb878 2834 target-libobjc \
632e2a07 2835 target-libada \
b4c522fa 2836 target-libgo \
bb50312e
IB
2837 target-libphobos \
2838 target-zlib"
671aa708 2839
4dbda6f0
NN
2840# these tools are built using the target libraries, and are intended to
2841# run only in the target environment
671aa708 2842#
4dbda6f0 2843# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2844# list belongs in this list.
671aa708 2845#
85bfb75e 2846target_tools="target-rda"
79c06341 2847
671aa708 2848################################################################################
79c06341 2849
671aa708
NN
2850## All tools belong in one of the four categories, and are assigned above
2851## We assign ${configdirs} this way to remove all embedded newlines. This
2852## is important because configure will choke if they ever get through.
2853## ${configdirs} is directories we build using the host tools.
2854## ${target_configdirs} is directories we build using the target tools.
671aa708 2855configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2856target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2857build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2858
ac9e6043
RW
2859
2860
671aa708 2861################################################################################
79c06341 2862
671aa708 2863srcname="gnu development package"
79c06341 2864
671aa708
NN
2865# This gets set non-empty for some net releases of packages.
2866appdirs=""
79c06341 2867
671aa708
NN
2868# Define is_cross_compiler to save on calls to 'test'.
2869is_cross_compiler=
2870if test x"${host}" = x"${target}" ; then
2871 is_cross_compiler=no
79c06341 2872else
671aa708 2873 is_cross_compiler=yes
1c710c3c 2874fi
79c06341 2875
b4acb5ef 2876# Find the build and target subdir names.
8b87bb96 2877
2e9e6f68
DJ
2878# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2879# have matching libraries, they should use host libraries: Makefile.tpl
2880# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2881# However, they still use the build modules, because the corresponding
2882# host modules (e.g. bison) are only built for the host when bootstrap
2883# finishes. So:
2884# - build_subdir is where we find build modules, and never changes.
2885# - build_libsubdir is where we find build libraries, and can be overridden.
2886
2887# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2888build_subdir="build-${build_noncanonical}"
1c710c3c 2889
5213506e
RW
2890# Check whether --with-build-libsubdir was given.
2891if test "${with_build_libsubdir+set}" = set; then :
2892 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2893else
2894 build_libsubdir="$build_subdir"
5213506e
RW
2895fi
2896
215c351a
PB
2897# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2898if ( test $srcdir = . && test -d gcc ) \
2899 || test -d $srcdir/../host-${host_noncanonical}; then
2900 host_subdir="host-${host_noncanonical}"
2901else
2902 host_subdir=.
2903fi
8b87bb96
NN
2904# No prefix.
2905target_subdir=${target_noncanonical}
1c710c3c 2906
0db770bd
RW
2907# Be sure to cover against remnants of an in-tree build.
2908if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2909 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2910Use a pristine source tree when building in a separate tree" "$LINENO" 5
2911fi
79c06341 2912
671aa708
NN
2913# Skipdirs are removed silently.
2914skipdirs=
2915# Noconfigdirs are removed loudly.
2916noconfigdirs=""
79c06341 2917
671aa708
NN
2918use_gnu_ld=
2919# Make sure we don't let GNU ld be added if we didn't want it.
2920if test x$with_gnu_ld = xno ; then
2921 use_gnu_ld=no
5afab7ad 2922 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2923fi
2924
671aa708
NN
2925use_gnu_as=
2926# Make sure we don't let GNU as be added if we didn't want it.
2927if test x$with_gnu_as = xno ; then
2928 use_gnu_as=no
2929 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2930fi
2931
d7f09764 2932use_included_zlib=
a05c2c75
L
2933
2934# Check whether --with-system-zlib was given.
2935if test "${with_system_zlib+set}" = set; then :
2936 withval=$with_system_zlib;
2937fi
2938
d7f09764
DN
2939# Make sure we don't let ZLIB be added if we didn't want it.
2940if test x$with_system_zlib = xyes ; then
2941 use_included_zlib=no
2942 noconfigdirs="$noconfigdirs zlib"
2943fi
2944
1c710c3c 2945# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2946# it's not even worth trying to configure, much less build, that tool.
79c06341 2947
671aa708
NN
2948case ${with_x} in
2949 yes | "") ;; # the default value for this tree is that X11 is available
2950 no)
b4f96efe 2951 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2952 # We won't be able to build gdbtk without X.
1c710c3c 2953 enable_gdbtk=no
671aa708
NN
2954 ;;
2955 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2956esac
79c06341 2957
1bcce263 2958# Some are only suitable for cross toolchains.
671aa708
NN
2959# Remove these if host=target.
2960cross_only="target-libgloss target-newlib target-opcodes"
2961
2962case $is_cross_compiler in
2963 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2964esac
79c06341 2965
671aa708
NN
2966# If both --with-headers and --with-libs are specified, default to
2967# --without-newlib.
ee6a22df
L
2968if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2969 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2970 if test x"${with_newlib}" = x ; then
2971 with_newlib=no
2972 fi
79c06341
JL
2973fi
2974
671aa708
NN
2975# Recognize --with-newlib/--without-newlib.
2976case ${with_newlib} in
2977 no) skipdirs="${skipdirs} target-newlib" ;;
2978 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2979esac
79c06341 2980
85c64bbe
BS
2981# Check whether --enable-as-accelerator-for was given.
2982if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2983 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2984fi
2985
2986
2987# Check whether --enable-offload-targets was given.
2988if test "${enable_offload_targets+set}" = set; then :
2989 enableval=$enable_offload_targets;
2990 if test x"$enable_offload_targets" = x; then
22e05272 2991 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
2992 fi
2993
2994else
2995 enable_offload_targets=
2996fi
2997
2998
fe5bfa67
TB
2999# Check whether --enable-offload-defaulted was given.
3000if test "${enable_offload_defaulted+set}" = set; then :
3001 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3002else
3003 enable_offload_defaulted=
3004fi
3005
3006
21539e2e
MK
3007# Handle --enable-gold, --enable-ld.
3008# --disable-gold [--enable-ld]
3009# Build only ld. Default option.
9580395f
L
3010# --enable-gold [--enable-ld]
3011# Build both gold and ld. Install gold as "ld.gold", install ld
3012# as "ld.bfd" and "ld".
3013# --enable-gold=default [--enable-ld]
21539e2e
MK
3014# Build both gold and ld. Install gold as "ld.gold" and "ld",
3015# install ld as "ld.bfd".
3016# --enable-gold[=default] --disable-ld
3017# Build only gold, which is then installed as both "ld.gold" and "ld".
3018# --enable-gold --enable-ld=default
9580395f
L
3019# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3020# and ld.bfd).
21539e2e
MK
3021# In other words, ld is default
3022# --enable-gold=default --enable-ld=default
3023# Error.
3024
3025default_ld=
5213506e
RW
3026# Check whether --enable-gold was given.
3027if test "${enable_gold+set}" = set; then :
3028 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3029else
3030 ENABLE_GOLD=no
5213506e
RW
3031fi
3032
21539e2e
MK
3033case "${ENABLE_GOLD}" in
3034 yes|default)
38e3d868
RM
3035 # Check for ELF target.
3036 is_elf=no
3037 case "${target}" in
3038 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3039 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3040 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 3041 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
3042 case "${target}" in
3043 *-*-linux*aout* | *-*-linux*oldld*)
3044 ;;
3045 *)
3046 is_elf=yes
3047 ;;
3048 esac
3049 esac
3050
3051 if test "$is_elf" = "yes"; then
3052 # Check for target supported by gold.
5afab7ad 3053 case "${target}" in
7705dfd1 3054 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
1b858e76 3055 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
21539e2e
MK
3056 configdirs="$configdirs gold"
3057 if test x${ENABLE_GOLD} = xdefault; then
3058 default_ld=gold
3059 fi
38e3d868 3060 ENABLE_GOLD=yes
5afab7ad
ILT
3061 ;;
3062 esac
38e3d868
RM
3063 fi
3064 ;;
3065 no)
3066 ;;
3067 *)
22e05272 3068 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3069 ;;
21539e2e
MK
3070esac
3071
3072# Check whether --enable-ld was given.
3073if test "${enable_ld+set}" = set; then :
3074 enableval=$enable_ld; ENABLE_LD=$enableval
3075else
3076 ENABLE_LD=yes
3077fi
3078
3079
3080case "${ENABLE_LD}" in
3081 default)
9580395f 3082 if test x${default_ld} != x; then
22e05272 3083 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
3084 fi
3085 ;;
3086 yes)
3087 ;;
3088 no)
3089 if test x${ENABLE_GOLD} != xyes; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3091$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3092 fi
3093 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3094 ;;
3095 *)
22e05272 3096 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3097 ;;
3098esac
5afab7ad 3099
78edb32f
L
3100# PR gas/19109
3101# Decide the default method for compressing debug sections.
3102# Provide a configure time option to override our default.
3103# Check whether --enable-compressed_debug_sections was given.
3104if test "${enable_compressed_debug_sections+set}" = set; then :
3105 enableval=$enable_compressed_debug_sections;
3106 if test x"$enable_compressed_debug_sections" = xyes; then
22e05272 3107 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3108 fi
3109
3110else
3111 enable_compressed_debug_sections=
3112fi
3113
3114
671aa708 3115# Configure extra directories which are host specific
79c06341 3116
671aa708
NN
3117case "${host}" in
3118 *-cygwin*)
3119 configdirs="$configdirs libtermcap" ;;
3120esac
79c06341 3121
4fab7234
HPN
3122# A target can indicate whether a language isn't supported for some reason.
3123# Only spaces may be used in this macro; not newlines or tabs.
3124unsupported_languages=
3125
1c710c3c 3126# Remove more programs from consideration, based on the host or
671aa708
NN
3127# target this usually means that a port of the program doesn't
3128# exist yet.
ec8d6ddc 3129
671aa708 3130case "${host}" in
111eeb6e 3131 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3132 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3133 ;;
671aa708 3134esac
ec8d6ddc 3135
6de9cd9a 3136
87e6d9dc
TB
3137# Check whether --enable-libquadmath was given.
3138if test "${enable_libquadmath+set}" = set; then :
3139 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3140else
3141 ENABLE_LIBQUADMATH=yes
3142fi
3143
3144if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3145 noconfigdirs="$noconfigdirs target-libquadmath"
3146fi
3147
3148
3149# Check whether --enable-libquadmath-support was given.
3150if test "${enable_libquadmath_support+set}" = set; then :
3151 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3152else
3153 ENABLE_LIBQUADMATH_SUPPORT=yes
3154fi
3155
3156enable_libquadmath_support=
3157if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3158 enable_libquadmath_support=no
3159fi
3160
3161
5213506e
RW
3162# Check whether --enable-libada was given.
3163if test "${enable_libada+set}" = set; then :
3164 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3165else
3166 ENABLE_LIBADA=yes
5213506e
RW
3167fi
3168
d9cdb878 3169if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3170 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3171fi
3172
5213506e
RW
3173# Check whether --enable-libssp was given.
3174if test "${enable_libssp+set}" = set; then :
3175 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3176else
3177 ENABLE_LIBSSP=yes
5213506e
RW
3178fi
3179
ef0087a7 3180
1873ec0c
L
3181# Check whether --enable-libstdcxx was given.
3182if test "${enable_libstdcxx+set}" = set; then :
3183 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3184else
3185 ENABLE_LIBSTDCXX=default
3186fi
3187
3188if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3189 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3190fi
3191
5f520819
KY
3192# If this is accelerator compiler and its target is intelmic we enable
3193# target liboffloadmic by default. If this is compiler with offloading
3194# for intelmic we enable host liboffloadmic by default. Otherwise
3195# liboffloadmic is disabled by default.
3196# Check whether --enable-liboffloadmic was given.
3197if test "${enable_liboffloadmic+set}" = set; then :
3198 enableval=$enable_liboffloadmic; case "$enableval" in
3199 no | host | target)
3200 enable_liboffloadmic=$enableval ;;
3201 *)
22e05272 3202 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
5f520819
KY
3203esac
3204else
4b4f2e35 3205 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3206 case "${target}" in
3207 *-intelmic-* | *-intelmicemul-*)
3208 enable_liboffloadmic=target
3209 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3210 ;;
3211 *)
3212 enable_liboffloadmic=no
3213 ;;
3214 esac
3215else
3216 case "${enable_offload_targets}" in
3217 *-intelmic-* | *-intelmicemul-*)
3218 enable_liboffloadmic=host
3219 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3220 ;;
3221 *)
3222 enable_liboffloadmic=no
3223 ;;
3224 esac
3225fi
3226fi
3227
3228
3229
44a7d18d 3230# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3231if test x$enable_libgomp = x ; then
953ff289 3232 case "${target}" in
416ac4d4 3233 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3234 ;;
8c6d158a 3235 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3236 ;;
b24513a1 3237 *-*-solaris2* | *-*-hpux11*)
953ff289 3238 ;;
cac90078 3239 *-*-darwin* | *-*-aix*)
953ff289 3240 ;;
29b1533a 3241 nvptx*-*-* | amdgcn*-*-*)
44a7d18d 3242 ;;
953ff289
DN
3243 *)
3244 noconfigdirs="$noconfigdirs target-libgomp"
3245 ;;
3246 esac
27079765 3247fi
953ff289 3248
48310492
RH
3249# Disable libatomic on unsupported systems.
3250if test -d ${srcdir}/libatomic; then
3251 if test x$enable_libatomic = x; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3253$as_echo_n "checking for libatomic support... " >&6; }
3254 if (srcdir=${srcdir}/libatomic; \
3255 . ${srcdir}/configure.tgt; \
3256 test -n "$UNSUPPORTED")
3257 then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259$as_echo "no" >&6; }
3260 noconfigdirs="$noconfigdirs target-libatomic"
3261 else
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3263$as_echo "yes" >&6; }
3264 fi
3265 fi
3266fi
3267
5f520819
KY
3268# Disable liboffloadmic on unsupported systems.
3269if test -d ${srcdir}/liboffloadmic; then
3270 if test x$enable_liboffloadmic != xno; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3272$as_echo_n "checking for liboffloadmic support... " >&6; }
3273 if (srcdir=${srcdir}/liboffloadmic; \
3274 . ${srcdir}/configure.tgt; \
3275 test -n "$UNSUPPORTED")
3276 then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278$as_echo "no" >&6; }
3279 noconfigdirs="$noconfigdirs target-liboffloadmic"
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282$as_echo "yes" >&6; }
3283 fi
3284 fi
3285fi
3286
e948157d
RH
3287# Disable libitm on unsupported systems.
3288if test -d ${srcdir}/libitm; then
3289 if test x$enable_libitm = x; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3291$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3292 if (srcdir=${srcdir}/libitm; \
3293 . ${srcdir}/configure.tgt; \
3294 test -n "$UNSUPPORTED")
3295 then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3297$as_echo "no" >&6; }
e948157d
RH
3298 noconfigdirs="$noconfigdirs target-libitm"
3299 else
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3301$as_echo "yes" >&6; }
e948157d
RH
3302 fi
3303 fi
0a35513e
AH
3304fi
3305
93bf5390
RH
3306# Disable libsanitizer on unsupported systems.
3307if test -d ${srcdir}/libsanitizer; then
3308 if test x$enable_libsanitizer = x; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3310$as_echo_n "checking for libsanitizer support... " >&6; }
3311 if (srcdir=${srcdir}/libsanitizer; \
3312 . ${srcdir}/configure.tgt; \
3313 test -n "$UNSUPPORTED")
3314 then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316$as_echo "no" >&6; }
3317 noconfigdirs="$noconfigdirs target-libsanitizer"
3318 else
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3320$as_echo "yes" >&6; }
3321 fi
3322 fi
3323fi
3324
2077db1b
CT
3325# Disable libvtv on unsupported systems.
3326if test -d ${srcdir}/libvtv; then
3327 if test x$enable_libvtv = x; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3329$as_echo_n "checking for libvtv support... " >&6; }
3330 if (srcdir=${srcdir}/libvtv; \
3331 . ${srcdir}/configure.tgt; \
1e74b850 3332 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3333 then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335$as_echo "no" >&6; }
3336 noconfigdirs="$noconfigdirs target-libvtv"
3337 else
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3339$as_echo "yes" >&6; }
3340 fi
3341 fi
3342fi
3343
d91491e5
SE
3344# Disable libquadmath for some systems.
3345case "${target}" in
e7fae550
DE
3346 avr-*-*)
3347 noconfigdirs="$noconfigdirs target-libquadmath"
3348 ;;
d91491e5
SE
3349 # libquadmath is unused on AIX and libquadmath build process use of
3350 # LD_LIBRARY_PATH can break AIX bootstrap.
3351 powerpc-*-aix* | rs6000-*-aix*)
3352 noconfigdirs="$noconfigdirs target-libquadmath"
3353 ;;
3354esac
3355
1e9e0e23
JM
3356# Disable libssp for some systems.
3357case "${target}" in
3358 avr-*-*)
b318fb4b 3359 # No hosted I/O support.
1e9e0e23
JM
3360 noconfigdirs="$noconfigdirs target-libssp"
3361 ;;
91dfef96
JM
3362 bpf-*-*)
3363 noconfigdirs="$noconfigdirs target-libssp"
3364 ;;
1e9e0e23
JM
3365 powerpc-*-aix* | rs6000-*-aix*)
3366 noconfigdirs="$noconfigdirs target-libssp"
85b8555e 3367 ;;
8d2af3a2
DD
3368 pru-*-*)
3369 # No hosted I/O support.
3370 noconfigdirs="$noconfigdirs target-libssp"
3371 ;;
85b8555e 3372 rl78-*-*)
7cb62ef1
EB
3373 # libssp uses a misaligned load to trigger a fault, but the RL78
3374 # doesn't fault for those - instead, it gives a build-time error
3375 # for explicit misaligned loads.
85b8555e 3376 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3377 ;;
0969ec7d
EB
3378 visium-*-*)
3379 # No hosted I/O support.
3380 noconfigdirs="$noconfigdirs target-libssp"
3381 ;;
1e9e0e23
JM
3382esac
3383
1e9e0e23 3384# Disable libstdc++-v3 for some systems.
1873ec0c
L
3385# Allow user to override this if they pass --enable-libstdc++-v3
3386if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3387 case "${target}" in
3388 *-*-vxworks*)
3389 # VxWorks uses the Dinkumware C++ library.
3390 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3391 ;;
afa3d80e
TS
3392 amdgcn*-*-*)
3393 # Not ported/fails to build when using newlib.
3394 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3395 ;;
1873ec0c
L
3396 arm*-wince-pe*)
3397 # the C++ libraries don't build on top of CE's C libraries
3398 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3399 ;;
3400 avr-*-*)
3401 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3402 ;;
91dfef96
JM
3403 bpf-*-*)
3404 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3405 ;;
fef939d6
JB
3406 ft32-*-*)
3407 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3408 ;;
1873ec0c
L
3409 esac
3410fi
1e9e0e23 3411
91dfef96
JM
3412# Disable C++ on systems where it is known to not work.
3413# For testing, you can override this with --enable-languages=c++.
3414case ,${enable_languages}, in
3415 *,c++,*)
3416 ;;
3417 *)
3418 case "${target}" in
3419 bpf-*-*)
3420 unsupported_languages="$unsupported_languages c++"
3421 ;;
3422 esac
3423 ;;
3424esac
3425
3426# Disable Objc on systems where it is known to not work.
3427# For testing, you can override this with --enable-languages=objc.
3428case ,${enable_languages}, in
3429 *,objc,*)
3430 ;;
3431 *)
3432 case "${target}" in
3433 bpf-*-*)
3434 unsupported_languages="$unsupported_languages objc"
3435 ;;
3436 esac
3437 ;;
3438esac
3439
260eedb9
IB
3440# Disable D on systems where it is known to not work.
3441# For testing, you can override this with --enable-languages=d.
3442case ,${enable_languages}, in
3443 *,d,*)
3444 ;;
3445 *)
3446 case "${target}" in
91dfef96 3447 bpf-*-*)
260eedb9
IB
3448 unsupported_languages="$unsupported_languages d"
3449 ;;
3450 esac
3451 ;;
3452esac
3453
3454# Disable libphobos on unsupported systems.
3455# For testing, you can override this with --enable-libphobos.
3456if test -d ${srcdir}/libphobos; then
3457 if test x$enable_libphobos = x; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3459$as_echo_n "checking for libphobos support... " >&6; }
3460 if (srcdir=${srcdir}/libphobos; \
3461 . ${srcdir}/configure.tgt; \
7d31d331 3462 test "$LIBPHOBOS_SUPPORTED" != "yes")
260eedb9
IB
3463 then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465$as_echo "no" >&6; }
3466 noconfigdirs="$noconfigdirs target-libphobos"
3467 else
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3469$as_echo "yes" >&6; }
3470 fi
3471 fi
3472fi
3473
1e9e0e23
JM
3474# Disable Fortran for some systems.
3475case "${target}" in
3476 mmix-*-*)
3477 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3478 unsupported_languages="$unsupported_languages fortran"
3479 ;;
91dfef96
JM
3480 bpf-*-*)
3481 unsupported_languages="$unsupported_languages fortran"
3482 ;;
1e9e0e23
JM
3483esac
3484
012447ea
JJ
3485# Disable libffi for some systems.
3486case "${target}" in
3487 powerpc-*-darwin*)
3488 ;;
3489 i[3456789]86-*-darwin*)
3490 ;;
3491 x86_64-*-darwin[912]*)
3492 ;;
3493 *-*-darwin*)
3494 noconfigdirs="$noconfigdirs target-libffi"
3495 ;;
3496 *-*-netware*)
3497 noconfigdirs="$noconfigdirs target-libffi"
3498 ;;
3499 *-*-phoenix*)
3500 noconfigdirs="$noconfigdirs target-libffi"
3501 ;;
3502 *-*-rtems*)
3503 noconfigdirs="$noconfigdirs target-libffi"
3504 ;;
3505 *-*-tpf*)
3506 noconfigdirs="$noconfigdirs target-libffi"
3507 ;;
3508 *-*-uclinux*)
3509 noconfigdirs="$noconfigdirs target-libffi"
3510 ;;
3511 *-*-vxworks*)
3512 noconfigdirs="$noconfigdirs target-libffi"
3513 ;;
b20e7532
AT
3514 aarch64*-*-freebsd*)
3515 noconfigdirs="$noconfigdirs target-libffi"
3516 ;;
012447ea
JJ
3517 alpha*-*-*vms*)
3518 noconfigdirs="$noconfigdirs target-libffi"
3519 ;;
3520 arm*-*-freebsd*)
3521 noconfigdirs="$noconfigdirs target-libffi"
3522 ;;
3523 arm-wince-pe)
3524 noconfigdirs="$noconfigdirs target-libffi"
3525 ;;
3526 arm*-*-symbianelf*)
3527 noconfigdirs="$noconfigdirs target-libffi"
3528 ;;
91dfef96
JM
3529 bpf-*-*)
3530 noconfigdirs="$noconfigdirs target-libffi"
3531 ;;
012447ea
JJ
3532 cris-*-* | crisv32-*-*)
3533 case "${target}" in
3534 *-*-linux*)
3535 ;;
3536 *) # See PR46792 regarding target-libffi.
3537 noconfigdirs="$noconfigdirs target-libffi";;
3538 esac
3539 ;;
3540 hppa*64*-*-hpux*)
3541 noconfigdirs="$noconfigdirs target-libffi"
3542 ;;
3543 hppa*-hp-hpux11*)
3544 ;;
3545 hppa*-*-hpux*)
3546 noconfigdirs="$noconfigdirs target-libffi"
3547 ;;
3548 ia64*-*-*vms*)
3549 noconfigdirs="$noconfigdirs target-libffi"
3550 ;;
3551 i[3456789]86-w64-mingw*)
3552 noconfigdirs="$noconfigdirs target-libffi"
3553 ;;
3554 i[3456789]86-*-mingw*)
3555 noconfigdirs="$noconfigdirs target-libffi"
3556 ;;
3557 x86_64-*-mingw*)
3558 noconfigdirs="$noconfigdirs target-libffi"
3559 ;;
3560 mmix-*-*)
3561 noconfigdirs="$noconfigdirs target-libffi"
3562 ;;
3563 powerpc-*-aix*)
012447ea
JJ
3564 ;;
3565 rs6000-*-aix*)
012447ea
JJ
3566 ;;
3567 ft32-*-*)
3568 noconfigdirs="$noconfigdirs target-libffi"
3569 ;;
3570 *-*-lynxos*)
3571 noconfigdirs="$noconfigdirs target-libffi"
3572 ;;
3573esac
3574
3575# Disable the go frontend on systems where it is known to not work. Please keep
3576# this in sync with contrib/config-list.mk.
3577case "${target}" in
91dfef96 3578*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
012447ea
JJ
3579 unsupported_languages="$unsupported_languages go"
3580 ;;
3581esac
3582
f9d09df0
TT
3583# Only allow gdbserver on some systems.
3584if test -d ${srcdir}/gdbserver; then
3585 if test x$enable_gdbserver = x; then
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3587$as_echo_n "checking for gdbserver support... " >&6; }
3588 if (srcdir=${srcdir}/gdbserver; \
3589 . ${srcdir}/configure.srv; \
3590 test -n "$UNSUPPORTED")
3591 then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593$as_echo "no" >&6; }
3594 noconfigdirs="$noconfigdirs gdbserver"
3595 else
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3597$as_echo "yes" >&6; }
3598 fi
3599 fi
3600fi
3601
cdbc9e92
ILT
3602# Disable libgo for some systems where it is known to not work.
3603# For testing, you can easily override this with --enable-libgo.
3604if test x$enable_libgo = x; then
3605 case "${target}" in
3606 *-*-darwin*)
3607 # PR 46986
3608 noconfigdirs="$noconfigdirs target-libgo"
3609 ;;
3610 *-*-cygwin* | *-*-mingw*)
3611 noconfigdirs="$noconfigdirs target-libgo"
3612 ;;
91dfef96
JM
3613 bpf-*-*)
3614 noconfigdirs="$noconfigdirs target-libgo"
3615 ;;
cdbc9e92
ILT
3616 esac
3617fi
3618
c03353e2
RIL
3619# Default libgloss CPU subdirectory.
3620libgloss_dir="$target_cpu"
6de9cd9a 3621
fbcf0dca
JM
3622case "${target}" in
3623 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3624 libgloss_dir=wince
3625 ;;
4dddfc74
YZ
3626 aarch64*-*-* )
3627 libgloss_dir=aarch64
3628 ;;
fbcf0dca
JM
3629 arm*-*-*)
3630 libgloss_dir=arm
3631 ;;
3632 cris-*-* | crisv32-*-*)
3633 libgloss_dir=cris
3634 ;;
3635 hppa*-*-*)
3636 libgloss_dir=pa
3637 ;;
3638 i[3456789]86-*-*)
3639 libgloss_dir=i386
3640 ;;
3641 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3642 libgloss_dir=m68hc11
3643 ;;
3644 m68*-*-* | fido-*-*)
3645 libgloss_dir=m68k
3646 ;;
3647 mips*-*-*)
3648 libgloss_dir=mips
3649 ;;
3650 powerpc*-*-*)
3651 libgloss_dir=rs6000
3652 ;;
8d2af3a2
DD
3653 pru-*-*)
3654 libgloss_dir=pru
3655 ;;
fbcf0dca
JM
3656 sparc*-*-*)
3657 libgloss_dir=sparc
3658 ;;
3659esac
3660
6a789d5e 3661# Disable newlib and libgloss for various target OSes.
671aa708 3662case "${target}" in
6a789d5e
JM
3663 alpha*-dec-osf*)
3664 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665 ;;
3666 i[3456789]86-*-linux*)
3667 # This section makes it possible to build newlib natively on linux.
3668 # If we are using a cross compiler then don't configure newlib.
3669 if test x${is_cross_compiler} != xno ; then
3670 noconfigdirs="$noconfigdirs target-newlib"
3671 fi
3672 noconfigdirs="$noconfigdirs target-libgloss"
3673 # If we are not using a cross compiler, do configure newlib.
3674 # Note however, that newlib will only be configured in this situation
3675 # if the --with-newlib option has been given, because otherwise
3676 # 'target-newlib' will appear in skipdirs.
3677 ;;
3678 i[3456789]86-*-rdos*)
3679 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3680 ;;
3681 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3682 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3683 ;;
3684 sparc-*-sunos4*)
3685 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3686 ;;
91dfef96
JM
3687 bpf-*-*)
3688 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689 ;;
6a789d5e
JM
3690 *-*-aix*)
3691 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 ;;
3693 *-*-beos*)
3694 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3695 ;;
671aa708 3696 *-*-chorusos)
0036370f 3697 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3698 ;;
6a789d5e
JM
3699 *-*-dragonfly*)
3700 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701 ;;
3702 *-*-freebsd*)
3703 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 ;;
3705 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3706 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3707 ;;
3708 *-*-lynxos*)
3709 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710 ;;
3711 *-*-mingw*)
3712 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 ;;
3714 *-*-netbsd*)
3715 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3716 ;;
3717 *-*-netware*)
3718 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 ;;
3720 *-*-tpf*)
3721 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 ;;
3723 *-*-uclinux*)
3724 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 ;;
3726 *-*-vxworks*)
3727 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 ;;
3729esac
3730
3731case "${target}" in
3732 *-*-chorusos)
3733 ;;
3be96231
TG
3734 aarch64-*-darwin*)
3735 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3736 noconfigdirs="$noconfigdirs sim target-rda"
3737 ;;
7431c1a1
AS
3738 amdgcn*-*-*)
3739 ;;
3be96231
TG
3740 arm-*-darwin*)
3741 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3742 noconfigdirs="$noconfigdirs sim target-rda"
3743 ;;
75eeae1a 3744 powerpc-*-darwin*)
e1514c3f 3745 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3746 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3747 ;;
354ebf88
RW
3748 i[3456789]86-*-darwin*)
3749 noconfigdirs="$noconfigdirs ld gprof"
3750 noconfigdirs="$noconfigdirs sim target-rda"
3751 ;;
3752 x86_64-*-darwin[912]*)
0db3a858
TG
3753 noconfigdirs="$noconfigdirs ld gas gprof"
3754 noconfigdirs="$noconfigdirs sim target-rda"
3755 ;;
42c1cd8a
AT
3756 *-*-darwin*)
3757 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3758 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3759 ;;
8c6d158a 3760 *-*-dragonfly*)
8c6d158a 3761 ;;
c3f84f61 3762 *-*-freebsd*)
6de9cd9a 3763 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
c0d0a722 3764 && ! test -d ${srcdir}/gmp \
6de9cd9a
DN
3765 && test -f /usr/local/include/gmp.h; then
3766 with_gmp=/usr/local
3767 fi
6de9cd9a 3768 ;;
ef4e7569
US
3769 *-*-kaos*)
3770 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3771 noconfigdirs="$noconfigdirs target-libgloss"
3772 ;;
671aa708 3773 *-*-netbsd*)
671aa708 3774 ;;
61fec9ff 3775 *-*-netware*)
671aa708 3776 ;;
fd6487af
JS
3777 *-*-phoenix*)
3778 noconfigdirs="$noconfigdirs target-libgloss"
3779 ;;
671aa708 3780 *-*-rtems*)
2909494b 3781 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3782 ;;
a8ba31f2
EC
3783 # The tpf target doesn't support gdb yet.
3784 *-*-tpf*)
6a789d5e 3785 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3786 ;;
5785c0ed 3787 *-*-uclinux*)
6a789d5e 3788 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3789 ;;
671aa708 3790 *-*-vxworks*)
671aa708
NN
3791 ;;
3792 alpha*-dec-osf*)
3793 # ld works, but does not support shared libraries.
671aa708 3794 # gas doesn't generate exception information.
6a789d5e 3795 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3796 ;;
3797 alpha*-*-*vms*)
2909494b 3798 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3799 ;;
671aa708
NN
3800 alpha*-*-*)
3801 # newlib is not 64 bit ready
2909494b 3802 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3803 ;;
91dfef96
JM
3804 bpf-*-*)
3805 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3806 ;;
671aa708 3807 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3808 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3809 ;;
2fd88f4f
AK
3810 arc*-*-*)
3811 noconfigdirs="$noconfigdirs sim"
3812 ;;
671aa708 3813 arm-*-pe*)
2909494b 3814 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3815 ;;
671aa708 3816 arm-*-riscix*)
0036370f 3817 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3818 ;;
b588ae30
GJL
3819 avr-*-*)
3820 if test x${with_avrlibc} != xno; then
3821 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3822 fi
3823 ;;
671aa708 3824 c4x-*-* | tic4x-*-*)
0036370f 3825 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3826 ;;
0036370f
JM
3827 tic54x-*-*)
3828 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3829 ;;
671aa708 3830 d10v-*-*)
0036370f 3831 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3832 ;;
3833 d30v-*-*)
0036370f 3834 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3835 ;;
3836 fr30-*-elf*)
2909494b 3837 noconfigdirs="$noconfigdirs gdb"
671aa708 3838 ;;
a05c2c75
L
3839 ft32-*-*)
3840 noconfigdirs="$noconfigdirs target-rda gprof"
3841 ;;
55f2d967 3842 moxie-*-*)
a05c2c75 3843 noconfigdirs="$noconfigdirs"
55f2d967 3844 ;;
671aa708 3845 h8300*-*-*)
2909494b 3846 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3847 ;;
3848 h8500-*-*)
0036370f 3849 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3850 ;;
ee6a22df 3851 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3852 ;;
a05c2c75
L
3853 hppa*64*-*-hpux*)
3854 noconfigdirs="$noconfigdirs gdb"
3855 ;;
3856 hppa*-*-hpux11*)
3857 noconfigdirs="$noconfigdirs gdb ld"
3858 ;;
4569f85e 3859 hppa*64*-*-linux*)
671aa708 3860 ;;
56f8587a 3861 hppa*-*-linux*)
3e732ba0 3862 ;;
671aa708 3863 hppa*-*-*elf* | \
671aa708
NN
3864 hppa*-*-lites* | \
3865 hppa*-*-openbsd* | \
3866 hppa*64*-*-*)
671aa708 3867 ;;
c03353e2 3868 hppa*-*-pro*)
c03353e2 3869 ;;
671aa708 3870 hppa*-*-*)
2909494b 3871 noconfigdirs="$noconfigdirs ld"
671aa708 3872 ;;
fb87ad5d 3873 i960-*-*)
0036370f 3874 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3875 ;;
671aa708
NN
3876 ia64*-*-elf*)
3877 # No gdb support yet.
1bcce263 3878 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3879 ;;
3880 ia64*-**-hpux*)
5a2931d1 3881 # No ld support yet.
a05c2c75 3882 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3883 ;;
52535a64 3884 ia64*-*-*vms*)
091fe9ca
TG
3885 # No ld support yet.
3886 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3887 ;;
ef4c4300 3888 i[3456789]86-w64-mingw*)
ef4c4300
KT
3889 ;;
3890 i[3456789]86-*-mingw*)
b91f0a41 3891 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3892 ;;
671aa708
NN
3893 *-*-cygwin*)
3894 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3895 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3896 # always build newlib if winsup directory is present.
b91f0a41 3897 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3898 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3899 elif test -d "$srcdir/newlib"; then
b91f0a41 3900 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3901 fi
1c710c3c 3902 ;;
f2a0e225 3903 i[3456789]86-*-pe)
ebb9f8b0 3904 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3905 ;;
f2a0e225 3906 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3907 # The linker does not yet know about weak symbols in COFF,
3908 # and is not configured to handle mixed ELF and COFF.
0036370f 3909 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3910 ;;
f2a0e225 3911 i[3456789]86-*-sco*)
0036370f 3912 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3913 ;;
fbdd5d87 3914 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3915 noconfigdirs="$noconfigdirs target-libgloss"
3916 ;;
f2a0e225 3917 i[3456789]86-*-sysv4*)
0036370f 3918 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3919 ;;
f2a0e225 3920 i[3456789]86-*-beos*)
6a789d5e 3921 noconfigdirs="$noconfigdirs gdb"
3aa83176 3922 ;;
d1f8db0c 3923 i[3456789]86-*-rdos*)
6a789d5e 3924 noconfigdirs="$noconfigdirs gdb"
c03353e2 3925 ;;
671aa708 3926 mmix-*-*)
2909494b 3927 noconfigdirs="$noconfigdirs gdb"
671aa708 3928 ;;
ab34901f 3929 mt-*-*)
79dd769c
AH
3930 noconfigdirs="$noconfigdirs sim"
3931 ;;
58b40a67
FT
3932 nfp-*-*)
3933 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3934 noconfigdirs="$noconfigdirs $target_libraries"
3935 ;;
e6cbe965
SC
3936 pdp11-*-*)
3937 noconfigdirs="$noconfigdirs gdb gprof"
3938 ;;
671aa708
NN
3939 powerpc-*-aix*)
3940 # copied from rs6000-*-* entry
6a789d5e 3941 noconfigdirs="$noconfigdirs gprof"
671aa708 3942 ;;
4569f85e 3943 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3944 target_configdirs="$target_configdirs target-winsup"
0036370f 3945 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3946 # always build newlib.
3947 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3948 ;;
3949 # This is temporary until we can link against shared libraries
3950 powerpcle-*-solaris*)
0036370f 3951 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3952 ;;
3953 powerpc-*-beos*)
6a789d5e 3954 noconfigdirs="$noconfigdirs gdb"
671aa708 3955 ;;
671aa708 3956 rs6000-*-lynxos*)
6a789d5e 3957 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3958 ;;
3959 rs6000-*-aix*)
6a789d5e 3960 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3961 ;;
3962 rs6000-*-*)
2909494b 3963 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3964 ;;
3965 m68k-apollo-*)
0036370f 3966 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3967 ;;
ca9fe997 3968 microblaze*)
2909494b 3969 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3970 ;;
d896cc4d 3971 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3972 if test x$with_newlib = xyes; then
3973 noconfigdirs="$noconfigdirs gprof"
3974 fi
d9dced13 3975 ;;
671aa708 3976 mips*-*-irix5*)
0036370f 3977 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3978 ;;
3979 mips*-*-irix6*)
2909494b 3980 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3981 ;;
671aa708 3982 mips*-*-bsd*)
bc98bcc4 3983 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3984 ;;
671aa708 3985 mips*-*-linux*)
671aa708 3986 ;;
bc98bcc4
JBG
3987 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3988 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3989 noconfigdirs="$noconfigdirs ld gas gprof"
3990 ;;
671aa708 3991 mips*-*-*)
2909494b 3992 noconfigdirs="$noconfigdirs gprof"
671aa708 3993 ;;
738f2522 3994 nvptx*-*-*)
738f2522
BS
3995 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3996 ;;
bc6d9014 3997 sh-*-*)
ea2002ba
CB
3998 case "${target}" in
3999 sh*-*-elf)
2909494b 4000 ;;
ea2002ba 4001 *)
2909494b 4002 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 4003 esac
671aa708 4004 ;;
671aa708 4005 sparc-*-sunos4*)
6a789d5e 4006 if test x${is_cross_compiler} = xno ; then
671aa708
NN
4007 use_gnu_ld=no
4008 fi
4009 ;;
b42f0d7e 4010 tic6x-*-*)
0d557ff8 4011 noconfigdirs="$noconfigdirs sim"
b42f0d7e 4012 ;;
341c653c 4013 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
4014 noconfigdirs="$noconfigdirs sim"
4015 ;;
671aa708 4016 v810-*-*)
0036370f 4017 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
4018 ;;
4019 vax-*-*)
2909494b 4020 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 4021 ;;
1fc1d82e
MR
4022 wasm32-*-*)
4023 noconfigdirs="$noconfigdirs ld"
4024 ;;
671aa708 4025esac
79c06341 4026
671aa708
NN
4027# If we aren't building newlib, then don't build libgloss, since libgloss
4028# depends upon some newlib header files.
4029case "${noconfigdirs}" in
4030 *target-libgloss*) ;;
4031 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4032esac
4033
671aa708 4034# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
4035host_makefile_frag=/dev/null
4036if test -d ${srcdir}/config ; then
4037case "${host}" in
f2a0e225 4038 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
4039 host_makefile_frag="config/mh-djgpp"
4040 ;;
4041 *-cygwin*)
2a79c47f 4042
5213506e
RW
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4044$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 4045echo a >cygwin-cat-check
e25a8c82 4046if test `cat cygwin-cat-check` = a ; then
2a79c47f 4047 rm cygwin-cat-check
5213506e
RW
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4049$as_echo "yes" >&6; }
2a79c47f
NC
4050else
4051 rm cygwin-cat-check
5213506e
RW
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053$as_echo "no" >&6; }
22e05272 4054 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
4055 Please either mount the build directory in binary mode or run the following
4056 commands before running any configure script:
4057set -o igncr
4058export SHELLOPTS
5213506e 4059 " "$LINENO" 5
2a79c47f
NC
4060fi
4061
671aa708
NN
4062 host_makefile_frag="config/mh-cygwin"
4063 ;;
c53a18d3 4064 *-mingw*)
1f5a6b84 4065 host_makefile_frag="config/mh-mingw"
95af8923 4066 ;;
cabb9d59 4067 alpha*-linux*)
13be44ed
UB
4068 host_makefile_frag="config/mh-alpha-linux"
4069 ;;
efd41714 4070 hppa*-hp-hpux10*)
efd41714 4071 host_makefile_frag="config/mh-pa-hpux10"
671aa708 4072 ;;
111eeb6e 4073 hppa*-hp-hpux*)
efd41714
PB
4074 host_makefile_frag="config/mh-pa"
4075 ;;
4076 hppa*-*)
4077 host_makefile_frag="config/mh-pa"
4078 ;;
54258e22 4079 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
d8ed14ce 4080 host_makefile_frag="config/mh-darwin"
be8fff81 4081 ;;
d19bca38
PB
4082 powerpc-*-aix*)
4083 host_makefile_frag="config/mh-ppc-aix"
4084 ;;
4085 rs6000-*-aix*)
4086 host_makefile_frag="config/mh-ppc-aix"
4087 ;;
671aa708
NN
4088esac
4089fi
4090
55ffb5ed 4091if test "${build}" != "${host}" ; then
0999159b
PB
4092 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4093 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4094 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
84401ce5 4095 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CPP)}"
0999159b 4096 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3b5e8ee4 4097 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
0999159b 4098 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4099 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4100 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4101 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4102 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4103 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4104 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4105 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4106 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4107else
4108 AR_FOR_BUILD="\$(AR)"
4109 AS_FOR_BUILD="\$(AS)"
fb0103e5 4110 CC_FOR_BUILD="\$(CC)"
0999159b 4111 CXX_FOR_BUILD="\$(CXX)"
3b5e8ee4 4112 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
0999159b 4113 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4114 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4115 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4116 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4117 LD_FOR_BUILD="\$(LD)"
4118 NM_FOR_BUILD="\$(NM)"
4119 RANLIB_FOR_BUILD="\$(RANLIB)"
4120 WINDRES_FOR_BUILD="\$(WINDRES)"
4121 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4122fi
4123
4124ac_ext=c
1c710c3c
DJ
4125ac_cpp='$CPP $CPPFLAGS'
4126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128ac_compiler_gnu=$ac_cv_c_compiler_gnu
4129if test -n "$ac_tool_prefix"; then
4130 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4131set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4134if ${ac_cv_prog_CC+:} false; then :
5213506e 4135 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4136else
4137 if test -n "$CC"; then
4138 ac_cv_prog_CC="$CC" # Let the user override the test.
4139else
4140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141for as_dir in $PATH
4142do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
5213506e 4145 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4147 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4149 break 2
4150 fi
4151done
5213506e
RW
4152 done
4153IFS=$as_save_IFS
1c710c3c
DJ
4154
4155fi
4156fi
4157CC=$ac_cv_prog_CC
4158if test -n "$CC"; then
5213506e
RW
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4160$as_echo "$CC" >&6; }
1c710c3c 4161else
5213506e
RW
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163$as_echo "no" >&6; }
1c710c3c
DJ
4164fi
4165
5213506e 4166
1c710c3c
DJ
4167fi
4168if test -z "$ac_cv_prog_CC"; then
4169 ac_ct_CC=$CC
fb0103e5
RG
4170 # Extract the first word of "gcc", so it can be a program name with args.
4171set dummy gcc; ac_word=$2
5213506e
RW
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4174if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4175 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4176else
4177 if test -n "$ac_ct_CC"; then
4178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4179else
4180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181for as_dir in $PATH
4182do
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
5213506e 4185 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4187 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4189 break 2
4190 fi
4191done
5213506e
RW
4192 done
4193IFS=$as_save_IFS
1c710c3c
DJ
4194
4195fi
4196fi
4197ac_ct_CC=$ac_cv_prog_ac_ct_CC
4198if test -n "$ac_ct_CC"; then
5213506e
RW
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4200$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4201else
5213506e
RW
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203$as_echo "no" >&6; }
1c710c3c
DJ
4204fi
4205
5213506e
RW
4206 if test "x$ac_ct_CC" = x; then
4207 CC=""
4208 else
4209 case $cross_compiling:$ac_tool_warned in
4210yes:)
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4213ac_tool_warned=yes ;;
4214esac
4215 CC=$ac_ct_CC
4216 fi
1c710c3c
DJ
4217else
4218 CC="$ac_cv_prog_CC"
4219fi
4220
4221if test -z "$CC"; then
5213506e
RW
4222 if test -n "$ac_tool_prefix"; then
4223 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4224set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4227if ${ac_cv_prog_CC+:} false; then :
5213506e 4228 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4229else
4230 if test -n "$CC"; then
4231 ac_cv_prog_CC="$CC" # Let the user override the test.
4232else
1c710c3c
DJ
4233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234for as_dir in $PATH
4235do
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
5213506e 4238 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4240 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4242 break 2
4243 fi
4244done
5213506e
RW
4245 done
4246IFS=$as_save_IFS
1c710c3c 4247
0b0dc272 4248fi
0b0dc272 4249fi
1c710c3c 4250CC=$ac_cv_prog_CC
af71363e 4251if test -n "$CC"; then
5213506e
RW
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4253$as_echo "$CC" >&6; }
2aeb72e9 4254else
5213506e
RW
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256$as_echo "no" >&6; }
2aeb72e9
DD
4257fi
4258
2aeb72e9 4259
5213506e 4260 fi
1c710c3c 4261fi
55ffb5ed
NN
4262if test -z "$CC"; then
4263 # Extract the first word of "cc", so it can be a program name with args.
4264set dummy cc; ac_word=$2
5213506e
RW
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4267if ${ac_cv_prog_CC+:} false; then :
5213506e 4268 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4269else
4270 if test -n "$CC"; then
4271 ac_cv_prog_CC="$CC" # Let the user override the test.
4272else
0b0dc272 4273 ac_prog_rejected=no
1c710c3c
DJ
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
5213506e 4279 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4281 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4282 ac_prog_rejected=yes
4283 continue
4284 fi
4285 ac_cv_prog_CC="cc"
5213506e 4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4287 break 2
4288 fi
4289done
5213506e
RW
4290 done
4291IFS=$as_save_IFS
1c710c3c 4292
55ffb5ed
NN
4293if test $ac_prog_rejected = yes; then
4294 # We found a bogon in the path, so make sure we never use it.
4295 set dummy $ac_cv_prog_CC
4296 shift
1c710c3c 4297 if test $# != 0; then
55ffb5ed
NN
4298 # We chose a different compiler from the bogus one.
4299 # However, it has the same basename, so the bogon will be chosen
4300 # first if we set CC to just the basename; use the full file name.
4301 shift
1c710c3c 4302 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4303 fi
4304fi
4305fi
4306fi
1c710c3c 4307CC=$ac_cv_prog_CC
55ffb5ed 4308if test -n "$CC"; then
5213506e
RW
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4310$as_echo "$CC" >&6; }
55ffb5ed 4311else
5213506e
RW
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313$as_echo "no" >&6; }
55ffb5ed
NN
4314fi
4315
5213506e 4316
1c710c3c
DJ
4317fi
4318if test -z "$CC"; then
4319 if test -n "$ac_tool_prefix"; then
5213506e 4320 for ac_prog in cl.exe
1c710c3c
DJ
4321 do
4322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4323set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4326if ${ac_cv_prog_CC+:} false; then :
5213506e 4327 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4328else
4329 if test -n "$CC"; then
4330 ac_cv_prog_CC="$CC" # Let the user override the test.
4331else
1c710c3c
DJ
4332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH
4334do
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
5213506e 4337 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4339 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4341 break 2
4342 fi
4343done
5213506e
RW
4344 done
4345IFS=$as_save_IFS
1c710c3c 4346
55ffb5ed
NN
4347fi
4348fi
1c710c3c 4349CC=$ac_cv_prog_CC
55ffb5ed 4350if test -n "$CC"; then
5213506e
RW
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4352$as_echo "$CC" >&6; }
a4b9e93e 4353else
5213506e
RW
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355$as_echo "no" >&6; }
fb0103e5 4356fi
af71363e 4357
5213506e 4358
1c710c3c
DJ
4359 test -n "$CC" && break
4360 done
af71363e 4361fi
1c710c3c
DJ
4362if test -z "$CC"; then
4363 ac_ct_CC=$CC
5213506e 4364 for ac_prog in cl.exe
1c710c3c
DJ
4365do
4366 # Extract the first word of "$ac_prog", so it can be a program name with args.
4367set dummy $ac_prog; ac_word=$2
5213506e
RW
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4370if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4371 $as_echo_n "(cached) " >&6
0b0dc272 4372else
1c710c3c
DJ
4373 if test -n "$ac_ct_CC"; then
4374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4375else
1c710c3c
DJ
4376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377for as_dir in $PATH
4378do
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
5213506e 4381 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4383 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4385 break 2
4386 fi
4387done
5213506e
RW
4388 done
4389IFS=$as_save_IFS
1c710c3c 4390
af71363e
AS
4391fi
4392fi
1c710c3c
DJ
4393ac_ct_CC=$ac_cv_prog_ac_ct_CC
4394if test -n "$ac_ct_CC"; then
5213506e
RW
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4396$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4397else
5213506e
RW
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399$as_echo "no" >&6; }
af71363e 4400fi
0b0dc272 4401
5213506e 4402
1c710c3c
DJ
4403 test -n "$ac_ct_CC" && break
4404done
4405
5213506e
RW
4406 if test "x$ac_ct_CC" = x; then
4407 CC=""
4408 else
4409 case $cross_compiling:$ac_tool_warned in
4410yes:)
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4413ac_tool_warned=yes ;;
4414esac
4415 CC=$ac_ct_CC
4416 fi
1c710c3c
DJ
4417fi
4418
4419fi
4420
4421
5213506e
RW
4422test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4424as_fn_error $? "no acceptable C compiler found in \$PATH
4425See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4426
4427# Provide some information about the compiler.
5213506e
RW
4428$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4429set X $ac_compile
4430ac_compiler=$2
4431for ac_option in --version -v -V -qversion; do
4432 { { ac_try="$ac_compiler $ac_option >&5"
4433case "(($ac_try" in
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4436esac
4437eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4438$as_echo "$ac_try_echo"; } >&5
4439 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4440 ac_status=$?
5213506e
RW
4441 if test -s conftest.err; then
4442 sed '10a\
4443... rest of stderr output deleted ...
4444 10q' conftest.err >conftest.er1
4445 cat conftest.er1 >&5
5213506e 4446 fi
22e05272 4447 rm -f conftest.er1 conftest.err
5213506e
RW
4448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449 test $ac_status = 0; }
4450done
1c710c3c 4451
5213506e 4452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4453/* end confdefs.h. */
4454
4455int
4456main ()
4457{
4458
4459 ;
4460 return 0;
4461}
4462_ACEOF
4463ac_clean_files_save=$ac_clean_files
22e05272 4464ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4465# Try to create an executable without -o first, disregard a.out.
4466# It will help us diagnose broken compilers, and finding out an intuition
4467# of exeext.
22e05272
JM
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4469$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4470ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4471
4472# The possible output files:
4473ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4474
4475ac_rmfiles=
4476for ac_file in $ac_files
4477do
4478 case $ac_file in
4479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4480 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4481 esac
4482done
4483rm -f $ac_rmfiles
4484
4485if { { ac_try="$ac_link_default"
4486case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4489esac
4490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4491$as_echo "$ac_try_echo"; } >&5
4492 (eval "$ac_link_default") 2>&5
1c710c3c 4493 ac_status=$?
5213506e
RW
4494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4495 test $ac_status = 0; }; then :
4496 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4497# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4498# in a Makefile. We should not override ac_cv_exeext if it was cached,
4499# so that the user can short-circuit this test for compilers unknown to
4500# Autoconf.
4501for ac_file in $ac_files ''
1c710c3c
DJ
4502do
4503 test -f "$ac_file" || continue
4504 case $ac_file in
5213506e 4505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4506 ;;
4507 [ab].out )
4508 # We found the default executable, but exeext='' is most
4509 # certainly right.
4510 break;;
4511 *.* )
5213506e
RW
4512 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4513 then :; else
4514 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4515 fi
4516 # We set ac_cv_exeext here because the later test for it is not
4517 # safe: cross compilers may not add the suffix if given an `-o'
4518 # argument, so we may need to know it at that point already.
4519 # Even if this section looks crufty: it has the advantage of
4520 # actually working.
1c710c3c
DJ
4521 break;;
4522 * )
4523 break;;
4524 esac
4525done
5213506e
RW
4526test "$ac_cv_exeext" = no && ac_cv_exeext=
4527
1c710c3c 4528else
5213506e
RW
4529 ac_file=''
4530fi
5213506e 4531if test -z "$ac_file"; then :
22e05272
JM
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533$as_echo "no" >&6; }
4534$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4535sed 's/^/| /' conftest.$ac_ext >&5
4536
5213506e
RW
4537{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4539as_fn_error 77 "C compiler cannot create executables
4540See \`config.log' for more details" "$LINENO" 5; }
4541else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4543$as_echo "yes" >&6; }
1c710c3c 4544fi
22e05272
JM
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4546$as_echo_n "checking for C compiler default output file name... " >&6; }
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4548$as_echo "$ac_file" >&6; }
1c710c3c 4549ac_exeext=$ac_cv_exeext
1c710c3c 4550
22e05272 4551rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4552ac_clean_files=$ac_clean_files_save
5213506e
RW
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4554$as_echo_n "checking for suffix of executables... " >&6; }
4555if { { ac_try="$ac_link"
4556case "(($ac_try" in
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4559esac
4560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4561$as_echo "$ac_try_echo"; } >&5
4562 (eval "$ac_link") 2>&5
1c710c3c 4563 ac_status=$?
5213506e
RW
4564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4565 test $ac_status = 0; }; then :
1c710c3c
DJ
4566 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4567# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4568# work properly (i.e., refer to `conftest.exe'), while it won't with
4569# `rm'.
4570for ac_file in conftest.exe conftest conftest.*; do
4571 test -f "$ac_file" || continue
4572 case $ac_file in
5213506e 4573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4574 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4575 break;;
4576 * ) break;;
4577 esac
4578done
af71363e 4579else
5213506e
RW
4580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4582as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4583See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4584fi
22e05272 4585rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4587$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4588
4589rm -f conftest.$ac_ext
4590EXEEXT=$ac_cv_exeext
4591ac_exeext=$EXEEXT
22e05272
JM
4592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593/* end confdefs.h. */
4594#include <stdio.h>
4595int
4596main ()
4597{
4598FILE *f = fopen ("conftest.out", "w");
4599 return ferror (f) || fclose (f) != 0;
4600
4601 ;
4602 return 0;
4603}
4604_ACEOF
4605ac_clean_files="$ac_clean_files conftest.out"
4606# Check that the compiler produces executables we can run. If not, either
4607# the compiler is broken, or we cross compile.
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4609$as_echo_n "checking whether we are cross compiling... " >&6; }
4610if test "$cross_compiling" != yes; then
4611 { { ac_try="$ac_link"
4612case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4615esac
4616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4617$as_echo "$ac_try_echo"; } >&5
4618 (eval "$ac_link") 2>&5
4619 ac_status=$?
4620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4621 test $ac_status = 0; }
4622 if { ac_try='./conftest$ac_cv_exeext'
4623 { { case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626esac
4627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628$as_echo "$ac_try_echo"; } >&5
4629 (eval "$ac_try") 2>&5
4630 ac_status=$?
4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }; }; then
4633 cross_compiling=no
4634 else
4635 if test "$cross_compiling" = maybe; then
4636 cross_compiling=yes
4637 else
4638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4640as_fn_error $? "cannot run C compiled programs.
4641If you meant to cross compile, use \`--host'.
4642See \`config.log' for more details" "$LINENO" 5; }
4643 fi
4644 fi
4645fi
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4647$as_echo "$cross_compiling" >&6; }
4648
4649rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4650ac_clean_files=$ac_clean_files_save
5213506e
RW
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4652$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4653if ${ac_cv_objext+:} false; then :
5213506e 4654 $as_echo_n "(cached) " >&6
1c710c3c 4655else
5213506e 4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4657/* end confdefs.h. */
4658
4659int
4660main ()
4661{
4662
4663 ;
4664 return 0;
4665}
4666_ACEOF
4667rm -f conftest.o conftest.obj
5213506e
RW
4668if { { ac_try="$ac_compile"
4669case "(($ac_try" in
4670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671 *) ac_try_echo=$ac_try;;
4672esac
4673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4674$as_echo "$ac_try_echo"; } >&5
4675 (eval "$ac_compile") 2>&5
1c710c3c 4676 ac_status=$?
5213506e
RW
4677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4678 test $ac_status = 0; }; then :
4679 for ac_file in conftest.o conftest.obj conftest.*; do
4680 test -f "$ac_file" || continue;
1c710c3c 4681 case $ac_file in
5213506e 4682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4683 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4684 break;;
4685 esac
4686done
4687else
5213506e 4688 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4689sed 's/^/| /' conftest.$ac_ext >&5
4690
5213506e
RW
4691{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4692$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4693as_fn_error $? "cannot compute suffix of object files: cannot compile
4694See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4695fi
1c710c3c
DJ
4696rm -f conftest.$ac_cv_objext conftest.$ac_ext
4697fi
5213506e
RW
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4699$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4700OBJEXT=$ac_cv_objext
4701ac_objext=$OBJEXT
5213506e
RW
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4703$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4704if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4705 $as_echo_n "(cached) " >&6
1c710c3c 4706else
5213506e 4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4708/* end confdefs.h. */
4709
4710int
4711main ()
4712{
4713#ifndef __GNUC__
4714 choke me
4715#endif
4716
4717 ;
4718 return 0;
4719}
4720_ACEOF
5213506e 4721if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4722 ac_compiler_gnu=yes
4723else
5213506e 4724 ac_compiler_gnu=no
1c710c3c 4725fi
5213506e 4726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4727ac_cv_c_compiler_gnu=$ac_compiler_gnu
4728
4729fi
5213506e
RW
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4731$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4732if test $ac_compiler_gnu = yes; then
4733 GCC=yes
4734else
4735 GCC=
4736fi
1c710c3c
DJ
4737ac_test_CFLAGS=${CFLAGS+set}
4738ac_save_CFLAGS=$CFLAGS
5213506e
RW
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4740$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4741if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4742 $as_echo_n "(cached) " >&6
4743else
4744 ac_save_c_werror_flag=$ac_c_werror_flag
4745 ac_c_werror_flag=yes
4746 ac_cv_prog_cc_g=no
4747 CFLAGS="-g"
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4749/* end confdefs.h. */
4750
4751int
4752main ()
4753{
4754
4755 ;
4756 return 0;
4757}
4758_ACEOF
5213506e 4759if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4760 ac_cv_prog_cc_g=yes
4761else
5213506e
RW
4762 CFLAGS=""
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764/* end confdefs.h. */
4765
4766int
4767main ()
4768{
4769
4770 ;
4771 return 0;
4772}
4773_ACEOF
4774if ac_fn_c_try_compile "$LINENO"; then :
4775
4776else
4777 ac_c_werror_flag=$ac_save_c_werror_flag
4778 CFLAGS="-g"
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780/* end confdefs.h. */
af71363e 4781
5213506e
RW
4782int
4783main ()
4784{
4785
4786 ;
4787 return 0;
4788}
4789_ACEOF
4790if ac_fn_c_try_compile "$LINENO"; then :
4791 ac_cv_prog_cc_g=yes
4792fi
4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4794fi
5213506e 4795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4796fi
5213506e
RW
4797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 ac_c_werror_flag=$ac_save_c_werror_flag
4799fi
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4801$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4802if test "$ac_test_CFLAGS" = set; then
1c710c3c 4803 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4804elif test $ac_cv_prog_cc_g = yes; then
4805 if test "$GCC" = yes; then
4806 CFLAGS="-g -O2"
4807 else
4808 CFLAGS="-g"
4809 fi
4810else
4811 if test "$GCC" = yes; then
4812 CFLAGS="-O2"
4813 else
4814 CFLAGS=
4815 fi
4816fi
5213506e
RW
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4818$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4819if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4820 $as_echo_n "(cached) " >&6
1c710c3c 4821else
5213506e 4822 ac_cv_prog_cc_c89=no
1c710c3c 4823ac_save_CC=$CC
5213506e 4824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4825/* end confdefs.h. */
4826#include <stdarg.h>
4827#include <stdio.h>
22e05272 4828struct stat;
1c710c3c
DJ
4829/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4830struct buf { int x; };
4831FILE * (*rcsopen) (struct buf *, struct stat *, int);
4832static char *e (p, i)
4833 char **p;
4834 int i;
4835{
4836 return p[i];
4837}
4838static char *f (char * (*g) (char **, int), char **p, ...)
4839{
4840 char *s;
4841 va_list v;
4842 va_start (v,p);
4843 s = g (p, va_arg (v,int));
4844 va_end (v);
4845 return s;
4846}
4847
4848/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4849 function prototypes and stuff, but not '\xHH' hex character constants.
4850 These don't provoke an error unfortunately, instead are silently treated
5213506e 4851 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4852 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4853 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4854 that's true only with -std. */
1c710c3c
DJ
4855int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4856
5213506e
RW
4857/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4858 inside strings and character constants. */
4859#define FOO(x) 'x'
4860int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4861
1c710c3c
DJ
4862int test (int i, double x);
4863struct s1 {int (*f) (int a);};
4864struct s2 {int (*f) (double a);};
4865int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4866int argc;
4867char **argv;
4868int
4869main ()
4870{
4871return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4872 ;
4873 return 0;
4874}
4875_ACEOF
5213506e
RW
4876for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4877 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4878do
4879 CC="$ac_save_CC $ac_arg"
5213506e
RW
4880 if ac_fn_c_try_compile "$LINENO"; then :
4881 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4882fi
5213506e
RW
4883rm -f core conftest.err conftest.$ac_objext
4884 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4885done
5213506e 4886rm -f conftest.$ac_ext
1c710c3c
DJ
4887CC=$ac_save_CC
4888
4889fi
5213506e
RW
4890# AC_CACHE_VAL
4891case "x$ac_cv_prog_cc_c89" in
4892 x)
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4894$as_echo "none needed" >&6; } ;;
4895 xno)
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4897$as_echo "unsupported" >&6; } ;;
1c710c3c 4898 *)
5213506e
RW
4899 CC="$CC $ac_cv_prog_cc_c89"
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4901$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4902esac
5213506e 4903if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4904
2aeb72e9
DD
4905fi
4906
2aeb72e9
DD
4907ac_ext=c
4908ac_cpp='$CPP $CPPFLAGS'
4909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911ac_compiler_gnu=$ac_cv_c_compiler_gnu
4912
91743432
NC
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4914$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4915if ${ac_cv_prog_cc_c99+:} false; then :
4916 $as_echo_n "(cached) " >&6
4917else
4918 ac_cv_prog_cc_c99=no
4919ac_save_CC=$CC
4920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921/* end confdefs.h. */
4922#include <stdarg.h>
4923#include <stdbool.h>
4924#include <stdlib.h>
4925#include <wchar.h>
4926#include <stdio.h>
4927
4928// Check varargs macros. These examples are taken from C99 6.10.3.5.
4929#define debug(...) fprintf (stderr, __VA_ARGS__)
4930#define showlist(...) puts (#__VA_ARGS__)
4931#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4932static void
4933test_varargs_macros (void)
4934{
4935 int x = 1234;
4936 int y = 5678;
4937 debug ("Flag");
4938 debug ("X = %d\n", x);
4939 showlist (The first, second, and third items.);
4940 report (x>y, "x is %d but y is %d", x, y);
4941}
4942
4943// Check long long types.
4944#define BIG64 18446744073709551615ull
4945#define BIG32 4294967295ul
4946#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4947#if !BIG_OK
4948 your preprocessor is broken;
4949#endif
4950#if BIG_OK
4951#else
4952 your preprocessor is broken;
4953#endif
4954static long long int bignum = -9223372036854775807LL;
4955static unsigned long long int ubignum = BIG64;
4956
4957struct incomplete_array
4958{
4959 int datasize;
4960 double data[];
4961};
4962
4963struct named_init {
4964 int number;
4965 const wchar_t *name;
4966 double average;
4967};
4968
4969typedef const char *ccp;
4970
4971static inline int
4972test_restrict (ccp restrict text)
4973{
4974 // See if C++-style comments work.
4975 // Iterate through items via the restricted pointer.
4976 // Also check for declarations in for loops.
4977 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4978 continue;
4979 return 0;
4980}
4981
4982// Check varargs and va_copy.
4983static void
4984test_varargs (const char *format, ...)
4985{
4986 va_list args;
4987 va_start (args, format);
4988 va_list args_copy;
4989 va_copy (args_copy, args);
4990
4991 const char *str;
4992 int number;
4993 float fnumber;
4994
4995 while (*format)
4996 {
4997 switch (*format++)
4998 {
4999 case 's': // string
5000 str = va_arg (args_copy, const char *);
5001 break;
5002 case 'd': // int
5003 number = va_arg (args_copy, int);
5004 break;
5005 case 'f': // float
5006 fnumber = va_arg (args_copy, double);
5007 break;
5008 default:
5009 break;
5010 }
5011 }
5012 va_end (args_copy);
5013 va_end (args);
5014}
5015
5016int
5017main ()
5018{
5019
5020 // Check bool.
5021 _Bool success = false;
5022
5023 // Check restrict.
5024 if (test_restrict ("String literal") == 0)
5025 success = true;
5026 char *restrict newvar = "Another string";
5027
5028 // Check varargs.
5029 test_varargs ("s, d' f .", "string", 65, 34.234);
5030 test_varargs_macros ();
5031
5032 // Check flexible array members.
5033 struct incomplete_array *ia =
5034 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5035 ia->datasize = 10;
5036 for (int i = 0; i < ia->datasize; ++i)
5037 ia->data[i] = i * 1.234;
5038
5039 // Check named initializers.
5040 struct named_init ni = {
5041 .number = 34,
5042 .name = L"Test wide string",
5043 .average = 543.34343,
5044 };
5045
5046 ni.number = 58;
5047
5048 int dynamic_array[ni.number];
5049 dynamic_array[ni.number - 1] = 543;
5050
5051 // work around unused variable warnings
5052 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5053 || dynamic_array[ni.number - 1] != 543);
5054
5055 ;
5056 return 0;
5057}
5058_ACEOF
5059for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5060do
5061 CC="$ac_save_CC $ac_arg"
5062 if ac_fn_c_try_compile "$LINENO"; then :
5063 ac_cv_prog_cc_c99=$ac_arg
5064fi
5065rm -f core conftest.err conftest.$ac_objext
5066 test "x$ac_cv_prog_cc_c99" != "xno" && break
5067done
5068rm -f conftest.$ac_ext
5069CC=$ac_save_CC
5070
5071fi
5072# AC_CACHE_VAL
5073case "x$ac_cv_prog_cc_c99" in
5074 x)
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5076$as_echo "none needed" >&6; } ;;
5077 xno)
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5079$as_echo "unsupported" >&6; } ;;
5080 *)
5081 CC="$CC $ac_cv_prog_cc_c99"
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5083$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5084esac
5085if test "x$ac_cv_prog_cc_c99" != xno; then :
5086
5087fi
5088
5089
5213506e 5090ac_ext=cpp
2aeb72e9
DD
5091ac_cpp='$CXXCPP $CPPFLAGS'
5092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
5095if test -z "$CXX"; then
5096 if test -n "$CCC"; then
5097 CXX=$CCC
5098 else
5099 if test -n "$ac_tool_prefix"; then
5100 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
5101 do
5102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5103set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5106if ${ac_cv_prog_CXX+:} false; then :
5213506e 5107 $as_echo_n "(cached) " >&6
2aeb72e9
DD
5108else
5109 if test -n "$CXX"; then
5110 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5111else
5112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113for as_dir in $PATH
5114do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5213506e 5117 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 5119 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
5121 break 2
5122 fi
5123done
5213506e
RW
5124 done
5125IFS=$as_save_IFS
55ffb5ed 5126
c3a86da9
DJ
5127fi
5128fi
5129CXX=$ac_cv_prog_CXX
5130if test -n "$CXX"; then
5213506e
RW
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5132$as_echo "$CXX" >&6; }
c3a86da9 5133else
5213506e
RW
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135$as_echo "no" >&6; }
c3a86da9
DJ
5136fi
5137
5213506e 5138
c3a86da9
DJ
5139 test -n "$CXX" && break
5140 done
5141fi
5142if test -z "$CXX"; then
5143 ac_ct_CXX=$CXX
5213506e 5144 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
5145do
5146 # Extract the first word of "$ac_prog", so it can be a program name with args.
5147set dummy $ac_prog; ac_word=$2
5213506e
RW
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5150if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 5151 $as_echo_n "(cached) " >&6
c3a86da9
DJ
5152else
5153 if test -n "$ac_ct_CXX"; then
5154 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5155else
5156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157for as_dir in $PATH
5158do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5213506e 5161 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 5163 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
5165 break 2
5166 fi
5167done
5213506e
RW
5168 done
5169IFS=$as_save_IFS
c3a86da9
DJ
5170
5171fi
5172fi
5173ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5174if test -n "$ac_ct_CXX"; then
5213506e
RW
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5176$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 5177else
5213506e
RW
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179$as_echo "no" >&6; }
c3a86da9
DJ
5180fi
5181
5213506e 5182
c3a86da9
DJ
5183 test -n "$ac_ct_CXX" && break
5184done
c3a86da9 5185
5213506e
RW
5186 if test "x$ac_ct_CXX" = x; then
5187 CXX="g++"
5188 else
5189 case $cross_compiling:$ac_tool_warned in
5190yes:)
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5193ac_tool_warned=yes ;;
5194esac
5195 CXX=$ac_ct_CXX
5196 fi
c3a86da9
DJ
5197fi
5198
5213506e
RW
5199 fi
5200fi
c3a86da9 5201# Provide some information about the compiler.
5213506e
RW
5202$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5203set X $ac_compile
5204ac_compiler=$2
5205for ac_option in --version -v -V -qversion; do
5206 { { ac_try="$ac_compiler $ac_option >&5"
5207case "(($ac_try" in
5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5210esac
5211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5212$as_echo "$ac_try_echo"; } >&5
5213 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 5214 ac_status=$?
5213506e
RW
5215 if test -s conftest.err; then
5216 sed '10a\
5217... rest of stderr output deleted ...
5218 10q' conftest.err >conftest.er1
5219 cat conftest.er1 >&5
5213506e 5220 fi
22e05272 5221 rm -f conftest.er1 conftest.err
5213506e
RW
5222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5223 test $ac_status = 0; }
5224done
c3a86da9 5225
5213506e
RW
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5227$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5228if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 5229 $as_echo_n "(cached) " >&6
c3a86da9 5230else
5213506e 5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5232/* end confdefs.h. */
5233
5234int
5235main ()
5236{
5237#ifndef __GNUC__
5238 choke me
5239#endif
5240
5241 ;
5242 return 0;
5243}
5244_ACEOF
5213506e 5245if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5246 ac_compiler_gnu=yes
5247else
5213506e 5248 ac_compiler_gnu=no
c3a86da9 5249fi
5213506e 5250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
5251ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5252
5253fi
5213506e
RW
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5255$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5256if test $ac_compiler_gnu = yes; then
5257 GXX=yes
5258else
5259 GXX=
5260fi
c3a86da9
DJ
5261ac_test_CXXFLAGS=${CXXFLAGS+set}
5262ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5264$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5265if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
5266 $as_echo_n "(cached) " >&6
5267else
5268 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5269 ac_cxx_werror_flag=yes
5270 ac_cv_prog_cxx_g=no
5271 CXXFLAGS="-g"
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5273/* end confdefs.h. */
5274
5275int
5276main ()
5277{
5278
5279 ;
5280 return 0;
5281}
5282_ACEOF
5213506e 5283if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5284 ac_cv_prog_cxx_g=yes
5285else
5213506e
RW
5286 CXXFLAGS=""
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5288/* end confdefs.h. */
5213506e 5289
c3a86da9
DJ
5290int
5291main ()
5292{
5213506e 5293
c3a86da9
DJ
5294 ;
5295 return 0;
5296}
5297_ACEOF
5213506e 5298if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5299
5213506e
RW
5300else
5301 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5302 CXXFLAGS="-g"
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5304/* end confdefs.h. */
5213506e 5305
c3a86da9
DJ
5306int
5307main ()
5308{
5213506e 5309
c3a86da9
DJ
5310 ;
5311 return 0;
5312}
5313_ACEOF
5213506e
RW
5314if ac_fn_cxx_try_compile "$LINENO"; then :
5315 ac_cv_prog_cxx_g=yes
11a67599 5316fi
5213506e
RW
5317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318fi
5319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5320fi
5321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5323fi
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5325$as_echo "$ac_cv_prog_cxx_g" >&6; }
5326if test "$ac_test_CXXFLAGS" = set; then
5327 CXXFLAGS=$ac_save_CXXFLAGS
5328elif test $ac_cv_prog_cxx_g = yes; then
5329 if test "$GXX" = yes; then
5330 CXXFLAGS="-g -O2"
5331 else
5332 CXXFLAGS="-g"
5333 fi
5334else
5335 if test "$GXX" = yes; then
5336 CXXFLAGS="-O2"
5337 else
5338 CXXFLAGS=
5339 fi
c3a86da9 5340fi
c3a86da9
DJ
5341ac_ext=c
5342ac_cpp='$CPP $CPPFLAGS'
5343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346
5347
5348# We must set the default linker to the linker used by gcc for the correct
5349# operation of libtool. If LD is not defined and we are using gcc, try to
5350# set the LD default to the ld used by gcc.
5351if test -z "$LD"; then
5352 if test "$GCC" = yes; then
5353 case $build in
5354 *-*-mingw*)
5355 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5356 *)
5357 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5358 esac
5359 case $gcc_prog_ld in
5360 # Accept absolute paths.
5361 [\\/]* | [A-Za-z]:[\\/]*)
5362 LD="$gcc_prog_ld" ;;
5363 esac
5364 fi
23f6b2f9
PB
5365fi
5366
0b21f5d3
EB
5367# Check whether -static-libstdc++ -static-libgcc is supported.
5368have_static_libs=no
5369if test "$GCC" = yes; then
5370 saved_LDFLAGS="$LDFLAGS"
5371
5372 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5374$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5375 ac_ext=cpp
5376ac_cpp='$CXXCPP $CPPFLAGS'
5377ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5378ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5379ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5380
5381
5382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383/* end confdefs.h. */
0d6414b2
EB
5384
5385#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5386#error -static-libstdc++ not implemented
5387#endif
0b21f5d3
EB
5388int main() {}
5389_ACEOF
5390if ac_fn_cxx_try_link "$LINENO"; then :
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5392$as_echo "yes" >&6; }; have_static_libs=yes
5393else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395$as_echo "no" >&6; }
5396fi
5397rm -f core conftest.err conftest.$ac_objext \
5398 conftest$ac_exeext conftest.$ac_ext
5399 ac_ext=c
5400ac_cpp='$CPP $CPPFLAGS'
5401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403ac_compiler_gnu=$ac_cv_c_compiler_gnu
5404
5405
5406 LDFLAGS="$saved_LDFLAGS"
5407fi
5408
23f6b2f9
PB
5409
5410
55ffb5ed 5411
1c710c3c
DJ
5412if test -n "$ac_tool_prefix"; then
5413 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5414set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5417if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5418 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5419else
5420 if test -n "$GNATBIND"; then
5421 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5422else
1c710c3c
DJ
5423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424for as_dir in $PATH
5425do
5426 IFS=$as_save_IFS
5427 test -z "$as_dir" && as_dir=.
5213506e 5428 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5430 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5432 break 2
5433 fi
5434done
5213506e
RW
5435 done
5436IFS=$as_save_IFS
1c710c3c 5437
55ffb5ed
NN
5438fi
5439fi
1c710c3c 5440GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5441if test -n "$GNATBIND"; then
5213506e
RW
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5443$as_echo "$GNATBIND" >&6; }
55ffb5ed 5444else
5213506e
RW
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446$as_echo "no" >&6; }
55ffb5ed
NN
5447fi
5448
5213506e 5449
1c710c3c 5450fi
55ffb5ed 5451if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5452 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5453 # Extract the first word of "gnatbind", so it can be a program name with args.
5454set dummy gnatbind; ac_word=$2
5213506e
RW
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5457if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5458 $as_echo_n "(cached) " >&6
55ffb5ed 5459else
1c710c3c
DJ
5460 if test -n "$ac_ct_GNATBIND"; then
5461 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5462else
1c710c3c
DJ
5463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464for as_dir in $PATH
5465do
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5213506e 5468 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5470 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5472 break 2
5473 fi
5474done
5213506e
RW
5475 done
5476IFS=$as_save_IFS
1c710c3c 5477
55ffb5ed
NN
5478fi
5479fi
1c710c3c
DJ
5480ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5481if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5483$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5484else
5213506e
RW
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486$as_echo "no" >&6; }
55ffb5ed
NN
5487fi
5488
5213506e
RW
5489 if test "x$ac_ct_GNATBIND" = x; then
5490 GNATBIND="no"
5491 else
5492 case $cross_compiling:$ac_tool_warned in
5493yes:)
5494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5496ac_tool_warned=yes ;;
5497esac
5498 GNATBIND=$ac_ct_GNATBIND
5499 fi
55ffb5ed 5500else
1c710c3c 5501 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5502fi
5503
1c710c3c
DJ
5504if test -n "$ac_tool_prefix"; then
5505 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5506set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5509if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5510 $as_echo_n "(cached) " >&6
5305be7e
RG
5511else
5512 if test -n "$GNATMAKE"; then
5513 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5514else
1c710c3c
DJ
5515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516for as_dir in $PATH
5517do
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5213506e 5520 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5522 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5524 break 2
5525 fi
5526done
5213506e
RW
5527 done
5528IFS=$as_save_IFS
1c710c3c 5529
5305be7e
RG
5530fi
5531fi
1c710c3c 5532GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5533if test -n "$GNATMAKE"; then
5213506e
RW
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5535$as_echo "$GNATMAKE" >&6; }
5305be7e 5536else
5213506e
RW
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538$as_echo "no" >&6; }
5305be7e
RG
5539fi
5540
5213506e 5541
1c710c3c 5542fi
5305be7e 5543if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5544 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5545 # Extract the first word of "gnatmake", so it can be a program name with args.
5546set dummy gnatmake; ac_word=$2
5213506e
RW
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5549if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5550 $as_echo_n "(cached) " >&6
5305be7e 5551else
1c710c3c
DJ
5552 if test -n "$ac_ct_GNATMAKE"; then
5553 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5554else
1c710c3c
DJ
5555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556for as_dir in $PATH
5557do
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5213506e 5560 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5562 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5564 break 2
5565 fi
5566done
5213506e
RW
5567 done
5568IFS=$as_save_IFS
1c710c3c 5569
5305be7e
RG
5570fi
5571fi
1c710c3c
DJ
5572ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5573if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5575$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5576else
5213506e
RW
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578$as_echo "no" >&6; }
5305be7e
RG
5579fi
5580
5213506e
RW
5581 if test "x$ac_ct_GNATMAKE" = x; then
5582 GNATMAKE="no"
5583 else
5584 case $cross_compiling:$ac_tool_warned in
5585yes:)
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5588ac_tool_warned=yes ;;
5589esac
5590 GNATMAKE=$ac_ct_GNATMAKE
5591 fi
5305be7e 5592else
1c710c3c 5593 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5594fi
5595
5213506e
RW
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5597$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
22e05272 5598if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5599 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5600else
5601 cat >conftest.adb <<EOF
5602procedure conftest is begin null; end conftest;
5603EOF
5604acx_cv_cc_gcc_supports_ada=no
5605# There is a bug in old released versions of GCC which causes the
5606# driver to exit successfully when the appropriate language module
5607# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5608# Therefore we must check for the error message as well as an
5609# unsuccessful exit.
1db673ca
RO
5610# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5611# given a .adb file, but produce no object file. So we must check
5612# if an object file was really produced to guard against this.
55ffb5ed 5613errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5614if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5615 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5616fi
5617rm -f conftest.*
5618fi
5213506e
RW
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5620$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5621
7cb62ef1 5622if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5623 have_gnat=yes
5624else
5625 have_gnat=no
5626fi
5627
5213506e
RW
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5629$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5630if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5631 $as_echo_n "(cached) " >&6
a76494aa
PB
5632else
5633 echo abfoo >t1
5634 echo cdfoo >t2
b55e6680 5635 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5636 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5637 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5638 :
5639 else
5640 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5641 fi
5642 fi
a76494aa
PB
5643 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5644 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5645 :
a76494aa
PB
5646 else
5647 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5648 fi
5649 fi
5650 rm t1 t2
5651
5652fi
5213506e
RW
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5654$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5655do_compare="$gcc_cv_prog_cmp_skip"
5656
5657
55ffb5ed 5658
ff3ac0f4
ILT
5659# Check whether --enable-bootstrap was given.
5660if test "${enable_bootstrap+set}" = set; then :
5661 enableval=$enable_bootstrap;
5662else
5663 enable_bootstrap=default
5664fi
5665
5666
5667# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5668if test -r $srcdir/gcc/configure; then
5669 have_compiler=yes
5670else
5671 have_compiler=no
5672fi
ff3ac0f4
ILT
5673
5674case "$have_compiler:$host:$target:$enable_bootstrap" in
5675 *:*:*:no) ;;
5676
5677 # Default behavior. Enable bootstrap if we have a compiler
5678 # and we are in a native configuration.
5679 yes:$build:$build:default)
5680 enable_bootstrap=yes ;;
5681
5682 *:*:*:default)
5683 enable_bootstrap=no ;;
5684
5685 # We have a compiler and we are in a native configuration, bootstrap is ok
5686 yes:$build:$build:yes)
5687 ;;
5688
5689 # Other configurations, but we have a compiler. Assume the user knows
5690 # what he's doing.
5691 yes:*:*:yes)
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5693$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5694 ;;
5695
5696 # No compiler: if they passed --enable-bootstrap explicitly, fail
5697 no:*:*:yes)
22e05272 5698 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5699
5700 # Fail if wrong command line
5701 *)
22e05272 5702 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5703 ;;
5704esac
5705
5329b59a 5706# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
ffac9597
JM
5707# C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5708# require C++11 (or higher).
46070488 5709if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5329b59a 5710 CXX="$CXX -std=c++11"
ffac9597
JM
5711elif test "$have_compiler" = yes; then
5712 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5713 ac_ext=cpp
5714ac_cpp='$CXXCPP $CPPFLAGS'
5715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5718 ac_success=no
5719
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5721$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5722if ${ax_cv_cxx_compile_cxx11+:} false; then :
5723 $as_echo_n "(cached) " >&6
5724else
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726/* end confdefs.h. */
5727
5728
5729// If the compiler admits that it is not ready for C++11, why torture it?
5730// Hopefully, this will speed up the test.
5731
5732#ifndef __cplusplus
5733
5734#error "This is not a C++ compiler"
5735
5736#elif __cplusplus < 201103L
5737
5738#error "This is not a C++11 compiler"
5739
5740#else
5741
5742namespace cxx11
5743{
5744
5745 namespace test_static_assert
5746 {
5747
5748 template <typename T>
5749 struct check
5750 {
5751 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5752 };
5753
5754 }
5755
5756 namespace test_final_override
5757 {
5758
5759 struct Base
5760 {
5761 virtual ~Base() {}
5762 virtual void f() {}
5763 };
5764
5765 struct Derived : public Base
5766 {
5767 virtual ~Derived() override {}
5768 virtual void f() override {}
5769 };
5770
5771 }
5772
5773 namespace test_double_right_angle_brackets
5774 {
5775
5776 template < typename T >
5777 struct check {};
5778
5779 typedef check<void> single_type;
5780 typedef check<check<void>> double_type;
5781 typedef check<check<check<void>>> triple_type;
5782 typedef check<check<check<check<void>>>> quadruple_type;
5783
5784 }
5785
5786 namespace test_decltype
5787 {
5788
5789 int
5790 f()
5791 {
5792 int a = 1;
5793 decltype(a) b = 2;
5794 return a + b;
5795 }
5796
5797 }
5798
5799 namespace test_type_deduction
5800 {
5801
5802 template < typename T1, typename T2 >
5803 struct is_same
5804 {
5805 static const bool value = false;
5806 };
5807
5808 template < typename T >
5809 struct is_same<T, T>
5810 {
5811 static const bool value = true;
5812 };
5813
5814 template < typename T1, typename T2 >
5815 auto
5816 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5817 {
5818 return a1 + a2;
5819 }
5820
5821 int
5822 test(const int c, volatile int v)
5823 {
5824 static_assert(is_same<int, decltype(0)>::value == true, "");
5825 static_assert(is_same<int, decltype(c)>::value == false, "");
5826 static_assert(is_same<int, decltype(v)>::value == false, "");
5827 auto ac = c;
5828 auto av = v;
5829 auto sumi = ac + av + 'x';
5830 auto sumf = ac + av + 1.0;
5831 static_assert(is_same<int, decltype(ac)>::value == true, "");
5832 static_assert(is_same<int, decltype(av)>::value == true, "");
5833 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5834 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5835 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5836 return (sumf > 0.0) ? sumi : add(c, v);
5837 }
5838
5839 }
5840
5841 namespace test_noexcept
5842 {
5843
5844 int f() { return 0; }
5845 int g() noexcept { return 0; }
5846
5847 static_assert(noexcept(f()) == false, "");
5848 static_assert(noexcept(g()) == true, "");
5849
5850 }
5851
5852 namespace test_constexpr
5853 {
5854
5855 template < typename CharT >
5856 unsigned long constexpr
5857 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5858 {
5859 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5860 }
5861
5862 template < typename CharT >
5863 unsigned long constexpr
5864 strlen_c(const CharT *const s) noexcept
5865 {
5866 return strlen_c_r(s, 0UL);
5867 }
5868
5869 static_assert(strlen_c("") == 0UL, "");
5870 static_assert(strlen_c("1") == 1UL, "");
5871 static_assert(strlen_c("example") == 7UL, "");
5872 static_assert(strlen_c("another\0example") == 7UL, "");
5873
5874 }
5875
5876 namespace test_rvalue_references
5877 {
5878
5879 template < int N >
5880 struct answer
5881 {
5882 static constexpr int value = N;
5883 };
5884
5885 answer<1> f(int&) { return answer<1>(); }
5886 answer<2> f(const int&) { return answer<2>(); }
5887 answer<3> f(int&&) { return answer<3>(); }
5888
5889 void
5890 test()
5891 {
5892 int i = 0;
5893 const int c = 0;
5894 static_assert(decltype(f(i))::value == 1, "");
5895 static_assert(decltype(f(c))::value == 2, "");
5896 static_assert(decltype(f(0))::value == 3, "");
5897 }
5898
5899 }
5900
5901 namespace test_uniform_initialization
5902 {
5903
5904 struct test
5905 {
5906 static const int zero {};
5907 static const int one {1};
5908 };
5909
5910 static_assert(test::zero == 0, "");
5911 static_assert(test::one == 1, "");
5912
5913 }
5914
5915 namespace test_lambdas
5916 {
5917
5918 void
5919 test1()
5920 {
5921 auto lambda1 = [](){};
5922 auto lambda2 = lambda1;
5923 lambda1();
5924 lambda2();
5925 }
5926
5927 int
5928 test2()
5929 {
5930 auto a = [](int i, int j){ return i + j; }(1, 2);
5931 auto b = []() -> int { return '0'; }();
5932 auto c = [=](){ return a + b; }();
5933 auto d = [&](){ return c; }();
5934 auto e = [a, &b](int x) mutable {
5935 const auto identity = [](int y){ return y; };
5936 for (auto i = 0; i < a; ++i)
5937 a += b--;
5938 return x + identity(a + b);
5939 }(0);
5940 return a + b + c + d + e;
5941 }
5942
5943 int
5944 test3()
5945 {
5946 const auto nullary = [](){ return 0; };
5947 const auto unary = [](int x){ return x; };
5948 using nullary_t = decltype(nullary);
5949 using unary_t = decltype(unary);
5950 const auto higher1st = [](nullary_t f){ return f(); };
5951 const auto higher2nd = [unary](nullary_t f1){
5952 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5953 };
5954 return higher1st(nullary) + higher2nd(nullary)(unary);
5955 }
5956
5957 }
5958
5959 namespace test_variadic_templates
5960 {
5961
5962 template <int...>
5963 struct sum;
5964
5965 template <int N0, int... N1toN>
5966 struct sum<N0, N1toN...>
5967 {
5968 static constexpr auto value = N0 + sum<N1toN...>::value;
5969 };
5970
5971 template <>
5972 struct sum<>
5973 {
5974 static constexpr auto value = 0;
5975 };
5976
5977 static_assert(sum<>::value == 0, "");
5978 static_assert(sum<1>::value == 1, "");
5979 static_assert(sum<23>::value == 23, "");
5980 static_assert(sum<1, 2>::value == 3, "");
5981 static_assert(sum<5, 5, 11>::value == 21, "");
5982 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5983
5984 }
5985
5986 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5987 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5988 // because of this.
5989 namespace test_template_alias_sfinae
5990 {
5991
5992 struct foo {};
5993
5994 template<typename T>
5995 using member = typename T::member_type;
5996
5997 template<typename T>
5998 void func(...) {}
5999
6000 template<typename T>
6001 void func(member<T>*) {}
6002
6003 void test();
6004
6005 void test() { func<foo>(0); }
6006
6007 }
6008
6009} // namespace cxx11
6010
6011#endif // __cplusplus >= 201103L
6012
6013
6014
6015_ACEOF
6016if ac_fn_cxx_try_compile "$LINENO"; then :
6017 ax_cv_cxx_compile_cxx11=yes
6018else
6019 ax_cv_cxx_compile_cxx11=no
6020fi
6021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022fi
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6024$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6025 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6026 ac_success=yes
6027 fi
6028
6029 if test x$ac_success = xno; then
6030 for alternative in ${ax_cxx_compile_alternatives}; do
6031 switch="-std=gnu++${alternative}"
6032 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6034$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6035if eval \${$cachevar+:} false; then :
6036 $as_echo_n "(cached) " >&6
6037else
6038 ac_save_CXX="$CXX"
6039 CXX="$CXX $switch"
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041/* end confdefs.h. */
6042
6043
6044// If the compiler admits that it is not ready for C++11, why torture it?
6045// Hopefully, this will speed up the test.
6046
6047#ifndef __cplusplus
6048
6049#error "This is not a C++ compiler"
6050
6051#elif __cplusplus < 201103L
6052
6053#error "This is not a C++11 compiler"
6054
6055#else
6056
6057namespace cxx11
6058{
6059
6060 namespace test_static_assert
6061 {
6062
6063 template <typename T>
6064 struct check
6065 {
6066 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6067 };
6068
6069 }
6070
6071 namespace test_final_override
6072 {
6073
6074 struct Base
6075 {
6076 virtual ~Base() {}
6077 virtual void f() {}
6078 };
6079
6080 struct Derived : public Base
6081 {
6082 virtual ~Derived() override {}
6083 virtual void f() override {}
6084 };
6085
6086 }
6087
6088 namespace test_double_right_angle_brackets
6089 {
6090
6091 template < typename T >
6092 struct check {};
6093
6094 typedef check<void> single_type;
6095 typedef check<check<void>> double_type;
6096 typedef check<check<check<void>>> triple_type;
6097 typedef check<check<check<check<void>>>> quadruple_type;
6098
6099 }
6100
6101 namespace test_decltype
6102 {
6103
6104 int
6105 f()
6106 {
6107 int a = 1;
6108 decltype(a) b = 2;
6109 return a + b;
6110 }
6111
6112 }
6113
6114 namespace test_type_deduction
6115 {
6116
6117 template < typename T1, typename T2 >
6118 struct is_same
6119 {
6120 static const bool value = false;
6121 };
6122
6123 template < typename T >
6124 struct is_same<T, T>
6125 {
6126 static const bool value = true;
6127 };
6128
6129 template < typename T1, typename T2 >
6130 auto
6131 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6132 {
6133 return a1 + a2;
6134 }
6135
6136 int
6137 test(const int c, volatile int v)
6138 {
6139 static_assert(is_same<int, decltype(0)>::value == true, "");
6140 static_assert(is_same<int, decltype(c)>::value == false, "");
6141 static_assert(is_same<int, decltype(v)>::value == false, "");
6142 auto ac = c;
6143 auto av = v;
6144 auto sumi = ac + av + 'x';
6145 auto sumf = ac + av + 1.0;
6146 static_assert(is_same<int, decltype(ac)>::value == true, "");
6147 static_assert(is_same<int, decltype(av)>::value == true, "");
6148 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6149 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6150 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6151 return (sumf > 0.0) ? sumi : add(c, v);
6152 }
6153
6154 }
6155
6156 namespace test_noexcept
6157 {
6158
6159 int f() { return 0; }
6160 int g() noexcept { return 0; }
6161
6162 static_assert(noexcept(f()) == false, "");
6163 static_assert(noexcept(g()) == true, "");
6164
6165 }
6166
6167 namespace test_constexpr
6168 {
6169
6170 template < typename CharT >
6171 unsigned long constexpr
6172 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6173 {
6174 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6175 }
6176
6177 template < typename CharT >
6178 unsigned long constexpr
6179 strlen_c(const CharT *const s) noexcept
6180 {
6181 return strlen_c_r(s, 0UL);
6182 }
6183
6184 static_assert(strlen_c("") == 0UL, "");
6185 static_assert(strlen_c("1") == 1UL, "");
6186 static_assert(strlen_c("example") == 7UL, "");
6187 static_assert(strlen_c("another\0example") == 7UL, "");
6188
6189 }
6190
6191 namespace test_rvalue_references
6192 {
6193
6194 template < int N >
6195 struct answer
6196 {
6197 static constexpr int value = N;
6198 };
6199
6200 answer<1> f(int&) { return answer<1>(); }
6201 answer<2> f(const int&) { return answer<2>(); }
6202 answer<3> f(int&&) { return answer<3>(); }
6203
6204 void
6205 test()
6206 {
6207 int i = 0;
6208 const int c = 0;
6209 static_assert(decltype(f(i))::value == 1, "");
6210 static_assert(decltype(f(c))::value == 2, "");
6211 static_assert(decltype(f(0))::value == 3, "");
6212 }
6213
6214 }
6215
6216 namespace test_uniform_initialization
6217 {
6218
6219 struct test
6220 {
6221 static const int zero {};
6222 static const int one {1};
6223 };
6224
6225 static_assert(test::zero == 0, "");
6226 static_assert(test::one == 1, "");
6227
6228 }
6229
6230 namespace test_lambdas
6231 {
6232
6233 void
6234 test1()
6235 {
6236 auto lambda1 = [](){};
6237 auto lambda2 = lambda1;
6238 lambda1();
6239 lambda2();
6240 }
6241
6242 int
6243 test2()
6244 {
6245 auto a = [](int i, int j){ return i + j; }(1, 2);
6246 auto b = []() -> int { return '0'; }();
6247 auto c = [=](){ return a + b; }();
6248 auto d = [&](){ return c; }();
6249 auto e = [a, &b](int x) mutable {
6250 const auto identity = [](int y){ return y; };
6251 for (auto i = 0; i < a; ++i)
6252 a += b--;
6253 return x + identity(a + b);
6254 }(0);
6255 return a + b + c + d + e;
6256 }
6257
6258 int
6259 test3()
6260 {
6261 const auto nullary = [](){ return 0; };
6262 const auto unary = [](int x){ return x; };
6263 using nullary_t = decltype(nullary);
6264 using unary_t = decltype(unary);
6265 const auto higher1st = [](nullary_t f){ return f(); };
6266 const auto higher2nd = [unary](nullary_t f1){
6267 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6268 };
6269 return higher1st(nullary) + higher2nd(nullary)(unary);
6270 }
6271
6272 }
6273
6274 namespace test_variadic_templates
6275 {
6276
6277 template <int...>
6278 struct sum;
6279
6280 template <int N0, int... N1toN>
6281 struct sum<N0, N1toN...>
6282 {
6283 static constexpr auto value = N0 + sum<N1toN...>::value;
6284 };
6285
6286 template <>
6287 struct sum<>
6288 {
6289 static constexpr auto value = 0;
6290 };
6291
6292 static_assert(sum<>::value == 0, "");
6293 static_assert(sum<1>::value == 1, "");
6294 static_assert(sum<23>::value == 23, "");
6295 static_assert(sum<1, 2>::value == 3, "");
6296 static_assert(sum<5, 5, 11>::value == 21, "");
6297 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6298
6299 }
6300
6301 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6302 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6303 // because of this.
6304 namespace test_template_alias_sfinae
6305 {
6306
6307 struct foo {};
6308
6309 template<typename T>
6310 using member = typename T::member_type;
6311
6312 template<typename T>
6313 void func(...) {}
6314
6315 template<typename T>
6316 void func(member<T>*) {}
6317
6318 void test();
6319
6320 void test() { func<foo>(0); }
6321
6322 }
6323
6324} // namespace cxx11
6325
6326#endif // __cplusplus >= 201103L
6327
6328
6329
6330_ACEOF
6331if ac_fn_cxx_try_compile "$LINENO"; then :
6332 eval $cachevar=yes
6333else
6334 eval $cachevar=no
6335fi
6336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337 CXX="$ac_save_CXX"
6338fi
6339eval ac_res=\$$cachevar
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6341$as_echo "$ac_res" >&6; }
6342 if eval test x\$$cachevar = xyes; then
6343 CXX="$CXX $switch"
6344 if test -n "$CXXCPP" ; then
6345 CXXCPP="$CXXCPP $switch"
6346 fi
6347 ac_success=yes
6348 break
6349 fi
6350 done
6351 fi
6352
6353 if test x$ac_success = xno; then
6354 for alternative in ${ax_cxx_compile_alternatives}; do
6355 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6356 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6358$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6359if eval \${$cachevar+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361else
6362 ac_save_CXX="$CXX"
6363 CXX="$CXX $switch"
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365/* end confdefs.h. */
6366
6367
6368// If the compiler admits that it is not ready for C++11, why torture it?
6369// Hopefully, this will speed up the test.
6370
6371#ifndef __cplusplus
6372
6373#error "This is not a C++ compiler"
6374
6375#elif __cplusplus < 201103L
6376
6377#error "This is not a C++11 compiler"
6378
6379#else
6380
6381namespace cxx11
6382{
6383
6384 namespace test_static_assert
6385 {
6386
6387 template <typename T>
6388 struct check
6389 {
6390 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6391 };
6392
6393 }
6394
6395 namespace test_final_override
6396 {
6397
6398 struct Base
6399 {
6400 virtual ~Base() {}
6401 virtual void f() {}
6402 };
6403
6404 struct Derived : public Base
6405 {
6406 virtual ~Derived() override {}
6407 virtual void f() override {}
6408 };
6409
6410 }
6411
6412 namespace test_double_right_angle_brackets
6413 {
6414
6415 template < typename T >
6416 struct check {};
6417
6418 typedef check<void> single_type;
6419 typedef check<check<void>> double_type;
6420 typedef check<check<check<void>>> triple_type;
6421 typedef check<check<check<check<void>>>> quadruple_type;
6422
6423 }
6424
6425 namespace test_decltype
6426 {
6427
6428 int
6429 f()
6430 {
6431 int a = 1;
6432 decltype(a) b = 2;
6433 return a + b;
6434 }
6435
6436 }
6437
6438 namespace test_type_deduction
6439 {
6440
6441 template < typename T1, typename T2 >
6442 struct is_same
6443 {
6444 static const bool value = false;
6445 };
6446
6447 template < typename T >
6448 struct is_same<T, T>
6449 {
6450 static const bool value = true;
6451 };
6452
6453 template < typename T1, typename T2 >
6454 auto
6455 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6456 {
6457 return a1 + a2;
6458 }
6459
6460 int
6461 test(const int c, volatile int v)
6462 {
6463 static_assert(is_same<int, decltype(0)>::value == true, "");
6464 static_assert(is_same<int, decltype(c)>::value == false, "");
6465 static_assert(is_same<int, decltype(v)>::value == false, "");
6466 auto ac = c;
6467 auto av = v;
6468 auto sumi = ac + av + 'x';
6469 auto sumf = ac + av + 1.0;
6470 static_assert(is_same<int, decltype(ac)>::value == true, "");
6471 static_assert(is_same<int, decltype(av)>::value == true, "");
6472 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6473 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6474 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6475 return (sumf > 0.0) ? sumi : add(c, v);
6476 }
6477
6478 }
6479
6480 namespace test_noexcept
6481 {
6482
6483 int f() { return 0; }
6484 int g() noexcept { return 0; }
6485
6486 static_assert(noexcept(f()) == false, "");
6487 static_assert(noexcept(g()) == true, "");
6488
6489 }
6490
6491 namespace test_constexpr
6492 {
6493
6494 template < typename CharT >
6495 unsigned long constexpr
6496 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6497 {
6498 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6499 }
6500
6501 template < typename CharT >
6502 unsigned long constexpr
6503 strlen_c(const CharT *const s) noexcept
6504 {
6505 return strlen_c_r(s, 0UL);
6506 }
6507
6508 static_assert(strlen_c("") == 0UL, "");
6509 static_assert(strlen_c("1") == 1UL, "");
6510 static_assert(strlen_c("example") == 7UL, "");
6511 static_assert(strlen_c("another\0example") == 7UL, "");
6512
6513 }
6514
6515 namespace test_rvalue_references
6516 {
6517
6518 template < int N >
6519 struct answer
6520 {
6521 static constexpr int value = N;
6522 };
6523
6524 answer<1> f(int&) { return answer<1>(); }
6525 answer<2> f(const int&) { return answer<2>(); }
6526 answer<3> f(int&&) { return answer<3>(); }
6527
6528 void
6529 test()
6530 {
6531 int i = 0;
6532 const int c = 0;
6533 static_assert(decltype(f(i))::value == 1, "");
6534 static_assert(decltype(f(c))::value == 2, "");
6535 static_assert(decltype(f(0))::value == 3, "");
6536 }
6537
6538 }
6539
6540 namespace test_uniform_initialization
6541 {
6542
6543 struct test
6544 {
6545 static const int zero {};
6546 static const int one {1};
6547 };
6548
6549 static_assert(test::zero == 0, "");
6550 static_assert(test::one == 1, "");
6551
6552 }
6553
6554 namespace test_lambdas
6555 {
6556
6557 void
6558 test1()
6559 {
6560 auto lambda1 = [](){};
6561 auto lambda2 = lambda1;
6562 lambda1();
6563 lambda2();
6564 }
6565
6566 int
6567 test2()
6568 {
6569 auto a = [](int i, int j){ return i + j; }(1, 2);
6570 auto b = []() -> int { return '0'; }();
6571 auto c = [=](){ return a + b; }();
6572 auto d = [&](){ return c; }();
6573 auto e = [a, &b](int x) mutable {
6574 const auto identity = [](int y){ return y; };
6575 for (auto i = 0; i < a; ++i)
6576 a += b--;
6577 return x + identity(a + b);
6578 }(0);
6579 return a + b + c + d + e;
6580 }
6581
6582 int
6583 test3()
6584 {
6585 const auto nullary = [](){ return 0; };
6586 const auto unary = [](int x){ return x; };
6587 using nullary_t = decltype(nullary);
6588 using unary_t = decltype(unary);
6589 const auto higher1st = [](nullary_t f){ return f(); };
6590 const auto higher2nd = [unary](nullary_t f1){
6591 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6592 };
6593 return higher1st(nullary) + higher2nd(nullary)(unary);
6594 }
6595
6596 }
6597
6598 namespace test_variadic_templates
6599 {
6600
6601 template <int...>
6602 struct sum;
6603
6604 template <int N0, int... N1toN>
6605 struct sum<N0, N1toN...>
6606 {
6607 static constexpr auto value = N0 + sum<N1toN...>::value;
6608 };
6609
6610 template <>
6611 struct sum<>
6612 {
6613 static constexpr auto value = 0;
6614 };
6615
6616 static_assert(sum<>::value == 0, "");
6617 static_assert(sum<1>::value == 1, "");
6618 static_assert(sum<23>::value == 23, "");
6619 static_assert(sum<1, 2>::value == 3, "");
6620 static_assert(sum<5, 5, 11>::value == 21, "");
6621 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6622
6623 }
6624
6625 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6626 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6627 // because of this.
6628 namespace test_template_alias_sfinae
6629 {
6630
6631 struct foo {};
6632
6633 template<typename T>
6634 using member = typename T::member_type;
6635
6636 template<typename T>
6637 void func(...) {}
6638
6639 template<typename T>
6640 void func(member<T>*) {}
6641
6642 void test();
6643
6644 void test() { func<foo>(0); }
6645
6646 }
6647
6648} // namespace cxx11
6649
6650#endif // __cplusplus >= 201103L
6651
6652
6653
6654_ACEOF
6655if ac_fn_cxx_try_compile "$LINENO"; then :
6656 eval $cachevar=yes
6657else
6658 eval $cachevar=no
6659fi
6660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 CXX="$ac_save_CXX"
6662fi
6663eval ac_res=\$$cachevar
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6665$as_echo "$ac_res" >&6; }
6666 if eval test x\$$cachevar = xyes; then
6667 CXX="$CXX $switch"
6668 if test -n "$CXXCPP" ; then
6669 CXXCPP="$CXXCPP $switch"
6670 fi
6671 ac_success=yes
6672 break
6673 fi
6674 done
6675 if test x$ac_success = xyes; then
6676 break
6677 fi
6678 done
6679 fi
7ffcf5d6 6680
ffac9597
JM
6681 ac_ext=c
6682ac_cpp='$CPP $CPPFLAGS'
6683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6685ac_compiler_gnu=$ac_cv_c_compiler_gnu
6686
6687 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6688 if test x$ac_success = xno; then
6689 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6690 fi
6691 fi
6692 if test x$ac_success = xno; then
6693 HAVE_CXX11=0
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6695$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6696 else
6697 HAVE_CXX11=1
6698
6699$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6700
6701 fi
6702
6703
7ffcf5d6
TB
6704
6705 if test "${build}" != "${host}"; then
6706 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6707 ac_ext=cpp
6708ac_cpp='$CXXCPP $CPPFLAGS'
6709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6712 ac_success=no
6713 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6714 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6715 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6716 CXX="$CXX_FOR_BUILD"
6717 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6718 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6720$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6721if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6722 $as_echo_n "(cached) " >&6
6723else
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725/* end confdefs.h. */
6726
6727
6728// If the compiler admits that it is not ready for C++11, why torture it?
6729// Hopefully, this will speed up the test.
6730
6731#ifndef __cplusplus
6732
6733#error "This is not a C++ compiler"
6734
6735#elif __cplusplus < 201103L
6736
6737#error "This is not a C++11 compiler"
6738
6739#else
6740
6741namespace cxx11
6742{
6743
6744 namespace test_static_assert
6745 {
6746
6747 template <typename T>
6748 struct check
6749 {
6750 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6751 };
6752
6753 }
6754
6755 namespace test_final_override
6756 {
6757
6758 struct Base
6759 {
6760 virtual ~Base() {}
6761 virtual void f() {}
6762 };
6763
6764 struct Derived : public Base
6765 {
6766 virtual ~Derived() override {}
6767 virtual void f() override {}
6768 };
6769
6770 }
6771
6772 namespace test_double_right_angle_brackets
6773 {
6774
6775 template < typename T >
6776 struct check {};
6777
6778 typedef check<void> single_type;
6779 typedef check<check<void>> double_type;
6780 typedef check<check<check<void>>> triple_type;
6781 typedef check<check<check<check<void>>>> quadruple_type;
6782
6783 }
6784
6785 namespace test_decltype
6786 {
6787
6788 int
6789 f()
6790 {
6791 int a = 1;
6792 decltype(a) b = 2;
6793 return a + b;
6794 }
6795
6796 }
6797
6798 namespace test_type_deduction
6799 {
6800
6801 template < typename T1, typename T2 >
6802 struct is_same
6803 {
6804 static const bool value = false;
6805 };
6806
6807 template < typename T >
6808 struct is_same<T, T>
6809 {
6810 static const bool value = true;
6811 };
6812
6813 template < typename T1, typename T2 >
6814 auto
6815 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6816 {
6817 return a1 + a2;
6818 }
6819
6820 int
6821 test(const int c, volatile int v)
6822 {
6823 static_assert(is_same<int, decltype(0)>::value == true, "");
6824 static_assert(is_same<int, decltype(c)>::value == false, "");
6825 static_assert(is_same<int, decltype(v)>::value == false, "");
6826 auto ac = c;
6827 auto av = v;
6828 auto sumi = ac + av + 'x';
6829 auto sumf = ac + av + 1.0;
6830 static_assert(is_same<int, decltype(ac)>::value == true, "");
6831 static_assert(is_same<int, decltype(av)>::value == true, "");
6832 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6833 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6834 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6835 return (sumf > 0.0) ? sumi : add(c, v);
6836 }
6837
6838 }
6839
6840 namespace test_noexcept
6841 {
6842
6843 int f() { return 0; }
6844 int g() noexcept { return 0; }
6845
6846 static_assert(noexcept(f()) == false, "");
6847 static_assert(noexcept(g()) == true, "");
6848
6849 }
6850
6851 namespace test_constexpr
6852 {
6853
6854 template < typename CharT >
6855 unsigned long constexpr
6856 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6857 {
6858 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6859 }
6860
6861 template < typename CharT >
6862 unsigned long constexpr
6863 strlen_c(const CharT *const s) noexcept
6864 {
6865 return strlen_c_r(s, 0UL);
6866 }
6867
6868 static_assert(strlen_c("") == 0UL, "");
6869 static_assert(strlen_c("1") == 1UL, "");
6870 static_assert(strlen_c("example") == 7UL, "");
6871 static_assert(strlen_c("another\0example") == 7UL, "");
6872
6873 }
6874
6875 namespace test_rvalue_references
6876 {
6877
6878 template < int N >
6879 struct answer
6880 {
6881 static constexpr int value = N;
6882 };
6883
6884 answer<1> f(int&) { return answer<1>(); }
6885 answer<2> f(const int&) { return answer<2>(); }
6886 answer<3> f(int&&) { return answer<3>(); }
6887
6888 void
6889 test()
6890 {
6891 int i = 0;
6892 const int c = 0;
6893 static_assert(decltype(f(i))::value == 1, "");
6894 static_assert(decltype(f(c))::value == 2, "");
6895 static_assert(decltype(f(0))::value == 3, "");
6896 }
6897
6898 }
6899
6900 namespace test_uniform_initialization
6901 {
6902
6903 struct test
6904 {
6905 static const int zero {};
6906 static const int one {1};
6907 };
6908
6909 static_assert(test::zero == 0, "");
6910 static_assert(test::one == 1, "");
6911
6912 }
6913
6914 namespace test_lambdas
6915 {
6916
6917 void
6918 test1()
6919 {
6920 auto lambda1 = [](){};
6921 auto lambda2 = lambda1;
6922 lambda1();
6923 lambda2();
6924 }
6925
6926 int
6927 test2()
6928 {
6929 auto a = [](int i, int j){ return i + j; }(1, 2);
6930 auto b = []() -> int { return '0'; }();
6931 auto c = [=](){ return a + b; }();
6932 auto d = [&](){ return c; }();
6933 auto e = [a, &b](int x) mutable {
6934 const auto identity = [](int y){ return y; };
6935 for (auto i = 0; i < a; ++i)
6936 a += b--;
6937 return x + identity(a + b);
6938 }(0);
6939 return a + b + c + d + e;
6940 }
6941
6942 int
6943 test3()
6944 {
6945 const auto nullary = [](){ return 0; };
6946 const auto unary = [](int x){ return x; };
6947 using nullary_t = decltype(nullary);
6948 using unary_t = decltype(unary);
6949 const auto higher1st = [](nullary_t f){ return f(); };
6950 const auto higher2nd = [unary](nullary_t f1){
6951 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6952 };
6953 return higher1st(nullary) + higher2nd(nullary)(unary);
6954 }
6955
6956 }
6957
6958 namespace test_variadic_templates
6959 {
6960
6961 template <int...>
6962 struct sum;
6963
6964 template <int N0, int... N1toN>
6965 struct sum<N0, N1toN...>
6966 {
6967 static constexpr auto value = N0 + sum<N1toN...>::value;
6968 };
6969
6970 template <>
6971 struct sum<>
6972 {
6973 static constexpr auto value = 0;
6974 };
6975
6976 static_assert(sum<>::value == 0, "");
6977 static_assert(sum<1>::value == 1, "");
6978 static_assert(sum<23>::value == 23, "");
6979 static_assert(sum<1, 2>::value == 3, "");
6980 static_assert(sum<5, 5, 11>::value == 21, "");
6981 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6982
6983 }
6984
6985 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6986 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6987 // because of this.
6988 namespace test_template_alias_sfinae
6989 {
6990
6991 struct foo {};
6992
6993 template<typename T>
6994 using member = typename T::member_type;
6995
6996 template<typename T>
6997 void func(...) {}
6998
6999 template<typename T>
7000 void func(member<T>*) {}
7001
7002 void test();
7003
7004 void test() { func<foo>(0); }
7005
7006 }
7007
7008} // namespace cxx11
7009
7010#endif // __cplusplus >= 201103L
7011
7012
7013
7014_ACEOF
7015if ac_fn_cxx_try_compile "$LINENO"; then :
7016 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7017else
7018 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7019fi
7020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7021fi
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7023$as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7024 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7025 ac_success=yes
7026 fi
7027
7028 if test x$ac_success = xno; then
7029 for alternative in ${ax_cxx_compile_alternatives}; do
7030 switch="-std=gnu++${alternative}"
7031 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7033$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7034if eval \${$cachevar+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036else
7037 ac_save_CXX="$CXX"
7038 CXX="$CXX $switch"
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040/* end confdefs.h. */
7041
7042
7043// If the compiler admits that it is not ready for C++11, why torture it?
7044// Hopefully, this will speed up the test.
7045
7046#ifndef __cplusplus
7047
7048#error "This is not a C++ compiler"
7049
7050#elif __cplusplus < 201103L
7051
7052#error "This is not a C++11 compiler"
7053
7054#else
7055
7056namespace cxx11
7057{
7058
7059 namespace test_static_assert
7060 {
7061
7062 template <typename T>
7063 struct check
7064 {
7065 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7066 };
7067
7068 }
7069
7070 namespace test_final_override
7071 {
7072
7073 struct Base
7074 {
7075 virtual ~Base() {}
7076 virtual void f() {}
7077 };
7078
7079 struct Derived : public Base
7080 {
7081 virtual ~Derived() override {}
7082 virtual void f() override {}
7083 };
7084
7085 }
7086
7087 namespace test_double_right_angle_brackets
7088 {
7089
7090 template < typename T >
7091 struct check {};
7092
7093 typedef check<void> single_type;
7094 typedef check<check<void>> double_type;
7095 typedef check<check<check<void>>> triple_type;
7096 typedef check<check<check<check<void>>>> quadruple_type;
7097
7098 }
7099
7100 namespace test_decltype
7101 {
7102
7103 int
7104 f()
7105 {
7106 int a = 1;
7107 decltype(a) b = 2;
7108 return a + b;
7109 }
7110
7111 }
7112
7113 namespace test_type_deduction
7114 {
7115
7116 template < typename T1, typename T2 >
7117 struct is_same
7118 {
7119 static const bool value = false;
7120 };
7121
7122 template < typename T >
7123 struct is_same<T, T>
7124 {
7125 static const bool value = true;
7126 };
7127
7128 template < typename T1, typename T2 >
7129 auto
7130 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7131 {
7132 return a1 + a2;
7133 }
7134
7135 int
7136 test(const int c, volatile int v)
7137 {
7138 static_assert(is_same<int, decltype(0)>::value == true, "");
7139 static_assert(is_same<int, decltype(c)>::value == false, "");
7140 static_assert(is_same<int, decltype(v)>::value == false, "");
7141 auto ac = c;
7142 auto av = v;
7143 auto sumi = ac + av + 'x';
7144 auto sumf = ac + av + 1.0;
7145 static_assert(is_same<int, decltype(ac)>::value == true, "");
7146 static_assert(is_same<int, decltype(av)>::value == true, "");
7147 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7148 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7149 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7150 return (sumf > 0.0) ? sumi : add(c, v);
7151 }
7152
7153 }
7154
7155 namespace test_noexcept
7156 {
7157
7158 int f() { return 0; }
7159 int g() noexcept { return 0; }
7160
7161 static_assert(noexcept(f()) == false, "");
7162 static_assert(noexcept(g()) == true, "");
7163
7164 }
7165
7166 namespace test_constexpr
7167 {
7168
7169 template < typename CharT >
7170 unsigned long constexpr
7171 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7172 {
7173 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7174 }
7175
7176 template < typename CharT >
7177 unsigned long constexpr
7178 strlen_c(const CharT *const s) noexcept
7179 {
7180 return strlen_c_r(s, 0UL);
7181 }
7182
7183 static_assert(strlen_c("") == 0UL, "");
7184 static_assert(strlen_c("1") == 1UL, "");
7185 static_assert(strlen_c("example") == 7UL, "");
7186 static_assert(strlen_c("another\0example") == 7UL, "");
7187
7188 }
7189
7190 namespace test_rvalue_references
7191 {
7192
7193 template < int N >
7194 struct answer
7195 {
7196 static constexpr int value = N;
7197 };
7198
7199 answer<1> f(int&) { return answer<1>(); }
7200 answer<2> f(const int&) { return answer<2>(); }
7201 answer<3> f(int&&) { return answer<3>(); }
7202
7203 void
7204 test()
7205 {
7206 int i = 0;
7207 const int c = 0;
7208 static_assert(decltype(f(i))::value == 1, "");
7209 static_assert(decltype(f(c))::value == 2, "");
7210 static_assert(decltype(f(0))::value == 3, "");
7211 }
7212
7213 }
7214
7215 namespace test_uniform_initialization
7216 {
7217
7218 struct test
7219 {
7220 static const int zero {};
7221 static const int one {1};
7222 };
7223
7224 static_assert(test::zero == 0, "");
7225 static_assert(test::one == 1, "");
7226
7227 }
7228
7229 namespace test_lambdas
7230 {
7231
7232 void
7233 test1()
7234 {
7235 auto lambda1 = [](){};
7236 auto lambda2 = lambda1;
7237 lambda1();
7238 lambda2();
7239 }
7240
7241 int
7242 test2()
7243 {
7244 auto a = [](int i, int j){ return i + j; }(1, 2);
7245 auto b = []() -> int { return '0'; }();
7246 auto c = [=](){ return a + b; }();
7247 auto d = [&](){ return c; }();
7248 auto e = [a, &b](int x) mutable {
7249 const auto identity = [](int y){ return y; };
7250 for (auto i = 0; i < a; ++i)
7251 a += b--;
7252 return x + identity(a + b);
7253 }(0);
7254 return a + b + c + d + e;
7255 }
7256
7257 int
7258 test3()
7259 {
7260 const auto nullary = [](){ return 0; };
7261 const auto unary = [](int x){ return x; };
7262 using nullary_t = decltype(nullary);
7263 using unary_t = decltype(unary);
7264 const auto higher1st = [](nullary_t f){ return f(); };
7265 const auto higher2nd = [unary](nullary_t f1){
7266 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7267 };
7268 return higher1st(nullary) + higher2nd(nullary)(unary);
7269 }
7270
7271 }
7272
7273 namespace test_variadic_templates
7274 {
7275
7276 template <int...>
7277 struct sum;
7278
7279 template <int N0, int... N1toN>
7280 struct sum<N0, N1toN...>
7281 {
7282 static constexpr auto value = N0 + sum<N1toN...>::value;
7283 };
7284
7285 template <>
7286 struct sum<>
7287 {
7288 static constexpr auto value = 0;
7289 };
7290
7291 static_assert(sum<>::value == 0, "");
7292 static_assert(sum<1>::value == 1, "");
7293 static_assert(sum<23>::value == 23, "");
7294 static_assert(sum<1, 2>::value == 3, "");
7295 static_assert(sum<5, 5, 11>::value == 21, "");
7296 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7297
7298 }
7299
7300 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7301 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7302 // because of this.
7303 namespace test_template_alias_sfinae
7304 {
7305
7306 struct foo {};
7307
7308 template<typename T>
7309 using member = typename T::member_type;
7310
7311 template<typename T>
7312 void func(...) {}
7313
7314 template<typename T>
7315 void func(member<T>*) {}
7316
7317 void test();
7318
7319 void test() { func<foo>(0); }
7320
7321 }
7322
7323} // namespace cxx11
7324
7325#endif // __cplusplus >= 201103L
7326
7327
7328
7329_ACEOF
7330if ac_fn_cxx_try_compile "$LINENO"; then :
7331 eval $cachevar=yes
7332else
7333 eval $cachevar=no
7334fi
7335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336 CXX="$ac_save_CXX"
7337fi
7338eval ac_res=\$$cachevar
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7340$as_echo "$ac_res" >&6; }
7341 if eval test x\$$cachevar = xyes; then
7342 CXX="$CXX $switch"
7343 if test -n "$CXXCPP" ; then
7344 CXXCPP="$CXXCPP $switch"
7345 fi
7346 ac_success=yes
7347 break
7348 fi
7349 done
7350 fi
7351
7352 if test x$ac_success = xno; then
7353 for alternative in ${ax_cxx_compile_alternatives}; do
7354 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7355 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7357$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7358if eval \${$cachevar+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360else
7361 ac_save_CXX="$CXX"
7362 CXX="$CXX $switch"
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364/* end confdefs.h. */
7365
7366
7367// If the compiler admits that it is not ready for C++11, why torture it?
7368// Hopefully, this will speed up the test.
7369
7370#ifndef __cplusplus
7371
7372#error "This is not a C++ compiler"
7373
7374#elif __cplusplus < 201103L
7375
7376#error "This is not a C++11 compiler"
7377
7378#else
7379
7380namespace cxx11
7381{
7382
7383 namespace test_static_assert
7384 {
7385
7386 template <typename T>
7387 struct check
7388 {
7389 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7390 };
7391
7392 }
7393
7394 namespace test_final_override
7395 {
7396
7397 struct Base
7398 {
7399 virtual ~Base() {}
7400 virtual void f() {}
7401 };
7402
7403 struct Derived : public Base
7404 {
7405 virtual ~Derived() override {}
7406 virtual void f() override {}
7407 };
7408
7409 }
7410
7411 namespace test_double_right_angle_brackets
7412 {
7413
7414 template < typename T >
7415 struct check {};
7416
7417 typedef check<void> single_type;
7418 typedef check<check<void>> double_type;
7419 typedef check<check<check<void>>> triple_type;
7420 typedef check<check<check<check<void>>>> quadruple_type;
7421
7422 }
7423
7424 namespace test_decltype
7425 {
7426
7427 int
7428 f()
7429 {
7430 int a = 1;
7431 decltype(a) b = 2;
7432 return a + b;
7433 }
7434
7435 }
7436
7437 namespace test_type_deduction
7438 {
7439
7440 template < typename T1, typename T2 >
7441 struct is_same
7442 {
7443 static const bool value = false;
7444 };
7445
7446 template < typename T >
7447 struct is_same<T, T>
7448 {
7449 static const bool value = true;
7450 };
7451
7452 template < typename T1, typename T2 >
7453 auto
7454 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7455 {
7456 return a1 + a2;
7457 }
7458
7459 int
7460 test(const int c, volatile int v)
7461 {
7462 static_assert(is_same<int, decltype(0)>::value == true, "");
7463 static_assert(is_same<int, decltype(c)>::value == false, "");
7464 static_assert(is_same<int, decltype(v)>::value == false, "");
7465 auto ac = c;
7466 auto av = v;
7467 auto sumi = ac + av + 'x';
7468 auto sumf = ac + av + 1.0;
7469 static_assert(is_same<int, decltype(ac)>::value == true, "");
7470 static_assert(is_same<int, decltype(av)>::value == true, "");
7471 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7472 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7473 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7474 return (sumf > 0.0) ? sumi : add(c, v);
7475 }
7476
7477 }
7478
7479 namespace test_noexcept
7480 {
7481
7482 int f() { return 0; }
7483 int g() noexcept { return 0; }
7484
7485 static_assert(noexcept(f()) == false, "");
7486 static_assert(noexcept(g()) == true, "");
7487
7488 }
7489
7490 namespace test_constexpr
7491 {
7492
7493 template < typename CharT >
7494 unsigned long constexpr
7495 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7496 {
7497 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7498 }
7499
7500 template < typename CharT >
7501 unsigned long constexpr
7502 strlen_c(const CharT *const s) noexcept
7503 {
7504 return strlen_c_r(s, 0UL);
7505 }
7506
7507 static_assert(strlen_c("") == 0UL, "");
7508 static_assert(strlen_c("1") == 1UL, "");
7509 static_assert(strlen_c("example") == 7UL, "");
7510 static_assert(strlen_c("another\0example") == 7UL, "");
7511
7512 }
7513
7514 namespace test_rvalue_references
7515 {
7516
7517 template < int N >
7518 struct answer
7519 {
7520 static constexpr int value = N;
7521 };
7522
7523 answer<1> f(int&) { return answer<1>(); }
7524 answer<2> f(const int&) { return answer<2>(); }
7525 answer<3> f(int&&) { return answer<3>(); }
7526
7527 void
7528 test()
7529 {
7530 int i = 0;
7531 const int c = 0;
7532 static_assert(decltype(f(i))::value == 1, "");
7533 static_assert(decltype(f(c))::value == 2, "");
7534 static_assert(decltype(f(0))::value == 3, "");
7535 }
7536
7537 }
7538
7539 namespace test_uniform_initialization
7540 {
7541
7542 struct test
7543 {
7544 static const int zero {};
7545 static const int one {1};
7546 };
7547
7548 static_assert(test::zero == 0, "");
7549 static_assert(test::one == 1, "");
7550
7551 }
7552
7553 namespace test_lambdas
7554 {
7555
7556 void
7557 test1()
7558 {
7559 auto lambda1 = [](){};
7560 auto lambda2 = lambda1;
7561 lambda1();
7562 lambda2();
7563 }
7564
7565 int
7566 test2()
7567 {
7568 auto a = [](int i, int j){ return i + j; }(1, 2);
7569 auto b = []() -> int { return '0'; }();
7570 auto c = [=](){ return a + b; }();
7571 auto d = [&](){ return c; }();
7572 auto e = [a, &b](int x) mutable {
7573 const auto identity = [](int y){ return y; };
7574 for (auto i = 0; i < a; ++i)
7575 a += b--;
7576 return x + identity(a + b);
7577 }(0);
7578 return a + b + c + d + e;
7579 }
7580
7581 int
7582 test3()
7583 {
7584 const auto nullary = [](){ return 0; };
7585 const auto unary = [](int x){ return x; };
7586 using nullary_t = decltype(nullary);
7587 using unary_t = decltype(unary);
7588 const auto higher1st = [](nullary_t f){ return f(); };
7589 const auto higher2nd = [unary](nullary_t f1){
7590 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7591 };
7592 return higher1st(nullary) + higher2nd(nullary)(unary);
7593 }
7594
7595 }
7596
7597 namespace test_variadic_templates
7598 {
7599
7600 template <int...>
7601 struct sum;
7602
7603 template <int N0, int... N1toN>
7604 struct sum<N0, N1toN...>
7605 {
7606 static constexpr auto value = N0 + sum<N1toN...>::value;
7607 };
7608
7609 template <>
7610 struct sum<>
7611 {
7612 static constexpr auto value = 0;
7613 };
7614
7615 static_assert(sum<>::value == 0, "");
7616 static_assert(sum<1>::value == 1, "");
7617 static_assert(sum<23>::value == 23, "");
7618 static_assert(sum<1, 2>::value == 3, "");
7619 static_assert(sum<5, 5, 11>::value == 21, "");
7620 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7621
7622 }
7623
7624 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7625 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7626 // because of this.
7627 namespace test_template_alias_sfinae
7628 {
7629
7630 struct foo {};
7631
7632 template<typename T>
7633 using member = typename T::member_type;
7634
7635 template<typename T>
7636 void func(...) {}
7637
7638 template<typename T>
7639 void func(member<T>*) {}
7640
7641 void test();
7642
7643 void test() { func<foo>(0); }
7644
7645 }
7646
7647} // namespace cxx11
7648
7649#endif // __cplusplus >= 201103L
7650
7651
7652
7653_ACEOF
7654if ac_fn_cxx_try_compile "$LINENO"; then :
7655 eval $cachevar=yes
7656else
7657 eval $cachevar=no
7658fi
7659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7660 CXX="$ac_save_CXX"
7661fi
7662eval ac_res=\$$cachevar
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7664$as_echo "$ac_res" >&6; }
7665 if eval test x\$$cachevar = xyes; then
7666 CXX="$CXX $switch"
7667 if test -n "$CXXCPP" ; then
7668 CXXCPP="$CXXCPP $switch"
7669 fi
7670 ac_success=yes
7671 break
7672 fi
7673 done
7674 if test x$ac_success = xyes; then
7675 break
7676 fi
7677 done
7678 fi
7679 CXX_FOR_BUILD="$CXX"
7680 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7681 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7682 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7683 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7684 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7685 ac_ext=c
7686ac_cpp='$CPP $CPPFLAGS'
7687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7689ac_compiler_gnu=$ac_cv_c_compiler_gnu
7690
7691 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7692 if test x$ac_success = xno; then
7693 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7694 fi
7695 fi
7696 if test x$ac_success = xno; then
7697 HAVE_CXX11_FOR_BUILD=0
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7699$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7700 else
7701 HAVE_CXX11_FOR_BUILD=1
7702
7703$as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7704
7705 fi
7706
7707
7708 fi
46070488
JM
7709fi
7710
592c90ff
KG
7711# Used for setting $lt_cv_objdir
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7713$as_echo_n "checking for objdir... " >&6; }
22e05272 7714if ${lt_cv_objdir+:} false; then :
592c90ff
KG
7715 $as_echo_n "(cached) " >&6
7716else
7717 rm -f .libs 2>/dev/null
7718mkdir .libs 2>/dev/null
7719if test -d .libs; then
7720 lt_cv_objdir=.libs
7721else
7722 # MS-DOS does not allow filenames that begin with a dot.
7723 lt_cv_objdir=_libs
7724fi
7725rmdir .libs 2>/dev/null
7726fi
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7728$as_echo "$lt_cv_objdir" >&6; }
7729objdir=$lt_cv_objdir
7730
7731
7732
7733
7734
7735cat >>confdefs.h <<_ACEOF
7736#define LT_OBJDIR "$lt_cv_objdir/"
7737_ACEOF
7738
7739
7740
acd26225 7741# Check for GMP, MPFR and MPC
3a5729ea 7742gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 7743gmpinc=
e69bf64b 7744have_gmp=no
acd26225
KG
7745
7746# Specify a location for mpc
7747# check for this first so it ends up on the link line before mpfr.
7748
5213506e
RW
7749# Check whether --with-mpc was given.
7750if test "${with_mpc+set}" = set; then :
7751 withval=$with_mpc;
7752fi
acd26225 7753
acd26225 7754
9965e3cd 7755# Check whether --with-mpc-include was given.
5213506e
RW
7756if test "${with_mpc_include+set}" = set; then :
7757 withval=$with_mpc_include;
7758fi
acd26225 7759
acd26225 7760
9965e3cd 7761# Check whether --with-mpc-lib was given.
5213506e
RW
7762if test "${with_mpc_lib+set}" = set; then :
7763 withval=$with_mpc_lib;
7764fi
acd26225 7765
acd26225
KG
7766
7767if test "x$with_mpc" != x; then
3a5729ea
KG
7768 gmplibs="-L$with_mpc/lib $gmplibs"
7769 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
7770fi
7771if test "x$with_mpc_include" != x; then
3a5729ea 7772 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
7773fi
7774if test "x$with_mpc_lib" != x; then
3a5729ea 7775 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
7776fi
7777if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 7778 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 7779 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
7780 # Do not test the mpc version. Assume that it is sufficient, since
7781 # it is in the source tree, and the library has not been built yet
7782 # but it would be included on the link line in the version check below
7783 # hence making the test fail.
3a5729ea 7784 have_gmp=yes
acd26225 7785fi
e69bf64b 7786
bebf829d
PB
7787# Specify a location for mpfr
7788# check for this first so it ends up on the link line before gmp.
1c710c3c 7789
5213506e
RW
7790# Check whether --with-mpfr-dir was given.
7791if test "${with_mpfr_dir+set}" = set; then :
22e05272 7792 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5213506e
RW
7793Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7794fi
7795
bebf829d
PB
7796
7797
5213506e
RW
7798# Check whether --with-mpfr was given.
7799if test "${with_mpfr+set}" = set; then :
7800 withval=$with_mpfr;
7801fi
1c710c3c 7802
bebf829d 7803
9965e3cd 7804# Check whether --with-mpfr-include was given.
5213506e
RW
7805if test "${with_mpfr_include+set}" = set; then :
7806 withval=$with_mpfr_include;
7807fi
1c710c3c 7808
8a877c9c 7809
9965e3cd 7810# Check whether --with-mpfr-lib was given.
5213506e
RW
7811if test "${with_mpfr_lib+set}" = set; then :
7812 withval=$with_mpfr_lib;
7813fi
8a877c9c 7814
bebf829d
PB
7815
7816if test "x$with_mpfr" != x; then
7817 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 7818 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 7819fi
8a877c9c 7820if test "x$with_mpfr_include" != x; then
3a5729ea 7821 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
7822fi
7823if test "x$with_mpfr_lib" != x; then
7824 gmplibs="-L$with_mpfr_lib $gmplibs"
7825fi
e69bf64b 7826if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
7827 # MPFR v3.1.0 moved the sources into a src sub-directory.
7828 if ! test -d ${srcdir}/mpfr/src; then
22e05272 7829 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 7830 fi
00f35794
BE
7831 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7832 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7833 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
7834 # Do not test the mpfr version. Assume that it is sufficient, since
7835 # it is in the source tree, and the library has not been built yet
7836 # but it would be included on the link line in the version check below
7837 # hence making the test fail.
7838 have_gmp=yes
7839fi
bebf829d 7840
6de9cd9a 7841# Specify a location for gmp
1c710c3c 7842
5213506e
RW
7843# Check whether --with-gmp-dir was given.
7844if test "${with_gmp_dir+set}" = set; then :
22e05272 7845 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5213506e
RW
7846Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7847fi
7848
6de9cd9a 7849
6de9cd9a 7850
5213506e
RW
7851# Check whether --with-gmp was given.
7852if test "${with_gmp+set}" = set; then :
7853 withval=$with_gmp;
7854fi
1c710c3c 7855
6de9cd9a 7856
9965e3cd 7857# Check whether --with-gmp-include was given.
5213506e
RW
7858if test "${with_gmp_include+set}" = set; then :
7859 withval=$with_gmp_include;
7860fi
1c710c3c 7861
8a877c9c 7862
9965e3cd 7863# Check whether --with-gmp-lib was given.
5213506e
RW
7864if test "${with_gmp_lib+set}" = set; then :
7865 withval=$with_gmp_lib;
7866fi
8a877c9c
KG
7867
7868
6de9cd9a 7869
bebf829d
PB
7870if test "x$with_gmp" != x; then
7871 gmplibs="-L$with_gmp/lib $gmplibs"
7872 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 7873fi
8a877c9c
KG
7874if test "x$with_gmp_include" != x; then
7875 gmpinc="-I$with_gmp_include $gmpinc"
7876fi
7877if test "x$with_gmp_lib" != x; then
7878 gmplibs="-L$with_gmp_lib $gmplibs"
7879fi
e69bf64b 7880if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 7881 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 7882 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 7883 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 7884 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 7885 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
7886 # Do not test the gmp version. Assume that it is sufficient, since
7887 # it is in the source tree, and the library has not been built yet
7888 # but it would be included on the link line in the version check below
7889 # hence making the test fail.
7890 have_gmp=yes
7891fi
6de9cd9a 7892
d943d7c4 7893if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
7894 have_gmp=yes
7895 saved_CFLAGS="$CFLAGS"
7896 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
7897 # Check for the recommended and required versions of GMP.
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
7899$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
7900
7901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
7902/* end confdefs.h. */
7903#include "gmp.h"
7904int
7905main ()
7906{
7907
7908 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7909 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 7910 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
7911 choke me
7912 #endif
7913
7914 ;
7915 return 0;
7916}
7917_ACEOF
7918if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 7920/* end confdefs.h. */
362c6d2f 7921#include <gmp.h>
1c710c3c
DJ
7922int
7923main ()
7924{
6de9cd9a 7925
362c6d2f
KG
7926 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7927 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7928 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
7929 choke me
7930 #endif
1c710c3c
DJ
7931
7932 ;
7933 return 0;
7934}
7935_ACEOF
5213506e
RW
7936if ac_fn_c_try_compile "$LINENO"; then :
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7938$as_echo "yes" >&6; }
362c6d2f
KG
7939else
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7941$as_echo "buggy but acceptable" >&6; }
7942fi
7943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 7944else
5213506e
RW
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946$as_echo "no" >&6; }; have_gmp=no
1c710c3c 7947fi
5213506e 7948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 7949
acd26225 7950 # If we have GMP, check the MPFR version.
e69bf64b 7951 if test x"$have_gmp" = xyes; then
362c6d2f
KG
7952 # Check for the recommended and required versions of MPFR.
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
7954$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 7956/* end confdefs.h. */
70ec446f 7957#include <gmp.h>
e69bf64b 7958 #include <mpfr.h>
1c710c3c
DJ
7959int
7960main ()
7961{
e48d66a9 7962
8be34204 7963 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
e69bf64b
PB
7964 choke me
7965 #endif
1c710c3c
DJ
7966
7967 ;
7968 return 0;
7969}
7970_ACEOF
5213506e
RW
7971if ac_fn_c_try_compile "$LINENO"; then :
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 7973/* end confdefs.h. */
a3993f33 7974#include <gmp.h>
e69bf64b 7975 #include <mpfr.h>
1c710c3c
DJ
7976int
7977main ()
7978{
a3993f33 7979
8be34204 7980 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
e69bf64b
PB
7981 choke me
7982 #endif
acd26225
KG
7983
7984 ;
7985 return 0;
7986}
7987_ACEOF
5213506e
RW
7988if ac_fn_c_try_compile "$LINENO"; then :
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7990$as_echo "yes" >&6; }
acd26225 7991else
5213506e
RW
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7993$as_echo "buggy but acceptable" >&6; }
acd26225 7994fi
5213506e 7995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 7996else
5213506e
RW
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7998$as_echo "no" >&6; }; have_gmp=no
acd26225 7999fi
5213506e 8000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8001 fi
8002
8003 # Check for the MPC header version.
3a5729ea 8004 if test x"$have_gmp" = xyes ; then
362c6d2f 8005 # Check for the recommended and required versions of MPC.
5213506e
RW
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8007$as_echo_n "checking for the correct version of mpc.h... " >&6; }
8008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
8009/* end confdefs.h. */
8010#include <mpc.h>
8011int
8012main ()
8013{
8014
362c6d2f
KG
8015 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8016 choke me
8017 #endif
8018
8019 ;
8020 return 0;
8021}
8022_ACEOF
8023if ac_fn_c_try_compile "$LINENO"; then :
8024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025/* end confdefs.h. */
8026#include <mpc.h>
8027int
8028main ()
8029{
8030
8031 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
8032 choke me
8033 #endif
8034
8035 ;
8036 return 0;
8037}
8038_ACEOF
5213506e
RW
8039if ac_fn_c_try_compile "$LINENO"; then :
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 8041$as_echo "yes" >&6; }
362c6d2f
KG
8042else
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8044$as_echo "buggy but acceptable" >&6; }
8045fi
8046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8047else
5213506e 8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 8049$as_echo "no" >&6; }; have_gmp=no
acd26225 8050fi
5213506e 8051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8052 fi
8053
8054 # Now check the MPFR library.
8055 if test x"$have_gmp" = xyes; then
8056 saved_LIBS="$LIBS"
8057 LIBS="$LIBS $gmplibs"
3a5729ea
KG
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8059$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 8061/* end confdefs.h. */
3a5729ea 8062#include <mpc.h>
acd26225
KG
8063int
8064main ()
8065{
8066
8067 mpfr_t n;
8068 mpfr_t x;
3a5729ea 8069 mpc_t c;
acd26225
KG
8070 int t;
8071 mpfr_init (n);
8072 mpfr_init (x);
90ca6847
TB
8073 mpfr_atan2 (n, n, x, MPFR_RNDN);
8074 mpfr_erfc (n, x, MPFR_RNDN);
8075 mpfr_subnormalize (x, t, MPFR_RNDN);
3a5729ea
KG
8076 mpfr_clear(n);
8077 mpfr_clear(x);
8078 mpc_init2 (c, 53);
8079 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8080 mpc_cosh (c, c, MPC_RNDNN);
8081 mpc_pow (c, c, c, MPC_RNDNN);
8082 mpc_acosh (c, c, MPC_RNDNN);
8083 mpc_clear (c);
1c710c3c
DJ
8084
8085 ;
8086 return 0;
8087}
8088_ACEOF
5213506e
RW
8089if ac_fn_c_try_link "$LINENO"; then :
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8091$as_echo "yes" >&6; }
1c710c3c 8092else
5213506e
RW
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8095fi
5213506e
RW
8096rm -f core conftest.err conftest.$ac_objext \
8097 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
8098 LIBS="$saved_LIBS"
8099 fi
8100
e69bf64b 8101 CFLAGS="$saved_CFLAGS"
6de9cd9a 8102
362c6d2f
KG
8103# The library versions listed in the error message below should match
8104# the HARD-minimums enforced above.
e69bf64b 8105 if test x$have_gmp != xyes; then
8be34204 8106 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
3a5729ea
KG
8107Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8108their locations. Source code for these libraries can be found at
8109their respective hosting sites as well as at
aeebd94c 8110https://gcc.gnu.org/pub/gcc/infrastructure/. See also
3a5729ea
KG
8111http://gcc.gnu.org/install/prerequisites.html for additional info. If
8112you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8113make sure that you have installed both the libraries and the header
8114files. They may be located in separate packages." "$LINENO" 5
e69bf64b 8115 fi
70ec446f
KG
8116fi
8117
acd26225
KG
8118# Flags needed for both GMP, MPFR and/or MPC.
8119
8120
6de9cd9a
DN
8121
8122
8123
9e3eba15 8124
0ff2d841 8125
0b21f5d3 8126# Libraries to use for stage1 or when not bootstrapping.
00020c16 8127
0b21f5d3
EB
8128# Check whether --with-stage1-libs was given.
8129if test "${with_stage1_libs+set}" = set; then :
8130 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8131 stage1_libs=
00020c16 8132 else
0b21f5d3 8133 stage1_libs=$withval
00020c16
ILT
8134 fi
8135else
5dc85f7e 8136 stage1_libs=
5213506e
RW
8137fi
8138
00020c16
ILT
8139
8140
aac9103b
TT
8141# Whether or not to use -static-libstdc++ and -static-libgcc. The
8142# default is yes if gcc is being built; no otherwise. The reason for
8143# this default is that gdb is sometimes linked against GNU Source
8144# Highlight, which is a shared library that uses C++ exceptions. In
8145# this case, -static-libstdc++ will cause crashes.
8146
8147# Check whether --with-static-standard-libraries was given.
8148if test "${with_static_standard_libraries+set}" = set; then :
8149 withval=$with_static_standard_libraries;
8150else
8151 with_static_standard_libraries=auto
8152fi
8153
8154if test "$with_static_standard_libraries" = auto; then
8155 with_static_standard_libraries=$have_compiler
8156fi
8157
0b21f5d3 8158# Linker flags to use for stage1 or when not bootstrapping.
00020c16 8159
0b21f5d3
EB
8160# Check whether --with-stage1-ldflags was given.
8161if test "${with_stage1_ldflags+set}" = set; then :
8162 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8163 stage1_ldflags=
00020c16 8164 else
0b21f5d3 8165 stage1_ldflags=$withval
00020c16
ILT
8166 fi
8167else
0b21f5d3
EB
8168 stage1_ldflags=
8169 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8170 # if supported. But if the user explicitly specified the libraries to use,
8171 # trust that they are doing what they want.
aac9103b
TT
8172 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8173 -a "$have_static_libs" = yes; then
0b21f5d3
EB
8174 stage1_ldflags="-static-libstdc++ -static-libgcc"
8175 fi
5213506e
RW
8176fi
8177
00020c16
ILT
8178
8179
5dc85f7e 8180# Libraries to use for stage2 and later builds.
00020c16 8181
5213506e
RW
8182# Check whether --with-boot-libs was given.
8183if test "${with_boot_libs+set}" = set; then :
8184 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
8185 poststage1_libs=
8186 else
8187 poststage1_libs=$withval
8188 fi
8189else
5dc85f7e 8190 poststage1_libs=
5213506e
RW
8191fi
8192
00020c16
ILT
8193
8194
ed2eaa9f
ILT
8195# Linker flags to use for stage2 and later builds.
8196
8197# Check whether --with-boot-ldflags was given.
8198if test "${with_boot_ldflags+set}" = set; then :
8199 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8200 poststage1_ldflags=
8201 else
8202 poststage1_ldflags=$withval
8203 fi
8204else
8205 poststage1_ldflags=
bec93d73
ILT
8206 # In stages 2 and 3, default to linking libstdc++ and libgcc
8207 # statically. But if the user explicitly specified the libraries to
8208 # use, trust that they are doing what they want.
8209 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
8210 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8211 fi
8212fi
8213
8214
8215
e357a5e0 8216# GCC GRAPHITE dependency isl.
4a9bb2aa 8217# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
8218
8219
33ad93b9
RG
8220# Check whether --with-isl was given.
8221if test "${with_isl+set}" = set; then :
8222 withval=$with_isl;
5213506e 8223fi
f8bf9252 8224
f8bf9252 8225
eae1a5d4 8226# Treat --without-isl as a request to disable
625afa23 8227# GRAPHITE support and skip all following checks.
eae1a5d4 8228if test "x$with_isl" != "xno"; then
e357a5e0 8229 # Check for isl
625afa23
RG
8230
8231
33ad93b9
RG
8232# Check whether --with-isl-include was given.
8233if test "${with_isl_include+set}" = set; then :
8234 withval=$with_isl_include;
5213506e
RW
8235fi
8236
f8bf9252 8237
33ad93b9
RG
8238# Check whether --with-isl-lib was given.
8239if test "${with_isl_lib+set}" = set; then :
8240 withval=$with_isl_lib;
5213506e 8241fi
f8bf9252 8242
f8bf9252 8243
33ad93b9
RG
8244 # Check whether --enable-isl-version-check was given.
8245if test "${enable_isl_version_check+set}" = set; then :
8246 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8247else
8248 ENABLE_ISL_CHECK=yes
7d32a440
SP
8249fi
8250
8251
33ad93b9
RG
8252 # Initialize isllibs and islinc.
8253 case $with_isl in
8254 no)
8255 isllibs=
8256 islinc=
8257 ;;
8258 "" | yes)
8259 ;;
8260 *)
8261 isllibs="-L$with_isl/lib"
8262 islinc="-I$with_isl/include"
8263 ;;
8264 esac
8265 if test "x${with_isl_include}" != x ; then
8266 islinc="-I$with_isl_include"
8267 fi
8268 if test "x${with_isl_lib}" != x; then
8269 isllibs="-L$with_isl_lib"
8270 fi
8271 if test "x${islinc}" = x && test "x${isllibs}" = x \
8272 && test -d ${srcdir}/isl; then
8273 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8274 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8275 ENABLE_ISL_CHECK=no
560d18d3
AK
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8277$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 8278 fi
7d32a440 8279
eae1a5d4
RG
8280 isllibs="${isllibs} -lisl"
8281
7d32a440 8282
7d32a440 8283
9847828b
RB
8284 if test "${ENABLE_ISL_CHECK}" = yes ; then
8285 _isl_saved_CFLAGS=$CFLAGS
8286 _isl_saved_LDFLAGS=$LDFLAGS
8287 _isl_saved_LIBS=$LIBS
8288
8289 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
8290 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8291 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 8292
f877b3ad
RB
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8294$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 8296/* end confdefs.h. */
f877b3ad 8297#include <isl/schedule.h>
622dbadf
BC
8298int
8299main ()
8300{
f877b3ad 8301isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
8302 ;
8303 return 0;
8304}
8305_ACEOF
8306if ac_fn_c_try_link "$LINENO"; then :
9847828b 8307 gcc_cv_isl=yes
622dbadf
BC
8308else
8309 gcc_cv_isl=no
8310fi
8311rm -f core conftest.err conftest.$ac_objext \
8312 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8314$as_echo "$gcc_cv_isl" >&6; }
8315
560d18d3 8316 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8318$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
8319 fi
8320
9847828b
RB
8321 CFLAGS=$_isl_saved_CFLAGS
8322 LDFLAGS=$_isl_saved_LDFLAGS
8323 LIBS=$_isl_saved_LIBS
8324 fi
8325
8326
f8bf9252 8327
f8bf9252 8328
33ad93b9
RG
8329
8330
33ad93b9
RG
8331 if test "x${with_isl}" = xno; then
8332 graphite_requested=no
8333 elif test "x${with_isl}" != x \
8334 || test "x${with_isl_include}" != x \
8335 || test "x${with_isl_lib}" != x ; then
8336 graphite_requested=yes
8337 else
8338 graphite_requested=no
7d32a440 8339 fi
d789184e 8340
d789184e
SP
8341
8342
33ad93b9
RG
8343 if test "${gcc_cv_isl}" = no ; then
8344 isllibs=
8345 islinc=
8346 fi
8347
8348 if test "${graphite_requested}" = yes \
8349 && test "x${isllibs}" = x \
8350 && test "x${islinc}" = x ; then
f8bf9252 8351
22e05272 8352 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 8353 fi
f8bf9252 8354
d32ef397 8355
d32ef397
AS
8356fi
8357
e357a5e0 8358# If the isl check failed, disable builds of in-tree variant of isl
625afa23 8359if test "x$with_isl" = xno ||
625afa23 8360 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 8361 noconfigdirs="$noconfigdirs isl"
625afa23 8362 islinc=
32d024bf
RG
8363fi
8364
625afa23
RG
8365
8366
8367
d7f09764
DN
8368# Check for LTO support.
8369# Check whether --enable-lto was given.
8370if test "${enable_lto+set}" = set; then :
8371 enableval=$enable_lto; enable_lto=$enableval
8372else
8373 enable_lto=yes; default_enable_lto=yes
8374fi
8375
8376
7413962d 8377
9a02962b
DK
8378
8379
8380target_elf=no
8381case $target in
8382 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 8383 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 8384 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 8385 nvptx-*-none)
9a02962b
DK
8386 target_elf=no
8387 ;;
8388 *)
8389 target_elf=yes
8390 ;;
8391esac
8392
8393if test $target_elf = yes; then :
48215350
DK
8394 # ELF platforms build the lto-plugin always.
8395 build_lto_plugin=yes
9a02962b 8396
9a02962b
DK
8397else
8398 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 8399 case $target in
deeba76a 8400 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 8401 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
8402 *) enable_lto=no ;;
8403 esac
9a02962b 8404 else
db50fe7d
IS
8405 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8406 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
8407 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8408 # warn during gcc/ subconfigure; unless you're bootstrapping with
8409 # -flto it won't be needed until after installation anyway.
8410 case $target in
9e530bcd 8411 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 8412 *) if test x"$enable_lto" = x"yes"; then
22e05272 8413 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
8414 fi
8415 ;;
8416 esac
8417 fi
1cd0b716 8418 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 8419 # Build it unless LTO was explicitly disabled.
1cd0b716 8420 case $target in
48215350 8421 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
8422 *) ;;
8423 esac
48215350 8424
9a02962b
DK
8425fi
8426
d7f09764 8427
45b3824d
TS
8428# Check whether --enable-linker-plugin-configure-flags was given.
8429if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8430 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8431else
8432 extra_linker_plugin_configure_flags=
8433fi
8434
8435
8436# Check whether --enable-linker-plugin-flags was given.
8437if test "${enable_linker_plugin_flags+set}" = set; then :
8438 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8439else
8440 extra_linker_plugin_flags=
8441fi
8442
8443
8444
cdfee50a
NS
8445# Enable --enable-host-shared.
8446# Checked early to determine whether jit is an 'all' language
8447# Check whether --enable-host-shared was given.
8448if test "${enable_host_shared+set}" = set; then :
8449 enableval=$enable_host_shared; host_shared=$enableval
8450else
8451 host_shared=no
8452fi
8453
8454
f8bf9252 8455
0823efed 8456# By default, C and C++ are the only stage 1 languages.
e1888513 8457stage1_languages=,c,
2805b53a 8458
00020c16 8459# Target libraries that we bootstrap.
ad1e5170 8460bootstrap_target_libs=,target-libgcc,
00020c16 8461
55ffb5ed
NN
8462# Figure out what language subdirectories are present.
8463# Look if the user specified --enable-languages="..."; if not, use
8464# the environment variable $LANGUAGES if defined. $LANGUAGES might
8465# go away some day.
8466# NB: embedded tabs in this IF block -- do not untabify
8467if test -d ${srcdir}/gcc; then
8468 if test x"${enable_languages+set}" != xset; then
8469 if test x"${LANGUAGES+set}" = xset; then
8470 enable_languages="${LANGUAGES}"
6b1786aa 8471 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 8472 else
cdfee50a 8473 enable_languages=default
55ffb5ed
NN
8474 fi
8475 else
8476 if test x"${enable_languages}" = x ||
8477 test x"${enable_languages}" = xyes;
8478 then
6b1786aa 8479 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
8480 exit 1
8481 fi
8482 fi
8483 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8484
7f26dfa3
FXC
8485 # 'f95' is the old name for the 'fortran' language. We issue a warning
8486 # and make the substitution.
8487 case ,${enable_languages}, in
8488 *,f95,*)
6b1786aa 8489 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
8490 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8491 ;;
8492 esac
8493
0823efed
DN
8494 # If bootstrapping, C++ must be enabled.
8495 case ",$enable_languages,:$enable_bootstrap" in
8496 *,c++,*:*) ;;
8497 *:yes)
ff3ac0f4
ILT
8498 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8499 enable_languages="${enable_languages},c++"
8500 else
22e05272 8501 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
8502 fi
8503 ;;
8504 esac
8505
55ffb5ed
NN
8506 # First scan to see if an enabled language requires some other language.
8507 # We assume that a given config-lang.in will list all the language
8508 # front ends it requires, even if some are required indirectly.
8509 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8510 case ${lang_frag} in
8511 ..) ;;
8512 # The odd quoting in the next line works around
8513 # an apparent bug in bash 1.12 on linux.
8514 ${srcdir}/gcc/[*]/config-lang.in) ;;
8515 *)
69ecd18f
ILT
8516 # From the config-lang.in, get $language, $lang_requires, and
8517 # $lang_requires_boot_languages.
55ffb5ed
NN
8518 language=
8519 lang_requires=
69ecd18f 8520 lang_requires_boot_languages=
d4360477
NS
8521 # set srcdir during sourcing lang_frag to the gcc dir.
8522 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8523 # polutes this shell
8524 saved_srcdir=${srcdir}
8525 srcdir=${srcdir}/gcc . ${lang_frag}
8526 srcdir=${saved_srcdir}
69ecd18f 8527 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
8528 case ,${enable_languages}, in
8529 *,$other,*) ;;
cdfee50a 8530 *,default,*) ;;
55ffb5ed
NN
8531 *,all,*) ;;
8532 *,$language,*)
8533 echo " \`$other' language required by \`$language'; enabling" 1>&2
8534 enable_languages="${enable_languages},${other}"
8535 ;;
8536 esac
8537 done
69ecd18f
ILT
8538 for other in ${lang_requires_boot_languages} ; do
8539 if test "$other" != "c"; then
8540 case ,${enable_stage1_languages}, in
8541 *,$other,*) ;;
cdfee50a 8542 *,default,*) ;;
69ecd18f
ILT
8543 *,all,*) ;;
8544 *)
8545 case ,${enable_languages}, in
8546 *,$language,*)
8547 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8548 enable_stage1_languages="$enable_stage1_languages,${other}"
8549 ;;
8550 esac
8551 ;;
8552 esac
8553 fi
8554 done
55ffb5ed
NN
8555 ;;
8556 esac
8557 done
8558
e1888513 8559 new_enable_languages=,c,
d7f09764
DN
8560
8561 # If LTO is enabled, add the LTO front end.
d7f09764 8562 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
8563 case ,${enable_languages}, in
8564 *,lto,*) ;;
8565 *) enable_languages="${enable_languages},lto" ;;
8566 esac
1cd0b716 8567 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 8568 configdirs="$configdirs lto-plugin"
d7f09764
DN
8569 fi
8570 fi
8571
426c1eb0
TS
8572 # If we're building an offloading compiler, add the LTO front end.
8573 if test x"$enable_as_accelerator_for" != x ; then
8574 case ,${enable_languages}, in
8575 *,lto,*) ;;
8576 *) enable_languages="${enable_languages},lto" ;;
8577 esac
8578 fi
8579
cdfee50a 8580 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 8581 potential_languages=,c,
55ffb5ed 8582
4da3b0f8
ILT
8583 enabled_target_libs=
8584 disabled_target_libs=
8585
55ffb5ed
NN
8586 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8587 case ${lang_frag} in
8588 ..) ;;
8589 # The odd quoting in the next line works around
8590 # an apparent bug in bash 1.12 on linux.
8591 ${srcdir}/gcc/[*]/config-lang.in) ;;
8592 *)
1c710c3c 8593 # From the config-lang.in, get $language, $target_libs,
2805b53a 8594 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
8595 language=
8596 target_libs=
8597 lang_dirs=
1546bb64 8598 subdir_requires=
e1888513
PB
8599 boot_language=no
8600 build_by_default=yes
d4360477
NS
8601 # set srcdir during sourcing. See above about save & restore
8602 saved_srcdir=${srcdir}
8603 srcdir=${srcdir}/gcc . ${lang_frag}
8604 srcdir=${saved_srcdir}
e1888513
PB
8605 if test x${language} = x; then
8606 echo "${lang_frag} doesn't set \$language." 1>&2
8607 exit 1
8608 fi
8609
78767fd9 8610 if test "$language" = "c++"; then
0823efed 8611 boot_language=yes
00020c16
ILT
8612 fi
8613
178f875a 8614 add_this_lang=no
cdfee50a
NS
8615 # C is always enabled, so no need to add it again
8616 if test "$language" != "c"; then
8617 case ,${enable_languages}, in
8618 *,${language},*)
8619 # Language was explicitly selected; include it
d4a10d0a 8620 add_this_lang=yes
cdfee50a
NS
8621 ;;
8622 *,all,*)
8623 # All languages are enabled
8624 add_this_lang=all
8625 ;;
8626 *,default,*)
8627 # 'default' was selected, select it if it is a default language
178f875a 8628 add_this_lang=${build_by_default}
cdfee50a
NS
8629 ;;
8630 esac
8631 fi
6de9cd9a 8632
1546bb64 8633 # Disable languages that need other directories if these aren't available.
95695ad3 8634 for i in $subdir_requires; do
b6348cb3 8635 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
8636 case ${add_this_lang} in
8637 yes)
1546bb64 8638 # Specifically requested language; tell them.
22e05272 8639 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 8640 ;;
cdfee50a
NS
8641 all)
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8643$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8644 add_this_lang=unsupported
8645 ;;
1546bb64
PB
8646 *)
8647 # Silently disable.
e1888513 8648 add_this_lang=unsupported
1546bb64
PB
8649 ;;
8650 esac
8651 done
8652
e1888513 8653 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
8654 case ${add_this_lang}:${language}:${have_gnat} in
8655 yes:ada:no)
e1888513 8656 # Specifically requested language; tell them.
22e05272 8657 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 8658 ;;
cdfee50a
NS
8659 all:ada:no)
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8661$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8662 add_this_lang=unsupported
8663 ;;
e1888513
PB
8664 *:ada:no)
8665 # Silently disable.
8666 add_this_lang=unsupported
8667 ;;
8668 esac
8669
cdfee50a 8670 # Disable jit if -enable-host-shared not specified
ffac9597
JM
8671 # but not if building for Mingw. All code in Windows
8672 # is position independent code (PIC).
c83027f3
NB
8673 case $target in
8674 *mingw*) ;;
8675 *)
8676 case ${add_this_lang}:${language}:${host_shared} in
8677 yes:jit:no)
8678 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 8679 as_fn_error $? "
cdfee50a
NS
8680Enabling language \"jit\" requires --enable-host-shared.
8681
8682--enable-host-shared typically slows the rest of the compiler down by
8683a few %, so you must explicitly enable it.
8684
8685If you want to build both the jit and the regular compiler, it is often
8686best to do this via two separate configure/builds, in separate
8687directories, to avoid imposing the performance cost of
8688--enable-host-shared on the regular compiler." "$LINENO" 5
c83027f3
NB
8689 ;;
8690 all:jit:no)
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
cdfee50a 8692$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
c83027f3
NB
8693 add_this_lang=unsupported
8694 ;;
8695 *:jit:no)
8696 # Silently disable.
8697 add_this_lang=unsupported
8698 ;;
8699 esac
8700 ;;
8701 esac
cdfee50a
NS
8702
8703 # Disable a language that is unsupported by the target.
8704 case "${add_this_lang}: $unsupported_languages " in
8705 no:*) ;;
8706 unsupported:*) ;;
8707 *:*" $language "*)
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8709$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 8710 add_this_lang=unsupported
4fab7234
HPN
8711 ;;
8712 esac
8713
6de9cd9a 8714 case $add_this_lang in
e1888513 8715 unsupported)
55ffb5ed 8716 # Remove language-dependent dirs.
4da3b0f8
ILT
8717 disabled_target_libs="$disabled_target_libs $target_libs"
8718 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 8719 ;;
e1888513
PB
8720 no)
8721 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
8722 disabled_target_libs="$disabled_target_libs $target_libs"
8723 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
8724 potential_languages="${potential_languages}${language},"
8725 ;;
cdfee50a 8726 all|yes)
e1888513
PB
8727 new_enable_languages="${new_enable_languages}${language},"
8728 potential_languages="${potential_languages}${language},"
2805b53a 8729 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 8730 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
8731 case "${boot_language}:,$enable_stage1_languages," in
8732 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 8733 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
8734 case ",$stage1_languages," in
8735 *,$language,* | ,yes, | ,all,) ;;
8736 *) stage1_languages="${stage1_languages}${language}," ;;
8737 esac
00020c16
ILT
8738 # We need to bootstrap any supporting libraries.
8739 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
8740 ;;
8741 esac
8742 ;;
55ffb5ed
NN
8743 esac
8744 ;;
8745 esac
8746 done
8747
4da3b0f8
ILT
8748 # Add target libraries which are only needed for disabled languages
8749 # to noconfigdirs.
8750 if test -n "$disabled_target_libs"; then
8751 for dir in $disabled_target_libs; do
8752 case " $enabled_target_libs " in
8753 *" ${dir} "*) ;;
8754 *) noconfigdirs="$noconfigdirs $dir" ;;
8755 esac
8756 done
8757 fi
8758
5213506e
RW
8759 # Check whether --enable-stage1-languages was given.
8760if test "${enable_stage1_languages+set}" = set; then :
8761 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
8762 ,no,|,,)
8763 # Set it to something that will have no effect in the loop below
8764 enable_stage1_languages=c ;;
8765 ,yes,)
8766 enable_stage1_languages=`echo $new_enable_languages | \
8767 sed -e "s/^,//" -e "s/,$//" ` ;;
8768 *,all,*)
8769 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8770 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8771 esac
8772
8773 # Add "good" languages from enable_stage1_languages to stage1_languages,
8774 # while "bad" languages go in missing_languages. Leave no duplicates.
8775 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8776 case $potential_languages in
8777 *,$i,*)
8778 case $stage1_languages in
8779 *,$i,*) ;;
8780 *) stage1_languages="$stage1_languages$i," ;;
8781 esac ;;
8782 *)
8783 case $missing_languages in
8784 *,$i,*) ;;
8785 *) missing_languages="$missing_languages$i," ;;
8786 esac ;;
8787 esac
8788 done
5213506e
RW
8789fi
8790
e1888513
PB
8791
8792 # Remove leading/trailing commas that were added for simplicity
8793 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 8794 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
8795 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8796 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8797
55ffb5ed 8798 if test "x$missing_languages" != x; then
22e05272 8799 as_fn_error $? "
0cf085e4 8800The following requested languages could not be built: ${missing_languages}
5213506e 8801Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 8802 fi
55ffb5ed
NN
8803 if test "x$new_enable_languages" != "x$enable_languages"; then
8804 echo The following languages will be built: ${new_enable_languages}
e1888513 8805 enable_languages="$new_enable_languages"
55ffb5ed 8806 fi
e1888513 8807
1c710c3c 8808
b2eaac4a 8809 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
8810fi
8811
27079765
AH
8812# Handle --disable-<component> generically.
8813for dir in $configdirs $build_configdirs $target_configdirs ; do
8814 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
8815 varname=`echo $dirname | sed -e s/+/_/g`
8816 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
8817 noconfigdirs="$noconfigdirs $dir"
8818 fi
8819done
8820
43c40f3e
RO
8821# Check for Boehm's garbage collector
8822# Check whether --enable-objc-gc was given.
8823if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
8824 enableval=$enable_objc_gc;
8825fi
8826
8827
8828# Check whether --with-target-bdw-gc was given.
8829if test "${with_target_bdw_gc+set}" = set; then :
8830 withval=$with_target_bdw_gc;
8831fi
8832
8833
8834# Check whether --with-target-bdw-gc-include was given.
8835if test "${with_target_bdw_gc_include+set}" = set; then :
8836 withval=$with_target_bdw_gc_include;
8837fi
8838
8839
8840# Check whether --with-target-bdw-gc-lib was given.
8841if test "${with_target_bdw_gc_lib+set}" = set; then :
8842 withval=$with_target_bdw_gc_lib;
8843fi
8844
8845
8846case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8848$as_echo_n "checking for bdw garbage collector... " >&6; }
8849 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8851$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
8852 else
8853 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 8854 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 8855 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 8856 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
8857 else
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8859$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8860 fi
8861 fi
43c40f3e
RO
8862esac
8863
5e9d6aa4 8864# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 8865case ,${enable_languages}, in
1007a55c 8866 *,c++,*)
5e9d6aa4 8867 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
8868 case "${noconfigdirs}" in
8869 *target-libstdc++-v3*)
5e9d6aa4 8870 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
8871 ;;
8872 *) ;;
8873 esac
8874 ;;
99776ebd 8875 *)
5e9d6aa4 8876 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
8877 ;;
8878esac
8879
dc614a83
AB
8880# If gcc/ is not in the source tree then we'll not be building a
8881# target compiler, assume in that case we don't want to build any
8882# target libraries or tools.
8883#
8884# This was added primarily for the benefit for binutils-gdb who reuse
8885# this configure script, but don't always have target tools available.
8886if test ! -d ${srcdir}/gcc; then
8887 skipdirs="${skipdirs} ${target_configdirs}"
8888fi
8889
ee6a22df
L
8890# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
8891# $build_configdirs and $target_configdirs.
55ffb5ed
NN
8892# If we have the source for $noconfigdirs entries, add them to $notsupp.
8893
8894notsupp=""
8895for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 8896 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
8897 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8898 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
8899 if test -r $srcdir/$dirname/configure ; then
8900 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8901 true
8902 else
8903 notsupp="$notsupp $dir"
8904 fi
8905 fi
8906 fi
ee6a22df
L
8907 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8908 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
8909 if test -r $srcdir/$dirname/configure ; then
8910 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8911 true
8912 else
8913 notsupp="$notsupp $dir"
8914 fi
8915 fi
8916 fi
55ffb5ed
NN
8917 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8918 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
8919 if test -r $srcdir/$dirname/configure ; then
8920 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8921 true
8922 else
8923 notsupp="$notsupp $dir"
8924 fi
8925 fi
8926 fi
8927done
8928
55ffb5ed
NN
8929# Quietly strip out all directories which aren't configurable in this tree.
8930# This relies on all configurable subdirectories being autoconfiscated, which
8931# is now the case.
23f6b2f9
PB
8932build_configdirs_all="$build_configdirs"
8933build_configdirs=
8934for i in ${build_configdirs_all} ; do
1c710c3c 8935 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
8936 if test -f ${srcdir}/$j/configure ; then
8937 build_configdirs="${build_configdirs} $i"
8938 fi
8939done
8940
55ffb5ed
NN
8941configdirs_all="$configdirs"
8942configdirs=
8943for i in ${configdirs_all} ; do
8944 if test -f ${srcdir}/$i/configure ; then
8945 configdirs="${configdirs} $i"
8946 fi
8947done
23f6b2f9 8948
55ffb5ed
NN
8949target_configdirs_all="$target_configdirs"
8950target_configdirs=
8951for i in ${target_configdirs_all} ; do
1c710c3c 8952 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
8953 if test -f ${srcdir}/$j/configure ; then
8954 target_configdirs="${target_configdirs} $i"
8955 fi
8956done
8957
45b3824d
TS
8958# libiberty-linker-plugin is special: it doesn't have its own source directory,
8959# so we have to add it after the preceding checks.
8960if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
8961then
8962 case " $configdirs " in
8963 *" libiberty "*)
8964 # If we can build libiberty, we can also build libiberty-linker-plugin.
8965 configdirs="$configdirs libiberty-linker-plugin"
8966 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
8967 --with-libiberty=../libiberty-linker-plugin";;
8968 *)
22e05272 8969 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
8970 esac
8971fi
8972
fca38047
TS
8973# Sometimes we have special requirements for the host libiberty.
8974extra_host_libiberty_configure_flags=
1c01ebf6 8975extra_host_zlib_configure_flags=
fca38047
TS
8976case " $configdirs " in
8977 *" lto-plugin "* | *" libcc1 "*)
8978 # When these are to be built as shared libraries, the same applies to
8979 # libiberty.
8980 extra_host_libiberty_configure_flags=--enable-shared
8981 ;;
1c01ebf6
L
8982 *" bfd "*)
8983 # When bfd is to be built as a shared library, the same applies to
8984 # zlib.
8985 if test "$enable_shared" = "yes"; then
8986 extra_host_zlib_configure_flags=--enable-host-shared
8987 fi
8988 ;;
fca38047
TS
8989esac
8990
8991
1c01ebf6 8992
55ffb5ed
NN
8993# Produce a warning message for the subdirs we can't configure.
8994# This isn't especially interesting in the Cygnus tree, but in the individual
8995# FSF releases, it's important to let people know when their machine isn't
8996# supported by the one or two programs in a package.
8997
8998if test -n "${notsupp}" && test -z "${norecursion}" ; then
8999 # If $appdirs is non-empty, at least one of those directories must still
9000 # be configured, or we error out. (E.g., if the gas release supports a
9001 # specified target in some subdirs but not the gas subdir, we shouldn't
9002 # pretend that all is well.)
9003 if test -n "$appdirs" ; then
9004 for dir in $appdirs ; do
9005 if test -r $dir/Makefile.in ; then
9006 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9007 appdirs=""
9008 break
9009 fi
23f6b2f9 9010 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
9011 appdirs=""
9012 break
9013 fi
9014 fi
9015 done
9016 if test -n "$appdirs" ; then
9017 echo "*** This configuration is not supported by this package." 1>&2
9018 exit 1
9019 fi
9020 fi
9021 # Okay, some application will build, or we don't care to check. Still
9022 # notify of subdirs not getting built.
9023 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9024 echo " ${notsupp}" 1>&2
9025 echo " (Any other directories should still work fine.)" 1>&2
9026fi
9027
9028case "$host" in
9029 *msdosdjgpp*)
9030 enable_gdbtk=no ;;
9031esac
9032
c3a86da9
DJ
9033# To find our prefix, in gcc_cv_tool_prefix.
9034
9035# The user is always right.
9036if test "${PATH_SEPARATOR+set}" != set; then
9037 echo "#! /bin/sh" >conf$$.sh
9038 echo "exit 0" >>conf$$.sh
9039 chmod +x conf$$.sh
9040 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9041 PATH_SEPARATOR=';'
9042 else
9043 PATH_SEPARATOR=:
9044 fi
9045 rm -f conf$$.sh
9046fi
9047
9048
3c36aa6b
JJ
9049 get_gcc_base_ver="cat"
9050
9051# Check whether --with-gcc-major-version-only was given.
9052if test "${with_gcc_major_version_only+set}" = set; then :
9053 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 9054 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
9055 fi
9056
9057fi
9058
9059
9060
9061
9062
c3a86da9
DJ
9063
9064if test "x$exec_prefix" = xNONE; then
9065 if test "x$prefix" = xNONE; then
9066 gcc_cv_tool_prefix=$ac_default_prefix
9067 else
9068 gcc_cv_tool_prefix=$prefix
9069 fi
9070else
9071 gcc_cv_tool_prefix=$exec_prefix
9072fi
9073
9074# If there is no compiler in the tree, use the PATH only. In any
9075# case, if there is no compiler in the tree nobody should use
9076# AS_FOR_TARGET and LD_FOR_TARGET.
9077if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
9078 if test x$with_gcc_major_version_only = xyes ; then
9079 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9080 else
9081 gcc_version=`cat $srcdir/gcc/BASE-VER`
9082 fi
c3a86da9
DJ
9083 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9084 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9085 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9086 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9087 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9088 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9089else
9090 gcc_cv_tool_dirs=
9091fi
9092
9093if test x$build = x$target && test -n "$md_exec_prefix"; then
9094 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9095fi
9096
9097
9098
55ffb5ed
NN
9099copy_dirs=
9100
1c710c3c 9101
5213506e
RW
9102# Check whether --with-build-sysroot was given.
9103if test "${with_build_sysroot+set}" = set; then :
9104 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
9105 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9106 fi
9107else
9108 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 9109fi
526635cb
MM
9110
9111
c8aea42c 9112
5213506e
RW
9113
9114# Check whether --with-debug-prefix-map was given.
9115if test "${with_debug_prefix_map+set}" = set; then :
9116 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
9117 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9118 for debug_map in $withval; do
9119 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9120 done
9121 fi
9122else
9123 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
9124fi
9125
c8aea42c
PB
9126
9127
1c8bd6a3
PB
9128# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9129# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9130# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9131# We want to ensure that TARGET libraries (which we know are built with
9132# gcc) are built with "-O2 -g", so include those options when setting
9133# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9134if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9135 if test "x${is_cross_compiler}" = xyes; then
9136 CFLAGS_FOR_TARGET="-g -O2"
9137 else
9138 CFLAGS_FOR_TARGET=$CFLAGS
9139 case " $CFLAGS " in
9140 *" -O2 "*) ;;
9141 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9142 esac
9143 case " $CFLAGS " in
9144 *" -g "* | *" -g3 "*) ;;
9145 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9146 esac
9147 fi
1c8bd6a3
PB
9148fi
9149
9150
9151if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9152 if test "x${is_cross_compiler}" = xyes; then
9153 CXXFLAGS_FOR_TARGET="-g -O2"
9154 else
9155 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9156 case " $CXXFLAGS " in
9157 *" -O2 "*) ;;
9158 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9159 esac
9160 case " $CXXFLAGS " in
9161 *" -g "* | *" -g3 "*) ;;
9162 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9163 esac
9164 fi
1c8bd6a3
PB
9165fi
9166
9167
6f57bdf6
DK
9168
9169
55ffb5ed
NN
9170# Handle --with-headers=XXX. If the value is not "yes", the contents of
9171# the named directory are copied to $(tooldir)/sys-include.
9172if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9173 if test x${is_cross_compiler} = xno ; then
9174 echo 1>&2 '***' --with-headers is only supported when cross compiling
9175 exit 1
9176 fi
9177 if test x"${with_headers}" != xyes ; then
c3a86da9 9178 x=${gcc_cv_tool_prefix}
1c710c3c 9179 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
9180 fi
9181fi
9182
9183# Handle --with-libs=XXX. If the value is not "yes", the contents of
9184# the name directories are copied to $(tooldir)/lib. Multiple directories
9185# are permitted.
9186if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9187 if test x${is_cross_compiler} = xno ; then
9188 echo 1>&2 '***' --with-libs is only supported when cross compiling
9189 exit 1
9190 fi
9191 if test x"${with_libs}" != xyes ; then
9192 # Copy the libraries in reverse order, so that files in the first named
9193 # library override files in subsequent libraries.
c3a86da9 9194 x=${gcc_cv_tool_prefix}
55ffb5ed 9195 for l in ${with_libs}; do
1c710c3c 9196 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
9197 done
9198 fi
9199fi
9200
d7f09764 9201# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
9202#
9203# This is done by determining whether or not the appropriate directory
9204# is available, and by checking whether or not specific configurations
9205# have requested that this magic not happen.
1c710c3c
DJ
9206#
9207# The command line options always override the explicit settings in
6b1786aa 9208# configure.ac, and the settings in configure.ac override this magic.
e8b05380 9209#
1c710c3c 9210# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 9211# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
9212# --without-gnu-ld options for the configure script. Similarly, if
9213# the default is to use the included zlib and you don't want to do that,
9214# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
9215
9216if test x${use_gnu_as} = x &&
9217 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9218 with_gnu_as=yes
9219 extra_host_args="$extra_host_args --with-gnu-as"
9220fi
9221
9222if test x${use_gnu_ld} = x &&
5afab7ad 9223 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
9224 with_gnu_ld=yes
9225 extra_host_args="$extra_host_args --with-gnu-ld"
9226fi
9227
d7f09764
DN
9228if test x${use_included_zlib} = x &&
9229 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9230 :
9231else
9232 with_system_zlib=yes
9233 extra_host_args="$extra_host_args --with-system-zlib"
9234fi
9235
e8b05380
PB
9236# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9237# can detect this case.
9238
9239if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9240 with_newlib=yes
9241 extra_host_args="$extra_host_args --with-newlib"
9242fi
9243
55ffb5ed
NN
9244# Handle ${copy_dirs}
9245set fnord ${copy_dirs}
9246shift
9247while test $# != 0 ; do
9248 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9249 :
9250 else
9251 echo Copying $1 to $2
9252
9253 # Use the install script to create the directory and all required
9254 # parent directories.
9255 if test -d $2 ; then
9256 :
9257 else
9258 echo >config.temp
9259 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9260 fi
9261
9262 # Copy the directory, assuming we have tar.
9263 # FIXME: Should we use B in the second tar? Not all systems support it.
9264 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9265
9266 # It is the responsibility of the user to correctly adjust all
9267 # symlinks. If somebody can figure out how to handle them correctly
9268 # here, feel free to add the code.
9269
9270 echo $1 > $2/COPIED
9271 fi
9272 shift; shift
9273done
9274
e8b05380
PB
9275# Determine a target-dependent exec_prefix that the installed
9276# gcc will search in. Keep this list sorted by triplet, with
9277# the *-*-osname triplets last.
9278md_exec_prefix=
9279case "${target}" in
30b74385 9280 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
9281 md_exec_prefix=/dev/env/DJDIR/bin
9282 ;;
e8b05380 9283 *-*-hpux* | \
e8b05380 9284 *-*-nto-qnx* | \
6de66370 9285 *-*-solaris2*)
e8b05380
PB
9286 md_exec_prefix=/usr/ccs/bin
9287 ;;
9288esac
9289
671aa708
NN
9290extra_arflags_for_target=
9291extra_nmflags_for_target=
9292extra_ranlibflags_for_target=
9293target_makefile_frag=/dev/null
9294case "${target}" in
58e24147
AM
9295 spu-*-*)
9296 target_makefile_frag="config/mt-spu"
9297 ;;
d896cc4d 9298 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
9299 target_makefile_frag="config/mt-sde"
9300 ;;
1ec3b87b
RS
9301 mipsisa*-*-elfoabi*)
9302 target_makefile_frag="config/mt-mips-elfoabi"
9303 ;;
08d0963a
RS
9304 mips*-*-*linux* | mips*-*-gnu*)
9305 target_makefile_frag="config/mt-mips-gnu"
9306 ;;
707f1839
SL
9307 nios2-*-elf*)
9308 target_makefile_frag="config/mt-nios2-elf"
9309 ;;
76052545
EB
9310 *-*-linux-android*)
9311 target_makefile_frag="config/mt-android"
9312 ;;
416ac4d4 9313 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 9314 target_makefile_frag="config/mt-gnu"
671aa708
NN
9315 ;;
9316 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 9317 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
9318 # commands to handle both 32-bit and 64-bit objects. These flags are
9319 # harmless if we're using GNU nm or ar.
9320 extra_arflags_for_target=" -X32_64"
9321 extra_nmflags_for_target=" -B -X32_64"
9322 ;;
671aa708
NN
9323esac
9324
9325alphaieee_frag=/dev/null
9326case $target in
9327 alpha*-*-*)
9328 # This just makes sure to use the -mieee option to build target libs.
9329 # This should probably be set individually by each library.
9330 alphaieee_frag="config/mt-alphaieee"
9331 ;;
9332esac
9333
9334# If --enable-target-optspace always use -Os instead of -O2 to build
9335# the target libraries, similarly if it is not specified, use -Os
9336# on selected platforms.
9337ospace_frag=/dev/null
9338case "${enable_target_optspace}:${target}" in
9339 yes:*)
9340 ospace_frag="config/mt-ospace"
9341 ;;
9342 :d30v-*)
9343 ospace_frag="config/mt-d30v"
9344 ;;
d9063947 9345 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
9346 ospace_frag="config/mt-ospace"
9347 ;;
9348 no:* | :*)
9349 ;;
9350 *)
9351 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9352 ;;
9353esac
9354
671aa708
NN
9355# Some systems (e.g., one of the i386-aix systems the gas testers are
9356# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 9357tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
9358build_tooldir=${tooldir}
9359
671aa708
NN
9360# Create a .gdbinit file which runs the one in srcdir
9361# and tells GDB to look there for source files.
9362
9363if test -r ${srcdir}/.gdbinit ; then
9364 case ${srcdir} in
9365 .) ;;
9366 *) cat > ./.gdbinit <<EOF
9367# ${NO_EDIT}
9368dir ${srcdir}
9369dir .
9370source ${srcdir}/.gdbinit
9371EOF
9372 ;;
9373 esac
9374fi
9375
671aa708
NN
9376# Make sure that the compiler is able to generate an executable. If it
9377# can't, we are probably in trouble. We don't care whether we can run the
9378# executable--we might be using a cross compiler--we only care whether it
9379# can be created. At this point the main configure script has set CC.
9380we_are_ok=no
9381echo "int main () { return 0; }" > conftest.c
9382${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9383if test $? = 0 ; then
9384 if test -s conftest || test -s conftest.exe ; then
9385 we_are_ok=yes
9386 fi
1c710c3c 9387fi
671aa708
NN
9388case $we_are_ok in
9389 no)
9390 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9391 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9392 rm -f conftest*
9393 exit 1
9394 ;;
9395esac
9396rm -f conftest*
9397
d89f0ad6 9398# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
9399case "${host}" in
9400 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 9401 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 9402 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
9403 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9404esac
9405
d89f0ad6
AL
9406# On systems where the dynamic library environment variable is PATH,
9407# gcc/ will put dynamic libraries into a subdirectory to avoid adding
9408# built executables to PATH.
9409if test "$RPATH_ENVVAR" = PATH; then
9410 GCC_SHLIB_SUBDIR=/shlib
9411else
9412 GCC_SHLIB_SUBDIR=
9413fi
9414
beeda1d9
JJ
9415# Adjust the toplevel makefile according to whether bootstrap was selected.
9416case $enable_bootstrap in
9417 yes)
9418 bootstrap_suffix=bootstrap
9419 BUILD_CONFIG=bootstrap-debug
9420 ;;
9421 no)
9422 bootstrap_suffix=no-bootstrap
9423 BUILD_CONFIG=
9424 ;;
9425esac
9426
9427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9428$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9429
9430
9431# Check whether --with-build-config was given.
9432if test "${with_build_config+set}" = set; then :
9433 withval=$with_build_config; case $with_build_config in
9434 yes) with_build_config= ;;
9435 no) with_build_config= BUILD_CONFIG= ;;
9436 esac
9437fi
9438
9439
9440if test "x${with_build_config}" != x; then
9441 BUILD_CONFIG=$with_build_config
9442else
9443 case $BUILD_CONFIG in
9444 bootstrap-debug)
9445 if echo "int f (void) { return 0; }" > conftest.c &&
9446 ${CC} -c conftest.c &&
9447 mv conftest.o conftest.o.g0 &&
9448 ${CC} -c -g conftest.c &&
9449 mv conftest.o conftest.o.g &&
9450 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9451 :
9452 else
9453 BUILD_CONFIG=
9454 fi
9455 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9456 ;;
9457 esac
9458fi
9459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9460$as_echo "$BUILD_CONFIG" >&6; }
9461
9462
9463# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9465$as_echo_n "checking for --enable-vtable-verify... " >&6; }
9466# Check whether --enable-vtable-verify was given.
9467if test "${enable_vtable_verify+set}" = set; then :
9468 enableval=$enable_vtable_verify; case "$enableval" in
9469 yes) enable_vtable_verify=yes ;;
9470 no) enable_vtable_verify=no ;;
9471 *) enable_vtable_verify=no;;
9472 esac
9473else
9474 enable_vtable_verify=no
9475fi
9476
9477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9478$as_echo "$enable_vtable_verify" >&6; }
9479
671aa708
NN
9480# Record target_configdirs and the configure arguments for target and
9481# build configuration in Makefile.
9482target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 9483build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 9484bootstrap_fixincludes=no
671aa708 9485
ad1e5170
JR
9486# If we are building libgomp, bootstrap it.
9487if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9488 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9489fi
9490
beeda1d9
JJ
9491# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9492# or bootstrap-ubsan, bootstrap it.
9493if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9494 case "$BUILD_CONFIG" in
170e618e 9495 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
beeda1d9 9496 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 9497 bootstrap_fixincludes=yes
beeda1d9
JJ
9498 ;;
9499 esac
ac8701fe
L
9500fi
9501
beeda1d9
JJ
9502# If we are building libvtv and --enable-vtable-verify, bootstrap it.
9503if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9504 test "$enable_vtable_verify" != no; then
2077db1b
CT
9505 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9506fi
9507
671aa708
NN
9508# Determine whether gdb needs tk/tcl or not.
9509# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9510# and in that case we want gdb to be built without tk. Ugh!
9511# In fact I believe gdb is the *only* package directly dependent on tk,
9512# so we should be able to put the 'maybe's in unconditionally and
9513# leave out the maybe dependencies when enable_gdbtk is false. I'm not
9514# 100% sure that that's safe though.
e914a571 9515
b4f96efe 9516gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
9517case "$enable_gdbtk" in
9518 no)
9519 GDB_TK="" ;;
e914a571
AC
9520 yes)
9521 GDB_TK="${gdb_tk}" ;;
671aa708 9522 *)
e914a571
AC
9523 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9524 # distro. Eventually someone will fix this and move Insight, nee
9525 # gdbtk to a separate directory.
9526 if test -d ${srcdir}/gdb/gdbtk ; then
9527 GDB_TK="${gdb_tk}"
9528 else
9529 GDB_TK=""
9530 fi
9531 ;;
671aa708 9532esac
ef9db8d5
DJ
9533CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9534INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 9535
f9d09df0
TT
9536# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9537# else does, only include them if one of these is built. The Makefile
9538# provides the ordering, so it's enough here to add to the list.
9539case " ${configdirs} " in
9540 *\ gdb\ *)
9541 configdirs="${configdirs} gnulib gdbsupport"
9542 ;;
9543 *\ gdbserver\ *)
9544 configdirs="${configdirs} gnulib gdbsupport"
9545 ;;
f14c9bd4
MF
9546 *\ sim\ *)
9547 configdirs="${configdirs} gnulib"
9548 ;;
f9d09df0 9549esac
98e5be21 9550
60975492 9551# Strip out unwanted targets.
8b87bb96
NN
9552
9553# While at that, we remove Makefiles if we were started for recursive
9554# configuration, so that the top-level Makefile reconfigures them,
9555# like we used to do when configure itself was recursive.
8b87bb96 9556
3e54529c
RW
9557# Loop over modules. We used to use the "$extrasub" feature from Autoconf
9558# but now we're fixing up the Makefile ourselves with the additional
9559# commands passed to AC_CONFIG_FILES. Use separate variables
9560# extrasub-{build,host,target} not because there is any reason to split
9561# the substitutions up that way, but only to remain below the limit of
9562# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
9563
9564# Do not nest @if/@endif or @unless/@endunless pairs, because
9565# configure will not warn you at all.
8b87bb96 9566
79cd2b23
RW
9567case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9568 yes:yes:*\ gold\ *:*,c++,*) ;;
9569 yes:yes:*\ gold\ *:*)
22e05272 9570 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
9571 ;;
9572esac
9573
3e54529c 9574extrasub_build=
23f6b2f9 9575for module in ${build_configdirs} ; do
5607edfd
PB
9576 if test -z "${no_recursion}" \
9577 && test -f ${build_subdir}/${module}/Makefile; then
9578 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9579 rm -f ${build_subdir}/${module}/Makefile
9580 fi
3e54529c 9581 extrasub_build="$extrasub_build
5607edfd
PB
9582/^@if build-$module\$/d
9583/^@endif build-$module\$/d
da34ca3f 9584/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 9585/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
9586/^@endif build-$module-$bootstrap_suffix\$/d
9587/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 9588done
3e54529c 9589extrasub_host=
5607edfd 9590for module in ${configdirs} ; do
a6fbc1e2 9591 if test -z "${no_recursion}"; then
f063a9ed 9592 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
9593 if test -f ${file}; then
9594 echo 1>&2 "*** removing ${file} to force reconfigure"
9595 rm -f ${file}
9596 fi
9597 done
5607edfd 9598 fi
9e1c8fc1
JJ
9599 case ${module},${bootstrap_fixincludes} in
9600 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9601 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9602 esac
3e54529c 9603 extrasub_host="$extrasub_host
5607edfd
PB
9604/^@if $module\$/d
9605/^@endif $module\$/d
da34ca3f 9606/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 9607/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
9608/^@endif $module-$host_bootstrap_suffix\$/d
9609/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 9610done
3e54529c 9611extrasub_target=
5607edfd
PB
9612for module in ${target_configdirs} ; do
9613 if test -z "${no_recursion}" \
9614 && test -f ${target_subdir}/${module}/Makefile; then
9615 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9616 rm -f ${target_subdir}/${module}/Makefile
9617 fi
00020c16
ILT
9618
9619 # We only bootstrap target libraries listed in bootstrap_target_libs.
9620 case $bootstrap_target_libs in
9621 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9622 *) target_bootstrap_suffix=no-bootstrap ;;
9623 esac
9624
3e54529c 9625 extrasub_target="$extrasub_target
5607edfd
PB
9626/^@if target-$module\$/d
9627/^@endif target-$module\$/d
da34ca3f 9628/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 9629/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
9630/^@endif target-$module-$target_bootstrap_suffix\$/d
9631/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
9632done
9633
3e54529c
RW
9634# Do the final fixup along with target modules.
9635extrasub_target="$extrasub_target
da34ca3f
AO
9636/^@if /,/^@endif /d
9637/^@unless /d
9638/^@endunless /d"
671aa708
NN
9639
9640# Create the serialization dependencies. This uses a temporary file.
9641
5213506e
RW
9642# Check whether --enable-serial-configure was given.
9643if test "${enable_serial_configure+set}" = set; then :
9644 enableval=$enable_serial_configure;
9645fi
ade82b16
AO
9646
9647
bf1d3e81
NN
9648case ${enable_serial_configure} in
9649 yes)
9650 enable_serial_build_configure=yes
9651 enable_serial_host_configure=yes
9652 enable_serial_target_configure=yes
9653 ;;
9654esac
9655
671aa708
NN
9656# These force 'configure's to be done one at a time, to avoid problems
9657# with contention over a shared config.cache.
9658rm -f serdep.tmp
ade82b16 9659echo '# serdep.tmp' > serdep.tmp
671aa708 9660olditem=
bf1d3e81 9661test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
9662for item in ${build_configdirs} ; do
9663 case ${olditem} in
9664 "") ;;
ade82b16 9665 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
9666 esac
9667 olditem=${item}
9668done
9669olditem=
bf1d3e81 9670test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
9671for item in ${configdirs} ; do
9672 case ${olditem} in
9673 "") ;;
ade82b16 9674 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
9675 esac
9676 olditem=${item}
9677done
9678olditem=
bf1d3e81 9679test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
9680for item in ${target_configdirs} ; do
9681 case ${olditem} in
9682 "") ;;
ade82b16 9683 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
9684 esac
9685 olditem=${item}
9686done
9687serialization_dependencies=serdep.tmp
9688
9689
ade82b16 9690# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 9691# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
9692# might not want to pass down to subconfigures. The exception being
9693# --cache-file=/dev/null, which is used to turn off the use of cache
9694# files altogether, and which should be passed on to subconfigures.
9695# Also strip program-prefix, program-suffix, and program-transform-name,
9696# so that we can pass down a consistent program-transform-name.
1c710c3c 9697baseargs=
29a63921 9698tbaseargs=
1c710c3c
DJ
9699keep_next=no
9700skip_next=no
9701eval "set -- $ac_configure_args"
44bfc3ac
DJ
9702for ac_arg
9703do
1c710c3c
DJ
9704 if test X"$skip_next" = X"yes"; then
9705 skip_next=no
9706 continue
9707 fi
9708 if test X"$keep_next" = X"yes"; then
9709 case $ac_arg in
9710 *\'*)
9711 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9712 esac
9713 baseargs="$baseargs '$ac_arg'"
29a63921 9714 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
9715 keep_next=no
9716 continue
9717 fi
9718
9719 # Handle separated arguments. Based on the logic generated by
9720 # autoconf 2.59.
9721 case $ac_arg in
9722 *=* | --config-cache | -C | -disable-* | --disable-* \
9723 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9724 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9725 | -with-* | --with-* | -without-* | --without-* | --x)
9726 separate_arg=no
9727 ;;
9728 -*)
9729 separate_arg=yes
9730 ;;
9731 *)
9732 separate_arg=no
9733 ;;
9734 esac
9735
29a63921
AO
9736 skip_targ=no
9737 case $ac_arg in
9738
9739 --with-* | --without-*)
9740 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9741
9742 case $libopt in
9743 *[-_]include)
9744 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9745 ;;
9746 *[-_]lib)
9747 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9748 ;;
9749 *)
9750 lib=$libopt
9751 ;;
9752 esac
9753
9754
9755 case $lib in
4a9bb2aa 9756 mpc | mpfr | gmp | isl)
29a63921
AO
9757 # If we're processing --with-$lib, --with-$lib-include or
9758 # --with-$lib-lib, for one of the libs above, and target is
9759 # different from host, don't pass the current argument to any
9760 # target library's configure.
9761 if test x$is_cross_compiler = xyes; then
9762 skip_targ=yes
9763 fi
9764 ;;
9765 esac
9766 ;;
9767 esac
9768
1c710c3c 9769 case "$ac_arg" in
f1a036e4
NC
9770 --cache-file=/dev/null | \
9771 -cache-file=/dev/null )
9772 # Handled here to avoid the test to skip args below.
9773 baseargs="$baseargs '$ac_arg'"
29a63921 9774 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
9775 # Assert: $separate_arg should always be no.
9776 keep_next=$separate_arg
9777 ;;
1c710c3c
DJ
9778 --no*)
9779 continue
9780 ;;
9781 --c* | \
9782 --sr* | \
9783 --ho* | \
9784 --bu* | \
9785 --t* | \
9786 --program-* | \
9787 -cache_file* | \
9788 -srcdir* | \
9789 -host* | \
9790 -build* | \
9791 -target* | \
9792 -program-prefix* | \
9793 -program-suffix* | \
9794 -program-transform-name* )
9795 skip_next=$separate_arg
9796 continue
9797 ;;
9798 -*)
9799 # An option. Add it.
9800 case $ac_arg in
9801 *\'*)
9802 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9803 esac
9804 baseargs="$baseargs '$ac_arg'"
29a63921
AO
9805 if test X"$skip_targ" = Xno; then
9806 tbaseargs="$tbaseargs '$ac_arg'"
9807 fi
1c710c3c
DJ
9808 keep_next=$separate_arg
9809 ;;
9810 *)
9811 # Either a variable assignment, or a nonopt (triplet). Don't
9812 # pass it down; let the Makefile handle this.
9813 continue
9814 ;;
9815 esac
9816done
9817# Remove the initial space we just introduced and, as these will be
9818# expanded by make, quote '$'.
9819baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 9820
43bb47c2
DJ
9821# Add in --program-transform-name, after --program-prefix and
9822# --program-suffix have been applied to it. Autoconf has already
9823# doubled dollar signs and backslashes in program_transform_name; we want
9824# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 9825# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
9826# Also, because we want to override the logic in subdir configure scripts to
9827# choose program_transform_name, replace any s,x,x, with s,y,y,.
9828sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9829${program_transform_name}
9830EOF_SED
9831gcc_transform_name=`cat conftestsed.out`
9832rm -f conftestsed.out
9833baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 9834tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
9835if test "$silent" = yes; then
9836 baseargs="$baseargs --silent"
29a63921 9837 tbaseargs="$tbaseargs --silent"
d9acb717 9838fi
0115d4a3 9839baseargs="$baseargs --disable-option-checking"
29a63921 9840tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 9841
ffedf511
RW
9842# Record and document user additions to sub configure arguments.
9843
9844
9845
9846
671aa708
NN
9847# For the build-side libraries, we just need to pretend we're native,
9848# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
9849# desired. We can't even use the same cache file for all build-side
9850# libraries, as they're compiled differently; some with C, some with
9851# C++ or with different feature-enabling options.
9852build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
9853
9854# For host modules, accept cache file option, or specification as blank.
9855case "${cache_file}" in
9856"") # empty
9857 cache_file_option="" ;;
9858/* | [A-Za-z]:[\\/]* ) # absolute path
9859 cache_file_option="--cache-file=${cache_file}" ;;
9860*) # relative path
9861 cache_file_option="--cache-file=../${cache_file}" ;;
9862esac
9863
09438bde
NN
9864# Host dirs don't like to share a cache file either, horribly enough.
9865# This seems to be due to autoconf 2.5x stupidity.
ffedf511 9866host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 9867
29a63921 9868target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
9869
9870# Passing a --with-cross-host argument lets the target libraries know
9871# whether they are being built with a cross-compiler or being built
9872# native. However, it would be better to use other mechanisms to make the
9873# sorts of decisions they want to make on this basis. Please consider
9874# this option to be deprecated. FIXME.
9875if test x${is_cross_compiler} = xyes ; then
1c710c3c 9876 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
9877fi
9878
79e0604d
FXC
9879# Special user-friendly check for native x86_64-linux build, if
9880# multilib is not explicitly enabled.
9881case "$target:$have_compiler:$host:$target:$enable_multilib" in
9882 x86_64-*linux*:yes:$build:$build:)
e640447c 9883 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
9884 dev64=no
9885 echo "int main () { return 0; }" > conftest.c
9886 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9887 if test $? = 0 ; then
9888 if test -s conftest || test -s conftest.exe ; then
9889 dev64=yes
9890 fi
9891 fi
9892 rm -f conftest*
9893 if test x${dev64} != xyes ; then
22e05272 9894 as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
79e0604d
FXC
9895 fi
9896 ;;
9897esac
9898
dc683a3f
RW
9899# Default to --enable-multilib.
9900if test x${enable_multilib} = x ; then
671aa708 9901 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 9902fi
671aa708
NN
9903
9904# Pass --with-newlib if appropriate. Note that target_configdirs has
9905# changed from the earlier setting of with_newlib.
9906if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
9907 target_configargs="--with-newlib ${target_configargs}"
9908fi
9909
6b9eb62c
NN
9910# Different target subdirs use different values of certain variables
9911# (notably CXX). Worse, multilibs use *lots* of different values.
9912# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
9913# it doesn't automatically accept command-line overrides of them.
9914# This means it's not safe for target subdirs to share a cache file,
9915# which is disgusting, but there you have it. Hopefully this can be
9916# fixed in future. It's still worthwhile to use a cache file for each
9917# directory. I think.
9918
bebcd931
MS
9919# Pass the appropriate --build, --host, --target and --cache-file arguments.
9920# We need to pass --target, as newer autoconf's requires consistency
9921# for target_alias and gcc doesn't manage it consistently.
e69bf64b 9922target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 9923
671aa708
NN
9924FLAGS_FOR_TARGET=
9925case " $target_configdirs " in
9926 *" newlib "*)
9927 case " $target_configargs " in
9928 *" --with-newlib "*)
9929 case "$target" in
5d571eaa 9930 *-cygwin*)
443e6238 9931 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 9932 ;;
671aa708
NN
9933 esac
9934
9935 # If we're not building GCC, don't discard standard headers.
9936 if test -d ${srcdir}/gcc; then
9937 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
9938
9939 if test "${build}" != "${host}"; then
9940 # On Canadian crosses, CC_FOR_TARGET will have already been set
9941 # by `configure', so we won't have an opportunity to add -Bgcc/
9942 # to it. This is right: we don't want to search that directory
9943 # for binaries, but we want the header files in there, so add
9944 # them explicitly.
0463992b 9945 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
9946
9947 # Someone might think of using the pre-installed headers on
9948 # Canadian crosses, in case the installed compiler is not fully
9949 # compatible with the compiler being built. In this case, it
9950 # would be better to flag an error than risking having
9951 # incompatible object files being constructed. We can't
9952 # guarantee that an error will be flagged, but let's hope the
9953 # compiler will do it, when presented with incompatible header
9954 # files.
9955 fi
9956 fi
9957
9958 case "${target}-${is_cross_compiler}" in
f2a0e225 9959 i[3456789]86-*-linux*-no)
671aa708
NN
9960 # Here host == target, so we don't need to build gcc,
9961 # so we don't want to discard standard headers.
9962 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
9963 ;;
9964 *)
9965 # If we're building newlib, use its generic headers last, but search
9966 # for any libc-related directories first (so make it the last -B
9967 # switch).
9968 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
9969
9970 # If we're building libgloss, find the startup file, simulator library
9971 # and linker script.
9972 case " $target_configdirs " in
9973 *" libgloss "*)
9974 # Look for startup file, simulator library and maybe linker script.
9975 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
9976 # Look for libnosys.a in case the target needs it.
9977 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
9978 # Most targets have the linker script in the source directory.
9979 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
9980 ;;
9981 esac
671aa708
NN
9982 ;;
9983 esac
9984 ;;
9985 esac
9986 ;;
9987esac
5d571eaa 9988
b91f0a41 9989case "$target" in
5d571eaa
OS
9990 x86_64-*mingw* | *-w64-mingw*)
9991 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
9992 # however, use a symlink named 'mingw' in ${prefix} .
9993 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
9994 ;;
9995 *-mingw*)
9996 # MinGW can't be handled as Cygwin above since it does not use newlib.
9997 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'
9998 ;;
b91f0a41 9999esac
671aa708 10000
6691a79e
ME
10001# Allow the user to override the flags for
10002# our build compiler if desired.
f019adc1
MF
10003if test x"${build}" = x"${host}" ; then
10004 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
84401ce5 10005 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
f019adc1
MF
10006 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10007 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10008fi
6691a79e 10009
671aa708
NN
10010# On Canadian crosses, we'll be searching the right directories for
10011# the previously-installed cross compiler, so don't bother to add
10012# flags for directories within the install tree of the compiler
10013# being built; programs in there won't even run.
10014if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10015 # Search for pre-installed headers if nothing else fits.
9124bc53 10016 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
10017fi
10018
10019if test "x${use_gnu_ld}" = x &&
10020 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10021 # Arrange for us to find uninstalled linker scripts.
215c351a 10022 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
10023fi
10024
e88a2c09
DD
10025# Search for other target-specific linker scripts and such.
10026case "${target}" in
3e19841a
PB
10027 mep*)
10028 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10029 ;;
e88a2c09
DD
10030esac
10031
671aa708 10032# Makefile fragments.
7b61653a
PE
10033for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10034do
10035 eval fragval=\$$frag
10036 if test $fragval != /dev/null; then
10037 eval $frag=${srcdir}/$fragval
10038 fi
10039done
671aa708
NN
10040
10041
10042
10043
10044
10045# Miscellanea: directories, flags, etc.
10046
10047
10048
10049
10050
10051
10052
d89f0ad6 10053
23f6b2f9 10054# Build module lists & subconfigure args.
671aa708
NN
10055
10056
10057
2abefe3d
PB
10058# Host module lists & subconfigure args.
10059
10060
10061
aae29963 10062
2abefe3d
PB
10063# Target module lists & subconfigure args.
10064
10065
10066
10067# Build tools.
10068
10069
10070
0999159b
PB
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
b4c522fa 10084
3b5e8ee4 10085
2abefe3d
PB
10086# Generate default definitions for YACC, M4, LEX and other programs that run
10087# on the build machine. These are used if the Makefile can't locate these
10088# programs in objdir.
10089MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10090
10091for ac_prog in 'bison -y' byacc yacc
10092do
1c710c3c 10093 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10094set dummy $ac_prog; ac_word=$2
5213506e
RW
10095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10096$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10097if ${ac_cv_prog_YACC+:} false; then :
5213506e 10098 $as_echo_n "(cached) " >&6
2abefe3d
PB
10099else
10100 if test -n "$YACC"; then
10101 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10102else
1c710c3c
DJ
10103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104for as_dir in $PATH
10105do
10106 IFS=$as_save_IFS
10107 test -z "$as_dir" && as_dir=.
5213506e 10108 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10110 ac_cv_prog_YACC="$ac_prog"
5213506e 10111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10112 break 2
10113 fi
10114done
5213506e
RW
10115 done
10116IFS=$as_save_IFS
1c710c3c 10117
2abefe3d
PB
10118fi
10119fi
1c710c3c 10120YACC=$ac_cv_prog_YACC
2abefe3d 10121if test -n "$YACC"; then
5213506e
RW
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10123$as_echo "$YACC" >&6; }
2abefe3d 10124else
5213506e
RW
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126$as_echo "no" >&6; }
2abefe3d
PB
10127fi
10128
5213506e 10129
1c710c3c 10130 test -n "$YACC" && break
2abefe3d
PB
10131done
10132test -n "$YACC" || YACC="$MISSING bison -y"
10133
10134case " $build_configdirs " in
10135 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
10136esac
10137
10138for ac_prog in bison
10139do
1c710c3c 10140 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10141set dummy $ac_prog; ac_word=$2
5213506e
RW
10142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10143$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10144if ${ac_cv_prog_BISON+:} false; then :
5213506e 10145 $as_echo_n "(cached) " >&6
2abefe3d
PB
10146else
10147 if test -n "$BISON"; then
10148 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10149else
1c710c3c
DJ
10150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10151for as_dir in $PATH
10152do
10153 IFS=$as_save_IFS
10154 test -z "$as_dir" && as_dir=.
5213506e 10155 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10157 ac_cv_prog_BISON="$ac_prog"
5213506e 10158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10159 break 2
10160 fi
10161done
5213506e
RW
10162 done
10163IFS=$as_save_IFS
1c710c3c 10164
2abefe3d
PB
10165fi
10166fi
1c710c3c 10167BISON=$ac_cv_prog_BISON
2abefe3d 10168if test -n "$BISON"; then
5213506e
RW
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10170$as_echo "$BISON" >&6; }
2abefe3d 10171else
5213506e
RW
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10173$as_echo "no" >&6; }
2abefe3d
PB
10174fi
10175
5213506e 10176
1c710c3c 10177 test -n "$BISON" && break
2abefe3d
PB
10178done
10179test -n "$BISON" || BISON="$MISSING bison"
10180
10181case " $build_configdirs " in
10182 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10183esac
10184
10185for ac_prog in gm4 gnum4 m4
10186do
1c710c3c 10187 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10188set dummy $ac_prog; ac_word=$2
5213506e
RW
10189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10190$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10191if ${ac_cv_prog_M4+:} false; then :
5213506e 10192 $as_echo_n "(cached) " >&6
2abefe3d
PB
10193else
10194 if test -n "$M4"; then
10195 ac_cv_prog_M4="$M4" # Let the user override the test.
10196else
1c710c3c
DJ
10197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10198for as_dir in $PATH
10199do
10200 IFS=$as_save_IFS
10201 test -z "$as_dir" && as_dir=.
5213506e 10202 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10204 ac_cv_prog_M4="$ac_prog"
5213506e 10205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10206 break 2
10207 fi
10208done
5213506e
RW
10209 done
10210IFS=$as_save_IFS
1c710c3c 10211
2abefe3d
PB
10212fi
10213fi
1c710c3c 10214M4=$ac_cv_prog_M4
2abefe3d 10215if test -n "$M4"; then
5213506e
RW
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10217$as_echo "$M4" >&6; }
2abefe3d 10218else
5213506e
RW
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220$as_echo "no" >&6; }
2abefe3d
PB
10221fi
10222
5213506e 10223
1c710c3c 10224 test -n "$M4" && break
2abefe3d
PB
10225done
10226test -n "$M4" || M4="$MISSING m4"
10227
10228case " $build_configdirs " in
10229 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10230esac
10231
10232for ac_prog in flex lex
10233do
1c710c3c 10234 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10235set dummy $ac_prog; ac_word=$2
5213506e
RW
10236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10238if ${ac_cv_prog_LEX+:} false; then :
5213506e 10239 $as_echo_n "(cached) " >&6
2abefe3d
PB
10240else
10241 if test -n "$LEX"; then
10242 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10243else
1c710c3c
DJ
10244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245for as_dir in $PATH
10246do
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
5213506e 10249 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10251 ac_cv_prog_LEX="$ac_prog"
5213506e 10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10253 break 2
10254 fi
10255done
5213506e
RW
10256 done
10257IFS=$as_save_IFS
1c710c3c 10258
2abefe3d
PB
10259fi
10260fi
1c710c3c 10261LEX=$ac_cv_prog_LEX
2abefe3d 10262if test -n "$LEX"; then
5213506e
RW
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10264$as_echo "$LEX" >&6; }
2abefe3d 10265else
5213506e
RW
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267$as_echo "no" >&6; }
2abefe3d
PB
10268fi
10269
5213506e 10270
1c710c3c 10271 test -n "$LEX" && break
2abefe3d
PB
10272done
10273test -n "$LEX" || LEX="$MISSING flex"
10274
10275case " $build_configdirs " in
10276 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10277 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10278esac
10279
10280for ac_prog in flex
10281do
1c710c3c 10282 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10283set dummy $ac_prog; ac_word=$2
5213506e
RW
10284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10285$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10286if ${ac_cv_prog_FLEX+:} false; then :
5213506e 10287 $as_echo_n "(cached) " >&6
2abefe3d
PB
10288else
10289 if test -n "$FLEX"; then
10290 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10291else
1c710c3c
DJ
10292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10293for as_dir in $PATH
10294do
10295 IFS=$as_save_IFS
10296 test -z "$as_dir" && as_dir=.
5213506e 10297 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10299 ac_cv_prog_FLEX="$ac_prog"
5213506e 10300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10301 break 2
10302 fi
10303done
5213506e
RW
10304 done
10305IFS=$as_save_IFS
1c710c3c 10306
2abefe3d
PB
10307fi
10308fi
1c710c3c 10309FLEX=$ac_cv_prog_FLEX
2abefe3d 10310if test -n "$FLEX"; then
5213506e
RW
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10312$as_echo "$FLEX" >&6; }
2abefe3d 10313else
5213506e
RW
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10315$as_echo "no" >&6; }
2abefe3d
PB
10316fi
10317
5213506e 10318
1c710c3c 10319 test -n "$FLEX" && break
2abefe3d
PB
10320done
10321test -n "$FLEX" || FLEX="$MISSING flex"
10322
10323case " $build_configdirs " in
10324 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10325esac
10326
10327for ac_prog in makeinfo
10328do
1c710c3c 10329 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10330set dummy $ac_prog; ac_word=$2
5213506e
RW
10331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10332$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10333if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 10334 $as_echo_n "(cached) " >&6
2abefe3d
PB
10335else
10336 if test -n "$MAKEINFO"; then
10337 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10338else
1c710c3c
DJ
10339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10340for as_dir in $PATH
10341do
10342 IFS=$as_save_IFS
10343 test -z "$as_dir" && as_dir=.
5213506e 10344 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10346 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 10347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10348 break 2
10349 fi
10350done
5213506e
RW
10351 done
10352IFS=$as_save_IFS
1c710c3c 10353
2abefe3d
PB
10354fi
10355fi
1c710c3c 10356MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 10357if test -n "$MAKEINFO"; then
5213506e
RW
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10359$as_echo "$MAKEINFO" >&6; }
2abefe3d 10360else
5213506e
RW
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362$as_echo "no" >&6; }
2abefe3d
PB
10363fi
10364
5213506e 10365
1c710c3c 10366 test -n "$MAKEINFO" && break
2abefe3d
PB
10367done
10368test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10369
10370case " $build_configdirs " in
10371 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10372 *)
10373
d18ff35a 10374 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
10375 # higher, else we use the "missing" dummy.
10376 if ${MAKEINFO} --version \
d18ff35a 10377 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
10378 :
10379 else
10380 MAKEINFO="$MISSING makeinfo"
10381 fi
10382 ;;
10383
10384esac
671aa708 10385
2abefe3d 10386# FIXME: expect and dejagnu may become build tools?
671aa708 10387
2abefe3d
PB
10388for ac_prog in expect
10389do
1c710c3c 10390 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10391set dummy $ac_prog; ac_word=$2
5213506e
RW
10392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10393$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10394if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 10395 $as_echo_n "(cached) " >&6
2abefe3d
PB
10396else
10397 if test -n "$EXPECT"; then
10398 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10399else
1c710c3c
DJ
10400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10401for as_dir in $PATH
10402do
10403 IFS=$as_save_IFS
10404 test -z "$as_dir" && as_dir=.
5213506e 10405 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10407 ac_cv_prog_EXPECT="$ac_prog"
5213506e 10408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10409 break 2
10410 fi
10411done
5213506e
RW
10412 done
10413IFS=$as_save_IFS
1c710c3c 10414
2abefe3d
PB
10415fi
10416fi
1c710c3c 10417EXPECT=$ac_cv_prog_EXPECT
2abefe3d 10418if test -n "$EXPECT"; then
5213506e
RW
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10420$as_echo "$EXPECT" >&6; }
2abefe3d 10421else
5213506e
RW
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10423$as_echo "no" >&6; }
2abefe3d 10424fi
671aa708 10425
5213506e 10426
1c710c3c 10427 test -n "$EXPECT" && break
2abefe3d
PB
10428done
10429test -n "$EXPECT" || EXPECT="expect"
671aa708 10430
2abefe3d
PB
10431case " $configdirs " in
10432 *" expect "*)
10433 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10434 ;;
10435esac
671aa708 10436
2abefe3d
PB
10437for ac_prog in runtest
10438do
1c710c3c 10439 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10440set dummy $ac_prog; ac_word=$2
5213506e
RW
10441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10442$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10443if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 10444 $as_echo_n "(cached) " >&6
2abefe3d
PB
10445else
10446 if test -n "$RUNTEST"; then
10447 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 10448else
1c710c3c
DJ
10449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450for as_dir in $PATH
10451do
10452 IFS=$as_save_IFS
10453 test -z "$as_dir" && as_dir=.
5213506e 10454 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10456 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 10457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10458 break 2
10459 fi
10460done
5213506e
RW
10461 done
10462IFS=$as_save_IFS
1c710c3c 10463
2abefe3d
PB
10464fi
10465fi
1c710c3c 10466RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 10467if test -n "$RUNTEST"; then
5213506e
RW
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10469$as_echo "$RUNTEST" >&6; }
2abefe3d 10470else
5213506e
RW
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472$as_echo "no" >&6; }
2abefe3d 10473fi
671aa708 10474
5213506e 10475
1c710c3c 10476 test -n "$RUNTEST" && break
2abefe3d
PB
10477done
10478test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 10479
2abefe3d
PB
10480case " $configdirs " in
10481 *" dejagnu "*)
c394e891 10482 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
10483 ;;
10484esac
671aa708
NN
10485
10486
671aa708 10487# Host tools.
ca9f4b81
AO
10488ncn_tool_prefix=
10489test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10490ncn_target_tool_prefix=
10491test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10492
278a7a38
AO
10493
10494
10495if test -n "$AR"; then
10496 ac_cv_prog_AR=$AR
10497elif test -n "$ac_cv_prog_AR"; then
10498 AR=$ac_cv_prog_AR
10499fi
10500
10501if test -n "$ac_cv_prog_AR"; then
10502 for ncn_progname in ar; do
10503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10504set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10506$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10507if ${ac_cv_prog_AR+:} false; then :
5213506e 10508 $as_echo_n "(cached) " >&6
278a7a38
AO
10509else
10510 if test -n "$AR"; then
10511 ac_cv_prog_AR="$AR" # Let the user override the test.
10512else
10513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514for as_dir in $PATH
10515do
10516 IFS=$as_save_IFS
10517 test -z "$as_dir" && as_dir=.
5213506e 10518 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10520 ac_cv_prog_AR="${ncn_progname}"
5213506e 10521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10522 break 2
10523 fi
10524done
5213506e
RW
10525 done
10526IFS=$as_save_IFS
278a7a38
AO
10527
10528fi
10529fi
10530AR=$ac_cv_prog_AR
10531if test -n "$AR"; then
5213506e
RW
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10533$as_echo "$AR" >&6; }
278a7a38 10534else
5213506e
RW
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536$as_echo "no" >&6; }
278a7a38
AO
10537fi
10538
5213506e 10539
278a7a38
AO
10540 done
10541fi
10542
10543for ncn_progname in ar; do
2693c0b0
PB
10544 if test -n "$ncn_tool_prefix"; then
10545 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10546set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10548$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10549if ${ac_cv_prog_AR+:} false; then :
5213506e 10550 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10551else
10552 if test -n "$AR"; then
10553 ac_cv_prog_AR="$AR" # Let the user override the test.
10554else
1c710c3c
DJ
10555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10556for as_dir in $PATH
10557do
10558 IFS=$as_save_IFS
10559 test -z "$as_dir" && as_dir=.
5213506e 10560 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10562 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 10563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10564 break 2
10565 fi
10566done
5213506e
RW
10567 done
10568IFS=$as_save_IFS
1c710c3c 10569
ca9f4b81
AO
10570fi
10571fi
1c710c3c 10572AR=$ac_cv_prog_AR
ca9f4b81 10573if test -n "$AR"; then
5213506e
RW
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10575$as_echo "$AR" >&6; }
ca9f4b81 10576else
5213506e
RW
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578$as_echo "no" >&6; }
ca9f4b81
AO
10579fi
10580
5213506e 10581
2693c0b0
PB
10582 fi
10583 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10585set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10587$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10588if ${ac_cv_prog_AR+:} false; then :
5213506e 10589 $as_echo_n "(cached) " >&6
ca9f4b81 10590else
2693c0b0 10591 if test -n "$AR"; then
af71363e
AS
10592 ac_cv_prog_AR="$AR" # Let the user override the test.
10593else
1c710c3c
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=.
5213506e 10599 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10601 ac_cv_prog_AR="${ncn_progname}"
5213506e 10602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10603 break 2
10604 fi
10605done
5213506e
RW
10606 done
10607IFS=$as_save_IFS
1c710c3c 10608
ca9f4b81
AO
10609fi
10610fi
1c710c3c 10611AR=$ac_cv_prog_AR
2693c0b0 10612if test -n "$AR"; then
5213506e
RW
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10614$as_echo "$AR" >&6; }
ca9f4b81 10615else
5213506e
RW
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10617$as_echo "no" >&6; }
ca9f4b81 10618fi
1c710c3c 10619
5213506e 10620
2693c0b0
PB
10621 fi
10622 test -n "$ac_cv_prog_AR" && break
10623done
10624
10625if test -z "$ac_cv_prog_AR" ; then
10626 set dummy ar
10627 if test $build = $host ; then
10628 AR="$2"
ca9f4b81 10629 else
2693c0b0 10630 AR="${ncn_tool_prefix}$2"
ca9f4b81 10631 fi
ca9f4b81
AO
10632fi
10633
278a7a38
AO
10634
10635
10636if test -n "$AS"; then
10637 ac_cv_prog_AS=$AS
10638elif test -n "$ac_cv_prog_AS"; then
10639 AS=$ac_cv_prog_AS
10640fi
10641
10642if test -n "$ac_cv_prog_AS"; then
10643 for ncn_progname in as; do
10644 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10645set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10647$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10648if ${ac_cv_prog_AS+:} false; then :
5213506e 10649 $as_echo_n "(cached) " >&6
278a7a38
AO
10650else
10651 if test -n "$AS"; then
10652 ac_cv_prog_AS="$AS" # Let the user override the test.
10653else
10654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10655for as_dir in $PATH
10656do
10657 IFS=$as_save_IFS
10658 test -z "$as_dir" && as_dir=.
5213506e 10659 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10661 ac_cv_prog_AS="${ncn_progname}"
5213506e 10662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10663 break 2
10664 fi
10665done
5213506e
RW
10666 done
10667IFS=$as_save_IFS
278a7a38
AO
10668
10669fi
10670fi
10671AS=$ac_cv_prog_AS
10672if test -n "$AS"; then
5213506e
RW
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10674$as_echo "$AS" >&6; }
278a7a38 10675else
5213506e
RW
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10677$as_echo "no" >&6; }
278a7a38
AO
10678fi
10679
5213506e 10680
278a7a38
AO
10681 done
10682fi
10683
10684for ncn_progname in as; do
2693c0b0
PB
10685 if test -n "$ncn_tool_prefix"; then
10686 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10687set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10689$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10690if ${ac_cv_prog_AS+:} false; then :
5213506e 10691 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10692else
10693 if test -n "$AS"; then
10694 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 10695else
1c710c3c
DJ
10696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10697for as_dir in $PATH
10698do
10699 IFS=$as_save_IFS
10700 test -z "$as_dir" && as_dir=.
5213506e 10701 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10703 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 10704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10705 break 2
10706 fi
10707done
5213506e
RW
10708 done
10709IFS=$as_save_IFS
1c710c3c 10710
ca9f4b81
AO
10711fi
10712fi
1c710c3c 10713AS=$ac_cv_prog_AS
ca9f4b81 10714if test -n "$AS"; then
5213506e
RW
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10716$as_echo "$AS" >&6; }
ca9f4b81 10717else
5213506e
RW
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719$as_echo "no" >&6; }
ca9f4b81
AO
10720fi
10721
5213506e 10722
2693c0b0
PB
10723 fi
10724 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10726set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10729if ${ac_cv_prog_AS+:} false; then :
5213506e 10730 $as_echo_n "(cached) " >&6
ca9f4b81 10731else
2693c0b0
PB
10732 if test -n "$AS"; then
10733 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 10734else
1c710c3c
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=.
5213506e 10740 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10742 ac_cv_prog_AS="${ncn_progname}"
5213506e 10743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10744 break 2
10745 fi
10746done
5213506e
RW
10747 done
10748IFS=$as_save_IFS
1c710c3c 10749
ca9f4b81
AO
10750fi
10751fi
1c710c3c 10752AS=$ac_cv_prog_AS
2693c0b0 10753if test -n "$AS"; then
5213506e
RW
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10755$as_echo "$AS" >&6; }
ca9f4b81 10756else
5213506e
RW
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758$as_echo "no" >&6; }
ca9f4b81 10759fi
1c710c3c 10760
5213506e 10761
2693c0b0
PB
10762 fi
10763 test -n "$ac_cv_prog_AS" && break
10764done
10765
10766if test -z "$ac_cv_prog_AS" ; then
10767 set dummy as
10768 if test $build = $host ; then
10769 AS="$2"
ca9f4b81 10770 else
2693c0b0 10771 AS="${ncn_tool_prefix}$2"
ca9f4b81 10772 fi
ca9f4b81
AO
10773fi
10774
278a7a38
AO
10775
10776
10777if test -n "$DLLTOOL"; then
10778 ac_cv_prog_DLLTOOL=$DLLTOOL
10779elif test -n "$ac_cv_prog_DLLTOOL"; then
10780 DLLTOOL=$ac_cv_prog_DLLTOOL
10781fi
10782
10783if test -n "$ac_cv_prog_DLLTOOL"; then
10784 for ncn_progname in dlltool; do
10785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10786set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10788$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10789if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 10790 $as_echo_n "(cached) " >&6
278a7a38
AO
10791else
10792 if test -n "$DLLTOOL"; then
10793 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10794else
10795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796for as_dir in $PATH
10797do
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
5213506e 10800 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10802 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 10803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10804 break 2
10805 fi
10806done
5213506e
RW
10807 done
10808IFS=$as_save_IFS
278a7a38
AO
10809
10810fi
10811fi
10812DLLTOOL=$ac_cv_prog_DLLTOOL
10813if test -n "$DLLTOOL"; then
5213506e
RW
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10815$as_echo "$DLLTOOL" >&6; }
278a7a38 10816else
5213506e
RW
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818$as_echo "no" >&6; }
278a7a38
AO
10819fi
10820
5213506e 10821
278a7a38
AO
10822 done
10823fi
10824
10825for ncn_progname in dlltool; do
2693c0b0
PB
10826 if test -n "$ncn_tool_prefix"; then
10827 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10828set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10830$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10831if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 10832 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10833else
10834 if test -n "$DLLTOOL"; then
10835 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10836else
1c710c3c
DJ
10837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838for as_dir in $PATH
10839do
10840 IFS=$as_save_IFS
10841 test -z "$as_dir" && as_dir=.
5213506e 10842 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10844 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 10845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10846 break 2
10847 fi
10848done
5213506e
RW
10849 done
10850IFS=$as_save_IFS
1c710c3c 10851
ca9f4b81
AO
10852fi
10853fi
1c710c3c 10854DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 10855if test -n "$DLLTOOL"; then
5213506e
RW
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10857$as_echo "$DLLTOOL" >&6; }
ca9f4b81 10858else
5213506e
RW
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860$as_echo "no" >&6; }
ca9f4b81
AO
10861fi
10862
5213506e 10863
2693c0b0
PB
10864 fi
10865 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
10866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10867set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10869$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10870if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 10871 $as_echo_n "(cached) " >&6
ca9f4b81 10872else
2693c0b0
PB
10873 if test -n "$DLLTOOL"; then
10874 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 10875else
1c710c3c
DJ
10876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877for as_dir in $PATH
10878do
10879 IFS=$as_save_IFS
10880 test -z "$as_dir" && as_dir=.
5213506e 10881 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10883 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 10884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10885 break 2
10886 fi
10887done
5213506e
RW
10888 done
10889IFS=$as_save_IFS
1c710c3c 10890
ca9f4b81
AO
10891fi
10892fi
1c710c3c 10893DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 10894if test -n "$DLLTOOL"; then
5213506e
RW
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10896$as_echo "$DLLTOOL" >&6; }
ca9f4b81 10897else
5213506e
RW
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899$as_echo "no" >&6; }
ca9f4b81 10900fi
1c710c3c 10901
5213506e 10902
2693c0b0
PB
10903 fi
10904 test -n "$ac_cv_prog_DLLTOOL" && break
10905done
10906
10907if test -z "$ac_cv_prog_DLLTOOL" ; then
10908 set dummy dlltool
10909 if test $build = $host ; then
10910 DLLTOOL="$2"
ca9f4b81 10911 else
2693c0b0 10912 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 10913 fi
ca9f4b81
AO
10914fi
10915
278a7a38
AO
10916
10917
3b5e8ee4
IS
10918if test -n "$DSYMUTIL"; then
10919 ac_cv_prog_DSYMUTIL=$DSYMUTIL
10920elif test -n "$ac_cv_prog_DSYMUTIL"; then
10921 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10922fi
10923
10924if test -n "$ac_cv_prog_DSYMUTIL"; then
10925 for ncn_progname in dsymutil; do
10926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10927set dummy ${ncn_progname}; ac_word=$2
10928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10929$as_echo_n "checking for $ac_word... " >&6; }
10930if ${ac_cv_prog_DSYMUTIL+:} false; then :
10931 $as_echo_n "(cached) " >&6
10932else
10933 if test -n "$DSYMUTIL"; then
10934 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10935else
10936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937for as_dir in $PATH
10938do
10939 IFS=$as_save_IFS
10940 test -z "$as_dir" && as_dir=.
10941 for ac_exec_ext in '' $ac_executable_extensions; do
10942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10943 ac_cv_prog_DSYMUTIL="${ncn_progname}"
10944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10945 break 2
10946 fi
10947done
10948 done
10949IFS=$as_save_IFS
10950
10951fi
10952fi
10953DSYMUTIL=$ac_cv_prog_DSYMUTIL
10954if test -n "$DSYMUTIL"; then
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10956$as_echo "$DSYMUTIL" >&6; }
10957else
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959$as_echo "no" >&6; }
10960fi
10961
10962
10963 done
10964fi
10965
10966for ncn_progname in dsymutil; do
10967 if test -n "$ncn_tool_prefix"; then
10968 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10969set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10971$as_echo_n "checking for $ac_word... " >&6; }
10972if ${ac_cv_prog_DSYMUTIL+:} false; then :
10973 $as_echo_n "(cached) " >&6
10974else
10975 if test -n "$DSYMUTIL"; then
10976 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10977else
10978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10979for as_dir in $PATH
10980do
10981 IFS=$as_save_IFS
10982 test -z "$as_dir" && as_dir=.
10983 for ac_exec_ext in '' $ac_executable_extensions; do
10984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10985 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
10986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10987 break 2
10988 fi
10989done
10990 done
10991IFS=$as_save_IFS
10992
10993fi
10994fi
10995DSYMUTIL=$ac_cv_prog_DSYMUTIL
10996if test -n "$DSYMUTIL"; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10998$as_echo "$DSYMUTIL" >&6; }
10999else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001$as_echo "no" >&6; }
11002fi
11003
11004
11005 fi
11006 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11008set dummy ${ncn_progname}; ac_word=$2
11009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11010$as_echo_n "checking for $ac_word... " >&6; }
11011if ${ac_cv_prog_DSYMUTIL+:} false; then :
11012 $as_echo_n "(cached) " >&6
11013else
11014 if test -n "$DSYMUTIL"; then
11015 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11016else
11017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018for as_dir in $PATH
11019do
11020 IFS=$as_save_IFS
11021 test -z "$as_dir" && as_dir=.
11022 for ac_exec_ext in '' $ac_executable_extensions; do
11023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11024 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11026 break 2
11027 fi
11028done
11029 done
11030IFS=$as_save_IFS
11031
11032fi
11033fi
11034DSYMUTIL=$ac_cv_prog_DSYMUTIL
11035if test -n "$DSYMUTIL"; then
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11037$as_echo "$DSYMUTIL" >&6; }
11038else
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11040$as_echo "no" >&6; }
11041fi
11042
11043
11044 fi
11045 test -n "$ac_cv_prog_DSYMUTIL" && break
11046done
11047
11048if test -z "$ac_cv_prog_DSYMUTIL" ; then
11049 set dummy dsymutil
11050 if test $build = $host ; then
11051 DSYMUTIL="$2"
11052 else
11053 DSYMUTIL="${ncn_tool_prefix}$2"
11054 fi
11055fi
11056
11057
11058
278a7a38
AO
11059if test -n "$LD"; then
11060 ac_cv_prog_LD=$LD
11061elif test -n "$ac_cv_prog_LD"; then
11062 LD=$ac_cv_prog_LD
11063fi
11064
11065if test -n "$ac_cv_prog_LD"; then
11066 for ncn_progname in ld; do
11067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11068set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11070$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11071if ${ac_cv_prog_LD+:} false; then :
5213506e 11072 $as_echo_n "(cached) " >&6
278a7a38
AO
11073else
11074 if test -n "$LD"; then
11075 ac_cv_prog_LD="$LD" # Let the user override the test.
11076else
11077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11078for as_dir in $PATH
11079do
11080 IFS=$as_save_IFS
11081 test -z "$as_dir" && as_dir=.
5213506e 11082 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11084 ac_cv_prog_LD="${ncn_progname}"
5213506e 11085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11086 break 2
11087 fi
11088done
5213506e
RW
11089 done
11090IFS=$as_save_IFS
278a7a38
AO
11091
11092fi
11093fi
11094LD=$ac_cv_prog_LD
11095if test -n "$LD"; then
5213506e
RW
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11097$as_echo "$LD" >&6; }
278a7a38 11098else
5213506e
RW
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11100$as_echo "no" >&6; }
278a7a38
AO
11101fi
11102
5213506e 11103
278a7a38
AO
11104 done
11105fi
11106
11107for ncn_progname in ld; do
2693c0b0
PB
11108 if test -n "$ncn_tool_prefix"; then
11109 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11110set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11112$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11113if ${ac_cv_prog_LD+:} false; then :
5213506e 11114 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11115else
11116 if test -n "$LD"; then
11117 ac_cv_prog_LD="$LD" # Let the user override the test.
11118else
1c710c3c
DJ
11119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11120for as_dir in $PATH
11121do
11122 IFS=$as_save_IFS
11123 test -z "$as_dir" && as_dir=.
5213506e 11124 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11126 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 11127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11128 break 2
11129 fi
11130done
5213506e
RW
11131 done
11132IFS=$as_save_IFS
1c710c3c 11133
ca9f4b81
AO
11134fi
11135fi
1c710c3c 11136LD=$ac_cv_prog_LD
ca9f4b81 11137if test -n "$LD"; then
5213506e
RW
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11139$as_echo "$LD" >&6; }
ca9f4b81 11140else
5213506e
RW
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11142$as_echo "no" >&6; }
ca9f4b81
AO
11143fi
11144
5213506e 11145
2693c0b0
PB
11146 fi
11147 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11149set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11151$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11152if ${ac_cv_prog_LD+:} false; then :
5213506e 11153 $as_echo_n "(cached) " >&6
ca9f4b81 11154else
2693c0b0
PB
11155 if test -n "$LD"; then
11156 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 11157else
1c710c3c
DJ
11158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159for as_dir in $PATH
11160do
11161 IFS=$as_save_IFS
11162 test -z "$as_dir" && as_dir=.
5213506e 11163 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11165 ac_cv_prog_LD="${ncn_progname}"
5213506e 11166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11167 break 2
11168 fi
11169done
5213506e
RW
11170 done
11171IFS=$as_save_IFS
1c710c3c 11172
ca9f4b81
AO
11173fi
11174fi
1c710c3c 11175LD=$ac_cv_prog_LD
2693c0b0 11176if test -n "$LD"; then
5213506e
RW
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11178$as_echo "$LD" >&6; }
ca9f4b81 11179else
5213506e
RW
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181$as_echo "no" >&6; }
ca9f4b81 11182fi
1c710c3c 11183
5213506e 11184
2693c0b0
PB
11185 fi
11186 test -n "$ac_cv_prog_LD" && break
11187done
11188
11189if test -z "$ac_cv_prog_LD" ; then
11190 set dummy ld
11191 if test $build = $host ; then
11192 LD="$2"
ca9f4b81 11193 else
2693c0b0 11194 LD="${ncn_tool_prefix}$2"
ca9f4b81 11195 fi
ca9f4b81
AO
11196fi
11197
278a7a38
AO
11198
11199
11200if test -n "$LIPO"; then
11201 ac_cv_prog_LIPO=$LIPO
11202elif test -n "$ac_cv_prog_LIPO"; then
11203 LIPO=$ac_cv_prog_LIPO
11204fi
11205
11206if test -n "$ac_cv_prog_LIPO"; then
11207 for ncn_progname in lipo; do
11208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11209set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11211$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11212if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11213 $as_echo_n "(cached) " >&6
278a7a38
AO
11214else
11215 if test -n "$LIPO"; then
11216 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11217else
11218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11219for as_dir in $PATH
11220do
11221 IFS=$as_save_IFS
11222 test -z "$as_dir" && as_dir=.
5213506e 11223 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11225 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11227 break 2
11228 fi
11229done
5213506e
RW
11230 done
11231IFS=$as_save_IFS
278a7a38
AO
11232
11233fi
11234fi
11235LIPO=$ac_cv_prog_LIPO
11236if test -n "$LIPO"; then
5213506e
RW
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11238$as_echo "$LIPO" >&6; }
278a7a38 11239else
5213506e
RW
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11241$as_echo "no" >&6; }
278a7a38
AO
11242fi
11243
5213506e 11244
278a7a38
AO
11245 done
11246fi
11247
11248for ncn_progname in lipo; do
2abefe3d
PB
11249 if test -n "$ncn_tool_prefix"; then
11250 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11251set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11253$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11254if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11255 $as_echo_n "(cached) " >&6
2abefe3d
PB
11256else
11257 if test -n "$LIPO"; then
11258 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11259else
1c710c3c
DJ
11260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261for as_dir in $PATH
11262do
11263 IFS=$as_save_IFS
11264 test -z "$as_dir" && as_dir=.
5213506e 11265 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11267 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 11268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11269 break 2
11270 fi
11271done
5213506e
RW
11272 done
11273IFS=$as_save_IFS
1c710c3c 11274
2abefe3d
PB
11275fi
11276fi
1c710c3c 11277LIPO=$ac_cv_prog_LIPO
2abefe3d 11278if test -n "$LIPO"; then
5213506e
RW
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11280$as_echo "$LIPO" >&6; }
2abefe3d 11281else
5213506e
RW
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11283$as_echo "no" >&6; }
2abefe3d
PB
11284fi
11285
5213506e 11286
2abefe3d
PB
11287 fi
11288 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11290set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11292$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11293if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11294 $as_echo_n "(cached) " >&6
2abefe3d
PB
11295else
11296 if test -n "$LIPO"; then
11297 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11298else
1c710c3c
DJ
11299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300for as_dir in $PATH
11301do
11302 IFS=$as_save_IFS
11303 test -z "$as_dir" && as_dir=.
5213506e 11304 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11306 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11308 break 2
11309 fi
11310done
5213506e
RW
11311 done
11312IFS=$as_save_IFS
1c710c3c 11313
2abefe3d
PB
11314fi
11315fi
1c710c3c 11316LIPO=$ac_cv_prog_LIPO
2abefe3d 11317if test -n "$LIPO"; then
5213506e
RW
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11319$as_echo "$LIPO" >&6; }
2abefe3d 11320else
5213506e
RW
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322$as_echo "no" >&6; }
2abefe3d 11323fi
1c710c3c 11324
5213506e 11325
2abefe3d
PB
11326 fi
11327 test -n "$ac_cv_prog_LIPO" && break
11328done
11329
11330if test -z "$ac_cv_prog_LIPO" ; then
11331 set dummy lipo
11332 if test $build = $host ; then
11333 LIPO="$2"
11334 else
11335 LIPO="${ncn_tool_prefix}$2"
11336 fi
11337fi
11338
278a7a38
AO
11339
11340
11341if test -n "$NM"; then
11342 ac_cv_prog_NM=$NM
11343elif test -n "$ac_cv_prog_NM"; then
11344 NM=$ac_cv_prog_NM
11345fi
11346
11347if test -n "$ac_cv_prog_NM"; then
11348 for ncn_progname in nm; do
11349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11350set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11352$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11353if ${ac_cv_prog_NM+:} false; then :
5213506e 11354 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11355else
11356 if test -n "$NM"; then
11357 ac_cv_prog_NM="$NM" # Let the user override the test.
11358else
1c710c3c
DJ
11359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11360for as_dir in $PATH
11361do
11362 IFS=$as_save_IFS
11363 test -z "$as_dir" && as_dir=.
5213506e 11364 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11366 ac_cv_prog_NM="${ncn_progname}"
5213506e 11367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11368 break 2
11369 fi
11370done
5213506e
RW
11371 done
11372IFS=$as_save_IFS
1c710c3c 11373
ca9f4b81
AO
11374fi
11375fi
1c710c3c 11376NM=$ac_cv_prog_NM
ca9f4b81 11377if test -n "$NM"; then
5213506e
RW
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11379$as_echo "$NM" >&6; }
ca9f4b81 11380else
5213506e
RW
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382$as_echo "no" >&6; }
ca9f4b81
AO
11383fi
11384
5213506e 11385
278a7a38
AO
11386 done
11387fi
11388
11389for ncn_progname in nm; do
11390 if test -n "$ncn_tool_prefix"; then
11391 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11392set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11394$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11395if ${ac_cv_prog_NM+:} false; then :
5213506e 11396 $as_echo_n "(cached) " >&6
ca9f4b81 11397else
2693c0b0
PB
11398 if test -n "$NM"; then
11399 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 11400else
1c710c3c
DJ
11401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402for as_dir in $PATH
11403do
11404 IFS=$as_save_IFS
11405 test -z "$as_dir" && as_dir=.
5213506e 11406 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11408 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 11409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11410 break 2
11411 fi
11412done
5213506e
RW
11413 done
11414IFS=$as_save_IFS
1c710c3c 11415
ca9f4b81
AO
11416fi
11417fi
1c710c3c 11418NM=$ac_cv_prog_NM
2693c0b0 11419if test -n "$NM"; then
5213506e
RW
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11421$as_echo "$NM" >&6; }
ca9f4b81 11422else
5213506e
RW
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424$as_echo "no" >&6; }
ca9f4b81 11425fi
1c710c3c 11426
5213506e 11427
2693c0b0 11428 fi
278a7a38
AO
11429 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11431set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11433$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11434if ${ac_cv_prog_NM+:} false; then :
5213506e 11435 $as_echo_n "(cached) " >&6
278a7a38
AO
11436else
11437 if test -n "$NM"; then
11438 ac_cv_prog_NM="$NM" # Let the user override the test.
11439else
11440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11441for as_dir in $PATH
11442do
11443 IFS=$as_save_IFS
11444 test -z "$as_dir" && as_dir=.
5213506e 11445 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11447 ac_cv_prog_NM="${ncn_progname}"
5213506e 11448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11449 break 2
11450 fi
11451done
5213506e
RW
11452 done
11453IFS=$as_save_IFS
278a7a38
AO
11454
11455fi
11456fi
11457NM=$ac_cv_prog_NM
11458if test -n "$NM"; then
5213506e
RW
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11460$as_echo "$NM" >&6; }
278a7a38 11461else
5213506e
RW
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11463$as_echo "no" >&6; }
278a7a38
AO
11464fi
11465
5213506e 11466
278a7a38
AO
11467 fi
11468 test -n "$ac_cv_prog_NM" && break
11469done
11470
11471if test -z "$ac_cv_prog_NM" ; then
11472 set dummy nm
11473 if test $build = $host ; then
11474 NM="$2"
11475 else
11476 NM="${ncn_tool_prefix}$2"
11477 fi
11478fi
11479
11480
11481
11482if test -n "$RANLIB"; then
11483 ac_cv_prog_RANLIB=$RANLIB
11484elif test -n "$ac_cv_prog_RANLIB"; then
11485 RANLIB=$ac_cv_prog_RANLIB
11486fi
11487
11488if test -n "$ac_cv_prog_RANLIB"; then
11489 for ncn_progname in ranlib; do
11490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11491set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11493$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11494if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11495 $as_echo_n "(cached) " >&6
278a7a38
AO
11496else
11497 if test -n "$RANLIB"; then
11498 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11499else
11500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501for as_dir in $PATH
11502do
11503 IFS=$as_save_IFS
11504 test -z "$as_dir" && as_dir=.
5213506e 11505 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11507 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11509 break 2
11510 fi
11511done
5213506e
RW
11512 done
11513IFS=$as_save_IFS
278a7a38
AO
11514
11515fi
11516fi
11517RANLIB=$ac_cv_prog_RANLIB
11518if test -n "$RANLIB"; then
5213506e
RW
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11520$as_echo "$RANLIB" >&6; }
278a7a38 11521else
5213506e
RW
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523$as_echo "no" >&6; }
278a7a38
AO
11524fi
11525
5213506e 11526
278a7a38
AO
11527 done
11528fi
ca9f4b81 11529
278a7a38 11530for ncn_progname in ranlib; do
2693c0b0
PB
11531 if test -n "$ncn_tool_prefix"; then
11532 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11533set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11535$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11536if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11537 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11538else
11539 if test -n "$RANLIB"; then
11540 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11541else
1c710c3c
DJ
11542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11543for as_dir in $PATH
11544do
11545 IFS=$as_save_IFS
11546 test -z "$as_dir" && as_dir=.
5213506e 11547 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11549 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 11550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11551 break 2
11552 fi
11553done
5213506e
RW
11554 done
11555IFS=$as_save_IFS
1c710c3c 11556
ca9f4b81
AO
11557fi
11558fi
1c710c3c 11559RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 11560if test -n "$RANLIB"; then
5213506e
RW
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11562$as_echo "$RANLIB" >&6; }
ca9f4b81 11563else
5213506e
RW
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565$as_echo "no" >&6; }
ca9f4b81
AO
11566fi
11567
5213506e 11568
2693c0b0
PB
11569 fi
11570 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11572set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11574$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11575if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11576 $as_echo_n "(cached) " >&6
ca9f4b81 11577else
2693c0b0
PB
11578 if test -n "$RANLIB"; then
11579 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 11580else
1c710c3c
DJ
11581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11582for as_dir in $PATH
11583do
11584 IFS=$as_save_IFS
11585 test -z "$as_dir" && as_dir=.
5213506e 11586 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11588 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11590 break 2
11591 fi
11592done
5213506e
RW
11593 done
11594IFS=$as_save_IFS
1c710c3c 11595
ca9f4b81
AO
11596fi
11597fi
1c710c3c 11598RANLIB=$ac_cv_prog_RANLIB
2693c0b0 11599if test -n "$RANLIB"; then
5213506e
RW
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11601$as_echo "$RANLIB" >&6; }
ca9f4b81 11602else
5213506e
RW
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604$as_echo "no" >&6; }
ca9f4b81 11605fi
1c710c3c 11606
5213506e 11607
ca9f4b81 11608 fi
2693c0b0
PB
11609 test -n "$ac_cv_prog_RANLIB" && break
11610done
11611
11612if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 11613 RANLIB="true"
ca9f4b81
AO
11614fi
11615
278a7a38
AO
11616
11617
11618if test -n "$STRIP"; then
11619 ac_cv_prog_STRIP=$STRIP
11620elif test -n "$ac_cv_prog_STRIP"; then
11621 STRIP=$ac_cv_prog_STRIP
11622fi
11623
11624if test -n "$ac_cv_prog_STRIP"; then
11625 for ncn_progname in strip; do
11626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11627set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11629$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11630if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11631 $as_echo_n "(cached) " >&6
278a7a38
AO
11632else
11633 if test -n "$STRIP"; then
11634 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11635else
11636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11637for as_dir in $PATH
11638do
11639 IFS=$as_save_IFS
11640 test -z "$as_dir" && as_dir=.
5213506e 11641 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11643 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11645 break 2
11646 fi
11647done
5213506e
RW
11648 done
11649IFS=$as_save_IFS
278a7a38
AO
11650
11651fi
11652fi
11653STRIP=$ac_cv_prog_STRIP
11654if test -n "$STRIP"; then
5213506e
RW
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11656$as_echo "$STRIP" >&6; }
278a7a38 11657else
5213506e
RW
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659$as_echo "no" >&6; }
278a7a38
AO
11660fi
11661
5213506e 11662
278a7a38
AO
11663 done
11664fi
11665
11666for ncn_progname in strip; do
2abefe3d
PB
11667 if test -n "$ncn_tool_prefix"; then
11668 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11669set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11671$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11672if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11673 $as_echo_n "(cached) " >&6
2abefe3d
PB
11674else
11675 if test -n "$STRIP"; then
11676 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11677else
1c710c3c
DJ
11678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11679for as_dir in $PATH
11680do
11681 IFS=$as_save_IFS
11682 test -z "$as_dir" && as_dir=.
5213506e 11683 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11685 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 11686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11687 break 2
11688 fi
11689done
5213506e
RW
11690 done
11691IFS=$as_save_IFS
1c710c3c 11692
2abefe3d
PB
11693fi
11694fi
1c710c3c 11695STRIP=$ac_cv_prog_STRIP
2abefe3d 11696if test -n "$STRIP"; then
5213506e
RW
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11698$as_echo "$STRIP" >&6; }
2abefe3d 11699else
5213506e
RW
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701$as_echo "no" >&6; }
2abefe3d
PB
11702fi
11703
5213506e 11704
2abefe3d
PB
11705 fi
11706 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11708set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11710$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11711if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11712 $as_echo_n "(cached) " >&6
2abefe3d
PB
11713else
11714 if test -n "$STRIP"; then
11715 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11716else
1c710c3c
DJ
11717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11718for as_dir in $PATH
11719do
11720 IFS=$as_save_IFS
11721 test -z "$as_dir" && as_dir=.
5213506e 11722 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11724 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11726 break 2
11727 fi
11728done
5213506e
RW
11729 done
11730IFS=$as_save_IFS
1c710c3c 11731
2abefe3d
PB
11732fi
11733fi
1c710c3c 11734STRIP=$ac_cv_prog_STRIP
2abefe3d 11735if test -n "$STRIP"; then
5213506e
RW
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11737$as_echo "$STRIP" >&6; }
2abefe3d 11738else
5213506e
RW
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740$as_echo "no" >&6; }
2abefe3d 11741fi
1c710c3c 11742
5213506e 11743
2abefe3d
PB
11744 fi
11745 test -n "$ac_cv_prog_STRIP" && break
11746done
11747
11748if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 11749 STRIP="true"
2abefe3d
PB
11750fi
11751
278a7a38
AO
11752
11753
11754if test -n "$WINDRES"; then
11755 ac_cv_prog_WINDRES=$WINDRES
11756elif test -n "$ac_cv_prog_WINDRES"; then
11757 WINDRES=$ac_cv_prog_WINDRES
11758fi
11759
11760if test -n "$ac_cv_prog_WINDRES"; then
11761 for ncn_progname in windres; do
11762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11763set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11765$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11766if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 11767 $as_echo_n "(cached) " >&6
278a7a38
AO
11768else
11769 if test -n "$WINDRES"; then
11770 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11771else
11772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11773for as_dir in $PATH
11774do
11775 IFS=$as_save_IFS
11776 test -z "$as_dir" && as_dir=.
5213506e 11777 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11779 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 11780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11781 break 2
11782 fi
11783done
5213506e
RW
11784 done
11785IFS=$as_save_IFS
278a7a38
AO
11786
11787fi
11788fi
11789WINDRES=$ac_cv_prog_WINDRES
11790if test -n "$WINDRES"; then
5213506e
RW
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11792$as_echo "$WINDRES" >&6; }
278a7a38 11793else
5213506e
RW
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11795$as_echo "no" >&6; }
278a7a38
AO
11796fi
11797
5213506e 11798
278a7a38
AO
11799 done
11800fi
11801
11802for ncn_progname in windres; do
2693c0b0
PB
11803 if test -n "$ncn_tool_prefix"; then
11804 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11805set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11808if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 11809 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11810else
11811 if test -n "$WINDRES"; then
11812 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11813else
1c710c3c
DJ
11814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815for as_dir in $PATH
11816do
11817 IFS=$as_save_IFS
11818 test -z "$as_dir" && as_dir=.
5213506e 11819 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11821 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11823 break 2
11824 fi
11825done
5213506e
RW
11826 done
11827IFS=$as_save_IFS
1c710c3c 11828
ca9f4b81
AO
11829fi
11830fi
1c710c3c 11831WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 11832if test -n "$WINDRES"; then
5213506e
RW
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11834$as_echo "$WINDRES" >&6; }
ca9f4b81 11835else
5213506e
RW
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837$as_echo "no" >&6; }
ca9f4b81
AO
11838fi
11839
5213506e 11840
2693c0b0
PB
11841 fi
11842 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11843 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11844set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11846$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11847if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 11848 $as_echo_n "(cached) " >&6
ca9f4b81 11849else
2693c0b0
PB
11850 if test -n "$WINDRES"; then
11851 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 11852else
1c710c3c
DJ
11853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11854for as_dir in $PATH
11855do
11856 IFS=$as_save_IFS
11857 test -z "$as_dir" && as_dir=.
5213506e 11858 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11860 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 11861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11862 break 2
11863 fi
11864done
5213506e
RW
11865 done
11866IFS=$as_save_IFS
1c710c3c 11867
ca9f4b81
AO
11868fi
11869fi
1c710c3c 11870WINDRES=$ac_cv_prog_WINDRES
2693c0b0 11871if test -n "$WINDRES"; then
5213506e
RW
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11873$as_echo "$WINDRES" >&6; }
ca9f4b81 11874else
5213506e
RW
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876$as_echo "no" >&6; }
ca9f4b81 11877fi
1c710c3c 11878
5213506e 11879
2693c0b0
PB
11880 fi
11881 test -n "$ac_cv_prog_WINDRES" && break
11882done
11883
11884if test -z "$ac_cv_prog_WINDRES" ; then
11885 set dummy windres
11886 if test $build = $host ; then
11887 WINDRES="$2"
ca9f4b81 11888 else
2693c0b0 11889 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 11890 fi
ca9f4b81
AO
11891fi
11892
278a7a38
AO
11893
11894
901119ae
KT
11895if test -n "$WINDMC"; then
11896 ac_cv_prog_WINDMC=$WINDMC
11897elif test -n "$ac_cv_prog_WINDMC"; then
11898 WINDMC=$ac_cv_prog_WINDMC
11899fi
11900
11901if test -n "$ac_cv_prog_WINDMC"; then
11902 for ncn_progname in windmc; do
11903 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11904set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11906$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11907if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 11908 $as_echo_n "(cached) " >&6
901119ae
KT
11909else
11910 if test -n "$WINDMC"; then
11911 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11912else
11913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11914for as_dir in $PATH
11915do
11916 IFS=$as_save_IFS
11917 test -z "$as_dir" && as_dir=.
5213506e 11918 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 11920 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 11921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
11922 break 2
11923 fi
11924done
5213506e
RW
11925 done
11926IFS=$as_save_IFS
901119ae
KT
11927
11928fi
11929fi
11930WINDMC=$ac_cv_prog_WINDMC
11931if test -n "$WINDMC"; then
5213506e
RW
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11933$as_echo "$WINDMC" >&6; }
901119ae 11934else
5213506e
RW
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936$as_echo "no" >&6; }
901119ae
KT
11937fi
11938
5213506e 11939
901119ae
KT
11940 done
11941fi
11942
11943for ncn_progname in windmc; do
11944 if test -n "$ncn_tool_prefix"; then
11945 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11946set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11948$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11949if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 11950 $as_echo_n "(cached) " >&6
901119ae
KT
11951else
11952 if test -n "$WINDMC"; then
11953 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11954else
11955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956for as_dir in $PATH
11957do
11958 IFS=$as_save_IFS
11959 test -z "$as_dir" && as_dir=.
5213506e 11960 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 11962 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 11963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
11964 break 2
11965 fi
11966done
5213506e
RW
11967 done
11968IFS=$as_save_IFS
901119ae
KT
11969
11970fi
11971fi
11972WINDMC=$ac_cv_prog_WINDMC
11973if test -n "$WINDMC"; then
5213506e
RW
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11975$as_echo "$WINDMC" >&6; }
901119ae 11976else
5213506e
RW
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978$as_echo "no" >&6; }
901119ae
KT
11979fi
11980
5213506e 11981
901119ae
KT
11982 fi
11983 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
11984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11985set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11988if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 11989 $as_echo_n "(cached) " >&6
901119ae
KT
11990else
11991 if test -n "$WINDMC"; then
11992 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11993else
11994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995for as_dir in $PATH
11996do
11997 IFS=$as_save_IFS
11998 test -z "$as_dir" && as_dir=.
5213506e 11999 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12001 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12003 break 2
12004 fi
12005done
5213506e
RW
12006 done
12007IFS=$as_save_IFS
901119ae
KT
12008
12009fi
12010fi
12011WINDMC=$ac_cv_prog_WINDMC
12012if test -n "$WINDMC"; then
5213506e
RW
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12014$as_echo "$WINDMC" >&6; }
901119ae 12015else
5213506e
RW
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017$as_echo "no" >&6; }
901119ae
KT
12018fi
12019
5213506e 12020
901119ae
KT
12021 fi
12022 test -n "$ac_cv_prog_WINDMC" && break
12023done
12024
12025if test -z "$ac_cv_prog_WINDMC" ; then
12026 set dummy windmc
12027 if test $build = $host ; then
12028 WINDMC="$2"
12029 else
12030 WINDMC="${ncn_tool_prefix}$2"
12031 fi
12032fi
12033
12034
12035
278a7a38
AO
12036if test -n "$OBJCOPY"; then
12037 ac_cv_prog_OBJCOPY=$OBJCOPY
12038elif test -n "$ac_cv_prog_OBJCOPY"; then
12039 OBJCOPY=$ac_cv_prog_OBJCOPY
12040fi
12041
12042if test -n "$ac_cv_prog_OBJCOPY"; then
12043 for ncn_progname in objcopy; do
12044 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12045set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12047$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12048if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12049 $as_echo_n "(cached) " >&6
278a7a38
AO
12050else
12051 if test -n "$OBJCOPY"; then
12052 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12053else
12054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055for as_dir in $PATH
12056do
12057 IFS=$as_save_IFS
12058 test -z "$as_dir" && as_dir=.
5213506e 12059 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12061 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12063 break 2
12064 fi
12065done
5213506e
RW
12066 done
12067IFS=$as_save_IFS
278a7a38
AO
12068
12069fi
12070fi
12071OBJCOPY=$ac_cv_prog_OBJCOPY
12072if test -n "$OBJCOPY"; then
5213506e
RW
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12074$as_echo "$OBJCOPY" >&6; }
278a7a38 12075else
5213506e
RW
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077$as_echo "no" >&6; }
278a7a38
AO
12078fi
12079
5213506e 12080
278a7a38
AO
12081 done
12082fi
12083
12084for ncn_progname in objcopy; do
2693c0b0
PB
12085 if test -n "$ncn_tool_prefix"; then
12086 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12087set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12089$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12090if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12091 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12092else
12093 if test -n "$OBJCOPY"; then
12094 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12095else
1c710c3c
DJ
12096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12097for as_dir in $PATH
12098do
12099 IFS=$as_save_IFS
12100 test -z "$as_dir" && as_dir=.
5213506e 12101 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12103 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 12104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12105 break 2
12106 fi
12107done
5213506e
RW
12108 done
12109IFS=$as_save_IFS
1c710c3c 12110
ca9f4b81
AO
12111fi
12112fi
1c710c3c 12113OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 12114if test -n "$OBJCOPY"; then
5213506e
RW
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12116$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12117else
5213506e
RW
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12119$as_echo "no" >&6; }
ca9f4b81
AO
12120fi
12121
5213506e 12122
2693c0b0
PB
12123 fi
12124 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12125 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12126set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12128$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12129if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12130 $as_echo_n "(cached) " >&6
ca9f4b81 12131else
2693c0b0
PB
12132 if test -n "$OBJCOPY"; then
12133 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 12134else
1c710c3c
DJ
12135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136for as_dir in $PATH
12137do
12138 IFS=$as_save_IFS
12139 test -z "$as_dir" && as_dir=.
5213506e 12140 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12142 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12144 break 2
12145 fi
12146done
5213506e
RW
12147 done
12148IFS=$as_save_IFS
1c710c3c 12149
ca9f4b81
AO
12150fi
12151fi
1c710c3c 12152OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 12153if test -n "$OBJCOPY"; then
5213506e
RW
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12155$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12156else
5213506e
RW
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158$as_echo "no" >&6; }
ca9f4b81 12159fi
1c710c3c 12160
5213506e 12161
2693c0b0
PB
12162 fi
12163 test -n "$ac_cv_prog_OBJCOPY" && break
12164done
12165
12166if test -z "$ac_cv_prog_OBJCOPY" ; then
12167 set dummy objcopy
12168 if test $build = $host ; then
12169 OBJCOPY="$2"
ca9f4b81 12170 else
2693c0b0 12171 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 12172 fi
ca9f4b81
AO
12173fi
12174
278a7a38
AO
12175
12176
12177if test -n "$OBJDUMP"; then
12178 ac_cv_prog_OBJDUMP=$OBJDUMP
12179elif test -n "$ac_cv_prog_OBJDUMP"; then
12180 OBJDUMP=$ac_cv_prog_OBJDUMP
12181fi
12182
12183if test -n "$ac_cv_prog_OBJDUMP"; then
12184 for ncn_progname in objdump; do
12185 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12186set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12188$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12189if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12190 $as_echo_n "(cached) " >&6
278a7a38
AO
12191else
12192 if test -n "$OBJDUMP"; then
12193 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12194else
12195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196for as_dir in $PATH
12197do
12198 IFS=$as_save_IFS
12199 test -z "$as_dir" && as_dir=.
5213506e 12200 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12202 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12204 break 2
12205 fi
12206done
5213506e
RW
12207 done
12208IFS=$as_save_IFS
278a7a38
AO
12209
12210fi
12211fi
12212OBJDUMP=$ac_cv_prog_OBJDUMP
12213if test -n "$OBJDUMP"; then
5213506e
RW
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12215$as_echo "$OBJDUMP" >&6; }
278a7a38 12216else
5213506e
RW
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218$as_echo "no" >&6; }
278a7a38
AO
12219fi
12220
5213506e 12221
278a7a38
AO
12222 done
12223fi
12224
12225for ncn_progname in objdump; do
2693c0b0
PB
12226 if test -n "$ncn_tool_prefix"; then
12227 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12228set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12230$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12231if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12232 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12233else
12234 if test -n "$OBJDUMP"; then
12235 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12236else
1c710c3c
DJ
12237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238for as_dir in $PATH
12239do
12240 IFS=$as_save_IFS
12241 test -z "$as_dir" && as_dir=.
5213506e 12242 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12244 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 12245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12246 break 2
12247 fi
12248done
5213506e
RW
12249 done
12250IFS=$as_save_IFS
1c710c3c 12251
ca9f4b81
AO
12252fi
12253fi
1c710c3c 12254OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 12255if test -n "$OBJDUMP"; then
5213506e
RW
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12257$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12258else
5213506e
RW
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260$as_echo "no" >&6; }
ca9f4b81
AO
12261fi
12262
5213506e 12263
2693c0b0
PB
12264 fi
12265 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12267set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12270if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12271 $as_echo_n "(cached) " >&6
ca9f4b81 12272else
2693c0b0
PB
12273 if test -n "$OBJDUMP"; then
12274 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 12275else
1c710c3c
DJ
12276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277for as_dir in $PATH
12278do
12279 IFS=$as_save_IFS
12280 test -z "$as_dir" && as_dir=.
5213506e 12281 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12283 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12285 break 2
12286 fi
12287done
5213506e
RW
12288 done
12289IFS=$as_save_IFS
1c710c3c 12290
ca9f4b81
AO
12291fi
12292fi
1c710c3c 12293OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 12294if test -n "$OBJDUMP"; then
5213506e
RW
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12296$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12297else
5213506e
RW
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299$as_echo "no" >&6; }
ca9f4b81 12300fi
1c710c3c 12301
5213506e 12302
2693c0b0
PB
12303 fi
12304 test -n "$ac_cv_prog_OBJDUMP" && break
12305done
12306
12307if test -z "$ac_cv_prog_OBJDUMP" ; then
12308 set dummy objdump
12309 if test $build = $host ; then
12310 OBJDUMP="$2"
ca9f4b81 12311 else
2693c0b0 12312 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 12313 fi
ca9f4b81
AO
12314fi
12315
671aa708
NN
12316
12317
e4a9a572
IS
12318if test -n "$OTOOL"; then
12319 ac_cv_prog_OTOOL=$OTOOL
12320elif test -n "$ac_cv_prog_OTOOL"; then
12321 OTOOL=$ac_cv_prog_OTOOL
12322fi
12323
12324if test -n "$ac_cv_prog_OTOOL"; then
12325 for ncn_progname in otool; do
12326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12327set dummy ${ncn_progname}; ac_word=$2
12328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12329$as_echo_n "checking for $ac_word... " >&6; }
12330if ${ac_cv_prog_OTOOL+:} false; then :
12331 $as_echo_n "(cached) " >&6
12332else
12333 if test -n "$OTOOL"; then
12334 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12335else
12336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12337for as_dir in $PATH
12338do
12339 IFS=$as_save_IFS
12340 test -z "$as_dir" && as_dir=.
12341 for ac_exec_ext in '' $ac_executable_extensions; do
12342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12343 ac_cv_prog_OTOOL="${ncn_progname}"
12344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12345 break 2
12346 fi
12347done
12348 done
12349IFS=$as_save_IFS
12350
12351fi
12352fi
12353OTOOL=$ac_cv_prog_OTOOL
12354if test -n "$OTOOL"; then
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12356$as_echo "$OTOOL" >&6; }
12357else
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359$as_echo "no" >&6; }
12360fi
12361
12362
12363 done
12364fi
12365
12366for ncn_progname in otool; do
12367 if test -n "$ncn_tool_prefix"; then
12368 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12369set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12371$as_echo_n "checking for $ac_word... " >&6; }
12372if ${ac_cv_prog_OTOOL+:} false; then :
12373 $as_echo_n "(cached) " >&6
12374else
12375 if test -n "$OTOOL"; then
12376 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12377else
12378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12379for as_dir in $PATH
12380do
12381 IFS=$as_save_IFS
12382 test -z "$as_dir" && as_dir=.
12383 for ac_exec_ext in '' $ac_executable_extensions; do
12384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12385 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12387 break 2
12388 fi
12389done
12390 done
12391IFS=$as_save_IFS
12392
12393fi
12394fi
12395OTOOL=$ac_cv_prog_OTOOL
12396if test -n "$OTOOL"; then
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12398$as_echo "$OTOOL" >&6; }
12399else
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12401$as_echo "no" >&6; }
12402fi
12403
12404
12405 fi
12406 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12408set dummy ${ncn_progname}; ac_word=$2
12409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12410$as_echo_n "checking for $ac_word... " >&6; }
12411if ${ac_cv_prog_OTOOL+:} false; then :
12412 $as_echo_n "(cached) " >&6
12413else
12414 if test -n "$OTOOL"; then
12415 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12416else
12417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12418for as_dir in $PATH
12419do
12420 IFS=$as_save_IFS
12421 test -z "$as_dir" && as_dir=.
12422 for ac_exec_ext in '' $ac_executable_extensions; do
12423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12424 ac_cv_prog_OTOOL="${ncn_progname}"
12425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12426 break 2
12427 fi
12428done
12429 done
12430IFS=$as_save_IFS
12431
12432fi
12433fi
12434OTOOL=$ac_cv_prog_OTOOL
12435if test -n "$OTOOL"; then
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12437$as_echo "$OTOOL" >&6; }
12438else
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440$as_echo "no" >&6; }
12441fi
12442
12443
12444 fi
12445 test -n "$ac_cv_prog_OTOOL" && break
12446done
12447
12448if test -z "$ac_cv_prog_OTOOL" ; then
12449 set dummy otool
12450 if test $build = $host ; then
12451 OTOOL="$2"
12452 else
12453 OTOOL="${ncn_tool_prefix}$2"
12454 fi
12455fi
12456
12457
12458
e7a82751
RM
12459if test -n "$READELF"; then
12460 ac_cv_prog_READELF=$READELF
12461elif test -n "$ac_cv_prog_READELF"; then
12462 READELF=$ac_cv_prog_READELF
12463fi
12464
12465if test -n "$ac_cv_prog_READELF"; then
12466 for ncn_progname in readelf; do
12467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12468set dummy ${ncn_progname}; ac_word=$2
12469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12470$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12471if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12472 $as_echo_n "(cached) " >&6
12473else
12474 if test -n "$READELF"; then
12475 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12476else
12477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12478for as_dir in $PATH
12479do
12480 IFS=$as_save_IFS
12481 test -z "$as_dir" && as_dir=.
12482 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12484 ac_cv_prog_READELF="${ncn_progname}"
12485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12486 break 2
12487 fi
12488done
12489 done
12490IFS=$as_save_IFS
12491
12492fi
12493fi
12494READELF=$ac_cv_prog_READELF
12495if test -n "$READELF"; then
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12497$as_echo "$READELF" >&6; }
12498else
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12500$as_echo "no" >&6; }
12501fi
12502
12503
12504 done
12505fi
12506
12507for ncn_progname in readelf; do
12508 if test -n "$ncn_tool_prefix"; then
12509 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12510set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12513if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12514 $as_echo_n "(cached) " >&6
12515else
12516 if test -n "$READELF"; then
12517 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12518else
12519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520for as_dir in $PATH
12521do
12522 IFS=$as_save_IFS
12523 test -z "$as_dir" && as_dir=.
12524 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12526 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12528 break 2
12529 fi
12530done
12531 done
12532IFS=$as_save_IFS
12533
12534fi
12535fi
12536READELF=$ac_cv_prog_READELF
12537if test -n "$READELF"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12539$as_echo "$READELF" >&6; }
12540else
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542$as_echo "no" >&6; }
12543fi
12544
12545
12546 fi
12547 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12549set dummy ${ncn_progname}; ac_word=$2
12550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12551$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12552if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12553 $as_echo_n "(cached) " >&6
12554else
12555 if test -n "$READELF"; then
12556 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12557else
12558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559for as_dir in $PATH
12560do
12561 IFS=$as_save_IFS
12562 test -z "$as_dir" && as_dir=.
12563 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12565 ac_cv_prog_READELF="${ncn_progname}"
12566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12567 break 2
12568 fi
12569done
12570 done
12571IFS=$as_save_IFS
12572
12573fi
12574fi
12575READELF=$ac_cv_prog_READELF
12576if test -n "$READELF"; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12578$as_echo "$READELF" >&6; }
12579else
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581$as_echo "no" >&6; }
12582fi
12583
12584
12585 fi
12586 test -n "$ac_cv_prog_READELF" && break
12587done
12588
12589if test -z "$ac_cv_prog_READELF" ; then
12590 set dummy readelf
12591 if test $build = $host ; then
12592 READELF="$2"
12593 else
12594 READELF="${ncn_tool_prefix}$2"
12595 fi
12596fi
12597
12598
12599
671aa708
NN
12600
12601
12602
2abefe3d 12603# Target tools.
1c710c3c 12604
5213506e
RW
12605# Check whether --with-build-time-tools was given.
12606if test "${with_build_time_tools+set}" = set; then :
12607 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
12608 x/*) ;;
12609 *)
12610 with_build_time_tools=
5213506e
RW
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12612$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
12613 ;;
12614 esac
ca9f4b81 12615else
e8b05380 12616 with_build_time_tools=
5213506e
RW
12617fi
12618
ca9f4b81 12619
278a7a38
AO
12620
12621
12622if test -n "$CC_FOR_TARGET"; then
12623 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12624elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12625 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12626fi
12627
12628if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12629 for ncn_progname in cc gcc; do
12630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12631set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12633$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12634if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12635 $as_echo_n "(cached) " >&6
278a7a38
AO
12636else
12637 if test -n "$CC_FOR_TARGET"; then
12638 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12639else
12640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641for as_dir in $PATH
12642do
12643 IFS=$as_save_IFS
12644 test -z "$as_dir" && as_dir=.
5213506e 12645 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12647 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12649 break 2
12650 fi
12651done
5213506e
RW
12652 done
12653IFS=$as_save_IFS
278a7a38
AO
12654
12655fi
12656fi
12657CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12658if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12660$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 12661else
5213506e
RW
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663$as_echo "no" >&6; }
278a7a38
AO
12664fi
12665
5213506e 12666
278a7a38
AO
12667 done
12668fi
12669
12670if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12671 for ncn_progname in cc gcc; do
5213506e
RW
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12673$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12674 if test -x $with_build_time_tools/${ncn_progname}; then
12675 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12677$as_echo "yes" >&6; }
72a7ab82 12678 break
e8b05380 12679 else
5213506e
RW
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681$as_echo "no" >&6; }
72a7ab82
AP
12682 fi
12683 done
4de997d1
PB
12684fi
12685
e8b05380
PB
12686if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12687 for ncn_progname in cc gcc; do
12688 if test -n "$ncn_target_tool_prefix"; then
12689 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12690set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12692$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12693if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12694 $as_echo_n "(cached) " >&6
4de997d1
PB
12695else
12696 if test -n "$CC_FOR_TARGET"; then
12697 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12698else
1c710c3c
DJ
12699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12700for as_dir in $PATH
12701do
12702 IFS=$as_save_IFS
12703 test -z "$as_dir" && as_dir=.
5213506e 12704 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12706 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12708 break 2
12709 fi
12710done
5213506e
RW
12711 done
12712IFS=$as_save_IFS
1c710c3c 12713
4de997d1
PB
12714fi
12715fi
1c710c3c 12716CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 12717if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12719$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 12720else
5213506e
RW
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722$as_echo "no" >&6; }
4de997d1
PB
12723fi
12724
5213506e 12725
e8b05380
PB
12726 fi
12727 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12729set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12731$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12732if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12733 $as_echo_n "(cached) " >&6
4de997d1 12734else
2693c0b0
PB
12735 if test -n "$CC_FOR_TARGET"; then
12736 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 12737else
1c710c3c
DJ
12738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12739for as_dir in $PATH
12740do
12741 IFS=$as_save_IFS
12742 test -z "$as_dir" && as_dir=.
5213506e 12743 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12745 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12747 break 2
12748 fi
12749done
5213506e
RW
12750 done
12751IFS=$as_save_IFS
1c710c3c 12752
4de997d1
PB
12753fi
12754fi
1c710c3c 12755CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 12756if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12758$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 12759else
5213506e
RW
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761$as_echo "no" >&6; }
4de997d1 12762fi
1c710c3c 12763
5213506e 12764
e8b05380
PB
12765 fi
12766 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12767 done
12768fi
1c710c3c 12769
2693c0b0
PB
12770if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12771 set dummy cc gcc
12772 if test $build = $target ; then
12773 CC_FOR_TARGET="$2"
4de997d1 12774 else
2693c0b0 12775 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 12776 fi
1c00b503
PB
12777else
12778 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
12779fi
12780
278a7a38
AO
12781
12782
12783if test -n "$CXX_FOR_TARGET"; then
12784 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12785elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12786 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12787fi
12788
12789if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12790 for ncn_progname in c++ g++ cxx gxx; do
12791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12792set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12794$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12795if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 12796 $as_echo_n "(cached) " >&6
278a7a38
AO
12797else
12798 if test -n "$CXX_FOR_TARGET"; then
12799 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12800else
12801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12802for as_dir in $PATH
12803do
12804 IFS=$as_save_IFS
12805 test -z "$as_dir" && as_dir=.
5213506e 12806 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12808 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 12809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12810 break 2
12811 fi
12812done
5213506e
RW
12813 done
12814IFS=$as_save_IFS
278a7a38
AO
12815
12816fi
12817fi
12818CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12819if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12821$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 12822else
5213506e
RW
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824$as_echo "no" >&6; }
278a7a38
AO
12825fi
12826
5213506e 12827
278a7a38
AO
12828 done
12829fi
12830
12831if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12832 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12834$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12835 if test -x $with_build_time_tools/${ncn_progname}; then
12836 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12838$as_echo "yes" >&6; }
e8b05380
PB
12839 break
12840 else
5213506e
RW
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842$as_echo "no" >&6; }
e8b05380
PB
12843 fi
12844 done
12845fi
12846
12847if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12848 for ncn_progname in c++ g++ cxx gxx; do
12849 if test -n "$ncn_target_tool_prefix"; then
12850 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12851set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12853$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12854if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 12855 $as_echo_n "(cached) " >&6
4de997d1
PB
12856else
12857 if test -n "$CXX_FOR_TARGET"; then
12858 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12859else
1c710c3c
DJ
12860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861for as_dir in $PATH
12862do
12863 IFS=$as_save_IFS
12864 test -z "$as_dir" && as_dir=.
5213506e 12865 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12867 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12869 break 2
12870 fi
12871done
5213506e
RW
12872 done
12873IFS=$as_save_IFS
1c710c3c 12874
4de997d1
PB
12875fi
12876fi
1c710c3c 12877CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 12878if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12880$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 12881else
5213506e
RW
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883$as_echo "no" >&6; }
4de997d1
PB
12884fi
12885
5213506e 12886
e8b05380
PB
12887 fi
12888 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
12889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12890set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12892$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12893if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 12894 $as_echo_n "(cached) " >&6
4de997d1 12895else
2693c0b0
PB
12896 if test -n "$CXX_FOR_TARGET"; then
12897 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 12898else
1c710c3c
DJ
12899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900for as_dir in $PATH
12901do
12902 IFS=$as_save_IFS
12903 test -z "$as_dir" && as_dir=.
5213506e 12904 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12906 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 12907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12908 break 2
12909 fi
12910done
5213506e
RW
12911 done
12912IFS=$as_save_IFS
1c710c3c 12913
4de997d1
PB
12914fi
12915fi
1c710c3c 12916CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 12917if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12919$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 12920else
5213506e
RW
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922$as_echo "no" >&6; }
4de997d1 12923fi
1c710c3c 12924
5213506e 12925
e8b05380
PB
12926 fi
12927 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
12928 done
12929fi
1c710c3c 12930
2693c0b0
PB
12931if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
12932 set dummy c++ g++ cxx gxx
12933 if test $build = $target ; then
12934 CXX_FOR_TARGET="$2"
4de997d1 12935 else
2693c0b0 12936 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 12937 fi
1c00b503
PB
12938else
12939 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
12940fi
12941
278a7a38
AO
12942
12943
12944if test -n "$GCC_FOR_TARGET"; then
12945 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
12946elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12947 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12948fi
12949
12950if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12951 for ncn_progname in gcc; do
12952 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12953set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12955$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12956if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 12957 $as_echo_n "(cached) " >&6
278a7a38
AO
12958else
12959 if test -n "$GCC_FOR_TARGET"; then
12960 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12961else
12962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963for as_dir in $PATH
12964do
12965 IFS=$as_save_IFS
12966 test -z "$as_dir" && as_dir=.
5213506e 12967 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12969 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 12970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12971 break 2
12972 fi
12973done
5213506e
RW
12974 done
12975IFS=$as_save_IFS
278a7a38
AO
12976
12977fi
12978fi
12979GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12980if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12982$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 12983else
5213506e
RW
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985$as_echo "no" >&6; }
278a7a38
AO
12986fi
12987
5213506e 12988
278a7a38
AO
12989 done
12990fi
12991
12992if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12993 for ncn_progname in gcc; do
5213506e
RW
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12995$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12996 if test -x $with_build_time_tools/${ncn_progname}; then
12997 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12999$as_echo "yes" >&6; }
e8b05380
PB
13000 break
13001 else
5213506e
RW
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13003$as_echo "no" >&6; }
e8b05380
PB
13004 fi
13005 done
13006fi
13007
13008if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13009 for ncn_progname in gcc; do
13010 if test -n "$ncn_target_tool_prefix"; then
13011 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13012set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13014$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13015if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13016 $as_echo_n "(cached) " >&6
ca9f4b81 13017else
e8b05380
PB
13018 if test -n "$GCC_FOR_TARGET"; then
13019 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13020else
1c710c3c
DJ
13021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13022for as_dir in $PATH
13023do
13024 IFS=$as_save_IFS
13025 test -z "$as_dir" && as_dir=.
5213506e 13026 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13028 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13030 break 2
13031 fi
13032done
5213506e
RW
13033 done
13034IFS=$as_save_IFS
1c710c3c 13035
ca9f4b81
AO
13036fi
13037fi
1c710c3c 13038GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13039if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13041$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13042else
5213506e
RW
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13044$as_echo "no" >&6; }
ca9f4b81
AO
13045fi
13046
5213506e 13047
e8b05380
PB
13048 fi
13049 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13050 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13051set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13053$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13054if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13055 $as_echo_n "(cached) " >&6
ca9f4b81 13056else
e8b05380
PB
13057 if test -n "$GCC_FOR_TARGET"; then
13058 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13059else
1c710c3c
DJ
13060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13061for as_dir in $PATH
13062do
13063 IFS=$as_save_IFS
13064 test -z "$as_dir" && as_dir=.
5213506e 13065 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13067 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13069 break 2
13070 fi
13071done
5213506e
RW
13072 done
13073IFS=$as_save_IFS
1c710c3c 13074
ca9f4b81
AO
13075fi
13076fi
1c710c3c 13077GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13078if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13080$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13081else
5213506e
RW
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13083$as_echo "no" >&6; }
ca9f4b81 13084fi
1c710c3c 13085
5213506e 13086
e8b05380
PB
13087 fi
13088 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13089 done
13090fi
1c710c3c 13091
e8b05380
PB
13092if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13093 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
13094else
13095 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
13096fi
13097
278a7a38
AO
13098
13099
278a7a38
AO
13100if test -n "$GFORTRAN_FOR_TARGET"; then
13101 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13102elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13103 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
13104fi
13105
278a7a38
AO
13106if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13107 for ncn_progname in gfortran; do
13108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 13109set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13111$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13112if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13113 $as_echo_n "(cached) " >&6
e8b05380 13114else
278a7a38
AO
13115 if test -n "$GFORTRAN_FOR_TARGET"; then
13116 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 13117else
1c710c3c
DJ
13118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119for as_dir in $PATH
13120do
13121 IFS=$as_save_IFS
13122 test -z "$as_dir" && as_dir=.
5213506e 13123 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13125 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13127 break 2
13128 fi
13129done
5213506e
RW
13130 done
13131IFS=$as_save_IFS
1c710c3c 13132
e8b05380
PB
13133fi
13134fi
278a7a38
AO
13135GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13136if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13138$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13139else
5213506e
RW
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141$as_echo "no" >&6; }
e8b05380 13142fi
1c710c3c 13143
5213506e 13144
e8b05380
PB
13145 done
13146fi
1c710c3c 13147
278a7a38 13148if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13149 for ncn_progname in gfortran; do
5213506e
RW
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13151$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13152 if test -x $with_build_time_tools/${ncn_progname}; then
13153 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13155$as_echo "yes" >&6; }
e8b05380
PB
13156 break
13157 else
5213506e
RW
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159$as_echo "no" >&6; }
e8b05380
PB
13160 fi
13161 done
13162fi
13163
13164if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13165 for ncn_progname in gfortran; do
13166 if test -n "$ncn_target_tool_prefix"; then
13167 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13168set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13170$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13171if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13172 $as_echo_n "(cached) " >&6
e8b05380
PB
13173else
13174 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
13175 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13176else
13177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13178for as_dir in $PATH
13179do
13180 IFS=$as_save_IFS
13181 test -z "$as_dir" && as_dir=.
5213506e 13182 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13184 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13186 break 2
13187 fi
13188done
5213506e
RW
13189 done
13190IFS=$as_save_IFS
1c710c3c 13191
e8b05380
PB
13192fi
13193fi
1c710c3c 13194GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13195if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13197$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13198else
5213506e
RW
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13200$as_echo "no" >&6; }
e8b05380
PB
13201fi
13202
5213506e 13203
e8b05380
PB
13204 fi
13205 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13207set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13209$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13210if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13211 $as_echo_n "(cached) " >&6
e8b05380
PB
13212else
13213 if test -n "$GFORTRAN_FOR_TARGET"; then
13214 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13215else
1c710c3c
DJ
13216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13217for as_dir in $PATH
13218do
13219 IFS=$as_save_IFS
13220 test -z "$as_dir" && as_dir=.
5213506e 13221 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13223 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13225 break 2
13226 fi
13227done
5213506e
RW
13228 done
13229IFS=$as_save_IFS
1c710c3c 13230
e8b05380
PB
13231fi
13232fi
1c710c3c 13233GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13234if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13236$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13237else
5213506e
RW
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13239$as_echo "no" >&6; }
e8b05380 13240fi
1c710c3c 13241
5213506e 13242
e8b05380
PB
13243 fi
13244 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13245 done
13246fi
1c710c3c 13247
e8b05380
PB
13248if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13249 set dummy gfortran
2693c0b0 13250 if test $build = $target ; then
e8b05380 13251 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 13252 else
e8b05380
PB
13253 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13254 fi
1c00b503
PB
13255else
13256 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
13257fi
13258
13259
13260
632e2a07
ILT
13261if test -n "$GOC_FOR_TARGET"; then
13262 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13263elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13264 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13265fi
13266
13267if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13268 for ncn_progname in gccgo; do
13269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13270set dummy ${ncn_progname}; ac_word=$2
13271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13272$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13273if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13274 $as_echo_n "(cached) " >&6
13275else
13276 if test -n "$GOC_FOR_TARGET"; then
13277 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13278else
13279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13280for as_dir in $PATH
13281do
13282 IFS=$as_save_IFS
13283 test -z "$as_dir" && as_dir=.
13284 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13286 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13288 break 2
13289 fi
13290done
13291 done
13292IFS=$as_save_IFS
13293
13294fi
13295fi
13296GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13297if test -n "$GOC_FOR_TARGET"; then
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13299$as_echo "$GOC_FOR_TARGET" >&6; }
13300else
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13302$as_echo "no" >&6; }
13303fi
13304
13305
13306 done
13307fi
13308
13309if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13310 for ncn_progname in gccgo; do
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13312$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13313 if test -x $with_build_time_tools/${ncn_progname}; then
13314 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13316$as_echo "yes" >&6; }
13317 break
13318 else
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13320$as_echo "no" >&6; }
13321 fi
13322 done
13323fi
13324
13325if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13326 for ncn_progname in gccgo; do
13327 if test -n "$ncn_target_tool_prefix"; then
13328 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13329set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13331$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13332if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13333 $as_echo_n "(cached) " >&6
13334else
13335 if test -n "$GOC_FOR_TARGET"; then
13336 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13337else
13338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339for as_dir in $PATH
13340do
13341 IFS=$as_save_IFS
13342 test -z "$as_dir" && as_dir=.
13343 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13345 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13347 break 2
13348 fi
13349done
13350 done
13351IFS=$as_save_IFS
13352
13353fi
13354fi
13355GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13356if test -n "$GOC_FOR_TARGET"; then
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13358$as_echo "$GOC_FOR_TARGET" >&6; }
13359else
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13361$as_echo "no" >&6; }
13362fi
13363
13364
13365 fi
13366 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13368set dummy ${ncn_progname}; ac_word=$2
13369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13370$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13371if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13372 $as_echo_n "(cached) " >&6
13373else
13374 if test -n "$GOC_FOR_TARGET"; then
13375 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13376else
13377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13378for as_dir in $PATH
13379do
13380 IFS=$as_save_IFS
13381 test -z "$as_dir" && as_dir=.
13382 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13384 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13386 break 2
13387 fi
13388done
13389 done
13390IFS=$as_save_IFS
13391
13392fi
13393fi
13394GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13395if test -n "$GOC_FOR_TARGET"; then
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13397$as_echo "$GOC_FOR_TARGET" >&6; }
13398else
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400$as_echo "no" >&6; }
13401fi
13402
13403
13404 fi
13405 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13406 done
13407fi
13408
13409if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13410 set dummy gccgo
13411 if test $build = $target ; then
13412 GOC_FOR_TARGET="$2"
13413 else
13414 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13415 fi
13416else
13417 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13418fi
13419
13420
13421
b4c522fa
IB
13422if test -n "$GDC_FOR_TARGET"; then
13423 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13424elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13425 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13426fi
13427
13428if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13429 for ncn_progname in gdc; do
13430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13431set dummy ${ncn_progname}; ac_word=$2
13432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13433$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13434if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13435 $as_echo_n "(cached) " >&6
13436else
13437 if test -n "$GDC_FOR_TARGET"; then
13438 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13439else
13440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13441for as_dir in $PATH
13442do
13443 IFS=$as_save_IFS
13444 test -z "$as_dir" && as_dir=.
13445 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13447 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13449 break 2
13450 fi
13451done
13452 done
13453IFS=$as_save_IFS
13454
13455fi
13456fi
13457GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13458if test -n "$GDC_FOR_TARGET"; then
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13460$as_echo "$GDC_FOR_TARGET" >&6; }
13461else
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13463$as_echo "no" >&6; }
13464fi
13465
13466
13467 done
13468fi
13469
13470if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13471 for ncn_progname in gdc; do
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13473$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13474 if test -x $with_build_time_tools/${ncn_progname}; then
13475 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13477$as_echo "yes" >&6; }
13478 break
13479 else
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481$as_echo "no" >&6; }
13482 fi
13483 done
13484fi
13485
13486if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13487 for ncn_progname in gdc; do
13488 if test -n "$ncn_target_tool_prefix"; then
13489 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13490set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13492$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13493if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13494 $as_echo_n "(cached) " >&6
13495else
13496 if test -n "$GDC_FOR_TARGET"; then
13497 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13498else
13499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13500for as_dir in $PATH
13501do
13502 IFS=$as_save_IFS
13503 test -z "$as_dir" && as_dir=.
13504 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13506 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13508 break 2
13509 fi
13510done
13511 done
13512IFS=$as_save_IFS
13513
13514fi
13515fi
13516GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13517if test -n "$GDC_FOR_TARGET"; then
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13519$as_echo "$GDC_FOR_TARGET" >&6; }
13520else
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13522$as_echo "no" >&6; }
13523fi
13524
13525
13526 fi
13527 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13528 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13529set dummy ${ncn_progname}; ac_word=$2
13530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13531$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13532if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13533 $as_echo_n "(cached) " >&6
13534else
13535 if test -n "$GDC_FOR_TARGET"; then
13536 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13537else
13538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13539for as_dir in $PATH
13540do
13541 IFS=$as_save_IFS
13542 test -z "$as_dir" && as_dir=.
13543 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13545 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13547 break 2
13548 fi
13549done
13550 done
13551IFS=$as_save_IFS
13552
13553fi
13554fi
13555GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13556if test -n "$GDC_FOR_TARGET"; then
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13558$as_echo "$GDC_FOR_TARGET" >&6; }
13559else
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13561$as_echo "no" >&6; }
13562fi
13563
13564
13565 fi
13566 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13567 done
13568fi
13569
13570if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13571 set dummy gdc
13572 if test $build = $target ; then
13573 GDC_FOR_TARGET="$2"
13574 else
13575 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13576 fi
13577else
13578 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13579fi
13580
13581
13582
e8b05380
PB
13583cat > conftest.c << \EOF
13584#ifdef __GNUC__
13585 gcc_yay;
13586#endif
13587EOF
13588if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13589 have_gcc_for_target=yes
13590else
13591 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13592 have_gcc_for_target=no
13593fi
13594rm conftest.c
13595
13596
13597
13598
13599if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13600 if test -n "$with_build_time_tools"; then
5213506e
RW
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13602$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13603 if test -x $with_build_time_tools/ar; then
13604 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13605 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13607$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 13608 else
5213506e
RW
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610$as_echo "no" >&6; }
d1f8db0c 13611 fi
e8b05380
PB
13612 elif test $build != $host && test $have_gcc_for_target = yes; then
13613 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
13614 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13615 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
13616 fi
13617fi
3e19841a 13618if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13619 # Extract the first word of "ar", so it can be a program name with args.
13620set dummy ar; ac_word=$2
5213506e
RW
13621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13622$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13623if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 13624 $as_echo_n "(cached) " >&6
e8b05380 13625else
1c710c3c
DJ
13626 case $AR_FOR_TARGET in
13627 [\\/]* | ?:[\\/]*)
e8b05380
PB
13628 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13629 ;;
e8b05380 13630 *)
1c710c3c
DJ
13631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13632for as_dir in $gcc_cv_tool_dirs
13633do
13634 IFS=$as_save_IFS
13635 test -z "$as_dir" && as_dir=.
5213506e 13636 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13638 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13640 break 2
13641 fi
13642done
5213506e
RW
13643 done
13644IFS=$as_save_IFS
1c710c3c 13645
e8b05380
PB
13646 ;;
13647esac
13648fi
1c710c3c 13649AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 13650if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13652$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 13653else
5213506e
RW
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13655$as_echo "no" >&6; }
4de997d1
PB
13656fi
13657
5213506e 13658
e8b05380
PB
13659fi
13660if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
13661
13662
13663if test -n "$AR_FOR_TARGET"; then
13664 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13665elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13666 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13667fi
13668
13669if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13670 for ncn_progname in ar; do
13671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13672set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13674$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13675if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13676 $as_echo_n "(cached) " >&6
278a7a38
AO
13677else
13678 if test -n "$AR_FOR_TARGET"; then
13679 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13680else
13681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13682for as_dir in $PATH
13683do
13684 IFS=$as_save_IFS
13685 test -z "$as_dir" && as_dir=.
5213506e 13686 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13688 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 13689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13690 break 2
13691 fi
13692done
5213506e
RW
13693 done
13694IFS=$as_save_IFS
278a7a38
AO
13695
13696fi
13697fi
13698AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13699if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13701$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 13702else
5213506e
RW
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13704$as_echo "no" >&6; }
278a7a38
AO
13705fi
13706
5213506e 13707
278a7a38
AO
13708 done
13709fi
13710
13711if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13712 for ncn_progname in ar; do
5213506e
RW
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13714$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13715 if test -x $with_build_time_tools/${ncn_progname}; then
13716 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13718$as_echo "yes" >&6; }
e8b05380
PB
13719 break
13720 else
5213506e
RW
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13722$as_echo "no" >&6; }
e8b05380
PB
13723 fi
13724 done
13725fi
13726
13727if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13728 for ncn_progname in ar; do
13729 if test -n "$ncn_target_tool_prefix"; then
13730 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13731set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13733$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13734if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13735 $as_echo_n "(cached) " >&6
4de997d1 13736else
e8b05380
PB
13737 if test -n "$AR_FOR_TARGET"; then
13738 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 13739else
1c710c3c
DJ
13740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13741for as_dir in $PATH
13742do
13743 IFS=$as_save_IFS
13744 test -z "$as_dir" && as_dir=.
5213506e 13745 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13747 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13749 break 2
13750 fi
13751done
5213506e
RW
13752 done
13753IFS=$as_save_IFS
1c710c3c 13754
4de997d1
PB
13755fi
13756fi
1c710c3c 13757AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 13758if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13760$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 13761else
5213506e
RW
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13763$as_echo "no" >&6; }
4de997d1
PB
13764fi
13765
5213506e 13766
e8b05380
PB
13767 fi
13768 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13769 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13770set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13772$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13773if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13774 $as_echo_n "(cached) " >&6
e8b05380
PB
13775else
13776 if test -n "$AR_FOR_TARGET"; then
13777 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13778else
1c710c3c
DJ
13779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780for as_dir in $PATH
13781do
13782 IFS=$as_save_IFS
13783 test -z "$as_dir" && as_dir=.
5213506e 13784 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13786 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 13787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13788 break 2
13789 fi
13790done
5213506e
RW
13791 done
13792IFS=$as_save_IFS
1c710c3c 13793
e8b05380
PB
13794fi
13795fi
1c710c3c 13796AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 13797if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13799$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 13800else
5213506e
RW
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13802$as_echo "no" >&6; }
e8b05380 13803fi
1c710c3c 13804
5213506e 13805
e8b05380
PB
13806 fi
13807 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13808 done
13809fi
1c710c3c 13810
e8b05380
PB
13811if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13812 set dummy ar
13813 if test $build = $target ; then
13814 AR_FOR_TARGET="$2"
13815 else
13816 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 13817 fi
1c00b503
PB
13818else
13819 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
13820fi
13821
d1f8db0c
PB
13822else
13823 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
13824fi
13825
13826
13827
13828
13829if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13830 if test -n "$with_build_time_tools"; then
5213506e
RW
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
13832$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13833 if test -x $with_build_time_tools/as; then
13834 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
13835 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
13837$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 13838 else
5213506e
RW
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13840$as_echo "no" >&6; }
d1f8db0c 13841 fi
e8b05380
PB
13842 elif test $build != $host && test $have_gcc_for_target = yes; then
13843 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
13844 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
13845 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
13846 fi
13847fi
3e19841a 13848if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13849 # Extract the first word of "as", so it can be a program name with args.
13850set dummy as; ac_word=$2
5213506e
RW
13851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13852$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13853if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 13854 $as_echo_n "(cached) " >&6
e8b05380 13855else
1c710c3c
DJ
13856 case $AS_FOR_TARGET in
13857 [\\/]* | ?:[\\/]*)
e8b05380
PB
13858 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
13859 ;;
e8b05380 13860 *)
1c710c3c
DJ
13861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13862for as_dir in $gcc_cv_tool_dirs
13863do
13864 IFS=$as_save_IFS
13865 test -z "$as_dir" && as_dir=.
5213506e 13866 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13868 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13870 break 2
13871 fi
13872done
5213506e
RW
13873 done
13874IFS=$as_save_IFS
1c710c3c 13875
e8b05380
PB
13876 ;;
13877esac
13878fi
1c710c3c 13879AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 13880if test -n "$AS_FOR_TARGET"; then
5213506e
RW
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13882$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 13883else
5213506e
RW
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13885$as_echo "no" >&6; }
e8b05380
PB
13886fi
13887
5213506e 13888
e8b05380
PB
13889fi
13890if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
13891
13892
13893if test -n "$AS_FOR_TARGET"; then
13894 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
13895elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13896 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13897fi
13898
13899if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13900 for ncn_progname in as; do
13901 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13902set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13904$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13905if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 13906 $as_echo_n "(cached) " >&6
278a7a38
AO
13907else
13908 if test -n "$AS_FOR_TARGET"; then
13909 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13910else
13911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13912for as_dir in $PATH
13913do
13914 IFS=$as_save_IFS
13915 test -z "$as_dir" && as_dir=.
5213506e 13916 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13918 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 13919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13920 break 2
13921 fi
13922done
5213506e
RW
13923 done
13924IFS=$as_save_IFS
278a7a38
AO
13925
13926fi
13927fi
13928AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13929if test -n "$AS_FOR_TARGET"; then
5213506e
RW
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13931$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 13932else
5213506e
RW
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13934$as_echo "no" >&6; }
278a7a38
AO
13935fi
13936
5213506e 13937
278a7a38
AO
13938 done
13939fi
13940
13941if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13942 for ncn_progname in as; do
5213506e
RW
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13944$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13945 if test -x $with_build_time_tools/${ncn_progname}; then
13946 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13948$as_echo "yes" >&6; }
e8b05380
PB
13949 break
13950 else
5213506e
RW
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13952$as_echo "no" >&6; }
e8b05380
PB
13953 fi
13954 done
13955fi
13956
13957if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
13958 for ncn_progname in as; do
13959 if test -n "$ncn_target_tool_prefix"; then
13960 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13961set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13963$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13964if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 13965 $as_echo_n "(cached) " >&6
e8b05380
PB
13966else
13967 if test -n "$AS_FOR_TARGET"; then
13968 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13969else
1c710c3c
DJ
13970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13971for as_dir in $PATH
13972do
13973 IFS=$as_save_IFS
13974 test -z "$as_dir" && as_dir=.
5213506e 13975 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13977 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13979 break 2
13980 fi
13981done
5213506e
RW
13982 done
13983IFS=$as_save_IFS
1c710c3c 13984
e8b05380
PB
13985fi
13986fi
1c710c3c 13987AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 13988if test -n "$AS_FOR_TARGET"; then
5213506e
RW
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13990$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 13991else
5213506e
RW
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13993$as_echo "no" >&6; }
e8b05380
PB
13994fi
13995
5213506e 13996
e8b05380
PB
13997 fi
13998 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
13999 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14000set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14002$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14003if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14004 $as_echo_n "(cached) " >&6
4de997d1 14005else
e8b05380
PB
14006 if test -n "$AS_FOR_TARGET"; then
14007 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 14008else
1c710c3c
DJ
14009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14010for as_dir in $PATH
14011do
14012 IFS=$as_save_IFS
14013 test -z "$as_dir" && as_dir=.
5213506e 14014 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14016 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14018 break 2
14019 fi
14020done
5213506e
RW
14021 done
14022IFS=$as_save_IFS
1c710c3c 14023
4de997d1
PB
14024fi
14025fi
1c710c3c 14026AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14027if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14029$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 14030else
5213506e
RW
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14032$as_echo "no" >&6; }
4de997d1 14033fi
1c710c3c 14034
5213506e 14035
e8b05380
PB
14036 fi
14037 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14038 done
14039fi
1c710c3c 14040
e8b05380
PB
14041if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14042 set dummy as
14043 if test $build = $target ; then
14044 AS_FOR_TARGET="$2"
14045 else
14046 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 14047 fi
1c00b503
PB
14048else
14049 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 14050fi
2693c0b0 14051
d1f8db0c
PB
14052else
14053 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
14054fi
14055
e8b05380
PB
14056
14057
14058
14059if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14060 if test -n "$with_build_time_tools"; then
5213506e
RW
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14062$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14063 if test -x $with_build_time_tools/dlltool; then
14064 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14065 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14067$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 14068 else
5213506e
RW
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14070$as_echo "no" >&6; }
d1f8db0c 14071 fi
e8b05380
PB
14072 elif test $build != $host && test $have_gcc_for_target = yes; then
14073 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
14074 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14075 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
14076 fi
14077fi
3e19841a 14078if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14079 # Extract the first word of "dlltool", so it can be a program name with args.
14080set dummy dlltool; ac_word=$2
5213506e
RW
14081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14082$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14083if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14084 $as_echo_n "(cached) " >&6
4de997d1 14085else
1c710c3c
DJ
14086 case $DLLTOOL_FOR_TARGET in
14087 [\\/]* | ?:[\\/]*)
e8b05380
PB
14088 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14089 ;;
e8b05380 14090 *)
1c710c3c
DJ
14091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14092for as_dir in $gcc_cv_tool_dirs
14093do
14094 IFS=$as_save_IFS
14095 test -z "$as_dir" && as_dir=.
5213506e 14096 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14098 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14100 break 2
14101 fi
14102done
5213506e
RW
14103 done
14104IFS=$as_save_IFS
1c710c3c 14105
e8b05380
PB
14106 ;;
14107esac
4de997d1 14108fi
1c710c3c 14109DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 14110if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14112$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14113else
5213506e
RW
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14115$as_echo "no" >&6; }
4de997d1
PB
14116fi
14117
5213506e 14118
e8b05380
PB
14119fi
14120if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
14121
14122
14123if test -n "$DLLTOOL_FOR_TARGET"; then
14124 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14125elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14126 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14127fi
14128
14129if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14130 for ncn_progname in dlltool; do
14131 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14132set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14134$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14135if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14136 $as_echo_n "(cached) " >&6
278a7a38
AO
14137else
14138 if test -n "$DLLTOOL_FOR_TARGET"; then
14139 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14140else
14141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14142for as_dir in $PATH
14143do
14144 IFS=$as_save_IFS
14145 test -z "$as_dir" && as_dir=.
5213506e 14146 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14148 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14150 break 2
14151 fi
14152done
5213506e
RW
14153 done
14154IFS=$as_save_IFS
278a7a38
AO
14155
14156fi
14157fi
14158DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14159if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14161$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 14162else
5213506e
RW
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14164$as_echo "no" >&6; }
278a7a38
AO
14165fi
14166
5213506e 14167
278a7a38
AO
14168 done
14169fi
14170
14171if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14172 for ncn_progname in dlltool; do
5213506e
RW
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14174$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14175 if test -x $with_build_time_tools/${ncn_progname}; then
14176 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14178$as_echo "yes" >&6; }
e8b05380
PB
14179 break
14180 else
5213506e
RW
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14182$as_echo "no" >&6; }
e8b05380
PB
14183 fi
14184 done
14185fi
14186
14187if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14188 for ncn_progname in dlltool; do
14189 if test -n "$ncn_target_tool_prefix"; then
14190 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14191set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14193$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14194if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14195 $as_echo_n "(cached) " >&6
4de997d1 14196else
e8b05380
PB
14197 if test -n "$DLLTOOL_FOR_TARGET"; then
14198 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14199else
1c710c3c
DJ
14200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14201for as_dir in $PATH
14202do
14203 IFS=$as_save_IFS
14204 test -z "$as_dir" && as_dir=.
5213506e 14205 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14207 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14209 break 2
14210 fi
14211done
5213506e
RW
14212 done
14213IFS=$as_save_IFS
1c710c3c 14214
4de997d1
PB
14215fi
14216fi
1c710c3c 14217DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14218if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14220$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14221else
5213506e
RW
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14223$as_echo "no" >&6; }
4de997d1 14224fi
4de997d1 14225
5213506e 14226
e8b05380
PB
14227 fi
14228 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14230set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14232$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14233if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14234 $as_echo_n "(cached) " >&6
4de997d1 14235else
e8b05380
PB
14236 if test -n "$DLLTOOL_FOR_TARGET"; then
14237 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14238else
1c710c3c
DJ
14239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14240for as_dir in $PATH
14241do
14242 IFS=$as_save_IFS
14243 test -z "$as_dir" && as_dir=.
5213506e 14244 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14246 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14248 break 2
14249 fi
14250done
5213506e
RW
14251 done
14252IFS=$as_save_IFS
1c710c3c 14253
4de997d1
PB
14254fi
14255fi
1c710c3c 14256DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14257if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14259$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14260else
5213506e
RW
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14262$as_echo "no" >&6; }
4de997d1 14263fi
1c710c3c 14264
5213506e 14265
e8b05380
PB
14266 fi
14267 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14268 done
14269fi
1c710c3c 14270
e8b05380
PB
14271if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14272 set dummy dlltool
14273 if test $build = $target ; then
14274 DLLTOOL_FOR_TARGET="$2"
14275 else
14276 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14277 fi
1c00b503
PB
14278else
14279 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
14280fi
14281
d1f8db0c
PB
14282else
14283 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
14284fi
14285
4de997d1 14286
e8b05380
PB
14287
14288
3b5e8ee4
IS
14289if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14290 if test -n "$with_build_time_tools"; then
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14292$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14293 if test -x $with_build_time_tools/dsymutil; then
14294 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14295 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14297$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14298 else
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14300$as_echo "no" >&6; }
14301 fi
14302 elif test $build != $host && test $have_gcc_for_target = yes; then
14303 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14304 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14305 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14306 fi
14307fi
14308if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14309 # Extract the first word of "dsymutil", so it can be a program name with args.
14310set dummy dsymutil; ac_word=$2
14311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14312$as_echo_n "checking for $ac_word... " >&6; }
14313if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14314 $as_echo_n "(cached) " >&6
14315else
14316 case $DSYMUTIL_FOR_TARGET in
14317 [\\/]* | ?:[\\/]*)
14318 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14319 ;;
14320 *)
14321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14322for as_dir in $gcc_cv_tool_dirs
14323do
14324 IFS=$as_save_IFS
14325 test -z "$as_dir" && as_dir=.
14326 for ac_exec_ext in '' $ac_executable_extensions; do
14327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14328 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14330 break 2
14331 fi
14332done
14333 done
14334IFS=$as_save_IFS
14335
14336 ;;
14337esac
14338fi
14339DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14340if test -n "$DSYMUTIL_FOR_TARGET"; then
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14342$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14343else
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14345$as_echo "no" >&6; }
14346fi
14347
14348
14349fi
14350if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14351
14352
14353if test -n "$DSYMUTIL_FOR_TARGET"; then
14354 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14355elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14356 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14357fi
14358
14359if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14360 for ncn_progname in dsymutil; do
14361 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14362set dummy ${ncn_progname}; ac_word=$2
14363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14364$as_echo_n "checking for $ac_word... " >&6; }
14365if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14366 $as_echo_n "(cached) " >&6
14367else
14368 if test -n "$DSYMUTIL_FOR_TARGET"; then
14369 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14370else
14371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14372for as_dir in $PATH
14373do
14374 IFS=$as_save_IFS
14375 test -z "$as_dir" && as_dir=.
14376 for ac_exec_ext in '' $ac_executable_extensions; do
14377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14378 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14380 break 2
14381 fi
14382done
14383 done
14384IFS=$as_save_IFS
14385
14386fi
14387fi
14388DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14389if test -n "$DSYMUTIL_FOR_TARGET"; then
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14391$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14392else
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14394$as_echo "no" >&6; }
14395fi
14396
14397
14398 done
14399fi
14400
14401if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14402 for ncn_progname in dsymutil; do
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14404$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14405 if test -x $with_build_time_tools/${ncn_progname}; then
14406 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14408$as_echo "yes" >&6; }
14409 break
14410 else
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14412$as_echo "no" >&6; }
14413 fi
14414 done
14415fi
14416
14417if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14418 for ncn_progname in dsymutil; do
14419 if test -n "$ncn_target_tool_prefix"; then
14420 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14421set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14423$as_echo_n "checking for $ac_word... " >&6; }
14424if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14425 $as_echo_n "(cached) " >&6
14426else
14427 if test -n "$DSYMUTIL_FOR_TARGET"; then
14428 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14429else
14430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14431for as_dir in $PATH
14432do
14433 IFS=$as_save_IFS
14434 test -z "$as_dir" && as_dir=.
14435 for ac_exec_ext in '' $ac_executable_extensions; do
14436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14437 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14439 break 2
14440 fi
14441done
14442 done
14443IFS=$as_save_IFS
14444
14445fi
14446fi
14447DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14448if test -n "$DSYMUTIL_FOR_TARGET"; then
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14450$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14451else
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14453$as_echo "no" >&6; }
14454fi
14455
14456
14457 fi
14458 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14460set dummy ${ncn_progname}; ac_word=$2
14461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14462$as_echo_n "checking for $ac_word... " >&6; }
14463if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14464 $as_echo_n "(cached) " >&6
14465else
14466 if test -n "$DSYMUTIL_FOR_TARGET"; then
14467 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14468else
14469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14470for as_dir in $PATH
14471do
14472 IFS=$as_save_IFS
14473 test -z "$as_dir" && as_dir=.
14474 for ac_exec_ext in '' $ac_executable_extensions; do
14475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14476 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14478 break 2
14479 fi
14480done
14481 done
14482IFS=$as_save_IFS
14483
14484fi
14485fi
14486DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14487if test -n "$DSYMUTIL_FOR_TARGET"; then
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14489$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14490else
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14492$as_echo "no" >&6; }
14493fi
14494
14495
14496 fi
14497 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14498 done
14499fi
14500
14501if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14502 set dummy dsymutil
14503 if test $build = $target ; then
14504 DSYMUTIL_FOR_TARGET="$2"
14505 else
14506 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14507 fi
14508else
14509 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14510fi
14511
14512else
14513 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14514fi
14515
14516
14517
14518
e8b05380
PB
14519if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14520 if test -n "$with_build_time_tools"; then
5213506e
RW
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14522$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14523 if test -x $with_build_time_tools/ld; then
14524 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14525 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14527$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 14528 else
5213506e
RW
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14530$as_echo "no" >&6; }
d1f8db0c 14531 fi
e8b05380
PB
14532 elif test $build != $host && test $have_gcc_for_target = yes; then
14533 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
14534 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14535 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 14536 fi
e8b05380 14537fi
3e19841a 14538if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14539 # Extract the first word of "ld", so it can be a program name with args.
14540set dummy ld; ac_word=$2
5213506e
RW
14541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14542$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14543if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 14544 $as_echo_n "(cached) " >&6
4de997d1 14545else
1c710c3c
DJ
14546 case $LD_FOR_TARGET in
14547 [\\/]* | ?:[\\/]*)
e8b05380
PB
14548 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14549 ;;
e8b05380 14550 *)
1c710c3c
DJ
14551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14552for as_dir in $gcc_cv_tool_dirs
14553do
14554 IFS=$as_save_IFS
14555 test -z "$as_dir" && as_dir=.
5213506e 14556 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14558 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14560 break 2
14561 fi
14562done
5213506e
RW
14563 done
14564IFS=$as_save_IFS
1c710c3c 14565
e8b05380
PB
14566 ;;
14567esac
4de997d1 14568fi
1c710c3c 14569LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 14570if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14572$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 14573else
5213506e
RW
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14575$as_echo "no" >&6; }
4de997d1 14576fi
2693c0b0 14577
5213506e 14578
e8b05380
PB
14579fi
14580if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
14581
14582
14583if test -n "$LD_FOR_TARGET"; then
14584 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14585elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14586 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14587fi
14588
14589if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14590 for ncn_progname in ld; do
14591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14592set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14594$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14595if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14596 $as_echo_n "(cached) " >&6
278a7a38
AO
14597else
14598 if test -n "$LD_FOR_TARGET"; then
14599 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14600else
14601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14602for as_dir in $PATH
14603do
14604 IFS=$as_save_IFS
14605 test -z "$as_dir" && as_dir=.
5213506e 14606 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14608 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 14609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14610 break 2
14611 fi
14612done
5213506e
RW
14613 done
14614IFS=$as_save_IFS
278a7a38
AO
14615
14616fi
14617fi
14618LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14619if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14621$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 14622else
5213506e
RW
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14624$as_echo "no" >&6; }
278a7a38
AO
14625fi
14626
5213506e 14627
278a7a38
AO
14628 done
14629fi
14630
14631if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14632 for ncn_progname in ld; do
5213506e
RW
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14634$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14635 if test -x $with_build_time_tools/${ncn_progname}; then
14636 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14638$as_echo "yes" >&6; }
e8b05380
PB
14639 break
14640 else
5213506e
RW
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14642$as_echo "no" >&6; }
e8b05380
PB
14643 fi
14644 done
ca9f4b81
AO
14645fi
14646
e8b05380
PB
14647if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14648 for ncn_progname in ld; do
14649 if test -n "$ncn_target_tool_prefix"; then
14650 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14651set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14653$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14654if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14655 $as_echo_n "(cached) " >&6
ca9f4b81 14656else
4de997d1
PB
14657 if test -n "$LD_FOR_TARGET"; then
14658 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 14659else
1c710c3c
DJ
14660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14661for as_dir in $PATH
14662do
14663 IFS=$as_save_IFS
14664 test -z "$as_dir" && as_dir=.
5213506e 14665 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14667 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14669 break 2
14670 fi
14671done
5213506e
RW
14672 done
14673IFS=$as_save_IFS
1c710c3c 14674
ca9f4b81
AO
14675fi
14676fi
1c710c3c 14677LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 14678if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14680$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 14681else
5213506e
RW
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14683$as_echo "no" >&6; }
ca9f4b81
AO
14684fi
14685
5213506e 14686
e8b05380
PB
14687 fi
14688 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14690set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14692$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14693if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14694 $as_echo_n "(cached) " >&6
ca9f4b81 14695else
2693c0b0
PB
14696 if test -n "$LD_FOR_TARGET"; then
14697 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 14698else
1c710c3c
DJ
14699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14700for as_dir in $PATH
14701do
14702 IFS=$as_save_IFS
14703 test -z "$as_dir" && as_dir=.
5213506e 14704 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14706 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 14707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14708 break 2
14709 fi
14710done
5213506e
RW
14711 done
14712IFS=$as_save_IFS
1c710c3c 14713
ca9f4b81
AO
14714fi
14715fi
1c710c3c 14716LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 14717if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14719$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 14720else
5213506e
RW
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14722$as_echo "no" >&6; }
ca9f4b81 14723fi
1c710c3c 14724
5213506e 14725
e8b05380
PB
14726 fi
14727 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14728 done
14729fi
1c710c3c 14730
2693c0b0
PB
14731if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14732 set dummy ld
14733 if test $build = $target ; then
14734 LD_FOR_TARGET="$2"
ca9f4b81 14735 else
2693c0b0 14736 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 14737 fi
1c00b503
PB
14738else
14739 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
14740fi
14741
d1f8db0c
PB
14742else
14743 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
14744fi
14745
14746
14747
14748
14749if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14750 if test -n "$with_build_time_tools"; then
5213506e
RW
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14752$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14753 if test -x $with_build_time_tools/lipo; then
14754 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14755 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14757$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 14758 else
5213506e
RW
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14760$as_echo "no" >&6; }
d1f8db0c 14761 fi
e8b05380
PB
14762 elif test $build != $host && test $have_gcc_for_target = yes; then
14763 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
14764 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14765 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
14766 fi
14767fi
278a7a38
AO
14768if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14769 # Extract the first word of "lipo", so it can be a program name with args.
14770set dummy lipo; ac_word=$2
5213506e
RW
14771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14772$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14773if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 14774 $as_echo_n "(cached) " >&6
278a7a38
AO
14775else
14776 case $LIPO_FOR_TARGET in
14777 [\\/]* | ?:[\\/]*)
14778 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14779 ;;
14780 *)
14781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14782for as_dir in $gcc_cv_tool_dirs
14783do
14784 IFS=$as_save_IFS
14785 test -z "$as_dir" && as_dir=.
5213506e 14786 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14788 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14790 break 2
14791 fi
14792done
5213506e
RW
14793 done
14794IFS=$as_save_IFS
278a7a38
AO
14795
14796 ;;
14797esac
14798fi
14799LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 14800if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14802$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 14803else
5213506e
RW
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14805$as_echo "no" >&6; }
278a7a38
AO
14806fi
14807
5213506e 14808
278a7a38
AO
14809fi
14810if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14811
14812
14813if test -n "$LIPO_FOR_TARGET"; then
14814 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14815elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14816 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14817fi
14818
14819if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14820 for ncn_progname in lipo; do
14821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14822set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14824$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14825if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 14826 $as_echo_n "(cached) " >&6
e8b05380 14827else
278a7a38
AO
14828 if test -n "$LIPO_FOR_TARGET"; then
14829 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14830else
14831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14832for as_dir in $PATH
1c710c3c
DJ
14833do
14834 IFS=$as_save_IFS
14835 test -z "$as_dir" && as_dir=.
5213506e 14836 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14838 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 14839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14840 break 2
14841 fi
14842done
5213506e
RW
14843 done
14844IFS=$as_save_IFS
1c710c3c 14845
e8b05380 14846fi
278a7a38
AO
14847fi
14848LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 14849if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14851$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 14852else
5213506e
RW
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14854$as_echo "no" >&6; }
e8b05380
PB
14855fi
14856
5213506e 14857
278a7a38 14858 done
e8b05380 14859fi
278a7a38
AO
14860
14861if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14862 for ncn_progname in lipo; do
5213506e
RW
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14864$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14865 if test -x $with_build_time_tools/${ncn_progname}; then
14866 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14868$as_echo "yes" >&6; }
e8b05380
PB
14869 break
14870 else
5213506e
RW
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14872$as_echo "no" >&6; }
e8b05380
PB
14873 fi
14874 done
14875fi
14876
14877if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
14878 for ncn_progname in lipo; do
14879 if test -n "$ncn_target_tool_prefix"; then
14880 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14881set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14883$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14884if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 14885 $as_echo_n "(cached) " >&6
040b1c5a
GK
14886else
14887 if test -n "$LIPO_FOR_TARGET"; then
14888 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14889else
1c710c3c
DJ
14890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14891for as_dir in $PATH
14892do
14893 IFS=$as_save_IFS
14894 test -z "$as_dir" && as_dir=.
5213506e 14895 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14897 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14899 break 2
14900 fi
14901done
5213506e
RW
14902 done
14903IFS=$as_save_IFS
1c710c3c 14904
040b1c5a
GK
14905fi
14906fi
1c710c3c 14907LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 14908if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14910$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 14911else
5213506e
RW
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14913$as_echo "no" >&6; }
040b1c5a
GK
14914fi
14915
5213506e 14916
e8b05380
PB
14917 fi
14918 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
14919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 14920set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14922$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14923if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 14924 $as_echo_n "(cached) " >&6
040b1c5a
GK
14925else
14926 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
14927 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14928else
1c710c3c
DJ
14929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14930for as_dir in $PATH
14931do
14932 IFS=$as_save_IFS
14933 test -z "$as_dir" && as_dir=.
5213506e 14934 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14936 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 14937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14938 break 2
14939 fi
14940done
5213506e
RW
14941 done
14942IFS=$as_save_IFS
1c710c3c 14943
040b1c5a
GK
14944fi
14945fi
1c710c3c 14946LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 14947if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14949$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 14950else
5213506e
RW
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14952$as_echo "no" >&6; }
040b1c5a 14953fi
1c710c3c 14954
5213506e 14955
e8b05380
PB
14956 fi
14957 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
14958 done
14959fi
1c710c3c 14960
040b1c5a
GK
14961if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
14962 set dummy lipo
14963 if test $build = $target ; then
14964 LIPO_FOR_TARGET="$2"
14965 else
14966 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
14967 fi
1c00b503
PB
14968else
14969 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
14970fi
14971
d1f8db0c
PB
14972else
14973 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
14974fi
14975
14976
14977
14978
14979if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14980 if test -n "$with_build_time_tools"; then
5213506e
RW
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
14982$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14983 if test -x $with_build_time_tools/nm; then
14984 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
14985 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
14987$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 14988 else
5213506e
RW
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14990$as_echo "no" >&6; }
d1f8db0c 14991 fi
e8b05380
PB
14992 elif test $build != $host && test $have_gcc_for_target = yes; then
14993 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
14994 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
14995 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
14996 fi
14997fi
3e19841a 14998if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14999 # Extract the first word of "nm", so it can be a program name with args.
15000set dummy nm; ac_word=$2
5213506e
RW
15001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15002$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15003if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 15004 $as_echo_n "(cached) " >&6
e8b05380 15005else
1c710c3c
DJ
15006 case $NM_FOR_TARGET in
15007 [\\/]* | ?:[\\/]*)
e8b05380
PB
15008 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15009 ;;
e8b05380 15010 *)
1c710c3c
DJ
15011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15012for as_dir in $gcc_cv_tool_dirs
15013do
15014 IFS=$as_save_IFS
15015 test -z "$as_dir" && as_dir=.
5213506e 15016 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15018 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15020 break 2
15021 fi
15022done
5213506e
RW
15023 done
15024IFS=$as_save_IFS
1c710c3c 15025
e8b05380
PB
15026 ;;
15027esac
15028fi
1c710c3c 15029NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 15030if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15032$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 15033else
5213506e
RW
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15035$as_echo "no" >&6; }
e8b05380
PB
15036fi
15037
5213506e 15038
e8b05380
PB
15039fi
15040if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
15041
15042
15043if test -n "$NM_FOR_TARGET"; then
15044 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15045elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15046 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15047fi
15048
15049if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15050 for ncn_progname in nm; do
15051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15052set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15054$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15055if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15056 $as_echo_n "(cached) " >&6
278a7a38
AO
15057else
15058 if test -n "$NM_FOR_TARGET"; then
15059 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15060else
15061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15062for as_dir in $PATH
15063do
15064 IFS=$as_save_IFS
15065 test -z "$as_dir" && as_dir=.
5213506e 15066 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15068 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15070 break 2
15071 fi
15072done
5213506e
RW
15073 done
15074IFS=$as_save_IFS
278a7a38
AO
15075
15076fi
15077fi
15078NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15079if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15081$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 15082else
5213506e
RW
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15084$as_echo "no" >&6; }
278a7a38
AO
15085fi
15086
5213506e 15087
278a7a38
AO
15088 done
15089fi
15090
15091if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15092 for ncn_progname in nm; do
5213506e
RW
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15094$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15095 if test -x $with_build_time_tools/${ncn_progname}; then
15096 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15098$as_echo "yes" >&6; }
e8b05380
PB
15099 break
15100 else
5213506e
RW
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15102$as_echo "no" >&6; }
e8b05380
PB
15103 fi
15104 done
15105fi
15106
15107if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15108 for ncn_progname in nm; do
15109 if test -n "$ncn_target_tool_prefix"; then
15110 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 15111set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15113$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15114if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15115 $as_echo_n "(cached) " >&6
ca9f4b81 15116else
4de997d1
PB
15117 if test -n "$NM_FOR_TARGET"; then
15118 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15119else
1c710c3c
DJ
15120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15121for as_dir in $PATH
15122do
15123 IFS=$as_save_IFS
15124 test -z "$as_dir" && as_dir=.
5213506e 15125 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15127 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15129 break 2
15130 fi
15131done
5213506e
RW
15132 done
15133IFS=$as_save_IFS
1c710c3c 15134
ca9f4b81
AO
15135fi
15136fi
1c710c3c 15137NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 15138if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15140$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15141else
5213506e
RW
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15143$as_echo "no" >&6; }
ca9f4b81
AO
15144fi
15145
5213506e 15146
e8b05380
PB
15147 fi
15148 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15150set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15152$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15153if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15154 $as_echo_n "(cached) " >&6
ca9f4b81 15155else
2693c0b0
PB
15156 if test -n "$NM_FOR_TARGET"; then
15157 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15158else
1c710c3c
DJ
15159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15160for as_dir in $PATH
15161do
15162 IFS=$as_save_IFS
15163 test -z "$as_dir" && as_dir=.
5213506e 15164 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15166 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15168 break 2
15169 fi
15170done
5213506e
RW
15171 done
15172IFS=$as_save_IFS
1c710c3c 15173
ca9f4b81
AO
15174fi
15175fi
1c710c3c 15176NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 15177if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15179$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15180else
5213506e
RW
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15182$as_echo "no" >&6; }
ca9f4b81 15183fi
1c710c3c 15184
5213506e 15185
e8b05380
PB
15186 fi
15187 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15188 done
15189fi
1c710c3c 15190
2693c0b0
PB
15191if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15192 set dummy nm
15193 if test $build = $target ; then
15194 NM_FOR_TARGET="$2"
ca9f4b81 15195 else
2693c0b0 15196 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15197 fi
1c00b503
PB
15198else
15199 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
15200fi
15201
d1f8db0c
PB
15202else
15203 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
15204fi
15205
15206
15207
15208
9bccfdf5
AP
15209if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15210 if test -n "$with_build_time_tools"; then
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15212$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15213 if test -x $with_build_time_tools/objcopy; then
15214 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15215 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15217$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15218 else
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15220$as_echo "no" >&6; }
15221 fi
15222 elif test $build != $host && test $have_gcc_for_target = yes; then
15223 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15224 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15225 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15226 fi
15227fi
15228if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15229 # Extract the first word of "objcopy", so it can be a program name with args.
15230set dummy objcopy; ac_word=$2
15231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15232$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15233if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15234 $as_echo_n "(cached) " >&6
15235else
15236 case $OBJCOPY_FOR_TARGET in
15237 [\\/]* | ?:[\\/]*)
15238 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15239 ;;
15240 *)
15241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15242for as_dir in $gcc_cv_tool_dirs
15243do
15244 IFS=$as_save_IFS
15245 test -z "$as_dir" && as_dir=.
15246 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15248 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15250 break 2
15251 fi
15252done
15253 done
15254IFS=$as_save_IFS
15255
15256 ;;
15257esac
15258fi
15259OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15260if test -n "$OBJCOPY_FOR_TARGET"; then
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15262$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15263else
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15265$as_echo "no" >&6; }
15266fi
15267
15268
15269fi
15270if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15271
15272
15273if test -n "$OBJCOPY_FOR_TARGET"; then
15274 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15275elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15276 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15277fi
15278
15279if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15280 for ncn_progname in objcopy; do
15281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15282set dummy ${ncn_progname}; ac_word=$2
15283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15284$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15285if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15286 $as_echo_n "(cached) " >&6
15287else
15288 if test -n "$OBJCOPY_FOR_TARGET"; then
15289 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15290else
15291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15292for as_dir in $PATH
15293do
15294 IFS=$as_save_IFS
15295 test -z "$as_dir" && as_dir=.
15296 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15298 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15300 break 2
15301 fi
15302done
15303 done
15304IFS=$as_save_IFS
15305
15306fi
15307fi
15308OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15309if test -n "$OBJCOPY_FOR_TARGET"; then
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15311$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15312else
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15314$as_echo "no" >&6; }
15315fi
15316
15317
15318 done
15319fi
15320
15321if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15322 for ncn_progname in objcopy; do
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15324$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15325 if test -x $with_build_time_tools/${ncn_progname}; then
15326 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15328$as_echo "yes" >&6; }
15329 break
15330 else
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15332$as_echo "no" >&6; }
15333 fi
15334 done
15335fi
15336
15337if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15338 for ncn_progname in objcopy; do
15339 if test -n "$ncn_target_tool_prefix"; then
15340 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15341set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15343$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15344if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15345 $as_echo_n "(cached) " >&6
15346else
15347 if test -n "$OBJCOPY_FOR_TARGET"; then
15348 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15349else
15350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15351for as_dir in $PATH
15352do
15353 IFS=$as_save_IFS
15354 test -z "$as_dir" && as_dir=.
15355 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15357 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15359 break 2
15360 fi
15361done
15362 done
15363IFS=$as_save_IFS
15364
15365fi
15366fi
15367OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15368if test -n "$OBJCOPY_FOR_TARGET"; then
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15370$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15371else
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15373$as_echo "no" >&6; }
15374fi
15375
15376
15377 fi
15378 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15380set dummy ${ncn_progname}; ac_word=$2
15381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15382$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15383if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15384 $as_echo_n "(cached) " >&6
15385else
15386 if test -n "$OBJCOPY_FOR_TARGET"; then
15387 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15388else
15389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15390for as_dir in $PATH
15391do
15392 IFS=$as_save_IFS
15393 test -z "$as_dir" && as_dir=.
15394 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15396 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15398 break 2
15399 fi
15400done
15401 done
15402IFS=$as_save_IFS
15403
15404fi
15405fi
15406OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15407if test -n "$OBJCOPY_FOR_TARGET"; then
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15409$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15410else
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15412$as_echo "no" >&6; }
15413fi
15414
15415
15416 fi
15417 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15418 done
15419fi
15420
15421if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15422 set dummy objcopy
15423 if test $build = $target ; then
15424 OBJCOPY_FOR_TARGET="$2"
15425 else
15426 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15427 fi
15428else
15429 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15430fi
15431
15432else
15433 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15434fi
15435
15436
15437
15438
e8b05380
PB
15439if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15440 if test -n "$with_build_time_tools"; then
5213506e
RW
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15442$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15443 if test -x $with_build_time_tools/objdump; then
15444 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15445 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15447$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 15448 else
5213506e
RW
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15450$as_echo "no" >&6; }
d1f8db0c 15451 fi
e8b05380
PB
15452 elif test $build != $host && test $have_gcc_for_target = yes; then
15453 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
15454 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15455 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
15456 fi
15457fi
3e19841a 15458if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15459 # Extract the first word of "objdump", so it can be a program name with args.
15460set dummy objdump; ac_word=$2
5213506e
RW
15461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15462$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15463if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15464 $as_echo_n "(cached) " >&6
e8b05380 15465else
1c710c3c
DJ
15466 case $OBJDUMP_FOR_TARGET in
15467 [\\/]* | ?:[\\/]*)
e8b05380
PB
15468 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15469 ;;
e8b05380 15470 *)
1c710c3c
DJ
15471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15472for as_dir in $gcc_cv_tool_dirs
15473do
15474 IFS=$as_save_IFS
15475 test -z "$as_dir" && as_dir=.
5213506e 15476 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15478 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15480 break 2
15481 fi
15482done
5213506e
RW
15483 done
15484IFS=$as_save_IFS
1c710c3c 15485
e8b05380
PB
15486 ;;
15487esac
15488fi
1c710c3c 15489OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 15490if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15492$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 15493else
5213506e
RW
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15495$as_echo "no" >&6; }
e8b05380
PB
15496fi
15497
5213506e 15498
e8b05380
PB
15499fi
15500if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
15501
15502
15503if test -n "$OBJDUMP_FOR_TARGET"; then
15504 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15505elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15506 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15507fi
15508
15509if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15510 for ncn_progname in objdump; do
15511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15512set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15514$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15515if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15516 $as_echo_n "(cached) " >&6
278a7a38
AO
15517else
15518 if test -n "$OBJDUMP_FOR_TARGET"; then
15519 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15520else
15521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15522for as_dir in $PATH
15523do
15524 IFS=$as_save_IFS
15525 test -z "$as_dir" && as_dir=.
5213506e 15526 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15528 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 15529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15530 break 2
15531 fi
15532done
5213506e
RW
15533 done
15534IFS=$as_save_IFS
278a7a38
AO
15535
15536fi
15537fi
15538OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15539if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15541$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 15542else
5213506e
RW
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15544$as_echo "no" >&6; }
278a7a38
AO
15545fi
15546
5213506e 15547
278a7a38
AO
15548 done
15549fi
15550
15551if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15552 for ncn_progname in objdump; do
5213506e
RW
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15554$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15555 if test -x $with_build_time_tools/${ncn_progname}; then
15556 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15558$as_echo "yes" >&6; }
e8b05380
PB
15559 break
15560 else
5213506e
RW
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15562$as_echo "no" >&6; }
e8b05380
PB
15563 fi
15564 done
15565fi
15566
15567if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15568 for ncn_progname in objdump; do
15569 if test -n "$ncn_target_tool_prefix"; then
15570 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15571set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15573$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15574if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15575 $as_echo_n "(cached) " >&6
d739199a
DJ
15576else
15577 if test -n "$OBJDUMP_FOR_TARGET"; then
15578 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15579else
1c710c3c
DJ
15580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15581for as_dir in $PATH
15582do
15583 IFS=$as_save_IFS
15584 test -z "$as_dir" && as_dir=.
5213506e 15585 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15587 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15589 break 2
15590 fi
15591done
5213506e
RW
15592 done
15593IFS=$as_save_IFS
1c710c3c 15594
d739199a
DJ
15595fi
15596fi
1c710c3c 15597OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 15598if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15600$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 15601else
5213506e
RW
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15603$as_echo "no" >&6; }
d739199a
DJ
15604fi
15605
5213506e 15606
e8b05380
PB
15607 fi
15608 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15609 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 15610set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15612$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15613if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15614 $as_echo_n "(cached) " >&6
d739199a
DJ
15615else
15616 if test -n "$OBJDUMP_FOR_TARGET"; then
15617 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15618else
1c710c3c
DJ
15619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15620for as_dir in $PATH
15621do
15622 IFS=$as_save_IFS
15623 test -z "$as_dir" && as_dir=.
5213506e 15624 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15626 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 15627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15628 break 2
15629 fi
15630done
5213506e
RW
15631 done
15632IFS=$as_save_IFS
1c710c3c 15633
d739199a
DJ
15634fi
15635fi
1c710c3c 15636OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 15637if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15639$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 15640else
5213506e
RW
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15642$as_echo "no" >&6; }
d739199a 15643fi
1c710c3c 15644
5213506e 15645
e8b05380
PB
15646 fi
15647 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15648 done
15649fi
1c710c3c 15650
d739199a
DJ
15651if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15652 set dummy objdump
15653 if test $build = $target ; then
15654 OBJDUMP_FOR_TARGET="$2"
15655 else
15656 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15657 fi
1c00b503
PB
15658else
15659 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
15660fi
15661
d1f8db0c
PB
15662else
15663 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
15664fi
15665
15666
15667
15668
e4a9a572
IS
15669if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15670 if test -n "$with_build_time_tools"; then
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15672$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15673 if test -x $with_build_time_tools/otool; then
15674 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15675 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15677$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15678 else
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15680$as_echo "no" >&6; }
15681 fi
15682 elif test $build != $host && test $have_gcc_for_target = yes; then
15683 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15684 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15685 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15686 fi
15687fi
15688if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15689 # Extract the first word of "otool", so it can be a program name with args.
15690set dummy otool; ac_word=$2
15691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15692$as_echo_n "checking for $ac_word... " >&6; }
15693if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15694 $as_echo_n "(cached) " >&6
15695else
15696 case $OTOOL_FOR_TARGET in
15697 [\\/]* | ?:[\\/]*)
15698 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15699 ;;
15700 *)
15701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15702for as_dir in $gcc_cv_tool_dirs
15703do
15704 IFS=$as_save_IFS
15705 test -z "$as_dir" && as_dir=.
15706 for ac_exec_ext in '' $ac_executable_extensions; do
15707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15708 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15710 break 2
15711 fi
15712done
15713 done
15714IFS=$as_save_IFS
15715
15716 ;;
15717esac
15718fi
15719OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15720if test -n "$OTOOL_FOR_TARGET"; then
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15722$as_echo "$OTOOL_FOR_TARGET" >&6; }
15723else
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15725$as_echo "no" >&6; }
15726fi
15727
15728
15729fi
15730if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15731
15732
15733if test -n "$OTOOL_FOR_TARGET"; then
15734 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15735elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15736 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15737fi
15738
15739if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15740 for ncn_progname in otool; do
15741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15742set dummy ${ncn_progname}; ac_word=$2
15743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15744$as_echo_n "checking for $ac_word... " >&6; }
15745if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15746 $as_echo_n "(cached) " >&6
15747else
15748 if test -n "$OTOOL_FOR_TARGET"; then
15749 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15750else
15751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15752for as_dir in $PATH
15753do
15754 IFS=$as_save_IFS
15755 test -z "$as_dir" && as_dir=.
15756 for ac_exec_ext in '' $ac_executable_extensions; do
15757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15758 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15760 break 2
15761 fi
15762done
15763 done
15764IFS=$as_save_IFS
15765
15766fi
15767fi
15768OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15769if test -n "$OTOOL_FOR_TARGET"; then
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15771$as_echo "$OTOOL_FOR_TARGET" >&6; }
15772else
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15774$as_echo "no" >&6; }
15775fi
15776
15777
15778 done
15779fi
15780
15781if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15782 for ncn_progname in otool; do
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15784$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15785 if test -x $with_build_time_tools/${ncn_progname}; then
15786 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15788$as_echo "yes" >&6; }
15789 break
15790 else
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15792$as_echo "no" >&6; }
15793 fi
15794 done
15795fi
15796
15797if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15798 for ncn_progname in otool; do
15799 if test -n "$ncn_target_tool_prefix"; then
15800 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15801set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15803$as_echo_n "checking for $ac_word... " >&6; }
15804if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15805 $as_echo_n "(cached) " >&6
15806else
15807 if test -n "$OTOOL_FOR_TARGET"; then
15808 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15809else
15810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15811for as_dir in $PATH
15812do
15813 IFS=$as_save_IFS
15814 test -z "$as_dir" && as_dir=.
15815 for ac_exec_ext in '' $ac_executable_extensions; do
15816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15817 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15819 break 2
15820 fi
15821done
15822 done
15823IFS=$as_save_IFS
15824
15825fi
15826fi
15827OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15828if test -n "$OTOOL_FOR_TARGET"; then
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15830$as_echo "$OTOOL_FOR_TARGET" >&6; }
15831else
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15833$as_echo "no" >&6; }
15834fi
15835
15836
15837 fi
15838 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15840set dummy ${ncn_progname}; ac_word=$2
15841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15842$as_echo_n "checking for $ac_word... " >&6; }
15843if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15844 $as_echo_n "(cached) " >&6
15845else
15846 if test -n "$OTOOL_FOR_TARGET"; then
15847 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15848else
15849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15850for as_dir in $PATH
15851do
15852 IFS=$as_save_IFS
15853 test -z "$as_dir" && as_dir=.
15854 for ac_exec_ext in '' $ac_executable_extensions; do
15855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15856 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15858 break 2
15859 fi
15860done
15861 done
15862IFS=$as_save_IFS
15863
15864fi
15865fi
15866OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15867if test -n "$OTOOL_FOR_TARGET"; then
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15869$as_echo "$OTOOL_FOR_TARGET" >&6; }
15870else
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15872$as_echo "no" >&6; }
15873fi
15874
15875
15876 fi
15877 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
15878 done
15879fi
15880
15881if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
15882 set dummy otool
15883 if test $build = $target ; then
15884 OTOOL_FOR_TARGET="$2"
15885 else
15886 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15887 fi
15888else
15889 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
15890fi
15891
15892else
15893 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15894fi
15895
15896
15897
15898
e8b05380
PB
15899if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15900 if test -n "$with_build_time_tools"; then
5213506e
RW
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
15902$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15903 if test -x $with_build_time_tools/ranlib; then
15904 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
15905 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
15907$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 15908 else
5213506e
RW
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15910$as_echo "no" >&6; }
d1f8db0c 15911 fi
e8b05380
PB
15912 elif test $build != $host && test $have_gcc_for_target = yes; then
15913 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
15914 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
15915 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
15916 fi
15917fi
3e19841a 15918if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15919 # Extract the first word of "ranlib", so it can be a program name with args.
15920set dummy ranlib; ac_word=$2
5213506e
RW
15921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15922$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15923if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 15924 $as_echo_n "(cached) " >&6
e8b05380 15925else
1c710c3c
DJ
15926 case $RANLIB_FOR_TARGET in
15927 [\\/]* | ?:[\\/]*)
e8b05380
PB
15928 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
15929 ;;
e8b05380 15930 *)
1c710c3c
DJ
15931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15932for as_dir in $gcc_cv_tool_dirs
15933do
15934 IFS=$as_save_IFS
15935 test -z "$as_dir" && as_dir=.
5213506e 15936 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15938 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15940 break 2
15941 fi
15942done
5213506e
RW
15943 done
15944IFS=$as_save_IFS
1c710c3c 15945
e8b05380
PB
15946 ;;
15947esac
15948fi
1c710c3c 15949RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 15950if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15952$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 15953else
5213506e
RW
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15955$as_echo "no" >&6; }
e8b05380
PB
15956fi
15957
5213506e 15958
e8b05380
PB
15959fi
15960if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
15961
15962
15963if test -n "$RANLIB_FOR_TARGET"; then
15964 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15965elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15966 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15967fi
15968
15969if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15970 for ncn_progname in ranlib; do
15971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15972set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15974$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15975if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 15976 $as_echo_n "(cached) " >&6
278a7a38
AO
15977else
15978 if test -n "$RANLIB_FOR_TARGET"; then
15979 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15980else
15981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15982for as_dir in $PATH
15983do
15984 IFS=$as_save_IFS
15985 test -z "$as_dir" && as_dir=.
5213506e 15986 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15988 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 15989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15990 break 2
15991 fi
15992done
5213506e
RW
15993 done
15994IFS=$as_save_IFS
278a7a38
AO
15995
15996fi
15997fi
15998RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15999if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16001$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 16002else
5213506e
RW
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16004$as_echo "no" >&6; }
278a7a38
AO
16005fi
16006
5213506e 16007
278a7a38
AO
16008 done
16009fi
16010
16011if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16012 for ncn_progname in ranlib; do
5213506e
RW
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16014$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16015 if test -x $with_build_time_tools/${ncn_progname}; then
16016 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16018$as_echo "yes" >&6; }
e8b05380
PB
16019 break
16020 else
5213506e
RW
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16022$as_echo "no" >&6; }
e8b05380
PB
16023 fi
16024 done
16025fi
16026
16027if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16028 for ncn_progname in ranlib; do
16029 if test -n "$ncn_target_tool_prefix"; then
16030 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 16031set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16033$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16034if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16035 $as_echo_n "(cached) " >&6
ca9f4b81 16036else
4de997d1
PB
16037 if test -n "$RANLIB_FOR_TARGET"; then
16038 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16039else
1c710c3c
DJ
16040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16041for as_dir in $PATH
16042do
16043 IFS=$as_save_IFS
16044 test -z "$as_dir" && as_dir=.
5213506e 16045 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16047 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16049 break 2
16050 fi
16051done
5213506e
RW
16052 done
16053IFS=$as_save_IFS
1c710c3c 16054
ca9f4b81
AO
16055fi
16056fi
1c710c3c 16057RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 16058if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16060$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16061else
5213506e
RW
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16063$as_echo "no" >&6; }
ca9f4b81
AO
16064fi
16065
5213506e 16066
e8b05380
PB
16067 fi
16068 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 16070set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16072$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16073if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16074 $as_echo_n "(cached) " >&6
ca9f4b81 16075else
2693c0b0
PB
16076 if test -n "$RANLIB_FOR_TARGET"; then
16077 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16078else
1c710c3c
DJ
16079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16080for as_dir in $PATH
16081do
16082 IFS=$as_save_IFS
16083 test -z "$as_dir" && as_dir=.
5213506e 16084 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16086 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16088 break 2
16089 fi
16090done
5213506e
RW
16091 done
16092IFS=$as_save_IFS
1c710c3c 16093
ca9f4b81
AO
16094fi
16095fi
1c710c3c 16096RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 16097if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16099$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16100else
5213506e
RW
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16102$as_echo "no" >&6; }
ca9f4b81 16103fi
1c710c3c 16104
5213506e 16105
e8b05380
PB
16106 fi
16107 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16108 done
16109fi
1c710c3c 16110
e8b05380
PB
16111if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16112 set dummy ranlib
16113 if test $build = $target ; then
16114 RANLIB_FOR_TARGET="$2"
16115 else
16116 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 16117 fi
1c00b503
PB
16118else
16119 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 16120fi
2693c0b0 16121
d1f8db0c
PB
16122else
16123 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
16124fi
16125
e8b05380
PB
16126
16127
16128
e7a82751
RM
16129if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16130 if test -n "$with_build_time_tools"; then
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16132$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16133 if test -x $with_build_time_tools/readelf; then
16134 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16135 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16137$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16138 else
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16140$as_echo "no" >&6; }
16141 fi
16142 elif test $build != $host && test $have_gcc_for_target = yes; then
16143 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16144 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16145 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16146 fi
16147fi
16148if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16149 # Extract the first word of "readelf", so it can be a program name with args.
16150set dummy readelf; ac_word=$2
16151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16152$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16153if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16154 $as_echo_n "(cached) " >&6
16155else
16156 case $READELF_FOR_TARGET in
16157 [\\/]* | ?:[\\/]*)
16158 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16159 ;;
16160 *)
16161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16162for as_dir in $gcc_cv_tool_dirs
16163do
16164 IFS=$as_save_IFS
16165 test -z "$as_dir" && as_dir=.
16166 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16168 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16170 break 2
16171 fi
16172done
16173 done
16174IFS=$as_save_IFS
16175
16176 ;;
16177esac
16178fi
16179READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16180if test -n "$READELF_FOR_TARGET"; then
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16182$as_echo "$READELF_FOR_TARGET" >&6; }
16183else
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16185$as_echo "no" >&6; }
16186fi
16187
16188
16189fi
16190if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16191
16192
16193if test -n "$READELF_FOR_TARGET"; then
16194 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16195elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16196 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16197fi
16198
16199if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16200 for ncn_progname in readelf; do
16201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16202set dummy ${ncn_progname}; ac_word=$2
16203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16204$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16205if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16206 $as_echo_n "(cached) " >&6
16207else
16208 if test -n "$READELF_FOR_TARGET"; then
16209 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16210else
16211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16212for as_dir in $PATH
16213do
16214 IFS=$as_save_IFS
16215 test -z "$as_dir" && as_dir=.
16216 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16218 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16220 break 2
16221 fi
16222done
16223 done
16224IFS=$as_save_IFS
16225
16226fi
16227fi
16228READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16229if test -n "$READELF_FOR_TARGET"; then
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16231$as_echo "$READELF_FOR_TARGET" >&6; }
16232else
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16234$as_echo "no" >&6; }
16235fi
16236
16237
16238 done
16239fi
16240
16241if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16242 for ncn_progname in readelf; do
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16244$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16245 if test -x $with_build_time_tools/${ncn_progname}; then
16246 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16248$as_echo "yes" >&6; }
16249 break
16250 else
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16252$as_echo "no" >&6; }
16253 fi
16254 done
16255fi
16256
16257if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16258 for ncn_progname in readelf; do
16259 if test -n "$ncn_target_tool_prefix"; then
16260 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16261set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16263$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16264if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16265 $as_echo_n "(cached) " >&6
16266else
16267 if test -n "$READELF_FOR_TARGET"; then
16268 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16269else
16270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16271for as_dir in $PATH
16272do
16273 IFS=$as_save_IFS
16274 test -z "$as_dir" && as_dir=.
16275 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16277 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16279 break 2
16280 fi
16281done
16282 done
16283IFS=$as_save_IFS
16284
16285fi
16286fi
16287READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16288if test -n "$READELF_FOR_TARGET"; then
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16290$as_echo "$READELF_FOR_TARGET" >&6; }
16291else
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16293$as_echo "no" >&6; }
16294fi
16295
16296
16297 fi
16298 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16300set dummy ${ncn_progname}; ac_word=$2
16301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16302$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16303if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16304 $as_echo_n "(cached) " >&6
16305else
16306 if test -n "$READELF_FOR_TARGET"; then
16307 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16308else
16309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16310for as_dir in $PATH
16311do
16312 IFS=$as_save_IFS
16313 test -z "$as_dir" && as_dir=.
16314 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16316 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16318 break 2
16319 fi
16320done
16321 done
16322IFS=$as_save_IFS
16323
16324fi
16325fi
16326READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16327if test -n "$READELF_FOR_TARGET"; then
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16329$as_echo "$READELF_FOR_TARGET" >&6; }
16330else
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16332$as_echo "no" >&6; }
16333fi
16334
16335
16336 fi
16337 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16338 done
16339fi
16340
16341if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16342 set dummy readelf
16343 if test $build = $target ; then
16344 READELF_FOR_TARGET="$2"
16345 else
16346 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16347 fi
16348else
16349 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16350fi
16351
16352else
16353 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16354fi
16355
16356
16357
16358
e8b05380
PB
16359if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16360 if test -n "$with_build_time_tools"; then
5213506e
RW
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16362$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16363 if test -x $with_build_time_tools/strip; then
16364 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16365 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16367$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 16368 else
5213506e
RW
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16370$as_echo "no" >&6; }
d1f8db0c 16371 fi
e8b05380
PB
16372 elif test $build != $host && test $have_gcc_for_target = yes; then
16373 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
16374 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16375 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
16376 fi
16377fi
3e19841a 16378if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16379 # Extract the first word of "strip", so it can be a program name with args.
16380set dummy strip; ac_word=$2
5213506e
RW
16381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16382$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16383if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 16384 $as_echo_n "(cached) " >&6
e8b05380 16385else
1c710c3c
DJ
16386 case $STRIP_FOR_TARGET in
16387 [\\/]* | ?:[\\/]*)
e8b05380
PB
16388 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16389 ;;
e8b05380 16390 *)
1c710c3c
DJ
16391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16392for as_dir in $gcc_cv_tool_dirs
16393do
16394 IFS=$as_save_IFS
16395 test -z "$as_dir" && as_dir=.
5213506e 16396 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16398 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16400 break 2
16401 fi
16402done
5213506e
RW
16403 done
16404IFS=$as_save_IFS
1c710c3c 16405
e8b05380
PB
16406 ;;
16407esac
16408fi
1c710c3c 16409STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 16410if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16412$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 16413else
5213506e
RW
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16415$as_echo "no" >&6; }
e8b05380
PB
16416fi
16417
5213506e 16418
e8b05380
PB
16419fi
16420if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
16421
16422
16423if test -n "$STRIP_FOR_TARGET"; then
16424 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16425elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16426 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16427fi
16428
16429if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16430 for ncn_progname in strip; do
16431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16432set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16434$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16435if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16436 $as_echo_n "(cached) " >&6
278a7a38
AO
16437else
16438 if test -n "$STRIP_FOR_TARGET"; then
16439 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16440else
16441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16442for as_dir in $PATH
16443do
16444 IFS=$as_save_IFS
16445 test -z "$as_dir" && as_dir=.
5213506e 16446 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16448 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16450 break 2
16451 fi
16452done
5213506e
RW
16453 done
16454IFS=$as_save_IFS
278a7a38
AO
16455
16456fi
16457fi
16458STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16459if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16461$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 16462else
5213506e
RW
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16464$as_echo "no" >&6; }
278a7a38
AO
16465fi
16466
5213506e 16467
278a7a38
AO
16468 done
16469fi
16470
16471if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16472 for ncn_progname in strip; do
5213506e
RW
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16474$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16475 if test -x $with_build_time_tools/${ncn_progname}; then
16476 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16478$as_echo "yes" >&6; }
e8b05380
PB
16479 break
16480 else
5213506e
RW
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16482$as_echo "no" >&6; }
e8b05380
PB
16483 fi
16484 done
16485fi
16486
16487if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16488 for ncn_progname in strip; do
16489 if test -n "$ncn_target_tool_prefix"; then
16490 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 16491set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16493$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16494if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16495 $as_echo_n "(cached) " >&6
af71363e
AS
16496else
16497 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
16498 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16499else
16500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16501for as_dir in $PATH
16502do
16503 IFS=$as_save_IFS
16504 test -z "$as_dir" && as_dir=.
5213506e 16505 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16507 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16509 break 2
16510 fi
16511done
5213506e
RW
16512 done
16513IFS=$as_save_IFS
1c710c3c 16514
040b1c5a
GK
16515fi
16516fi
1c710c3c 16517STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 16518if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16520$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 16521else
5213506e
RW
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16523$as_echo "no" >&6; }
040b1c5a
GK
16524fi
16525
5213506e 16526
e8b05380
PB
16527 fi
16528 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 16530set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16532$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16533if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16534 $as_echo_n "(cached) " >&6
040b1c5a
GK
16535else
16536 if test -n "$STRIP_FOR_TARGET"; then
16537 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16538else
1c710c3c
DJ
16539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16540for as_dir in $PATH
16541do
16542 IFS=$as_save_IFS
16543 test -z "$as_dir" && as_dir=.
5213506e 16544 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16546 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16548 break 2
16549 fi
16550done
5213506e
RW
16551 done
16552IFS=$as_save_IFS
1c710c3c 16553
040b1c5a
GK
16554fi
16555fi
1c710c3c 16556STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 16557if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16559$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 16560else
5213506e
RW
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16562$as_echo "no" >&6; }
040b1c5a 16563fi
1c710c3c 16564
5213506e 16565
e8b05380
PB
16566 fi
16567 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16568 done
16569fi
1c710c3c 16570
040b1c5a
GK
16571if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16572 set dummy strip
16573 if test $build = $target ; then
16574 STRIP_FOR_TARGET="$2"
16575 else
16576 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16577 fi
1c00b503
PB
16578else
16579 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
16580fi
16581
d1f8db0c
PB
16582else
16583 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
16584fi
16585
16586
16587
16588
16589if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16590 if test -n "$with_build_time_tools"; then
5213506e
RW
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16592$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16593 if test -x $with_build_time_tools/windres; then
16594 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16595 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16597$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 16598 else
5213506e
RW
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16600$as_echo "no" >&6; }
d1f8db0c 16601 fi
e8b05380
PB
16602 elif test $build != $host && test $have_gcc_for_target = yes; then
16603 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
16604 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16605 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
16606 fi
16607fi
3e19841a 16608if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16609 # Extract the first word of "windres", so it can be a program name with args.
16610set dummy windres; ac_word=$2
5213506e
RW
16611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16612$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16613if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 16614 $as_echo_n "(cached) " >&6
e8b05380 16615else
1c710c3c
DJ
16616 case $WINDRES_FOR_TARGET in
16617 [\\/]* | ?:[\\/]*)
e8b05380
PB
16618 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16619 ;;
e8b05380 16620 *)
1c710c3c
DJ
16621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16622for as_dir in $gcc_cv_tool_dirs
16623do
16624 IFS=$as_save_IFS
16625 test -z "$as_dir" && as_dir=.
5213506e 16626 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16628 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16630 break 2
16631 fi
16632done
5213506e
RW
16633 done
16634IFS=$as_save_IFS
1c710c3c 16635
e8b05380
PB
16636 ;;
16637esac
16638fi
1c710c3c 16639WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 16640if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16642$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 16643else
5213506e
RW
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16645$as_echo "no" >&6; }
e8b05380
PB
16646fi
16647
5213506e 16648
e8b05380
PB
16649fi
16650if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
16651
16652
16653if test -n "$WINDRES_FOR_TARGET"; then
16654 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16655elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16656 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16657fi
16658
16659if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16660 for ncn_progname in windres; do
16661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16662set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16664$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16665if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16666 $as_echo_n "(cached) " >&6
278a7a38
AO
16667else
16668 if test -n "$WINDRES_FOR_TARGET"; then
16669 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16670else
16671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16672for as_dir in $PATH
16673do
16674 IFS=$as_save_IFS
16675 test -z "$as_dir" && as_dir=.
5213506e 16676 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16678 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 16679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16680 break 2
16681 fi
16682done
5213506e
RW
16683 done
16684IFS=$as_save_IFS
278a7a38
AO
16685
16686fi
16687fi
16688WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16689if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16691$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 16692else
5213506e
RW
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16694$as_echo "no" >&6; }
278a7a38
AO
16695fi
16696
5213506e 16697
278a7a38
AO
16698 done
16699fi
16700
16701if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16702 for ncn_progname in windres; do
5213506e
RW
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16704$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16705 if test -x $with_build_time_tools/${ncn_progname}; then
16706 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16708$as_echo "yes" >&6; }
e8b05380
PB
16709 break
16710 else
5213506e
RW
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16712$as_echo "no" >&6; }
e8b05380
PB
16713 fi
16714 done
16715fi
16716
16717if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16718 for ncn_progname in windres; do
16719 if test -n "$ncn_target_tool_prefix"; then
16720 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 16721set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16723$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16724if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16725 $as_echo_n "(cached) " >&6
ca9f4b81 16726else
4de997d1
PB
16727 if test -n "$WINDRES_FOR_TARGET"; then
16728 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 16729else
1c710c3c
DJ
16730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16731for as_dir in $PATH
16732do
16733 IFS=$as_save_IFS
16734 test -z "$as_dir" && as_dir=.
5213506e 16735 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16737 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16739 break 2
16740 fi
16741done
5213506e
RW
16742 done
16743IFS=$as_save_IFS
1c710c3c 16744
ca9f4b81
AO
16745fi
16746fi
1c710c3c 16747WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 16748if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16750$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 16751else
5213506e
RW
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16753$as_echo "no" >&6; }
ca9f4b81
AO
16754fi
16755
5213506e 16756
e8b05380
PB
16757 fi
16758 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 16760set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16762$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16763if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16764 $as_echo_n "(cached) " >&6
ca9f4b81 16765else
2693c0b0
PB
16766 if test -n "$WINDRES_FOR_TARGET"; then
16767 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 16768else
1c710c3c
DJ
16769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16770for as_dir in $PATH
16771do
16772 IFS=$as_save_IFS
16773 test -z "$as_dir" && as_dir=.
5213506e 16774 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16776 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 16777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16778 break 2
16779 fi
16780done
5213506e
RW
16781 done
16782IFS=$as_save_IFS
1c710c3c 16783
ca9f4b81
AO
16784fi
16785fi
1c710c3c 16786WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 16787if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16789$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 16790else
5213506e
RW
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16792$as_echo "no" >&6; }
ca9f4b81 16793fi
1c710c3c 16794
5213506e 16795
e8b05380
PB
16796 fi
16797 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16798 done
16799fi
1c710c3c 16800
2693c0b0
PB
16801if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16802 set dummy windres
16803 if test $build = $target ; then
16804 WINDRES_FOR_TARGET="$2"
ca9f4b81 16805 else
2693c0b0 16806 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 16807 fi
1c00b503
PB
16808else
16809 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
16810fi
16811
d1f8db0c
PB
16812else
16813 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
16814fi
16815
4977bab6 16816
901119ae
KT
16817
16818
16819if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16820 if test -n "$with_build_time_tools"; then
5213506e
RW
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
16822$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
16823 if test -x $with_build_time_tools/windmc; then
16824 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
16825 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16827$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 16828 else
5213506e
RW
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16830$as_echo "no" >&6; }
901119ae
KT
16831 fi
16832 elif test $build != $host && test $have_gcc_for_target = yes; then
16833 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
16834 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
16835 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
16836 fi
16837fi
16838if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16839 # Extract the first word of "windmc", so it can be a program name with args.
16840set dummy windmc; ac_word=$2
5213506e
RW
16841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16842$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16843if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 16844 $as_echo_n "(cached) " >&6
901119ae
KT
16845else
16846 case $WINDMC_FOR_TARGET in
16847 [\\/]* | ?:[\\/]*)
16848 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16849 ;;
16850 *)
16851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16852for as_dir in $gcc_cv_tool_dirs
16853do
16854 IFS=$as_save_IFS
16855 test -z "$as_dir" && as_dir=.
5213506e 16856 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 16858 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
16860 break 2
16861 fi
16862done
5213506e
RW
16863 done
16864IFS=$as_save_IFS
901119ae
KT
16865
16866 ;;
16867esac
16868fi
16869WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 16870if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16872$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 16873else
5213506e
RW
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16875$as_echo "no" >&6; }
901119ae
KT
16876fi
16877
5213506e 16878
901119ae
KT
16879fi
16880if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16881
16882
16883if test -n "$WINDMC_FOR_TARGET"; then
16884 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16885elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16886 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16887fi
16888
16889if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16890 for ncn_progname in windmc; do
16891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16892set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16894$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16895if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 16896 $as_echo_n "(cached) " >&6
901119ae
KT
16897else
16898 if test -n "$WINDMC_FOR_TARGET"; then
16899 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16900else
16901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16902for as_dir in $PATH
16903do
16904 IFS=$as_save_IFS
16905 test -z "$as_dir" && as_dir=.
5213506e 16906 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 16908 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 16909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
16910 break 2
16911 fi
16912done
5213506e
RW
16913 done
16914IFS=$as_save_IFS
901119ae
KT
16915
16916fi
16917fi
16918WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16919if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16921$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 16922else
5213506e
RW
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16924$as_echo "no" >&6; }
901119ae
KT
16925fi
16926
5213506e 16927
901119ae
KT
16928 done
16929fi
16930
16931if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
16932 for ncn_progname in windmc; do
5213506e
RW
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16934$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
16935 if test -x $with_build_time_tools/${ncn_progname}; then
16936 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16938$as_echo "yes" >&6; }
901119ae
KT
16939 break
16940 else
5213506e
RW
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16942$as_echo "no" >&6; }
901119ae
KT
16943 fi
16944 done
16945fi
16946
16947if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16948 for ncn_progname in windmc; do
16949 if test -n "$ncn_target_tool_prefix"; then
16950 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16951set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16953$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16954if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 16955 $as_echo_n "(cached) " >&6
901119ae
KT
16956else
16957 if test -n "$WINDMC_FOR_TARGET"; then
16958 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16959else
16960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16961for as_dir in $PATH
16962do
16963 IFS=$as_save_IFS
16964 test -z "$as_dir" && as_dir=.
5213506e 16965 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 16967 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
16969 break 2
16970 fi
16971done
5213506e
RW
16972 done
16973IFS=$as_save_IFS
901119ae
KT
16974
16975fi
16976fi
16977WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16978if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16980$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 16981else
5213506e
RW
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16983$as_echo "no" >&6; }
901119ae
KT
16984fi
16985
5213506e 16986
901119ae
KT
16987 fi
16988 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
16989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16990set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16992$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16993if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 16994 $as_echo_n "(cached) " >&6
901119ae
KT
16995else
16996 if test -n "$WINDMC_FOR_TARGET"; then
16997 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16998else
16999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17000for as_dir in $PATH
17001do
17002 IFS=$as_save_IFS
17003 test -z "$as_dir" && as_dir=.
5213506e 17004 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17006 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17008 break 2
17009 fi
17010done
5213506e
RW
17011 done
17012IFS=$as_save_IFS
901119ae
KT
17013
17014fi
17015fi
17016WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17017if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17019$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17020else
5213506e
RW
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17022$as_echo "no" >&6; }
901119ae
KT
17023fi
17024
5213506e 17025
901119ae
KT
17026 fi
17027 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17028 done
17029fi
17030
17031if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17032 set dummy windmc
17033 if test $build = $target ; then
17034 WINDMC_FOR_TARGET="$2"
17035 else
17036 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17037 fi
1c00b503
PB
17038else
17039 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
17040fi
17041
17042else
17043 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17044fi
17045
17046
2abefe3d
PB
17047RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17048
5213506e
RW
17049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17050$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 17051if test "x${build}" != "x${host}" ; then
e8b05380
PB
17052 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17053 # We already found the complete path
172e41aa 17054 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17056$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17057 else
17058 # Canadian cross, just use what we found
5213506e
RW
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17060$as_echo "pre-installed" >&6; }
e8b05380 17061 fi
2abefe3d
PB
17062else
17063 ok=yes
17064 case " ${configdirs} " in
17065 *" binutils "*) ;;
17066 *) ok=no ;;
17067 esac
1c710c3c 17068
2abefe3d
PB
17069 if test $ok = yes; then
17070 # An in-tree tool is available and we can use it
17071 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17073$as_echo "just compiled" >&6; }
e8b05380
PB
17074 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17075 # We already found the complete path
172e41aa 17076 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17078$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17079 elif test "x$target" = "x$host"; then
17080 # We can use an host tool
17081 AR_FOR_TARGET='$(AR)'
5213506e
RW
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17083$as_echo "host tool" >&6; }
2abefe3d
PB
17084 else
17085 # We need a cross tool
5213506e
RW
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17087$as_echo "pre-installed" >&6; }
2abefe3d
PB
17088 fi
17089fi
0b0dc272 17090
5213506e
RW
17091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17092$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 17093if test "x${build}" != "x${host}" ; then
e8b05380
PB
17094 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17095 # We already found the complete path
172e41aa 17096 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17098$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17099 else
17100 # Canadian cross, just use what we found
5213506e
RW
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17102$as_echo "pre-installed" >&6; }
e8b05380 17103 fi
2abefe3d
PB
17104else
17105 ok=yes
17106 case " ${configdirs} " in
17107 *" gas "*) ;;
17108 *) ok=no ;;
17109 esac
1c710c3c 17110
2abefe3d
PB
17111 if test $ok = yes; then
17112 # An in-tree tool is available and we can use it
17113 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17115$as_echo "just compiled" >&6; }
e8b05380
PB
17116 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17117 # We already found the complete path
172e41aa 17118 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17120$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17121 elif test "x$target" = "x$host"; then
17122 # We can use an host tool
17123 AS_FOR_TARGET='$(AS)'
5213506e
RW
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17125$as_echo "host tool" >&6; }
2abefe3d
PB
17126 else
17127 # We need a cross tool
5213506e
RW
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17129$as_echo "pre-installed" >&6; }
2abefe3d
PB
17130 fi
17131fi
0b0dc272 17132
5213506e
RW
17133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17134$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 17135if test "x${build}" != "x${host}" ; then
e8b05380
PB
17136 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17137 # We already found the complete path
172e41aa 17138 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17140$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17141 else
17142 # Canadian cross, just use what we found
5213506e
RW
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17144$as_echo "pre-installed" >&6; }
e8b05380 17145 fi
2abefe3d
PB
17146else
17147 ok=yes
17148 case " ${configdirs} " in
17149 *" gcc "*) ;;
17150 *) ok=no ;;
17151 esac
1c710c3c 17152
2abefe3d
PB
17153 if test $ok = yes; then
17154 # An in-tree tool is available and we can use it
17155 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17157$as_echo "just compiled" >&6; }
e8b05380
PB
17158 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17159 # We already found the complete path
172e41aa 17160 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17162$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17163 elif test "x$target" = "x$host"; then
17164 # We can use an host tool
17165 CC_FOR_TARGET='$(CC)'
5213506e
RW
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17167$as_echo "host tool" >&6; }
2abefe3d
PB
17168 else
17169 # We need a cross tool
5213506e
RW
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17171$as_echo "pre-installed" >&6; }
2abefe3d
PB
17172 fi
17173fi
0b0dc272 17174
5213506e
RW
17175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17176$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 17177if test "x${build}" != "x${host}" ; then
e8b05380
PB
17178 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17179 # We already found the complete path
172e41aa 17180 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17182$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17183 else
17184 # Canadian cross, just use what we found
5213506e
RW
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17186$as_echo "pre-installed" >&6; }
e8b05380 17187 fi
2abefe3d
PB
17188else
17189 ok=yes
17190 case " ${configdirs} " in
17191 *" gcc "*) ;;
17192 *) ok=no ;;
17193 esac
17194 case ,${enable_languages}, in
17195 *,c++,*) ;;
17196 *) ok=no ;;
17197 esac
17198 if test $ok = yes; then
17199 # An in-tree tool is available and we can use it
2077db1b 17200 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17202$as_echo "just compiled" >&6; }
e8b05380
PB
17203 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17204 # We already found the complete path
172e41aa 17205 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17207$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17208 elif test "x$target" = "x$host"; then
17209 # We can use an host tool
17210 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17212$as_echo "host tool" >&6; }
2abefe3d
PB
17213 else
17214 # We need a cross tool
5213506e
RW
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17216$as_echo "pre-installed" >&6; }
2abefe3d
PB
17217 fi
17218fi
0b0dc272 17219
5213506e
RW
17220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17221$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 17222if test "x${build}" != "x${host}" ; then
e8b05380
PB
17223 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17224 # We already found the complete path
172e41aa 17225 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17227$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17228 else
17229 # Canadian cross, just use what we found
5213506e
RW
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17231$as_echo "pre-installed" >&6; }
e8b05380 17232 fi
2abefe3d
PB
17233else
17234 ok=yes
17235 case " ${configdirs} " in
17236 *" gcc "*) ;;
17237 *) ok=no ;;
17238 esac
17239 case ,${enable_languages}, in
17240 *,c++,*) ;;
17241 *) ok=no ;;
17242 esac
17243 if test $ok = yes; then
17244 # An in-tree tool is available and we can use it
2077db1b 17245 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17247$as_echo "just compiled" >&6; }
e8b05380
PB
17248 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17249 # We already found the complete path
172e41aa 17250 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17252$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17253 elif test "x$target" = "x$host"; then
17254 # We can use an host tool
17255 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17257$as_echo "host tool" >&6; }
2abefe3d
PB
17258 else
17259 # We need a cross tool
5213506e
RW
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17261$as_echo "pre-installed" >&6; }
2abefe3d
PB
17262 fi
17263fi
0b0dc272 17264
5213506e
RW
17265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17266$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 17267if test "x${build}" != "x${host}" ; then
e8b05380
PB
17268 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17269 # We already found the complete path
172e41aa 17270 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17272$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17273 else
17274 # Canadian cross, just use what we found
5213506e
RW
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17276$as_echo "pre-installed" >&6; }
e8b05380 17277 fi
2abefe3d
PB
17278else
17279 ok=yes
17280 case " ${configdirs} " in
17281 *" binutils "*) ;;
17282 *) ok=no ;;
17283 esac
1c710c3c 17284
2abefe3d
PB
17285 if test $ok = yes; then
17286 # An in-tree tool is available and we can use it
17287 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17289$as_echo "just compiled" >&6; }
e8b05380
PB
17290 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17291 # We already found the complete path
172e41aa 17292 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17294$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17295 elif test "x$target" = "x$host"; then
17296 # We can use an host tool
17297 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17299$as_echo "host tool" >&6; }
2abefe3d
PB
17300 else
17301 # We need a cross tool
5213506e
RW
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17303$as_echo "pre-installed" >&6; }
2abefe3d
PB
17304 fi
17305fi
0b0dc272 17306
3b5e8ee4
IS
17307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17308$as_echo_n "checking where to find the target dsymutil... " >&6; }
17309if test "x${build}" != "x${host}" ; then
17310 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17311 # We already found the complete path
17312 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17314$as_echo "pre-installed in $ac_dir" >&6; }
17315 else
17316 # Canadian cross, just use what we found
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17318$as_echo "pre-installed" >&6; }
17319 fi
17320else
17321 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17322 # We already found the complete path
17323 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17325$as_echo "pre-installed in $ac_dir" >&6; }
17326 elif test "x$target" = "x$host"; then
17327 # We can use an host tool
17328 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17330$as_echo "host tool" >&6; }
17331 else
17332 # We need a cross tool
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17334$as_echo "pre-installed" >&6; }
17335 fi
17336fi
17337
5213506e
RW
17338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17339$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 17340if test "x${build}" != "x${host}" ; then
e8b05380
PB
17341 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17342 # We already found the complete path
172e41aa 17343 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17345$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17346 else
17347 # Canadian cross, just use what we found
5213506e
RW
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17349$as_echo "pre-installed" >&6; }
e8b05380 17350 fi
2abefe3d
PB
17351else
17352 ok=yes
17353 case " ${configdirs} " in
17354 *" gcc "*) ;;
17355 *) ok=no ;;
17356 esac
1c710c3c 17357
2abefe3d
PB
17358 if test $ok = yes; then
17359 # An in-tree tool is available and we can use it
17360 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17362$as_echo "just compiled" >&6; }
e8b05380
PB
17363 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17364 # We already found the complete path
172e41aa 17365 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17367$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17368 elif test "x$target" = "x$host"; then
17369 # We can use an host tool
17370 GCC_FOR_TARGET='$()'
5213506e
RW
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17372$as_echo "host tool" >&6; }
2abefe3d
PB
17373 else
17374 # We need a cross tool
5213506e
RW
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17376$as_echo "pre-installed" >&6; }
2abefe3d
PB
17377 fi
17378fi
0b0dc272 17379
5213506e
RW
17380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17381$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 17382if test "x${build}" != "x${host}" ; then
e8b05380
PB
17383 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17384 # We already found the complete path
172e41aa 17385 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17387$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17388 else
17389 # Canadian cross, just use what we found
5213506e
RW
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17391$as_echo "pre-installed" >&6; }
e8b05380 17392 fi
2abefe3d
PB
17393else
17394 ok=yes
17395 case " ${configdirs} " in
17396 *" gcc "*) ;;
17397 *) ok=no ;;
17398 esac
17399 case ,${enable_languages}, in
17400 *,fortran,*) ;;
17401 *) ok=no ;;
17402 esac
17403 if test $ok = yes; then
17404 # An in-tree tool is available and we can use it
17405 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17407$as_echo "just compiled" >&6; }
e8b05380
PB
17408 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17409 # We already found the complete path
172e41aa 17410 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17412$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17413 elif test "x$target" = "x$host"; then
17414 # We can use an host tool
17415 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17417$as_echo "host tool" >&6; }
2abefe3d
PB
17418 else
17419 # We need a cross tool
5213506e
RW
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17421$as_echo "pre-installed" >&6; }
2abefe3d
PB
17422 fi
17423fi
0b0dc272 17424
632e2a07
ILT
17425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17426$as_echo_n "checking where to find the target gccgo... " >&6; }
17427if test "x${build}" != "x${host}" ; then
17428 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17429 # We already found the complete path
17430 ac_dir=`dirname $GOC_FOR_TARGET`
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17432$as_echo "pre-installed in $ac_dir" >&6; }
17433 else
17434 # Canadian cross, just use what we found
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17436$as_echo "pre-installed" >&6; }
17437 fi
17438else
17439 ok=yes
17440 case " ${configdirs} " in
17441 *" gcc "*) ;;
17442 *) ok=no ;;
17443 esac
17444 case ,${enable_languages}, in
17445 *,go,*) ;;
17446 *) ok=no ;;
17447 esac
17448 if test $ok = yes; then
17449 # An in-tree tool is available and we can use it
17450 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17452$as_echo "just compiled" >&6; }
17453 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17454 # We already found the complete path
17455 ac_dir=`dirname $GOC_FOR_TARGET`
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17457$as_echo "pre-installed in $ac_dir" >&6; }
17458 elif test "x$target" = "x$host"; then
17459 # We can use an host tool
17460 GOC_FOR_TARGET='$(GOC)'
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17462$as_echo "host tool" >&6; }
17463 else
17464 # We need a cross tool
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17466$as_echo "pre-installed" >&6; }
17467 fi
17468fi
17469
b4c522fa
IB
17470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17471$as_echo_n "checking where to find the target gdc... " >&6; }
17472if test "x${build}" != "x${host}" ; then
17473 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17474 # We already found the complete path
17475 ac_dir=`dirname $GDC_FOR_TARGET`
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17477$as_echo "pre-installed in $ac_dir" >&6; }
17478 else
17479 # Canadian cross, just use what we found
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17481$as_echo "pre-installed" >&6; }
17482 fi
17483else
17484 ok=yes
17485 case " ${configdirs} " in
17486 *" gcc "*) ;;
17487 *) ok=no ;;
17488 esac
17489 case ,${enable_languages}, in
17490 *,d,*) ;;
17491 *) ok=no ;;
17492 esac
17493 if test $ok = yes; then
17494 # An in-tree tool is available and we can use it
17495 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17497$as_echo "just compiled" >&6; }
17498 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17499 # We already found the complete path
17500 ac_dir=`dirname $GDC_FOR_TARGET`
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17502$as_echo "pre-installed in $ac_dir" >&6; }
17503 elif test "x$target" = "x$host"; then
17504 # We can use an host tool
17505 GDC_FOR_TARGET='$(GDC)'
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17507$as_echo "host tool" >&6; }
17508 else
17509 # We need a cross tool
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17511$as_echo "pre-installed" >&6; }
17512 fi
17513fi
17514
5213506e
RW
17515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17516$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 17517if test "x${build}" != "x${host}" ; then
e8b05380
PB
17518 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17519 # We already found the complete path
172e41aa 17520 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17522$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17523 else
17524 # Canadian cross, just use what we found
5213506e
RW
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17526$as_echo "pre-installed" >&6; }
e8b05380 17527 fi
2abefe3d
PB
17528else
17529 ok=yes
17530 case " ${configdirs} " in
17531 *" ld "*) ;;
17532 *) ok=no ;;
17533 esac
1c710c3c 17534
2abefe3d
PB
17535 if test $ok = yes; then
17536 # An in-tree tool is available and we can use it
17537 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17539$as_echo "just compiled" >&6; }
e8b05380
PB
17540 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17541 # We already found the complete path
172e41aa 17542 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17544$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17545 elif test "x$target" = "x$host"; then
17546 # We can use an host tool
17547 LD_FOR_TARGET='$(LD)'
5213506e
RW
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17549$as_echo "host tool" >&6; }
2abefe3d
PB
17550 else
17551 # We need a cross tool
5213506e
RW
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17553$as_echo "pre-installed" >&6; }
2abefe3d
PB
17554 fi
17555fi
0b0dc272 17556
5213506e
RW
17557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17558$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 17559if test "x${build}" != "x${host}" ; then
e8b05380
PB
17560 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17561 # We already found the complete path
172e41aa 17562 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17564$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17565 else
17566 # Canadian cross, just use what we found
5213506e
RW
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17568$as_echo "pre-installed" >&6; }
e8b05380 17569 fi
2abefe3d 17570else
e8b05380
PB
17571 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17572 # We already found the complete path
172e41aa 17573 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17575$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 17576 elif test "x$target" = "x$host"; then
2abefe3d
PB
17577 # We can use an host tool
17578 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17580$as_echo "host tool" >&6; }
2abefe3d
PB
17581 else
17582 # We need a cross tool
5213506e
RW
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17584$as_echo "pre-installed" >&6; }
2abefe3d
PB
17585 fi
17586fi
0b0dc272 17587
5213506e
RW
17588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17589$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 17590if test "x${build}" != "x${host}" ; then
e8b05380
PB
17591 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17592 # We already found the complete path
172e41aa 17593 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17595$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17596 else
17597 # Canadian cross, just use what we found
5213506e
RW
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17599$as_echo "pre-installed" >&6; }
e8b05380 17600 fi
2abefe3d
PB
17601else
17602 ok=yes
17603 case " ${configdirs} " in
17604 *" binutils "*) ;;
17605 *) ok=no ;;
17606 esac
1c710c3c 17607
2abefe3d
PB
17608 if test $ok = yes; then
17609 # An in-tree tool is available and we can use it
17610 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17612$as_echo "just compiled" >&6; }
e8b05380
PB
17613 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17614 # We already found the complete path
172e41aa 17615 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17617$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17618 elif test "x$target" = "x$host"; then
17619 # We can use an host tool
17620 NM_FOR_TARGET='$(NM)'
5213506e
RW
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17622$as_echo "host tool" >&6; }
2abefe3d
PB
17623 else
17624 # We need a cross tool
5213506e
RW
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17626$as_echo "pre-installed" >&6; }
2abefe3d
PB
17627 fi
17628fi
0b0dc272 17629
9bccfdf5
AP
17630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17631$as_echo_n "checking where to find the target objcopy... " >&6; }
17632if test "x${build}" != "x${host}" ; then
17633 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17634 # We already found the complete path
17635 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17637$as_echo "pre-installed in $ac_dir" >&6; }
17638 else
17639 # Canadian cross, just use what we found
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17641$as_echo "pre-installed" >&6; }
17642 fi
17643else
17644 ok=yes
17645 case " ${configdirs} " in
17646 *" binutils "*) ;;
17647 *) ok=no ;;
17648 esac
17649
17650 if test $ok = yes; then
17651 # An in-tree tool is available and we can use it
17652 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17654$as_echo "just compiled" >&6; }
17655 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17656 # We already found the complete path
17657 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17659$as_echo "pre-installed in $ac_dir" >&6; }
17660 elif test "x$target" = "x$host"; then
17661 # We can use an host tool
ec8fd1c0 17662 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17664$as_echo "host tool" >&6; }
17665 else
17666 # We need a cross tool
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17668$as_echo "pre-installed" >&6; }
17669 fi
17670fi
17671
5213506e
RW
17672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17673$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 17674if test "x${build}" != "x${host}" ; then
e8b05380
PB
17675 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17676 # We already found the complete path
172e41aa 17677 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17679$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17680 else
17681 # Canadian cross, just use what we found
5213506e
RW
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17683$as_echo "pre-installed" >&6; }
e8b05380 17684 fi
2abefe3d
PB
17685else
17686 ok=yes
17687 case " ${configdirs} " in
17688 *" binutils "*) ;;
17689 *) ok=no ;;
17690 esac
1c710c3c 17691
2abefe3d
PB
17692 if test $ok = yes; then
17693 # An in-tree tool is available and we can use it
17694 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17696$as_echo "just compiled" >&6; }
e8b05380
PB
17697 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17698 # We already found the complete path
172e41aa 17699 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17701$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17702 elif test "x$target" = "x$host"; then
17703 # We can use an host tool
17704 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17706$as_echo "host tool" >&6; }
2abefe3d
PB
17707 else
17708 # We need a cross tool
5213506e
RW
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17710$as_echo "pre-installed" >&6; }
2abefe3d
PB
17711 fi
17712fi
0b0dc272 17713
e4a9a572
IS
17714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17715$as_echo_n "checking where to find the target otool... " >&6; }
17716if test "x${build}" != "x${host}" ; then
17717 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17718 # We already found the complete path
17719 ac_dir=`dirname $OTOOL_FOR_TARGET`
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17721$as_echo "pre-installed in $ac_dir" >&6; }
17722 else
17723 # Canadian cross, just use what we found
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17725$as_echo "pre-installed" >&6; }
17726 fi
17727else
17728 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17729 # We already found the complete path
17730 ac_dir=`dirname $OTOOL_FOR_TARGET`
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17732$as_echo "pre-installed in $ac_dir" >&6; }
17733 elif test "x$target" = "x$host"; then
17734 # We can use an host tool
17735 OTOOL_FOR_TARGET='$(OTOOL)'
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17737$as_echo "host tool" >&6; }
17738 else
17739 # We need a cross tool
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17741$as_echo "pre-installed" >&6; }
17742 fi
17743fi
17744
5213506e
RW
17745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17746$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 17747if test "x${build}" != "x${host}" ; then
e8b05380
PB
17748 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17749 # We already found the complete path
172e41aa 17750 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17752$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17753 else
17754 # Canadian cross, just use what we found
5213506e
RW
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17756$as_echo "pre-installed" >&6; }
e8b05380 17757 fi
2abefe3d
PB
17758else
17759 ok=yes
17760 case " ${configdirs} " in
17761 *" binutils "*) ;;
17762 *) ok=no ;;
17763 esac
1c710c3c 17764
2abefe3d
PB
17765 if test $ok = yes; then
17766 # An in-tree tool is available and we can use it
17767 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17769$as_echo "just compiled" >&6; }
e8b05380
PB
17770 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17771 # We already found the complete path
172e41aa 17772 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17774$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17775 elif test "x$target" = "x$host"; then
17776 # We can use an host tool
17777 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17779$as_echo "host tool" >&6; }
2abefe3d
PB
17780 else
17781 # We need a cross tool
5213506e
RW
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17783$as_echo "pre-installed" >&6; }
2abefe3d
PB
17784 fi
17785fi
0b0dc272 17786
e7a82751
RM
17787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17788$as_echo_n "checking where to find the target readelf... " >&6; }
17789if test "x${build}" != "x${host}" ; then
17790 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17791 # We already found the complete path
17792 ac_dir=`dirname $READELF_FOR_TARGET`
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17794$as_echo "pre-installed in $ac_dir" >&6; }
17795 else
17796 # Canadian cross, just use what we found
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17798$as_echo "pre-installed" >&6; }
17799 fi
17800else
17801 ok=yes
17802 case " ${configdirs} " in
17803 *" binutils "*) ;;
17804 *) ok=no ;;
17805 esac
17806
17807 if test $ok = yes; then
17808 # An in-tree tool is available and we can use it
17809 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17811$as_echo "just compiled" >&6; }
17812 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17813 # We already found the complete path
17814 ac_dir=`dirname $READELF_FOR_TARGET`
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17816$as_echo "pre-installed in $ac_dir" >&6; }
17817 elif test "x$target" = "x$host"; then
17818 # We can use an host tool
17819 READELF_FOR_TARGET='$(READELF)'
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17821$as_echo "host tool" >&6; }
17822 else
17823 # We need a cross tool
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17825$as_echo "pre-installed" >&6; }
17826 fi
17827fi
17828
5213506e
RW
17829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
17830$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 17831if test "x${build}" != "x${host}" ; then
e8b05380
PB
17832 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17833 # We already found the complete path
172e41aa 17834 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17836$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17837 else
17838 # Canadian cross, just use what we found
5213506e
RW
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17840$as_echo "pre-installed" >&6; }
e8b05380 17841 fi
2abefe3d
PB
17842else
17843 ok=yes
17844 case " ${configdirs} " in
17845 *" binutils "*) ;;
17846 *) ok=no ;;
17847 esac
1c710c3c 17848
2abefe3d
PB
17849 if test $ok = yes; then
17850 # An in-tree tool is available and we can use it
455c8f48 17851 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17853$as_echo "just compiled" >&6; }
e8b05380
PB
17854 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17855 # We already found the complete path
172e41aa 17856 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17858$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17859 elif test "x$target" = "x$host"; then
17860 # We can use an host tool
17861 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17863$as_echo "host tool" >&6; }
2abefe3d
PB
17864 else
17865 # We need a cross tool
5213506e
RW
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17867$as_echo "pre-installed" >&6; }
2abefe3d
PB
17868 fi
17869fi
0b0dc272 17870
5213506e
RW
17871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
17872$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 17873if test "x${build}" != "x${host}" ; then
e8b05380
PB
17874 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17875 # We already found the complete path
172e41aa 17876 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17878$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17879 else
17880 # Canadian cross, just use what we found
5213506e
RW
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17882$as_echo "pre-installed" >&6; }
e8b05380 17883 fi
2abefe3d
PB
17884else
17885 ok=yes
17886 case " ${configdirs} " in
17887 *" binutils "*) ;;
17888 *) ok=no ;;
17889 esac
1c710c3c 17890
2abefe3d
PB
17891 if test $ok = yes; then
17892 # An in-tree tool is available and we can use it
17893 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17895$as_echo "just compiled" >&6; }
e8b05380
PB
17896 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17897 # We already found the complete path
172e41aa 17898 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17900$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17901 elif test "x$target" = "x$host"; then
17902 # We can use an host tool
17903 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17905$as_echo "host tool" >&6; }
2abefe3d
PB
17906 else
17907 # We need a cross tool
5213506e
RW
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17909$as_echo "pre-installed" >&6; }
2abefe3d 17910 fi
671aa708 17911fi
be912515 17912
5213506e
RW
17913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
17914$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
17915if test "x${build}" != "x${host}" ; then
17916 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17917 # We already found the complete path
17918 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17920$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
17921 else
17922 # Canadian cross, just use what we found
5213506e
RW
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17924$as_echo "pre-installed" >&6; }
901119ae
KT
17925 fi
17926else
17927 ok=yes
17928 case " ${configdirs} " in
17929 *" binutils "*) ;;
17930 *) ok=no ;;
17931 esac
17932
17933 if test $ok = yes; then
17934 # An in-tree tool is available and we can use it
17935 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17937$as_echo "just compiled" >&6; }
901119ae
KT
17938 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17939 # We already found the complete path
17940 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17942$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
17943 elif test "x$target" = "x$host"; then
17944 # We can use an host tool
17945 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17947$as_echo "host tool" >&6; }
901119ae
KT
17948 else
17949 # We need a cross tool
5213506e
RW
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17951$as_echo "pre-installed" >&6; }
901119ae
KT
17952 fi
17953fi
17954
be912515
NN
17955
17956
2abefe3d 17957
0b0dc272 17958
671aa708
NN
17959# Certain tools may need extra flags.
17960AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
17961RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
17962NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
17963
2abefe3d
PB
17964# When building target libraries, except in a Canadian cross, we use
17965# the same toolchain as the compiler we just built.
17966COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
17967COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
17968COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
17969if test $host = $build; then
17970 case " $configdirs " in
17971 *" gcc "*)
17972 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
17973 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
17974 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
17975 ;;
17976 esac
17977fi
17978
17979
17980
17981
17982
5213506e
RW
17983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17984$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17985# Check whether --enable-maintainer-mode was given.
17986if test "${enable_maintainer_mode+set}" = set; then :
17987 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
17988else
17989 USE_MAINTAINER_MODE=no
5213506e
RW
17990fi
17991
17992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17993$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
17994
17995
17996if test "$USE_MAINTAINER_MODE" = yes; then
17997 MAINTAINER_MODE_TRUE=
17998 MAINTAINER_MODE_FALSE='#'
17999else
18000 MAINTAINER_MODE_TRUE='#'
18001 MAINTAINER_MODE_FALSE=
1c710c3c 18002fi
ee03dc5e
AO
18003MAINT=$MAINTAINER_MODE_TRUE
18004
2805b53a
NN
18005# ---------------------
18006# GCC bootstrap support
18007# ---------------------
18008
18009# Stage specific cflags for build.
18010stage1_cflags="-g"
18011case $build in
18012 vax-*-*)
18013 case ${GCC} in
18014 yes) stage1_cflags="-g -Wa,-J" ;;
18015 *) stage1_cflags="-g -J" ;;
18016 esac ;;
2805b53a
NN
18017esac
18018
0b50988a 18019
2805b53a 18020
8efea775 18021# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
18022# Check whether --enable-stage1-checking was given.
18023if test "${enable_stage1_checking+set}" = set; then :
18024 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 18025else
e643dc23 18026 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
18027 # For --disable-checking or implicit --enable-checking=release, avoid
18028 # setting --enable-checking=gc in the default stage1 checking for LTO
18029 # bootstraps. See PR62077.
c10b5ea0
JJ
18030 case $BUILD_CONFIG in
18031 *lto*)
7db11a5a
JJ
18032 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18033 *)
18034 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 18035 esac
7db11a5a
JJ
18036 if test "x$enable_checking" = x && \
18037 test -d ${srcdir}/gcc && \
18038 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 18039 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 18040 fi
8efea775 18041else
e643dc23 18042 stage1_checking=--enable-checking=$enable_checking,types
8efea775 18043fi
5213506e 18044fi
8efea775
PB
18045
18046
2aeb72e9 18047
5213506e
RW
18048# Enable -Werror in bootstrap stage2 and later.
18049# Check whether --enable-werror was given.
18050if test "${enable_werror+set}" = set; then :
18051 enableval=$enable_werror;
09a9c095
NN
18052case ${enable_werror} in
18053 yes) stage2_werror_flag="--enable-werror-always" ;;
18054 *) stage2_werror_flag="" ;;
2805b53a
NN
18055esac
18056
afd88efc
ML
18057else
18058
01c712cb
ML
18059if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18060 case $BUILD_CONFIG in
18061 bootstrap-debug)
18062 stage2_werror_flag="--enable-werror-always" ;;
18063 "")
18064 stage2_werror_flag="--enable-werror-always" ;;
18065 esac
18066fi
18067
afd88efc
ML
18068fi
18069
18070
01c712cb 18071
2805b53a 18072
f2689b09
SE
18073# Specify what files to not compare during bootstrap.
18074
18075compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18076case "$target" in
18077 hppa*64*-*-hpux*) ;;
4f943869
MK
18078 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18079 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
f2689b09
SE
18080esac
18081
18082
5213506e
RW
18083ac_config_files="$ac_config_files Makefile"
18084
1c710c3c 18085cat >confcache <<\_ACEOF
671aa708
NN
18086# This file is a shell script that caches the results of configure
18087# tests run on this system so they can be shared between configure
1c710c3c
DJ
18088# scripts and configure runs, see configure's option --config-cache.
18089# It is not useful on other systems. If it contains results you don't
18090# want to keep, you may remove or edit it.
671aa708 18091#
1c710c3c
DJ
18092# config.status only pays attention to the cache file if you give it
18093# the --recheck option to rerun configure.
671aa708 18094#
1c710c3c
DJ
18095# `ac_cv_env_foo' variables (set or unset) will be overridden when
18096# loading this file, other *unset* `ac_cv_foo' will be assigned the
18097# following values.
18098
18099_ACEOF
18100
671aa708
NN
18101# The following way of writing the cache mishandles newlines in values,
18102# but we know of no workaround that is simple, portable, and efficient.
5213506e 18103# So, we kill variables containing newlines.
671aa708
NN
18104# Ultrix sh set writes to stderr and can't be redirected directly,
18105# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
18106(
18107 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18108 eval ac_val=\$$ac_var
18109 case $ac_val in #(
18110 *${as_nl}*)
18111 case $ac_var in #(
18112 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18113$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18114 esac
18115 case $ac_var in #(
18116 _ | IFS | as_nl) ;; #(
18117 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18118 *) { eval $ac_var=; unset $ac_var;} ;;
18119 esac ;;
18120 esac
18121 done
18122
1c710c3c 18123 (set) 2>&1 |
5213506e
RW
18124 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18125 *${as_nl}ac_space=\ *)
18126 # `set' does not quote correctly, so add quotes: double-quote
18127 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
18128 sed -n \
18129 "s/'/'\\\\''/g;
18130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 18131 ;; #(
1c710c3c
DJ
18132 *)
18133 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 18134 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 18135 ;;
5213506e
RW
18136 esac |
18137 sort
18138) |
1c710c3c 18139 sed '
5213506e 18140 /^ac_cv_env_/b end
1c710c3c 18141 t clear
5213506e 18142 :clear
1c710c3c
DJ
18143 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18144 t end
5213506e
RW
18145 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18146 :end' >>confcache
18147if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18148 if test -w "$cache_file"; then
22e05272 18149 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18151$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
18152 if test ! -f "$cache_file" || test -h "$cache_file"; then
18153 cat confcache >"$cache_file"
18154 else
18155 case $cache_file in #(
18156 */* | ?:*)
18157 mv -f confcache "$cache_file"$$ &&
18158 mv -f "$cache_file"$$ "$cache_file" ;; #(
18159 *)
18160 mv -f confcache "$cache_file" ;;
18161 esac
18162 fi
18163 fi
671aa708 18164 else
5213506e
RW
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18166$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 18167 fi
4977bab6 18168fi
671aa708 18169rm -f confcache
79c06341 18170
671aa708
NN
18171test "x$prefix" = xNONE && prefix=$ac_default_prefix
18172# Let make expand exec_prefix.
18173test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 18174
671aa708
NN
18175# Transform confdefs.h into DEFS.
18176# Protect against shell expansion while executing Makefile rules.
18177# Protect against Makefile macro expansion.
1c710c3c
DJ
18178#
18179# If the first sed substitution is executed (which looks for macros that
5213506e 18180# take arguments), then branch to the quote section. Otherwise,
1c710c3c 18181# look for a macro that doesn't take arguments.
5213506e
RW
18182ac_script='
18183:mline
18184/\\$/{
18185 N
18186 s,\\\n,,
18187 b mline
18188}
1c710c3c 18189t clear
5213506e
RW
18190:clear
18191s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18192t quote
5213506e 18193s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18194t quote
5213506e
RW
18195b any
18196:quote
18197s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18198s/\[/\\&/g
18199s/\]/\\&/g
18200s/\$/$$/g
18201H
18202:any
18203${
18204 g
18205 s/^\n//
18206 s/\n/ /g
18207 p
18208}
18209'
18210DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
18211
18212
18213ac_libobjs=
18214ac_ltlibobjs=
22e05272 18215U=
1c710c3c
DJ
18216for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18217 # 1. Remove the extension, and $U if already installed.
5213506e
RW
18218 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18219 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18220 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18221 # will be set to the directory where LIBOBJS objects are built.
18222 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18223 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
18224done
18225LIBOBJS=$ac_libobjs
fb0103e5 18226
1c710c3c 18227LTLIBOBJS=$ac_ltlibobjs
0b0dc272 18228
af71363e 18229
1c710c3c 18230
22e05272 18231: "${CONFIG_STATUS=./config.status}"
5213506e 18232ac_write_fail=0
1c710c3c
DJ
18233ac_clean_files_save=$ac_clean_files
18234ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
18235{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18236$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18237as_write_fail=0
18238cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
18239#! $SHELL
18240# Generated by $as_me.
671aa708 18241# Run this file to recreate the current configuration.
671aa708 18242# Compiler output produced by configure, useful for debugging
1c710c3c 18243# configure, is in config.log if it exists.
0b0dc272 18244
1c710c3c
DJ
18245debug=false
18246ac_cs_recheck=false
18247ac_cs_silent=false
1c710c3c 18248
5213506e
RW
18249SHELL=\${CONFIG_SHELL-$SHELL}
18250export SHELL
18251_ASEOF
18252cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18253## -------------------- ##
18254## M4sh Initialization. ##
18255## -------------------- ##
18256
18257# Be more Bourne compatible
18258DUALCASE=1; export DUALCASE # for MKS sh
18259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18260 emulate sh
18261 NULLCMD=:
5213506e 18262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
18263 # is contrary to our usage. Disable this feature.
18264 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
18265 setopt NO_GLOB_SUBST
18266else
18267 case `(set -o) 2>/dev/null` in #(
18268 *posix*) :
18269 set -o posix ;; #(
18270 *) :
18271 ;;
18272esac
1c710c3c 18273fi
1c710c3c 18274
5213506e
RW
18275
18276as_nl='
18277'
18278export as_nl
18279# Printing a long string crashes Solaris 7 /usr/bin/printf.
18280as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18281as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18282as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18283# Prefer a ksh shell builtin over an external printf program on Solaris,
18284# but without wasting forks for bash or zsh.
18285if test -z "$BASH_VERSION$ZSH_VERSION" \
18286 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18287 as_echo='print -r --'
18288 as_echo_n='print -rn --'
18289elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18290 as_echo='printf %s\n'
18291 as_echo_n='printf %s'
18292else
18293 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18294 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18295 as_echo_n='/usr/ucb/echo -n'
18296 else
18297 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18298 as_echo_n_body='eval
18299 arg=$1;
18300 case $arg in #(
18301 *"$as_nl"*)
18302 expr "X$arg" : "X\\(.*\\)$as_nl";
18303 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18304 esac;
18305 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18306 '
18307 export as_echo_n_body
18308 as_echo_n='sh -c $as_echo_n_body as_echo'
18309 fi
18310 export as_echo_body
18311 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
18312fi
18313
5213506e
RW
18314# The user is always right.
18315if test "${PATH_SEPARATOR+set}" != set; then
18316 PATH_SEPARATOR=:
18317 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18318 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18319 PATH_SEPARATOR=';'
18320 }
18321fi
18322
18323
18324# IFS
18325# We need space, tab and new line, in precisely that order. Quoting is
18326# there to prevent editors from complaining about space-tab.
18327# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18328# splitting by setting IFS to empty value.)
18329IFS=" "" $as_nl"
18330
18331# Find who we are. Look in the path if we contain no directory separator.
22e05272 18332as_myself=
5213506e
RW
18333case $0 in #((
18334 *[\\/]* ) as_myself=$0 ;;
18335 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18336for as_dir in $PATH
18337do
18338 IFS=$as_save_IFS
18339 test -z "$as_dir" && as_dir=.
18340 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18341 done
18342IFS=$as_save_IFS
18343
18344 ;;
18345esac
18346# We did not find ourselves, most probably we were run as `sh COMMAND'
18347# in which case we are not to be found in the path.
18348if test "x$as_myself" = x; then
18349 as_myself=$0
18350fi
18351if test ! -f "$as_myself"; then
18352 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18353 exit 1
18354fi
1c710c3c 18355
5213506e
RW
18356# Unset variables that we do not need and which cause bugs (e.g. in
18357# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18358# suppresses any "Segmentation fault" message there. '((' could
18359# trigger a bug in pdksh 5.2.14.
18360for as_var in BASH_ENV ENV MAIL MAILPATH
18361do eval test x\${$as_var+set} = xset \
18362 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18363done
1c710c3c
DJ
18364PS1='$ '
18365PS2='> '
18366PS4='+ '
18367
18368# NLS nuisances.
5213506e
RW
18369LC_ALL=C
18370export LC_ALL
18371LANGUAGE=C
18372export LANGUAGE
18373
18374# CDPATH.
18375(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18376
18377
22e05272
JM
18378# as_fn_error STATUS ERROR [LINENO LOG_FD]
18379# ----------------------------------------
5213506e
RW
18380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 18382# script with STATUS, using 1 if that was 0.
5213506e
RW
18383as_fn_error ()
18384{
22e05272
JM
18385 as_status=$1; test $as_status -eq 0 && as_status=1
18386 if test "$4"; then
18387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 18389 fi
22e05272 18390 $as_echo "$as_me: error: $2" >&2
5213506e
RW
18391 as_fn_exit $as_status
18392} # as_fn_error
18393
18394
18395# as_fn_set_status STATUS
18396# -----------------------
18397# Set $? to STATUS, without forking.
18398as_fn_set_status ()
18399{
18400 return $1
18401} # as_fn_set_status
18402
18403# as_fn_exit STATUS
18404# -----------------
18405# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18406as_fn_exit ()
18407{
18408 set +e
18409 as_fn_set_status $1
18410 exit $1
18411} # as_fn_exit
18412
18413# as_fn_unset VAR
18414# ---------------
18415# Portably unset VAR.
18416as_fn_unset ()
18417{
18418 { eval $1=; unset $1;}
18419}
18420as_unset=as_fn_unset
18421# as_fn_append VAR VALUE
18422# ----------------------
18423# Append the text in VALUE to the end of the definition contained in VAR. Take
18424# advantage of any shell optimizations that allow amortized linear growth over
18425# repeated appends, instead of the typical quadratic growth present in naive
18426# implementations.
18427if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18428 eval 'as_fn_append ()
18429 {
18430 eval $1+=\$2
18431 }'
18432else
18433 as_fn_append ()
18434 {
18435 eval $1=\$$1\$2
18436 }
18437fi # as_fn_append
18438
18439# as_fn_arith ARG...
18440# ------------------
18441# Perform arithmetic evaluation on the ARGs, and store the result in the
18442# global $as_val. Take advantage of shells that can avoid forks. The arguments
18443# must be portable across $(()) and expr.
18444if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18445 eval 'as_fn_arith ()
18446 {
18447 as_val=$(( $* ))
18448 }'
18449else
18450 as_fn_arith ()
18451 {
18452 as_val=`expr "$@" || test $? -eq 1`
18453 }
18454fi # as_fn_arith
18455
1c710c3c 18456
5213506e
RW
18457if expr a : '\(a\)' >/dev/null 2>&1 &&
18458 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
18459 as_expr=expr
18460else
18461 as_expr=false
18462fi
18463
5213506e 18464if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
18465 as_basename=basename
18466else
18467 as_basename=false
18468fi
18469
5213506e
RW
18470if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18471 as_dirname=dirname
18472else
18473 as_dirname=false
18474fi
1c710c3c 18475
5213506e 18476as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
18477$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18478 X"$0" : 'X\(//\)$' \| \
5213506e
RW
18479 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18480$as_echo X/"$0" |
18481 sed '/^.*\/\([^/][^/]*\)\/*$/{
18482 s//\1/
18483 q
18484 }
18485 /^X\/\(\/\/\)$/{
18486 s//\1/
18487 q
18488 }
18489 /^X\/\(\/\).*/{
18490 s//\1/
18491 q
18492 }
18493 s/.*/./; q'`
2aeb72e9 18494
2aeb72e9
DD
18495# Avoid depending upon Character Ranges.
18496as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18497as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18498as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18499as_cr_digits='0123456789'
18500as_cr_alnum=$as_cr_Letters$as_cr_digits
18501
5213506e
RW
18502ECHO_C= ECHO_N= ECHO_T=
18503case `echo -n x` in #(((((
18504-n*)
18505 case `echo 'xy\c'` in
18506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18507 xy) ECHO_C='\c';;
18508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18509 ECHO_T=' ';;
18510 esac;;
18511*)
18512 ECHO_N='-n';;
1c710c3c
DJ
18513esac
18514
5213506e
RW
18515rm -f conf$$ conf$$.exe conf$$.file
18516if test -d conf$$.dir; then
18517 rm -f conf$$.dir/conf$$.file
1c710c3c 18518else
5213506e
RW
18519 rm -f conf$$.dir
18520 mkdir conf$$.dir 2>/dev/null
1c710c3c 18521fi
5213506e
RW
18522if (echo >conf$$.file) 2>/dev/null; then
18523 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 18524 as_ln_s='ln -s'
5213506e
RW
18525 # ... but there are two gotchas:
18526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 18528 # In both cases, we have to default to `cp -pR'.
5213506e 18529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 18530 as_ln_s='cp -pR'
5213506e
RW
18531 elif ln conf$$.file conf$$ 2>/dev/null; then
18532 as_ln_s=ln
18533 else
22e05272 18534 as_ln_s='cp -pR'
2aeb72e9 18535 fi
1c710c3c 18536else
22e05272 18537 as_ln_s='cp -pR'
1c710c3c 18538fi
5213506e
RW
18539rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18540rmdir conf$$.dir 2>/dev/null
18541
18542
18543# as_fn_mkdir_p
18544# -------------
18545# Create "$as_dir" as a directory, including parents if necessary.
18546as_fn_mkdir_p ()
18547{
18548
18549 case $as_dir in #(
18550 -*) as_dir=./$as_dir;;
18551 esac
18552 test -d "$as_dir" || eval $as_mkdir_p || {
18553 as_dirs=
18554 while :; do
18555 case $as_dir in #(
18556 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18557 *) as_qdir=$as_dir;;
18558 esac
18559 as_dirs="'$as_qdir' $as_dirs"
18560 as_dir=`$as_dirname -- "$as_dir" ||
18561$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18562 X"$as_dir" : 'X\(//\)[^/]' \| \
18563 X"$as_dir" : 'X\(//\)$' \| \
18564 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18565$as_echo X"$as_dir" |
18566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18567 s//\1/
18568 q
18569 }
18570 /^X\(\/\/\)[^/].*/{
18571 s//\1/
18572 q
18573 }
18574 /^X\(\/\/\)$/{
18575 s//\1/
18576 q
18577 }
18578 /^X\(\/\).*/{
18579 s//\1/
18580 q
18581 }
18582 s/.*/./; q'`
18583 test -d "$as_dir" && break
18584 done
18585 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 18586 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 18587
1c710c3c 18588
5213506e 18589} # as_fn_mkdir_p
1c710c3c 18590if mkdir -p . 2>/dev/null; then
5213506e 18591 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
18592else
18593 test -d ./-p && rmdir ./-p
18594 as_mkdir_p=false
18595fi
18596
22e05272
JM
18597
18598# as_fn_executable_p FILE
18599# -----------------------
18600# Test if FILE is an executable regular file.
18601as_fn_executable_p ()
18602{
18603 test -f "$1" && test -x "$1"
18604} # as_fn_executable_p
18605as_test_x='test -x'
18606as_executable_p=as_fn_executable_p
1c710c3c
DJ
18607
18608# Sed expression to map a string onto a valid CPP name.
18609as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18610
18611# Sed expression to map a string onto a valid variable name.
18612as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18613
18614
1c710c3c 18615exec 6>&1
5213506e
RW
18616## ----------------------------------- ##
18617## Main body of $CONFIG_STATUS script. ##
18618## ----------------------------------- ##
18619_ASEOF
18620test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18621
18622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18623# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 18624# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
18625# values after options handling.
18626ac_log="
1c710c3c 18627This file was extended by $as_me, which was
22e05272 18628generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
18629
18630 CONFIG_FILES = $CONFIG_FILES
18631 CONFIG_HEADERS = $CONFIG_HEADERS
18632 CONFIG_LINKS = $CONFIG_LINKS
18633 CONFIG_COMMANDS = $CONFIG_COMMANDS
18634 $ $0 $@
18635
5213506e
RW
18636on `(hostname || uname -n) 2>/dev/null | sed 1q`
18637"
18638
1c710c3c
DJ
18639_ACEOF
18640
5213506e
RW
18641case $ac_config_files in *"
18642"*) set x $ac_config_files; shift; ac_config_files=$*;;
18643esac
1c710c3c 18644
2aeb72e9 18645
2aeb72e9 18646
5213506e
RW
18647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18648# Files that config.status was made for.
18649config_files="$ac_config_files"
1c710c3c 18650
5213506e 18651_ACEOF
2aeb72e9 18652
5213506e 18653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 18654ac_cs_usage="\
5213506e
RW
18655\`$as_me' instantiates files and other configuration actions
18656from templates according to the current configuration. Unless the files
18657and actions are specified as TAGs, all are instantiated by default.
1c710c3c 18658
5213506e 18659Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
18660
18661 -h, --help print this help, then exit
5213506e 18662 -V, --version print version number and configuration settings, then exit
22e05272 18663 --config print configuration, then exit
5213506e
RW
18664 -q, --quiet, --silent
18665 do not print progress messages
1c710c3c
DJ
18666 -d, --debug don't remove temporary files
18667 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
18668 --file=FILE[:TEMPLATE]
18669 instantiate the configuration file FILE
1c710c3c
DJ
18670
18671Configuration files:
18672$config_files
18673
5213506e 18674Report bugs to the package provider."
2aeb72e9 18675
5213506e
RW
18676_ACEOF
18677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 18678ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
18679ac_cs_version="\\
18680config.status
22e05272
JM
18681configured by $0, generated by GNU Autoconf 2.69,
18682 with options \\"\$ac_cs_config\\"
1c710c3c 18683
22e05272 18684Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
18685This config.status script is free software; the Free Software Foundation
18686gives unlimited permission to copy, distribute and modify it."
5213506e
RW
18687
18688ac_pwd='$ac_pwd'
18689srcdir='$srcdir'
18690INSTALL='$INSTALL'
87264276 18691AWK='$AWK'
5213506e 18692test -n "\$AWK" || AWK=awk
1c710c3c
DJ
18693_ACEOF
18694
5213506e
RW
18695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18696# The default lists apply if the user does not specify any file.
1c710c3c
DJ
18697ac_need_defaults=:
18698while test $# != 0
a4b9e93e 18699do
1c710c3c 18700 case $1 in
22e05272 18701 --*=?*)
5213506e
RW
18702 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18703 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
18704 ac_shift=:
18705 ;;
22e05272
JM
18706 --*=)
18707 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18708 ac_optarg=
18709 ac_shift=:
18710 ;;
5213506e 18711 *)
1c710c3c
DJ
18712 ac_option=$1
18713 ac_optarg=$2
18714 ac_shift=shift
18715 ;;
1c710c3c
DJ
18716 esac
18717
18718 case $ac_option in
18719 # Handling of the options.
671aa708 18720 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 18721 ac_cs_recheck=: ;;
5213506e
RW
18722 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18723 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
18724 --config | --confi | --conf | --con | --co | --c )
18725 $as_echo "$ac_cs_config"; exit ;;
5213506e 18726 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
18727 debug=: ;;
18728 --file | --fil | --fi | --f )
18729 $ac_shift
5213506e
RW
18730 case $ac_optarg in
18731 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 18732 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
18733 esac
18734 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 18735 ac_need_defaults=false;;
5213506e
RW
18736 --he | --h | --help | --hel | -h )
18737 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
18738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18739 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18740 ac_cs_silent=: ;;
18741
18742 # This is an error.
22e05272 18743 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 18744Try \`$0 --help' for more information." ;;
1c710c3c 18745
5213506e
RW
18746 *) as_fn_append ac_config_targets " $1"
18747 ac_need_defaults=false ;;
1c710c3c 18748
0b0dc272 18749 esac
1c710c3c 18750 shift
0b0dc272
AM
18751done
18752
1c710c3c 18753ac_configure_extra_args=
0b0dc272 18754
1c710c3c
DJ
18755if $ac_cs_silent; then
18756 exec 6>/dev/null
18757 ac_configure_extra_args="$ac_configure_extra_args --silent"
18758fi
0b0dc272 18759
1c710c3c 18760_ACEOF
5213506e 18761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 18762if \$ac_cs_recheck; then
22e05272 18763 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
18764 shift
18765 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18766 CONFIG_SHELL='$SHELL'
18767 export CONFIG_SHELL
18768 exec "\$@"
1c710c3c
DJ
18769fi
18770
18771_ACEOF
5213506e
RW
18772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18773exec 5>>config.log
18774{
18775 echo
18776 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18777## Running $as_me. ##
18778_ASBOX
18779 $as_echo "$ac_log"
18780} >&5
1c710c3c 18781
5213506e
RW
18782_ACEOF
18783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
18784#
18785# INIT-COMMANDS
18786#
18787extrasub_build="$extrasub_build"
18788 extrasub_host="$extrasub_host"
18789 extrasub_target="$extrasub_target"
18790
5213506e 18791_ACEOF
1c710c3c 18792
5213506e 18793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 18794
5213506e 18795# Handling of arguments.
1c710c3c
DJ
18796for ac_config_target in $ac_config_targets
18797do
5213506e
RW
18798 case $ac_config_target in
18799 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18800
22e05272 18801 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
18802 esac
18803done
18804
5213506e 18805
1c710c3c
DJ
18806# If the user did not use the arguments to specify the items to instantiate,
18807# then the envvar interface is used. Set only those that are not.
18808# We use the long form for the default assignment because of an extremely
18809# bizarre bug on SunOS 4.1.3.
18810if $ac_need_defaults; then
18811 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18812fi
18813
18814# Have a temporary directory for convenience. Make it in the build tree
5213506e 18815# simply because there is no reason against having it here, and in addition,
1c710c3c 18816# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
18817# Hook for its removal unless debugging.
18818# Note that there is a small window in which the directory will not be cleaned:
18819# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
18820$debug ||
18821{
22e05272 18822 tmp= ac_tmp=
5213506e 18823 trap 'exit_status=$?
22e05272
JM
18824 : "${ac_tmp:=$tmp}"
18825 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
18826' 0
18827 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 18828}
1c710c3c
DJ
18829# Create a (secure) tmp directory for tmp files.
18830
18831{
5213506e 18832 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 18833 test -d "$tmp"
1c710c3c
DJ
18834} ||
18835{
5213506e
RW
18836 tmp=./conf$$-$RANDOM
18837 (umask 077 && mkdir "$tmp")
22e05272
JM
18838} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18839ac_tmp=$tmp
5213506e
RW
18840
18841# Set up the scripts for CONFIG_FILES section.
18842# No need to generate them if there are no CONFIG_FILES.
18843# This happens for instance with `./config.status config.h'.
18844if test -n "$CONFIG_FILES"; then
18845
18846if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18847 ac_cs_awk_getline=:
18848 ac_cs_awk_pipe_init=
18849 ac_cs_awk_read_file='
18850 while ((getline aline < (F[key])) > 0)
18851 print(aline)
18852 close(F[key])'
18853 ac_cs_awk_pipe_fini=
18854else
18855 ac_cs_awk_getline=false
18856 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18857 ac_cs_awk_read_file='
18858 print "|#_!!_#|"
18859 print "cat " F[key] " &&"
18860 '$ac_cs_awk_pipe_init
18861 # The final `:' finishes the AND list.
18862 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18863fi
18864ac_cr=`echo X | tr X '\015'`
18865# On cygwin, bash can eat \r inside `` if the user requested igncr.
18866# But we know of no other shell where ac_cr would be empty at this
18867# point, so we can use a bashism as a fallback.
18868if test "x$ac_cr" = x; then
18869 eval ac_cr=\$\'\\r\'
18870fi
18871ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18872if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 18873 ac_cs_awk_cr='\\r'
5213506e
RW
18874else
18875 ac_cs_awk_cr=$ac_cr
18876fi
18877
22e05272 18878echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
18879_ACEOF
18880
18881# Create commands to substitute file output variables.
1c710c3c 18882{
5213506e 18883 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 18884 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
18885 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18886 echo "_ACAWK" &&
18887 echo "_ACEOF"
18888} >conf$$files.sh &&
18889. ./conf$$files.sh ||
22e05272 18890 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 18891rm -f conf$$files.sh
1c710c3c 18892
5213506e
RW
18893{
18894 echo "cat >conf$$subs.awk <<_ACEOF" &&
18895 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18896 echo "_ACEOF"
18897} >conf$$subs.sh ||
22e05272
JM
18898 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18899ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
18900ac_delim='%!_!# '
18901for ac_last_try in false false false false false :; do
18902 . ./conf$$subs.sh ||
22e05272 18903 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
18904
18905 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18906 if test $ac_delim_n = $ac_delim_num; then
18907 break
18908 elif $ac_last_try; then
22e05272 18909 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
18910 else
18911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18912 fi
18913done
18914rm -f conf$$subs.sh
18915
18916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 18917cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 18918_ACEOF
5213506e
RW
18919sed -n '
18920h
18921s/^/S["/; s/!.*/"]=/
18922p
18923g
18924s/^[^!]*!//
18925:repl
18926t repl
18927s/'"$ac_delim"'$//
18928t delim
18929:nl
18930h
22e05272 18931s/\(.\{148\}\)..*/\1/
5213506e
RW
18932t more1
18933s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18934p
18935n
18936b repl
18937:more1
18938s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18939p
18940g
18941s/.\{148\}//
18942t nl
18943:delim
18944h
22e05272 18945s/\(.\{148\}\)..*/\1/
5213506e
RW
18946t more2
18947s/["\\]/\\&/g; s/^/"/; s/$/"/
18948p
18949b
18950:more2
18951s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18952p
18953g
18954s/.\{148\}//
18955t delim
18956' <conf$$subs.awk | sed '
18957/^[^""]/{
18958 N
18959 s/\n//
18960}
18961' >>$CONFIG_STATUS || ac_write_fail=1
18962rm -f conf$$subs.awk
18963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18964_ACAWK
22e05272 18965cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
18966 for (key in S) S_is_set[key] = 1
18967 FS = "\a"
18968 \$ac_cs_awk_pipe_init
18969}
18970{
18971 line = $ 0
18972 nfields = split(line, field, "@")
18973 substed = 0
18974 len = length(field[1])
18975 for (i = 2; i < nfields; i++) {
18976 key = field[i]
18977 keylen = length(key)
18978 if (S_is_set[key]) {
18979 value = S[key]
18980 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18981 len += length(value) + length(field[++i])
18982 substed = 1
18983 } else
18984 len += 1 + keylen
18985 }
18986 if (nfields == 3 && !substed) {
18987 key = field[2]
18988 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18989 \$ac_cs_awk_read_file
18990 next
18991 }
18992 }
18993 print line
18994}
18995\$ac_cs_awk_pipe_fini
18996_ACAWK
18997_ACEOF
18998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18999if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19000 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19001else
19002 cat
22e05272
JM
19003fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19004 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
19005_ACEOF
19006
22e05272
JM
19007# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19008# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
19009# trailing colons and then remove the whole line if VPATH becomes empty
19010# (actually we leave an empty line to preserve line numbers).
19011if test "x$srcdir" = x.; then
22e05272
JM
19012 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19013h
19014s///
19015s/^/:/
19016s/[ ]*$/:/
19017s/:\$(srcdir):/:/g
19018s/:\${srcdir}:/:/g
19019s/:@srcdir@:/:/g
19020s/^:*//
5213506e 19021s/:*$//
22e05272
JM
19022x
19023s/\(=[ ]*\).*/\1/
19024G
19025s/\n//
5213506e
RW
19026s/^[^=]*=[ ]*$//
19027}'
19028fi
2aeb72e9 19029
5213506e
RW
19030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19031fi # test -n "$CONFIG_FILES"
2aeb72e9 19032
1c710c3c 19033
5213506e
RW
19034eval set X " :F $CONFIG_FILES "
19035shift
19036for ac_tag
19037do
19038 case $ac_tag in
19039 :[FHLC]) ac_mode=$ac_tag; continue;;
19040 esac
19041 case $ac_mode$ac_tag in
19042 :[FHL]*:*);;
22e05272 19043 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
19044 :[FH]-) ac_tag=-:-;;
19045 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19046 esac
19047 ac_save_IFS=$IFS
19048 IFS=:
19049 set x $ac_tag
19050 IFS=$ac_save_IFS
19051 shift
19052 ac_file=$1
19053 shift
79c06341 19054
5213506e
RW
19055 case $ac_mode in
19056 :L) ac_source=$1;;
19057 :[FH])
19058 ac_file_inputs=
19059 for ac_f
19060 do
19061 case $ac_f in
22e05272 19062 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
19063 *) # Look for the file first in the build tree, then in the source tree
19064 # (if the path is not absolute). The absolute path cannot be DOS-style,
19065 # because $ac_f cannot contain `:'.
19066 test -f "$ac_f" ||
19067 case $ac_f in
19068 [\\/$]*) false;;
19069 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19070 esac ||
22e05272 19071 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
19072 esac
19073 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19074 as_fn_append ac_file_inputs " '$ac_f'"
19075 done
1c710c3c 19076
5213506e
RW
19077 # Let's still pretend it is `configure' which instantiates (i.e., don't
19078 # use $as_me), people would be surprised to read:
19079 # /* config.h. Generated by config.status. */
19080 configure_input='Generated from '`
19081 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19082 `' by configure.'
19083 if test x"$ac_file" != x-; then
19084 configure_input="$ac_file. $configure_input"
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19086$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 19087 fi
5213506e
RW
19088 # Neutralize special characters interpreted by sed in replacement strings.
19089 case $configure_input in #(
19090 *\&* | *\|* | *\\* )
19091 ac_sed_conf_input=`$as_echo "$configure_input" |
19092 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19093 *) ac_sed_conf_input=$configure_input;;
19094 esac
11a67599 19095
5213506e 19096 case $ac_tag in
22e05272
JM
19097 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
19099 esac
19100 ;;
11a67599
ZW
19101 esac
19102
5213506e 19103 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
19104$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19105 X"$ac_file" : 'X\(//\)[^/]' \| \
19106 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
19107 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19108$as_echo X"$ac_file" |
19109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19110 s//\1/
19111 q
19112 }
19113 /^X\(\/\/\)[^/].*/{
19114 s//\1/
19115 q
19116 }
19117 /^X\(\/\/\)$/{
19118 s//\1/
19119 q
19120 }
19121 /^X\(\/\).*/{
19122 s//\1/
19123 q
19124 }
19125 s/.*/./; q'`
19126 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 19127 ac_builddir=.
0b0dc272 19128
5213506e
RW
19129case "$ac_dir" in
19130.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19131*)
19132 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19133 # A ".." for each directory in $ac_dir_suffix.
19134 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19135 case $ac_top_builddir_sub in
19136 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19137 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19138 esac ;;
19139esac
19140ac_abs_top_builddir=$ac_pwd
19141ac_abs_builddir=$ac_pwd$ac_dir_suffix
19142# for backward compatibility:
19143ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
19144
19145case $srcdir in
5213506e 19146 .) # We are building in place.
1c710c3c 19147 ac_srcdir=.
5213506e
RW
19148 ac_top_srcdir=$ac_top_builddir_sub
19149 ac_abs_top_srcdir=$ac_pwd ;;
19150 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 19151 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
19152 ac_top_srcdir=$srcdir
19153 ac_abs_top_srcdir=$srcdir ;;
19154 *) # Relative name.
19155 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19156 ac_top_srcdir=$ac_top_build_prefix$srcdir
19157 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 19158esac
5213506e 19159ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 19160
0b0dc272 19161
5213506e
RW
19162 case $ac_mode in
19163 :F)
19164 #
19165 # CONFIG_FILE
19166 #
1c710c3c
DJ
19167
19168 case $INSTALL in
19169 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 19170 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 19171 esac
5213506e 19172_ACEOF
11a67599 19173
5213506e
RW
19174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19175# If the template does not know about datarootdir, expand it.
19176# FIXME: This hack should be removed a few years after 2.60.
19177ac_datarootdir_hack=; ac_datarootdir_seen=
19178ac_sed_dataroot='
19179/datarootdir/ {
19180 p
19181 q
19182}
19183/@datadir@/p
19184/@docdir@/p
19185/@infodir@/p
19186/@localedir@/p
19187/@mandir@/p'
19188case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19189*datarootdir*) ac_datarootdir_seen=yes;;
19190*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19192$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 19193_ACEOF
5213506e
RW
19194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19195 ac_datarootdir_hack='
19196 s&@datadir@&$datadir&g
19197 s&@docdir@&$docdir&g
19198 s&@infodir@&$infodir&g
19199 s&@localedir@&$localedir&g
19200 s&@mandir@&$mandir&g
19201 s&\\\${datarootdir}&$datarootdir&g' ;;
19202esac
19203_ACEOF
19204
19205# Neutralize VPATH when `$srcdir' = `.'.
19206# Shell code in configure.ac might set extrasub.
19207# FIXME: do we really want to maintain this feature?
19208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19209ac_sed_extra="$ac_vpsub
1c710c3c
DJ
19210$extrasub
19211_ACEOF
5213506e 19212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
19213:t
19214/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
19215s|@configure_input@|$ac_sed_conf_input|;t t
19216s&@top_builddir@&$ac_top_builddir_sub&;t t
19217s&@top_build_prefix@&$ac_top_build_prefix&;t t
19218s&@srcdir@&$ac_srcdir&;t t
19219s&@abs_srcdir@&$ac_abs_srcdir&;t t
19220s&@top_srcdir@&$ac_top_srcdir&;t t
19221s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19222s&@builddir@&$ac_builddir&;t t
19223s&@abs_builddir@&$ac_abs_builddir&;t t
19224s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19225s&@INSTALL@&$ac_INSTALL&;t t
19226$ac_datarootdir_hack
19227"
19228eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19229if $ac_cs_awk_getline; then
22e05272 19230 $AWK -f "$ac_tmp/subs.awk"
5213506e 19231else
22e05272
JM
19232 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19233fi \
19234 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
19235
19236test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
19237 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19238 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19239 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 19240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19241which seems to be undefined. Please make sure it is defined" >&5
5213506e 19242$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19243which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 19244
22e05272 19245 rm -f "$ac_tmp/stdin"
5213506e 19246 case $ac_file in
22e05272
JM
19247 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19248 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 19249 esac \
22e05272 19250 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 19251 ;;
11a67599 19252
11a67599 19253
79c06341 19254
5213506e
RW
19255 esac
19256
3e54529c
RW
19257
19258 case $ac_file$ac_mode in
19259 "Makefile":F) sed "$extrasub_build" Makefile |
19260 sed "$extrasub_host" |
19261 sed "$extrasub_target" > mf$$
19262 mv -f mf$$ Makefile ;;
19263
19264 esac
5213506e
RW
19265done # for ac_tag
19266
19267
19268as_fn_exit 0
1c710c3c 19269_ACEOF
1c710c3c
DJ
19270ac_clean_files=$ac_clean_files_save
19271
5213506e 19272test $ac_write_fail = 0 ||
22e05272 19273 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 19274
1c710c3c
DJ
19275
19276# configure is writing to config.log, and then calls config.status.
19277# config.status does its own redirection, appending to config.log.
19278# Unfortunately, on DOS this fails, as config.log is still kept open
19279# by configure, so config.status won't be able to write to it; its
19280# output is simply discarded. So we exec the FD to /dev/null,
19281# effectively closing config.log, so it can be properly (re)opened and
19282# appended to by config.status. When coming back to configure, we
19283# need to make the FD available again.
19284if test "$no_create" != yes; then
19285 ac_cs_success=:
19286 ac_config_status_args=
19287 test "$silent" = yes &&
19288 ac_config_status_args="$ac_config_status_args --quiet"
19289 exec 5>/dev/null
19290 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19291 exec 5>>config.log
19292 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19293 # would make configure fail if this is the last instruction.
22e05272 19294 $ac_cs_success || as_fn_exit 1
5213506e
RW
19295fi
19296if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19298$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 19299fi
79c06341 19300