]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
Daily bump.
[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
10abab41 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
10abab41 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
10abab41 654DSYMUTIL_FOR_BUILD
5213506e
RW
655DLLTOOL_FOR_BUILD
656CXX_FOR_BUILD
657CXXFLAGS_FOR_BUILD
658CFLAGS_FOR_BUILD
659CC_FOR_BUILD
660AS_FOR_BUILD
661AR_FOR_BUILD
aae29963 662target_configdirs
5213506e 663configdirs
5213506e 664build_configdirs
5213506e
RW
665INSTALL_GDB_TK
666GDB_TK
667CONFIGURE_GDB_TK
668build_tooldir
669tooldir
670GCC_SHLIB_SUBDIR
671RPATH_ENVVAR
ffedf511
RW
672target_configargs
673host_configargs
674build_configargs
e12c4094 675BUILD_CONFIG
6f57bdf6 676LDFLAGS_FOR_TARGET
5213506e
RW
677CXXFLAGS_FOR_TARGET
678CFLAGS_FOR_TARGET
679DEBUG_PREFIX_CFLAGS_FOR_TARGET
680SYSROOT_CFLAGS_FOR_TARGET
3c36aa6b 681get_gcc_base_ver
1c01ebf6 682extra_host_zlib_configure_flags
d7f09764 683extra_host_libiberty_configure_flags
fca38047 684stage1_languages
cdfee50a 685host_shared
45b3824d
TS
686extra_linker_plugin_flags
687extra_linker_plugin_configure_flags
33ad93b9 688islinc
eae1a5d4 689isllibs
5213506e 690poststage1_ldflags
ed2eaa9f 691poststage1_libs
5213506e 692stage1_ldflags
0b21f5d3 693stage1_libs
0ff2d841 694extra_isl_gmp_configure_flags
5213506e
RW
695extra_mpc_mpfr_configure_flags
696extra_mpc_gmp_configure_flags
697extra_mpfr_configure_flags
698gmpinc
699gmplibs
7ffcf5d6 700HAVE_CXX11_FOR_BUILD
ffac9597 701HAVE_CXX11
5213506e
RW
702do_compare
703GNATMAKE
704GNATBIND
705ac_ct_CXX
706CXXFLAGS
707CXX
708OBJEXT
709EXEEXT
710ac_ct_CC
711CPPFLAGS
712LDFLAGS
713CFLAGS
714CC
5f520819 715extra_liboffloadmic_configure_flags
5213506e
RW
716target_subdir
717host_subdir
718build_subdir
719build_libsubdir
87264276
PB
720AWK
721SED
5213506e
RW
722LN_S
723LN
724INSTALL_DATA
725INSTALL_SCRIPT
726INSTALL_PROGRAM
727target_os
728target_vendor
729target_cpu
730target
731host_os
732host_vendor
733host_cpu
734host
735target_noncanonical
736host_noncanonical
737build_noncanonical
738build_os
739build_vendor
740build_cpu
741build
742TOPLEVEL_CONFIGURE_ARGUMENTS
743target_alias
744host_alias
745build_alias
746LIBS
747ECHO_T
748ECHO_N
749ECHO_C
750DEFS
751mandir
752localedir
753libdir
754psdir
755pdfdir
756dvidir
757htmldir
758infodir
759docdir
760oldincludedir
761includedir
762localstatedir
763sharedstatedir
764sysconfdir
765datadir
766datarootdir
767libexecdir
768sbindir
769bindir
770program_transform_name
771prefix
772exec_prefix
773PACKAGE_URL
774PACKAGE_BUGREPORT
775PACKAGE_STRING
776PACKAGE_VERSION
777PACKAGE_TARNAME
778PACKAGE_NAME
779PATH_SEPARATOR
780SHELL'
781ac_subst_files='serialization_dependencies
782host_makefile_frag
783target_makefile_frag
784alphaieee_frag
785ospace_frag'
786ac_user_opts='
787enable_option_checking
788with_build_libsubdir
a05c2c75 789with_system_zlib
85c64bbe
BS
790enable_as_accelerator_for
791enable_offload_targets
5213506e 792enable_gold
21539e2e 793enable_ld
78edb32f 794enable_compressed_debug_sections
87e6d9dc
TB
795enable_libquadmath
796enable_libquadmath_support
5213506e
RW
797enable_libada
798enable_libssp
1873ec0c 799enable_libstdcxx
5f520819 800enable_liboffloadmic
ff3ac0f4 801enable_bootstrap
5213506e
RW
802with_mpc
803with_mpc_include
804with_mpc_lib
805with_mpfr_dir
806with_mpfr
807with_mpfr_include
808with_mpfr_lib
809with_gmp_dir
810with_gmp
811with_gmp_include
812with_gmp_lib
5213506e 813with_stage1_libs
aac9103b 814with_static_standard_libraries
0b21f5d3 815with_stage1_ldflags
5213506e 816with_boot_libs
ed2eaa9f 817with_boot_ldflags
33ad93b9
RG
818with_isl
819with_isl_include
820with_isl_lib
821enable_isl_version_check
d7f09764 822enable_lto
45b3824d
TS
823enable_linker_plugin_configure_flags
824enable_linker_plugin_flags
cdfee50a 825enable_host_shared
5213506e 826enable_stage1_languages
43c40f3e 827enable_objc_gc
114bf3f1
MK
828with_target_bdw_gc
829with_target_bdw_gc_include
830with_target_bdw_gc_lib
3c36aa6b 831with_gcc_major_version_only
5213506e
RW
832with_build_sysroot
833with_debug_prefix_map
5646b7b9 834with_build_config
beeda1d9 835enable_vtable_verify
5213506e
RW
836enable_serial_configure
837with_build_time_tools
838enable_maintainer_mode
839enable_stage1_checking
840enable_werror
5213506e
RW
841'
842 ac_precious_vars='build_alias
843host_alias
844target_alias
845CC
846CFLAGS
847LDFLAGS
848LIBS
849CPPFLAGS
850CXX
851CXXFLAGS
852CCC
ffedf511
RW
853build_configargs
854host_configargs
855target_configargs
5213506e
RW
856AR
857AS
858DLLTOOL
10abab41 859DSYMUTIL
5213506e
RW
860LD
861LIPO
862NM
863RANLIB
864STRIP
865WINDRES
866WINDMC
867OBJCOPY
868OBJDUMP
e4a9a572 869OTOOL
e7a82751 870READELF
5213506e
RW
871CC_FOR_TARGET
872CXX_FOR_TARGET
873GCC_FOR_TARGET
5213506e 874GFORTRAN_FOR_TARGET
632e2a07 875GOC_FOR_TARGET
b4c522fa 876GDC_FOR_TARGET
5213506e
RW
877AR_FOR_TARGET
878AS_FOR_TARGET
879DLLTOOL_FOR_TARGET
10abab41 880DSYMUTIL_FOR_TARGET
5213506e
RW
881LD_FOR_TARGET
882LIPO_FOR_TARGET
883NM_FOR_TARGET
9bccfdf5 884OBJCOPY_FOR_TARGET
5213506e 885OBJDUMP_FOR_TARGET
e4a9a572 886OTOOL_FOR_TARGET
5213506e 887RANLIB_FOR_TARGET
e7a82751 888READELF_FOR_TARGET
5213506e
RW
889STRIP_FOR_TARGET
890WINDRES_FOR_TARGET
891WINDMC_FOR_TARGET'
892
671aa708
NN
893
894# Initialize some variables set by options.
1c710c3c
DJ
895ac_init_help=
896ac_init_version=false
5213506e
RW
897ac_unrecognized_opts=
898ac_unrecognized_sep=
671aa708
NN
899# The variables have the same names as the options, with
900# dashes changed to underlines.
1c710c3c 901cache_file=/dev/null
671aa708 902exec_prefix=NONE
671aa708 903no_create=
671aa708
NN
904no_recursion=
905prefix=NONE
906program_prefix=NONE
907program_suffix=NONE
908program_transform_name=s,x,x,
909silent=
910site=
911srcdir=
671aa708
NN
912verbose=
913x_includes=NONE
914x_libraries=NONE
1c710c3c
DJ
915
916# Installation directory options.
917# These are left unexpanded so users can "make install exec_prefix=/foo"
918# and all the variables that are supposed to be based on exec_prefix
919# by default will actually change.
920# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 921# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
922bindir='${exec_prefix}/bin'
923sbindir='${exec_prefix}/sbin'
924libexecdir='${exec_prefix}/libexec'
5213506e
RW
925datarootdir='${prefix}/share'
926datadir='${datarootdir}'
671aa708
NN
927sysconfdir='${prefix}/etc'
928sharedstatedir='${prefix}/com'
929localstatedir='${prefix}/var'
671aa708
NN
930includedir='${prefix}/include'
931oldincludedir='/usr/include'
5213506e
RW
932docdir='${datarootdir}/doc/${PACKAGE}'
933infodir='${datarootdir}/info'
934htmldir='${docdir}'
935dvidir='${docdir}'
936pdfdir='${docdir}'
937psdir='${docdir}'
938libdir='${exec_prefix}/lib'
939localedir='${datarootdir}/locale'
940mandir='${datarootdir}/man'
79c06341 941
671aa708 942ac_prev=
5213506e 943ac_dashdash=
671aa708
NN
944for ac_option
945do
671aa708
NN
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
5213506e 948 eval $ac_prev=\$ac_option
671aa708
NN
949 ac_prev=
950 continue
951 fi
79c06341 952
5213506e 953 case $ac_option in
22e05272
JM
954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *=) ac_optarg= ;;
956 *) ac_optarg=yes ;;
5213506e 957 esac
671aa708
NN
958
959 # Accept the important Cygnus configure options, so we can diagnose typos.
960
5213506e
RW
961 case $ac_dashdash$ac_option in
962 --)
963 ac_dashdash=yes ;;
671aa708
NN
964
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
966 ac_prev=bindir ;;
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 968 bindir=$ac_optarg ;;
671aa708
NN
969
970 -build | --build | --buil | --bui | --bu)
1c710c3c 971 ac_prev=build_alias ;;
671aa708 972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 973 build_alias=$ac_optarg ;;
671aa708
NN
974
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
980 cache_file=$ac_optarg ;;
981
982 --config-cache | -C)
983 cache_file=config.cache ;;
671aa708 984
5213506e 985 -datadir | --datadir | --datadi | --datad)
671aa708 986 ac_prev=datadir ;;
5213506e 987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 988 datadir=$ac_optarg ;;
671aa708 989
5213506e
RW
990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
996
671aa708 997 -disable-* | --disable-*)
5213506e 998 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 999 # Reject names that are not valid shell variable names.
5213506e 1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1001 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1005 *"
1006"enable_$ac_useropt"
1007"*) ;;
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1010 esac
1011 eval enable_$ac_useropt=no ;;
1012
1013 -docdir | --docdir | --docdi | --doc | --do)
1014 ac_prev=docdir ;;
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1017
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019 ac_prev=dvidir ;;
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
671aa708
NN
1022
1023 -enable-* | --enable-*)
5213506e 1024 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1025 # Reject names that are not valid shell variable names.
5213506e 1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1027 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1031 *"
1032"enable_$ac_useropt"
1033"*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
2aeb72e9 1036 esac
5213506e 1037 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1038
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1c710c3c 1046 exec_prefix=$ac_optarg ;;
671aa708
NN
1047
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1050 with_gas=yes ;;
1051
1c710c3c
DJ
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
671aa708
NN
1058
1059 -host | --host | --hos | --ho)
1c710c3c 1060 ac_prev=host_alias ;;
671aa708 1061 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1062 host_alias=$ac_optarg ;;
671aa708 1063
5213506e
RW
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 ac_prev=htmldir ;;
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 | --ht=*)
1068 htmldir=$ac_optarg ;;
1069
671aa708
NN
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1075 includedir=$ac_optarg ;;
671aa708
NN
1076
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 ac_prev=infodir ;;
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1080 infodir=$ac_optarg ;;
671aa708
NN
1081
1082 -libdir | --libdir | --libdi | --libd)
1083 ac_prev=libdir ;;
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1085 libdir=$ac_optarg ;;
671aa708
NN
1086
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1092 libexecdir=$ac_optarg ;;
671aa708 1093
5213506e
RW
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1098
671aa708 1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1100 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1104 localstatedir=$ac_optarg ;;
671aa708
NN
1105
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 ac_prev=mandir ;;
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1109 mandir=$ac_optarg ;;
671aa708
NN
1110
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1113 with_fp=no ;;
1114
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1116 | --no-cr | --no-c | -n)
671aa708
NN
1117 no_create=yes ;;
1118
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121 no_recursion=yes ;;
1122
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1130 oldincludedir=$ac_optarg ;;
671aa708
NN
1131
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 ac_prev=prefix ;;
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1135 prefix=$ac_optarg ;;
671aa708
NN
1136
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1142 program_prefix=$ac_optarg ;;
671aa708
NN
1143
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1149 program_suffix=$ac_optarg ;;
671aa708
NN
1150
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1166 program_transform_name=$ac_optarg ;;
671aa708 1167
5213506e
RW
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 ac_prev=pdfdir ;;
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1172
1173 -psdir | --psdir | --psdi | --psd | --ps)
1174 ac_prev=psdir ;;
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176 psdir=$ac_optarg ;;
1177
671aa708
NN
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1180 silent=yes ;;
1181
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
1c710c3c 1186 sbindir=$ac_optarg ;;
671aa708
NN
1187
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
1c710c3c 1197 sharedstatedir=$ac_optarg ;;
671aa708
NN
1198
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
1c710c3c 1202 site=$ac_optarg ;;
671aa708
NN
1203
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1207 srcdir=$ac_optarg ;;
671aa708
NN
1208
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1214 sysconfdir=$ac_optarg ;;
671aa708
NN
1215
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1217 ac_prev=target_alias ;;
671aa708 1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1219 target_alias=$ac_optarg ;;
671aa708
NN
1220
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1223
1c710c3c
DJ
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
671aa708
NN
1226
1227 -with-* | --with-*)
5213506e 1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1229 # Reject names that are not valid shell variable names.
5213506e 1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1231 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1235 *"
1236"with_$ac_useropt"
1237"*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
2aeb72e9 1240 esac
5213506e 1241 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1242
1243 -without-* | --without-*)
5213506e 1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1245 # Reject names that are not valid shell variable names.
5213506e 1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1247 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1251 *"
1252"with_$ac_useropt"
1253"*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=no ;;
671aa708
NN
1258
1259 --x)
1260 # Obsolete; use --with-x.
1261 with_x=yes ;;
1262
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1268 x_includes=$ac_optarg ;;
671aa708
NN
1269
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1275 x_libraries=$ac_optarg ;;
671aa708 1276
22e05272
JM
1277 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1278Try \`$0 --help' for more information"
671aa708
NN
1279 ;;
1280
1c710c3c
DJ
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
5213506e
RW
1284 case $ac_envvar in #(
1285 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1286 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1287 esac
1288 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1289 export $ac_envvar ;;
1290
671aa708 1291 *)
1c710c3c 1292 # FIXME: should be removed in autoconf 3.0.
5213506e 1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1296 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1297 ;;
1298
1299 esac
1300done
1301
1302if test -n "$ac_prev"; then
1c710c3c 1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1304 as_fn_error $? "missing argument to $ac_option"
af71363e 1305fi
af71363e 1306
5213506e
RW
1307if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1309 no) ;;
22e05272 1310 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1312 esac
5213506e 1313fi
2aeb72e9 1314
5213506e
RW
1315# Check all directory arguments for consistency.
1316for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir
2aeb72e9 1320do
5213506e
RW
1321 eval ac_val=\$$ac_var
1322 # Remove trailing slashes.
1323 case $ac_val in
1324 */ )
1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326 eval $ac_var=\$ac_val;;
1327 esac
1328 # Be sure to have absolute directory names.
2aeb72e9 1329 case $ac_val in
5213506e
RW
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1332 esac
22e05272 1333 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1334done
1335
1c710c3c
DJ
1336# There might be people who depend on the old broken behavior: `$host'
1337# used to hold the argument of --host etc.
1338# FIXME: To remove some day.
1339build=$build_alias
1340host=$host_alias
1341target=$target_alias
0b0dc272 1342
1c710c3c
DJ
1343# FIXME: To remove some day.
1344if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1c710c3c
DJ
1347 elif test "x$build_alias" != "x$host_alias"; then
1348 cross_compiling=yes
1349 fi
1350fi
1351
1352ac_tool_prefix=
1353test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354
1355test "$silent" = yes && exec 6>/dev/null
671aa708 1356
671aa708 1357
5213506e
RW
1358ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359ac_ls_di=`ls -di .` &&
1360ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1361 as_fn_error $? "working directory cannot be determined"
5213506e 1362test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1363 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1364
1365
671aa708
NN
1366# Find the source files, if location was not specified.
1367if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
5213506e
RW
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$as_myself" ||
1371$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$as_myself" : 'X\(//\)[^/]' \| \
1373 X"$as_myself" : 'X\(//\)$' \| \
1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375$as_echo X"$as_myself" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\/\)[^/].*/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)$/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\).*/{
1389 s//\1/
1390 q
1391 }
1392 s/.*/./; q'`
671aa708 1393 srcdir=$ac_confdir
5213506e 1394 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1395 srcdir=..
1396 fi
1397else
1398 ac_srcdir_defaulted=no
1399fi
5213506e
RW
1400if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1402 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1403fi
1404ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405ac_abs_confdir=`(
22e05272 1406 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1407 pwd)`
1408# When building in place, set srcdir=.
1409if test "$ac_abs_confdir" = "$ac_pwd"; then
1410 srcdir=.
1411fi
1412# Remove unnecessary trailing slashes from srcdir.
1413# Double slashes in file names in object file debugging info
1414# mess up M-x gdb in Emacs.
1415case $srcdir in
1416*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417esac
87841584
AM
1418case $srcdir in
1419 *" "*)
22e05272 1420 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1421 ;;
1422esac
ac9e6043
RW
1423ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1424
5213506e
RW
1425for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430done
1c710c3c
DJ
1431
1432#
1433# Report the --help message.
1434#
1435if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1438 cat <<_ACEOF
1439\`configure' configures this package to adapt to many kinds of systems.
1440
1441Usage: $0 [OPTION]... [VAR=VALUE]...
1442
1443To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444VAR=VALUE. See below for descriptions of some of the useful variables.
1445
1446Defaults for the options are specified in brackets.
1447
1448Configuration:
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
22e05272 1453 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
DJ
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458
1c710c3c
DJ
1459Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1461 [$ac_default_prefix]
1c710c3c 1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1463 [PREFIX]
1c710c3c
DJ
1464
1465By default, \`make install' will install all the files in
1466\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468for instance \`--prefix=\$HOME'.
1469
1470For better control, use the options below.
1471
1472Fine tuning of the installation directories:
5213506e
RW
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --libdir=DIR object code libraries [EPREFIX/lib]
1480 --includedir=DIR C header files [PREFIX/include]
1481 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1484 --infodir=DIR info documentation [DATAROOTDIR/info]
1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1486 --mandir=DIR man documentation [DATAROOTDIR/man]
1487 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1488 --htmldir=DIR html documentation [DOCDIR]
1489 --dvidir=DIR dvi documentation [DOCDIR]
1490 --pdfdir=DIR pdf documentation [DOCDIR]
1491 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1492_ACEOF
1493
1494 cat <<\_ACEOF
1495
1496Program names:
1497 --program-prefix=PREFIX prepend PREFIX to installed program names
1498 --program-suffix=SUFFIX append SUFFIX to installed program names
1499 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1500
1501System types:
1502 --build=BUILD configure for building on BUILD [guessed]
1503 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1504 --target=TARGET configure for building compilers for TARGET [HOST]
1505_ACEOF
1506fi
1507
1508if test -n "$ac_init_help"; then
1509
1510 cat <<\_ACEOF
1511
1512Optional Features:
5213506e 1513 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1514 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1515 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1516 --enable-as-accelerator-for=ARG
1517 build as offload target compiler. Specify offload
1518 host triple by ARG
1519 --enable-offload-targets=LIST
1520 enable offloading to devices from comma-separated
1521 LIST of TARGET[=DIR]. Use optional path to find
1522 offload target compiler during the build
21539e2e 1523 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1524 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1525 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1526 Enable compressed debug sections for gas, gold or ld
1527 by default
87e6d9dc
TB
1528 --disable-libquadmath do not build libquadmath directory
1529 --disable-libquadmath-support
1530 disable libquadmath support for Fortran
30b74385
RW
1531 --enable-libada build libada directory
1532 --enable-libssp build libssp directory
1873ec0c 1533 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1534 --enable-liboffloadmic=ARG
1535 build liboffloadmic [ARG={no,host,target}]
ff3ac0f4 1536 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9 1537 --disable-isl-version-check
560d18d3 1538 disable check for isl version
d7f09764 1539 --enable-lto enable link time optimization support
45b3824d
TS
1540 --enable-linker-plugin-configure-flags=FLAGS
1541 additional flags for configuring linker plugins
1542 [none]
1543 --enable-linker-plugin-flags=FLAGS
1544 additional flags for configuring and building linker
1545 plugins [none]
cdfee50a 1546 --enable-host-shared build host code as shared libraries
33e39b66
AS
1547 --enable-stage1-languages[=all]
1548 choose additional languages to build during stage1.
1549 Mostly useful for compiler development
43c40f3e
RO
1550 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1551 Objective-C runtime
318a4e6d 1552 --enable-vtable-verify Enable vtable verification feature
30b74385 1553 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1554 force sequential configuration of sub-packages for
1555 the host, target or build machine, or all
1556 sub-packages
1557 --enable-maintainer-mode
1558 enable make rules and dependencies not useful (and
1559 sometimes confusing) to the casual installer
1560 --enable-stage1-checking[=all]
1561 choose additional checking for stage1 of the
1562 compiler
1c710c3c
DJ
1563 --enable-werror enable -Werror in bootstrap stage2 and later
1564
1565Optional Packages:
1566 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1567 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1568 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1569 --with-system-zlib use installed libz
33e39b66
AS
1570 --with-mpc=PATH specify prefix directory for installed MPC package.
1571 Equivalent to --with-mpc-include=PATH/include plus
1572 --with-mpc-lib=PATH/lib
1573 --with-mpc-include=PATH specify directory for installed MPC include files
1574 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1575 --with-mpfr-dir=PATH this option has been REMOVED
1576 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1577 Equivalent to --with-mpfr-include=PATH/include plus
1578 --with-mpfr-lib=PATH/lib
1c710c3c 1579 --with-mpfr-include=PATH
30b74385
RW
1580 specify directory for installed MPFR include files
1581 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1582 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1583 --with-gmp=PATH specify prefix directory for the installed GMP
1584 package. Equivalent to
1585 --with-gmp-include=PATH/include plus
1586 --with-gmp-lib=PATH/lib
30b74385
RW
1587 --with-gmp-include=PATH specify directory for installed GMP include files
1588 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1589 --with-stage1-libs=LIBS libraries for stage1
aac9103b
TT
1590 --with-static-standard-libraries
1591 use -static-libstdc++ and -static-libgcc
1592 (default=auto)
33e39b66
AS
1593 --with-stage1-ldflags=FLAGS
1594 linker flags for stage1
33e39b66
AS
1595 --with-boot-libs=LIBS libraries for stage2 and later
1596 --with-boot-ldflags=FLAGS
1597 linker flags for stage2 and later
e357a5e0 1598 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1599 package. Equivalent to
33ad93b9
RG
1600 --with-isl-include=PATH/include plus
1601 --with-isl-lib=PATH/lib
560d18d3
AK
1602 --with-isl-include=PATH Specify directory for installed isl include files
1603 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1604 --with-target-bdw-gc=PATHLIST
1605 specify prefix directory for installed bdw-gc
1606 package. Equivalent to
1607 --with-target-bdw-gc-include=PATH/include plus
1608 --with-target-bdw-gc-lib=PATH/lib
1609 --with-target-bdw-gc-include=PATHLIST
1610 specify directories for installed bdw-gc include
1611 files
1612 --with-target-bdw-gc-lib=PATHLIST
1613 specify directories for installed bdw-gc library
3c36aa6b
JJ
1614 --with-gcc-major-version-only
1615 use only GCC major number in filesystem paths
30b74385 1616 --with-build-sysroot=SYSROOT
1c710c3c 1617 use sysroot as the system root during the build
c8aea42c 1618 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1619 map A to B, C to D ... in debug information
1620 --with-build-config='NAME NAME2...'
1621 use config/NAME.mk build configuration
30b74385 1622 --with-build-time-tools=PATH
1c710c3c 1623 use given path to find target tools during the build
1c710c3c
DJ
1624
1625Some influential environment variables:
1626 CC C compiler command
1627 CFLAGS C compiler flags
1628 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1629 nonstandard directory <lib dir>
5213506e 1630 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1631 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1632 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1633 CXX C++ compiler command
1634 CXXFLAGS C++ compiler flags
ffedf511
RW
1635 build_configargs
1636 additional configure arguments for build directories
1637 host_configargs
1638 additional configure arguments for host directories
1639 target_configargs
1640 additional configure arguments for target directories
278a7a38
AO
1641 AR AR for the host
1642 AS AS for the host
1643 DLLTOOL DLLTOOL for the host
10abab41 1644 DSYMUTIL DSYMUTIL for the host
278a7a38
AO
1645 LD LD for the host
1646 LIPO LIPO for the host
1647 NM NM for the host
1648 RANLIB RANLIB for the host
1649 STRIP STRIP for the host
1650 WINDRES WINDRES for the host
901119ae 1651 WINDMC WINDMC for the host
278a7a38
AO
1652 OBJCOPY OBJCOPY for the host
1653 OBJDUMP OBJDUMP for the host
e4a9a572 1654 OTOOL OTOOL for the host
e7a82751 1655 READELF READELF for the host
278a7a38
AO
1656 CC_FOR_TARGET
1657 CC for the target
1658 CXX_FOR_TARGET
1659 CXX for the target
1660 GCC_FOR_TARGET
1661 GCC for the target
278a7a38
AO
1662 GFORTRAN_FOR_TARGET
1663 GFORTRAN for the target
632e2a07
ILT
1664 GOC_FOR_TARGET
1665 GOC for the target
b4c522fa
IB
1666 GDC_FOR_TARGET
1667 GDC for the target
278a7a38
AO
1668 AR_FOR_TARGET
1669 AR for the target
1670 AS_FOR_TARGET
1671 AS for the target
1672 DLLTOOL_FOR_TARGET
1673 DLLTOOL for the target
10abab41
IS
1674 DSYMUTIL_FOR_TARGET
1675 DSYMUTIL for the target
278a7a38
AO
1676 LD_FOR_TARGET
1677 LD for the target
1678 LIPO_FOR_TARGET
1679 LIPO for the target
1680 NM_FOR_TARGET
1681 NM for the target
9bccfdf5
AP
1682 OBJCOPY_FOR_TARGET
1683 OBJCOPY for the target
278a7a38
AO
1684 OBJDUMP_FOR_TARGET
1685 OBJDUMP for the target
e4a9a572
IS
1686 OTOOL_FOR_TARGET
1687 OTOOL for the target
278a7a38
AO
1688 RANLIB_FOR_TARGET
1689 RANLIB for the target
e7a82751
RM
1690 READELF_FOR_TARGET
1691 READELF for the target
278a7a38
AO
1692 STRIP_FOR_TARGET
1693 STRIP for the target
1694 WINDRES_FOR_TARGET
1695 WINDRES for the target
901119ae
KT
1696 WINDMC_FOR_TARGET
1697 WINDMC for the target
1c710c3c
DJ
1698
1699Use these variables to override the choices made by `configure' or to help
1700it to find libraries and programs with nonstandard names/locations.
1701
5213506e 1702Report bugs to the package provider.
1c710c3c 1703_ACEOF
5213506e 1704ac_status=$?
1c710c3c
DJ
1705fi
1706
1707if test "$ac_init_help" = "recursive"; then
1708 # If there are subdirs, report their specific --help.
1c710c3c 1709 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1710 test -d "$ac_dir" ||
1711 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1712 continue
1c710c3c
DJ
1713 ac_builddir=.
1714
5213506e
RW
1715case "$ac_dir" in
1716.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717*)
1718 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1719 # A ".." for each directory in $ac_dir_suffix.
1720 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1721 case $ac_top_builddir_sub in
1722 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1723 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1724 esac ;;
1725esac
1726ac_abs_top_builddir=$ac_pwd
1727ac_abs_builddir=$ac_pwd$ac_dir_suffix
1728# for backward compatibility:
1729ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1730
1731case $srcdir in
5213506e 1732 .) # We are building in place.
1c710c3c 1733 ac_srcdir=.
5213506e
RW
1734 ac_top_srcdir=$ac_top_builddir_sub
1735 ac_abs_top_srcdir=$ac_pwd ;;
1736 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1737 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1738 ac_top_srcdir=$srcdir
1739 ac_abs_top_srcdir=$srcdir ;;
1740 *) # Relative name.
1741 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1742 ac_top_srcdir=$ac_top_build_prefix$srcdir
1743 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1744esac
5213506e
RW
1745ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1746
1747 cd "$ac_dir" || { ac_status=$?; continue; }
1748 # Check for guested configure.
1749 if test -f "$ac_srcdir/configure.gnu"; then
1750 echo &&
1751 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1752 elif test -f "$ac_srcdir/configure"; then
1753 echo &&
1754 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1755 else
5213506e
RW
1756 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1757 fi || ac_status=$?
1758 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1759 done
1760fi
1761
5213506e 1762test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1763if $ac_init_version; then
1764 cat <<\_ACEOF
5213506e 1765configure
22e05272 1766generated by GNU Autoconf 2.69
1c710c3c 1767
22e05272 1768Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1769This configure script is free software; the Free Software Foundation
1770gives unlimited permission to copy, distribute and modify it.
1771_ACEOF
5213506e 1772 exit
0b0dc272 1773fi
5213506e
RW
1774
1775## ------------------------ ##
1776## Autoconf initialization. ##
1777## ------------------------ ##
1778
1779# ac_fn_c_try_compile LINENO
1780# --------------------------
1781# Try to compile conftest.$ac_ext, and return whether this succeeded.
1782ac_fn_c_try_compile ()
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext
1786 if { { ac_try="$ac_compile"
1787case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790esac
1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792$as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_compile") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1799 fi
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest.$ac_objext; then :
1805 ac_retval=0
1806else
1807 $as_echo "$as_me: failed program was:" >&5
1808sed 's/^/| /' conftest.$ac_ext >&5
1809
1810 ac_retval=1
1811fi
22e05272
JM
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status $ac_retval
5213506e
RW
1814
1815} # ac_fn_c_try_compile
1816
1817# ac_fn_cxx_try_compile LINENO
1818# ----------------------------
1819# Try to compile conftest.$ac_ext, and return whether this succeeded.
1820ac_fn_cxx_try_compile ()
1821{
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 rm -f conftest.$ac_objext
1824 if { { ac_try="$ac_compile"
1825case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828esac
1829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830$as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_compile") 2>conftest.err
1832 ac_status=$?
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1837 fi
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && {
1840 test -z "$ac_cxx_werror_flag" ||
1841 test ! -s conftest.err
1842 } && test -s conftest.$ac_objext; then :
1843 ac_retval=0
1844else
1845 $as_echo "$as_me: failed program was:" >&5
1846sed 's/^/| /' conftest.$ac_ext >&5
1847
1848 ac_retval=1
1849fi
22e05272
JM
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
5213506e
RW
1852
1853} # ac_fn_cxx_try_compile
1854
0b21f5d3
EB
1855# ac_fn_cxx_try_link LINENO
1856# -------------------------
1857# Try to link conftest.$ac_ext, and return whether this succeeded.
1858ac_fn_cxx_try_link ()
1859{
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 rm -f conftest.$ac_objext conftest$ac_exeext
1862 if { { ac_try="$ac_link"
1863case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866esac
1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868$as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_link") 2>conftest.err
1870 ac_status=$?
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1875 fi
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_cxx_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest$ac_exeext && {
1881 test "$cross_compiling" = yes ||
22e05272 1882 test -x conftest$ac_exeext
0b21f5d3
EB
1883 }; then :
1884 ac_retval=0
1885else
1886 $as_echo "$as_me: failed program was:" >&5
1887sed 's/^/| /' conftest.$ac_ext >&5
1888
1889 ac_retval=1
1890fi
1891 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1892 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1893 # interfere with the next link command; also delete a directory that is
1894 # left behind by Apple's compiler. We do this before executing the actions.
1895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
0b21f5d3
EB
1898
1899} # ac_fn_cxx_try_link
1900
5213506e
RW
1901# ac_fn_c_try_link LINENO
1902# -----------------------
1903# Try to link conftest.$ac_ext, and return whether this succeeded.
1904ac_fn_c_try_link ()
1905{
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 rm -f conftest.$ac_objext conftest$ac_exeext
1908 if { { ac_try="$ac_link"
1909case "(($ac_try" in
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1912esac
1913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914$as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_link") 2>conftest.err
1916 ac_status=$?
1917 if test -s conftest.err; then
1918 grep -v '^ *+' conftest.err >conftest.er1
1919 cat conftest.er1 >&5
1920 mv -f conftest.er1 conftest.err
1921 fi
1922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923 test $ac_status = 0; } && {
1924 test -z "$ac_c_werror_flag" ||
1925 test ! -s conftest.err
1926 } && test -s conftest$ac_exeext && {
1927 test "$cross_compiling" = yes ||
22e05272 1928 test -x conftest$ac_exeext
5213506e
RW
1929 }; then :
1930 ac_retval=0
1931else
1932 $as_echo "$as_me: failed program was:" >&5
1933sed 's/^/| /' conftest.$ac_ext >&5
1934
1935 ac_retval=1
1936fi
1937 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1938 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1939 # interfere with the next link command; also delete a directory that is
1940 # left behind by Apple's compiler. We do this before executing the actions.
1941 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 as_fn_set_status $ac_retval
5213506e
RW
1944
1945} # ac_fn_c_try_link
1946cat >config.log <<_ACEOF
1c710c3c
DJ
1947This file contains any messages produced by compilers while
1948running configure, to aid debugging if configure makes a mistake.
1949
1950It was created by $as_me, which was
22e05272 1951generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1952
1953 $ $0 $@
1954
1955_ACEOF
5213506e 1956exec 5>>config.log
1c710c3c
DJ
1957{
1958cat <<_ASUNAME
1959## --------- ##
1960## Platform. ##
1961## --------- ##
1962
1963hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1964uname -m = `(uname -m) 2>/dev/null || echo unknown`
1965uname -r = `(uname -r) 2>/dev/null || echo unknown`
1966uname -s = `(uname -s) 2>/dev/null || echo unknown`
1967uname -v = `(uname -v) 2>/dev/null || echo unknown`
1968
1969/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1970/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1971
1972/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1973/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1974/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1975/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1976/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1977/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1978/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1979
1980_ASUNAME
1981
1982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983for as_dir in $PATH
1984do
1985 IFS=$as_save_IFS
1986 test -z "$as_dir" && as_dir=.
5213506e
RW
1987 $as_echo "PATH: $as_dir"
1988 done
1989IFS=$as_save_IFS
1c710c3c
DJ
1990
1991} >&5
1992
1993cat >&5 <<_ACEOF
1994
1995
1996## ----------- ##
1997## Core tests. ##
1998## ----------- ##
1999
2000_ACEOF
2001
2002
2003# Keep a trace of the command line.
2004# Strip out --no-create and --no-recursion so they do not pile up.
2005# Strip out --silent because we don't want to record it for future runs.
2006# Also quote any args containing shell meta-characters.
2007# Make two passes to allow for proper duplicate-argument suppression.
2008ac_configure_args=
2009ac_configure_args0=
2010ac_configure_args1=
1c710c3c
DJ
2011ac_must_keep_next=false
2012for ac_pass in 1 2
2013do
2014 for ac_arg
2015 do
2016 case $ac_arg in
2017 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2019 | -silent | --silent | --silen | --sile | --sil)
2020 continue ;;
5213506e
RW
2021 *\'*)
2022 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2023 esac
2024 case $ac_pass in
5213506e 2025 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2026 2)
5213506e 2027 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2028 if test $ac_must_keep_next = true; then
2029 ac_must_keep_next=false # Got value, back to normal.
2030 else
2031 case $ac_arg in
2032 *=* | --config-cache | -C | -disable-* | --disable-* \
2033 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2034 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2035 | -with-* | --with-* | -without-* | --without-* | --x)
2036 case "$ac_configure_args0 " in
2037 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2038 esac
2039 ;;
2040 -* ) ac_must_keep_next=true ;;
2041 esac
2042 fi
5213506e 2043 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2044 ;;
2045 esac
2046 done
2047done
5213506e
RW
2048{ ac_configure_args0=; unset ac_configure_args0;}
2049{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2050
2051# When interrupted or exit'd, cleanup temporary files, and complete
2052# config.log. We remove comments because anyway the quotes in there
2053# would cause problems or look ugly.
5213506e
RW
2054# WARNING: Use '\'' to represent an apostrophe within the trap.
2055# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2056trap 'exit_status=$?
2057 # Save into config.log some information that might help in debugging.
2058 {
2059 echo
2060
22e05272 2061 $as_echo "## ---------------- ##
1c710c3c 2062## Cache variables. ##
22e05272 2063## ---------------- ##"
1c710c3c
DJ
2064 echo
2065 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2066(
2067 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2068 eval ac_val=\$$ac_var
2069 case $ac_val in #(
2070 *${as_nl}*)
2071 case $ac_var in #(
2072 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2073$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2074 esac
2075 case $ac_var in #(
2076 _ | IFS | as_nl) ;; #(
2077 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2078 *) { eval $ac_var=; unset $ac_var;} ;;
2079 esac ;;
2080 esac
2081 done
1c710c3c 2082 (set) 2>&1 |
5213506e
RW
2083 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2084 *${as_nl}ac_space=\ *)
1c710c3c 2085 sed -n \
5213506e
RW
2086 "s/'\''/'\''\\\\'\'''\''/g;
2087 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2088 ;; #(
1c710c3c 2089 *)
5213506e 2090 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2091 ;;
5213506e
RW
2092 esac |
2093 sort
2094)
1c710c3c
DJ
2095 echo
2096
22e05272 2097 $as_echo "## ----------------- ##
1c710c3c 2098## Output variables. ##
22e05272 2099## ----------------- ##"
1c710c3c
DJ
2100 echo
2101 for ac_var in $ac_subst_vars
2102 do
5213506e
RW
2103 eval ac_val=\$$ac_var
2104 case $ac_val in
2105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2106 esac
2107 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2108 done | sort
2109 echo
2110
2111 if test -n "$ac_subst_files"; then
22e05272 2112 $as_echo "## ------------------- ##
5213506e 2113## File substitutions. ##
22e05272 2114## ------------------- ##"
1c710c3c
DJ
2115 echo
2116 for ac_var in $ac_subst_files
2117 do
5213506e
RW
2118 eval ac_val=\$$ac_var
2119 case $ac_val in
2120 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2121 esac
2122 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2123 done | sort
2124 echo
2125 fi
2126
2127 if test -s confdefs.h; then
22e05272 2128 $as_echo "## ----------- ##
1c710c3c 2129## confdefs.h. ##
22e05272 2130## ----------- ##"
1c710c3c 2131 echo
5213506e 2132 cat confdefs.h
1c710c3c
DJ
2133 echo
2134 fi
2135 test "$ac_signal" != 0 &&
5213506e
RW
2136 $as_echo "$as_me: caught signal $ac_signal"
2137 $as_echo "$as_me: exit $exit_status"
1c710c3c 2138 } >&5
5213506e
RW
2139 rm -f core *.core core.conftest.* &&
2140 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2141 exit $exit_status
5213506e 2142' 0
1c710c3c 2143for ac_signal in 1 2 13 15; do
5213506e 2144 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2145done
2146ac_signal=0
2147
2148# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2149rm -f -r conftest* confdefs.h
2150
2151$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2152
2153# Predefined preprocessor variables.
2154
2155cat >>confdefs.h <<_ACEOF
2156#define PACKAGE_NAME "$PACKAGE_NAME"
2157_ACEOF
2158
1c710c3c
DJ
2159cat >>confdefs.h <<_ACEOF
2160#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2161_ACEOF
2162
1c710c3c
DJ
2163cat >>confdefs.h <<_ACEOF
2164#define PACKAGE_VERSION "$PACKAGE_VERSION"
2165_ACEOF
0b0dc272 2166
1c710c3c
DJ
2167cat >>confdefs.h <<_ACEOF
2168#define PACKAGE_STRING "$PACKAGE_STRING"
2169_ACEOF
2170
1c710c3c
DJ
2171cat >>confdefs.h <<_ACEOF
2172#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2173_ACEOF
2174
5213506e
RW
2175cat >>confdefs.h <<_ACEOF
2176#define PACKAGE_URL "$PACKAGE_URL"
2177_ACEOF
2178
1c710c3c
DJ
2179
2180# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2181# Prefer an explicitly selected file to automatically selected ones.
2182ac_site_file1=NONE
2183ac_site_file2=NONE
2184if test -n "$CONFIG_SITE"; then
22e05272
JM
2185 # We do not want a PATH search for config.site.
2186 case $CONFIG_SITE in #((
2187 -*) ac_site_file1=./$CONFIG_SITE;;
2188 */*) ac_site_file1=$CONFIG_SITE;;
2189 *) ac_site_file1=./$CONFIG_SITE;;
2190 esac
5213506e
RW
2191elif test "x$prefix" != xNONE; then
2192 ac_site_file1=$prefix/share/config.site
2193 ac_site_file2=$prefix/etc/config.site
2194else
2195 ac_site_file1=$ac_default_prefix/share/config.site
2196 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2197fi
5213506e
RW
2198for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2199do
2200 test "x$ac_site_file" = xNONE && continue
22e05272 2201 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2203$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2204 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2205 . "$ac_site_file" \
2206 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2208as_fn_error $? "failed to load site script $ac_site_file
2209See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2210 fi
2211done
2212
2213if test -r "$cache_file"; then
22e05272
JM
2214 # Some versions of bash will fail to source /dev/null (special files
2215 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2216 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2218$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2219 case $cache_file in
5213506e
RW
2220 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2221 *) . "./$cache_file";;
1c710c3c
DJ
2222 esac
2223 fi
671aa708 2224else
5213506e
RW
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2226$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2227 >$cache_file
2228fi
2229
2230# Check that the precious variables saved in the cache have kept the same
2231# value.
2232ac_cache_corrupted=false
5213506e 2233for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2234 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2235 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2236 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2237 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2238 case $ac_old_set,$ac_new_set in
2239 set,)
5213506e
RW
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2241$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2242 ac_cache_corrupted=: ;;
2243 ,set)
5213506e
RW
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2245$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2246 ac_cache_corrupted=: ;;
2247 ,);;
2248 *)
2249 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2250 # differences in whitespace do not lead to failure.
2251 ac_old_val_w=`echo x $ac_old_val`
2252 ac_new_val_w=`echo x $ac_new_val`
2253 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2255$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2256 ac_cache_corrupted=:
2257 else
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2259$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2260 eval $ac_var=\$ac_old_val
2261 fi
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2263$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2265$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2266 fi;;
2267 esac
2268 # Pass precious variables to config.status.
2269 if test "$ac_new_set" = set; then
2270 case $ac_new_val in
5213506e 2271 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2272 *) ac_arg=$ac_var=$ac_new_val ;;
2273 esac
2274 case " $ac_configure_args " in
2275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2276 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2277 esac
2278 fi
2279done
2280if $ac_cache_corrupted; then
5213506e
RW
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2284$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2285 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2286fi
5213506e
RW
2287## -------------------- ##
2288## Main body of script. ##
2289## -------------------- ##
671aa708 2290
2aeb72e9
DD
2291ac_ext=c
2292ac_cpp='$CPP $CPPFLAGS'
2293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2295ac_compiler_gnu=$ac_cv_c_compiler_gnu
2296
1c710c3c
DJ
2297
2298
2299
1c710c3c
DJ
2300
2301
0115d4a3 2302
1c710c3c 2303
ad33ff57
RW
2304progname=$0
2305# if PWD already has a value, it is probably wrong.
2306if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2307
2308# Export original configure arguments for use by sub-configures.
2309# Quote arguments with shell meta charatcers.
2310TOPLEVEL_CONFIGURE_ARGUMENTS=
2311set -- "$progname" "$@"
2312for ac_arg
2313do
2314 case "$ac_arg" in
2315 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2316 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2317 # if the argument is of the form -foo=baz, quote the baz part only
2318 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2319 *) ;;
2320 esac
2321 # Add the quoted argument to the list.
2322 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2323done
2324if test "$silent" = yes; then
2325 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2326fi
2327# Remove the initial space we just introduced and, as these will be
2328# expanded by make, quote '$'.
2329TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2330
1c710c3c
DJ
2331
2332# Find the build, host, and target systems.
671aa708 2333ac_aux_dir=
5213506e 2334for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2335 if test -f "$ac_dir/install-sh"; then
2336 ac_aux_dir=$ac_dir
2337 ac_install_sh="$ac_aux_dir/install-sh -c"
2338 break
2339 elif test -f "$ac_dir/install.sh"; then
2340 ac_aux_dir=$ac_dir
2341 ac_install_sh="$ac_aux_dir/install.sh -c"
2342 break
2343 elif test -f "$ac_dir/shtool"; then
2344 ac_aux_dir=$ac_dir
2345 ac_install_sh="$ac_aux_dir/shtool install -c"
2346 break
2347 fi
671aa708
NN
2348done
2349if test -z "$ac_aux_dir"; then
22e05272 2350 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2351fi
5213506e
RW
2352
2353# These three variables are undocumented and unsupported,
2354# and are intended to be withdrawn in a future Autoconf release.
2355# They can cause serious problems if a builder's source tree is in a directory
2356# whose full name contains unusual characters.
2357ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2358ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2359ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2360
671aa708 2361
1c710c3c 2362# Make sure we can run config.sub.
5213506e 2363$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2364 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2365
2366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2367$as_echo_n "checking build system type... " >&6; }
22e05272 2368if ${ac_cv_build+:} false; then :
5213506e
RW
2369 $as_echo_n "(cached) " >&6
2370else
2371 ac_build_alias=$build_alias
2372test "x$ac_build_alias" = x &&
2373 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2374test "x$ac_build_alias" = x &&
22e05272 2375 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2376ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2377 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2378
2379fi
2380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2381$as_echo "$ac_cv_build" >&6; }
2382case $ac_cv_build in
2383*-*-*) ;;
22e05272 2384*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2385esac
1c710c3c 2386build=$ac_cv_build
5213506e
RW
2387ac_save_IFS=$IFS; IFS='-'
2388set x $ac_cv_build
2389shift
2390build_cpu=$1
2391build_vendor=$2
2392shift; shift
2393# Remember, the first character of IFS is used to create $*,
2394# except with old shells:
2395build_os=$*
2396IFS=$ac_save_IFS
2397case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2398
671aa708 2399
1c710c3c
DJ
2400 case ${build_alias} in
2401 "") build_noncanonical=${build} ;;
2402 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2403esac
2404
2405
af71363e 2406
1c710c3c
DJ
2407 case ${host_alias} in
2408 "") host_noncanonical=${build_noncanonical} ;;
2409 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2410esac
2411
af71363e 2412
1c710c3c
DJ
2413
2414 case ${target_alias} in
2415 "") target_noncanonical=${host_noncanonical} ;;
2416 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2417esac
2418
af71363e 2419
1c710c3c
DJ
2420
2421
2422test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2423 test "$program_prefix$program_suffix$program_transform_name" = \
2424 NONENONEs,x,x, &&
1c710c3c 2425 program_transform_name=s,y,y,
af71363e 2426
5213506e
RW
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2428$as_echo_n "checking host system type... " >&6; }
22e05272 2429if ${ac_cv_host+:} false; then :
5213506e 2430 $as_echo_n "(cached) " >&6
af71363e 2431else
5213506e
RW
2432 if test "x$host_alias" = x; then
2433 ac_cv_host=$ac_cv_build
2434else
2435 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2436 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2437fi
1c710c3c 2438
af71363e 2439fi
5213506e
RW
2440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2441$as_echo "$ac_cv_host" >&6; }
2442case $ac_cv_host in
2443*-*-*) ;;
22e05272 2444*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2445esac
1c710c3c 2446host=$ac_cv_host
5213506e
RW
2447ac_save_IFS=$IFS; IFS='-'
2448set x $ac_cv_host
2449shift
2450host_cpu=$1
2451host_vendor=$2
2452shift; shift
2453# Remember, the first character of IFS is used to create $*,
2454# except with old shells:
2455host_os=$*
2456IFS=$ac_save_IFS
2457case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2458
2459
5213506e
RW
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2461$as_echo_n "checking target system type... " >&6; }
22e05272 2462if ${ac_cv_target+:} false; then :
5213506e 2463 $as_echo_n "(cached) " >&6
1c710c3c 2464else
5213506e
RW
2465 if test "x$target_alias" = x; then
2466 ac_cv_target=$ac_cv_host
2467else
2468 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2469 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2470fi
1c710c3c
DJ
2471
2472fi
5213506e
RW
2473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2474$as_echo "$ac_cv_target" >&6; }
2475case $ac_cv_target in
2476*-*-*) ;;
22e05272 2477*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2478esac
1c710c3c 2479target=$ac_cv_target
5213506e
RW
2480ac_save_IFS=$IFS; IFS='-'
2481set x $ac_cv_target
2482shift
2483target_cpu=$1
2484target_vendor=$2
2485shift; shift
2486# Remember, the first character of IFS is used to create $*,
2487# except with old shells:
2488target_os=$*
2489IFS=$ac_save_IFS
2490case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2491
2492
2493# The aliases save the names the user supplied, while $host etc.
2494# will get canonicalized.
2495test -n "$target_alias" &&
2496 test "$program_prefix$program_suffix$program_transform_name" = \
2497 NONENONEs,x,x, &&
2498 program_prefix=${target_alias}-
5213506e 2499
671aa708 2500test "$program_prefix" != NONE &&
5213506e 2501 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2502# Use a double $ so make ignores it.
2503test "$program_suffix" != NONE &&
5213506e
RW
2504 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2505# Double any \ or $.
1c710c3c 2506# By default was `s,x,x', remove it if useless.
5213506e
RW
2507ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2508program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2509
671aa708
NN
2510
2511
775956d0
NN
2512# Get 'install' or 'install-sh' and its variants.
2513# Find a good install program. We prefer a C program (faster),
2514# so one script is as good as another. But avoid the broken or
2515# incompatible versions:
2516# SysV /etc/install, /usr/sbin/install
2517# SunOS /usr/etc/install
2518# IRIX /sbin/install
2519# AIX /bin/install
1c710c3c 2520# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2521# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2522# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2523# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2524# OS/2's system install, which has a completely different semantic
775956d0 2525# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2526# Reject install programs that cannot install multiple files.
5213506e
RW
2527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2528$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2529if test -z "$INSTALL"; then
22e05272 2530if ${ac_cv_path_install+:} false; then :
5213506e 2531 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2532else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534for as_dir in $PATH
2535do
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
5213506e
RW
2538 # Account for people who put trailing slashes in PATH elements.
2539case $as_dir/ in #((
2540 ./ | .// | /[cC]/* | \
1c710c3c 2541 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2542 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2543 /usr/ucb/* ) ;;
2544 *)
2545 # OSF1 and SCO ODT 3.0 have their own names for install.
2546 # Don't use installbsd from OSF since it installs stuff as root
2547 # by default.
2548 for ac_prog in ginstall scoinst install; do
2549 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2550 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2551 if test $ac_prog = install &&
1c710c3c 2552 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2553 # AIX install. It has an incompatible calling convention.
2554 :
1c710c3c
DJ
2555 elif test $ac_prog = install &&
2556 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2557 # program-specific install script used by HP pwplus--don't use.
2558 :
775956d0 2559 else
38d24731
RW
2560 rm -rf conftest.one conftest.two conftest.dir
2561 echo one > conftest.one
2562 echo two > conftest.two
2563 mkdir conftest.dir
2564 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2565 test -s conftest.one && test -s conftest.two &&
2566 test -s conftest.dir/conftest.one &&
2567 test -s conftest.dir/conftest.two
2568 then
2569 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2570 break 3
2571 fi
775956d0
NN
2572 fi
2573 fi
2574 done
1c710c3c
DJ
2575 done
2576 ;;
2577esac
5213506e
RW
2578
2579 done
2580IFS=$as_save_IFS
1c710c3c 2581
38d24731 2582rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2583
2584fi
2585 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2586 INSTALL=$ac_cv_path_install
775956d0 2587 else
38d24731
RW
2588 # As a last resort, use the slow shell script. Don't cache a
2589 # value for INSTALL within a source directory, because that will
775956d0 2590 # break other packages using the cache if that directory is
38d24731 2591 # removed, or if the value is a relative name.
1c710c3c 2592 INSTALL=$ac_install_sh
775956d0
NN
2593 fi
2594fi
5213506e
RW
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2596$as_echo "$INSTALL" >&6; }
775956d0
NN
2597
2598# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2599# It thinks the first close brace ends the variable substitution.
2600test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2601
1c710c3c 2602test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2603
2604test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2605
5213506e
RW
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2607$as_echo_n "checking whether ln works... " >&6; }
22e05272 2608if ${acx_cv_prog_LN+:} false; then :
5213506e 2609 $as_echo_n "(cached) " >&6
ad6717df
PB
2610else
2611 rm -f conftestdata_t
2612echo >conftestdata_f
2613if ln conftestdata_f conftestdata_t 2>/dev/null
2614then
2615 acx_cv_prog_LN=ln
2616else
2617 acx_cv_prog_LN=no
2618fi
2619rm -f conftestdata_f conftestdata_t
2620
2621fi
2622if test $acx_cv_prog_LN = no; then
2623 LN="cp"
5213506e
RW
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2625$as_echo "no, using $LN" >&6; }
ad6717df
PB
2626else
2627 LN="$acx_cv_prog_LN"
5213506e
RW
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2629$as_echo "yes" >&6; }
ad6717df
PB
2630fi
2631
5213506e
RW
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2633$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2634LN_S=$as_ln_s
2635if test "$LN_S" = "ln -s"; then
5213506e
RW
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2637$as_echo "yes" >&6; }
fb0103e5 2638else
5213506e
RW
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2640$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2641fi
2642
87264276
PB
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2644$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2645if ${ac_cv_path_SED+:} false; then :
87264276
PB
2646 $as_echo_n "(cached) " >&6
2647else
2648 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2649 for ac_i in 1 2 3 4 5 6 7; do
2650 ac_script="$ac_script$as_nl$ac_script"
2651 done
2652 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2653 { ac_script=; unset ac_script;}
2654 if test -z "$SED"; then
2655 ac_path_SED_found=false
2656 # Loop through the user's path and test for each of PROGNAME-LIST
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658for as_dir in $PATH
2659do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_prog in sed gsed; do
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2665 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2666# Check for GNU ac_path_SED and select it if it is found.
2667 # Check for GNU $ac_path_SED
2668case `"$ac_path_SED" --version 2>&1` in
2669*GNU*)
2670 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2671*)
2672 ac_count=0
2673 $as_echo_n 0123456789 >"conftest.in"
2674 while :
2675 do
2676 cat "conftest.in" "conftest.in" >"conftest.tmp"
2677 mv "conftest.tmp" "conftest.in"
2678 cp "conftest.in" "conftest.nl"
2679 $as_echo '' >> "conftest.nl"
2680 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2682 as_fn_arith $ac_count + 1 && ac_count=$as_val
2683 if test $ac_count -gt ${ac_path_SED_max-0}; then
2684 # Best one so far, save it but keep looking for a better one
2685 ac_cv_path_SED="$ac_path_SED"
2686 ac_path_SED_max=$ac_count
2687 fi
2688 # 10*(2^10) chars as input seems more than enough
2689 test $ac_count -gt 10 && break
2690 done
2691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2692esac
2693
2694 $ac_path_SED_found && break 3
2695 done
2696 done
2697 done
2698IFS=$as_save_IFS
2699 if test -z "$ac_cv_path_SED"; then
22e05272 2700 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2701 fi
2702else
2703 ac_cv_path_SED=$SED
2704fi
2705
2706fi
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2708$as_echo "$ac_cv_path_SED" >&6; }
2709 SED="$ac_cv_path_SED"
2710 rm -f conftest.sed
2711
2712for ac_prog in gawk mawk nawk awk
2713do
2714 # Extract the first word of "$ac_prog", so it can be a program name with args.
2715set dummy $ac_prog; ac_word=$2
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2718if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2719 $as_echo_n "(cached) " >&6
2720else
2721 if test -n "$AWK"; then
2722 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2723else
2724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725for as_dir in $PATH
2726do
2727 IFS=$as_save_IFS
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2731 ac_cv_prog_AWK="$ac_prog"
2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 break 2
2734 fi
2735done
2736 done
2737IFS=$as_save_IFS
2738
2739fi
2740fi
2741AWK=$ac_cv_prog_AWK
2742if test -n "$AWK"; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2744$as_echo "$AWK" >&6; }
2745else
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747$as_echo "no" >&6; }
2748fi
2749
2750
2751 test -n "$AWK" && break
2752done
2753
775956d0 2754
ee6a22df
L
2755srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2756
2757# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2758# a relative path.
2759if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2760 INSTALL="${srcpwd}/install-sh -c"
2761fi
2762
671aa708
NN
2763# Set srcdir to "." if that's what it is.
2764# This is important for multilib support.
2765pwd=`${PWDCMD-pwd}`
671aa708
NN
2766if test "${pwd}" = "${srcpwd}" ; then
2767 srcdir=.
79c06341
JL
2768fi
2769
671aa708 2770topsrcdir=$srcpwd
5d4a5ee6 2771
671aa708 2772extra_host_args=
afabd8e6 2773
671aa708
NN
2774### To add a new directory to the tree, first choose whether it is a target
2775### or a host dependent tool. Then put it into the appropriate list
2776### (library or tools, host or target), doing a dependency sort.
79c06341 2777
1c710c3c 2778# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2779# configdirs, or target_configdirs; see the serialization section below.
79c06341 2780
1c710c3c
DJ
2781# Dependency sorting is only needed when *configuration* must be done in
2782# a particular order. In all cases a dependency should be specified in
671aa708 2783# the Makefile, whether or not it's implicitly specified here.
79c06341 2784
671aa708
NN
2785# Double entries in build_configdirs, configdirs, or target_configdirs may
2786# cause circular dependencies and break everything horribly.
79c06341 2787
23f6b2f9
PB
2788# these library is used by various programs built for the build
2789# environment
2790#
929315a9 2791build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2792
2793# these tools are built for the build environment
85bfb75e 2794build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2795
671aa708 2796# these libraries are used by various programs built for the host environment
eae1a5d4 2797#f
36230329 2798host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
671aa708 2799
671aa708
NN
2800# these tools are built for the host environment
2801# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2802# know that we are building the simulator.
2803# binutils, gas and ld appear in that order because it makes sense to run
2804# "make check" in that particular order.
38e3d868 2805# If --enable-gold is used, "gold" may replace "ld".
2efd8b1f 2806host_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 2807
671aa708
NN
2808# these libraries are built for the target environment, and are built after
2809# the host libraries and the host tools (which may be a cross compiler)
8499116a 2810# Note that libiberty is not a target library.
291f172e 2811target_libraries="target-libgcc \
eff02e4f 2812 target-libbacktrace \
671aa708
NN
2813 target-libgloss \
2814 target-newlib \
6d3b5aea 2815 target-libgomp \
5f520819 2816 target-liboffloadmic \
5fd1486c 2817 target-libhsail-rt \
48310492 2818 target-libatomic \
0a35513e 2819 target-libitm \
cb543528 2820 target-libstdc++-v3 \
f35db108 2821 target-libsanitizer \
2077db1b 2822 target-libvtv \
77008252 2823 target-libssp \
1ec601bf 2824 target-libquadmath \
6de9cd9a 2825 target-libgfortran \
012447ea 2826 target-libffi \
d9cdb878 2827 target-libobjc \
632e2a07 2828 target-libada \
b4c522fa 2829 target-libgo \
bb50312e
IB
2830 target-libphobos \
2831 target-zlib"
671aa708 2832
4dbda6f0
NN
2833# these tools are built using the target libraries, and are intended to
2834# run only in the target environment
671aa708 2835#
4dbda6f0 2836# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2837# list belongs in this list.
671aa708 2838#
85bfb75e 2839target_tools="target-rda"
79c06341 2840
671aa708 2841################################################################################
79c06341 2842
671aa708
NN
2843## All tools belong in one of the four categories, and are assigned above
2844## We assign ${configdirs} this way to remove all embedded newlines. This
2845## is important because configure will choke if they ever get through.
2846## ${configdirs} is directories we build using the host tools.
2847## ${target_configdirs} is directories we build using the target tools.
671aa708 2848configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2849target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2850build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2851
ac9e6043
RW
2852
2853
671aa708 2854################################################################################
79c06341 2855
671aa708 2856srcname="gnu development package"
79c06341 2857
671aa708
NN
2858# This gets set non-empty for some net releases of packages.
2859appdirs=""
79c06341 2860
671aa708
NN
2861# Define is_cross_compiler to save on calls to 'test'.
2862is_cross_compiler=
2863if test x"${host}" = x"${target}" ; then
2864 is_cross_compiler=no
79c06341 2865else
671aa708 2866 is_cross_compiler=yes
1c710c3c 2867fi
79c06341 2868
b4acb5ef 2869# Find the build and target subdir names.
8b87bb96 2870
2e9e6f68
DJ
2871# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2872# have matching libraries, they should use host libraries: Makefile.tpl
2873# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2874# However, they still use the build modules, because the corresponding
2875# host modules (e.g. bison) are only built for the host when bootstrap
2876# finishes. So:
2877# - build_subdir is where we find build modules, and never changes.
2878# - build_libsubdir is where we find build libraries, and can be overridden.
2879
2880# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2881build_subdir="build-${build_noncanonical}"
1c710c3c 2882
5213506e
RW
2883# Check whether --with-build-libsubdir was given.
2884if test "${with_build_libsubdir+set}" = set; then :
2885 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2886else
2887 build_libsubdir="$build_subdir"
5213506e
RW
2888fi
2889
215c351a
PB
2890# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2891if ( test $srcdir = . && test -d gcc ) \
2892 || test -d $srcdir/../host-${host_noncanonical}; then
2893 host_subdir="host-${host_noncanonical}"
2894else
2895 host_subdir=.
2896fi
8b87bb96
NN
2897# No prefix.
2898target_subdir=${target_noncanonical}
1c710c3c 2899
0db770bd
RW
2900# Be sure to cover against remnants of an in-tree build.
2901if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2902 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2903Use a pristine source tree when building in a separate tree" "$LINENO" 5
2904fi
79c06341 2905
671aa708
NN
2906# Skipdirs are removed silently.
2907skipdirs=
2908# Noconfigdirs are removed loudly.
2909noconfigdirs=""
79c06341 2910
671aa708
NN
2911use_gnu_ld=
2912# Make sure we don't let GNU ld be added if we didn't want it.
2913if test x$with_gnu_ld = xno ; then
2914 use_gnu_ld=no
5afab7ad 2915 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2916fi
2917
671aa708
NN
2918use_gnu_as=
2919# Make sure we don't let GNU as be added if we didn't want it.
2920if test x$with_gnu_as = xno ; then
2921 use_gnu_as=no
2922 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2923fi
2924
d7f09764 2925use_included_zlib=
a05c2c75
L
2926
2927# Check whether --with-system-zlib was given.
2928if test "${with_system_zlib+set}" = set; then :
2929 withval=$with_system_zlib;
2930fi
2931
d7f09764
DN
2932# Make sure we don't let ZLIB be added if we didn't want it.
2933if test x$with_system_zlib = xyes ; then
2934 use_included_zlib=no
2935 noconfigdirs="$noconfigdirs zlib"
2936fi
2937
1c710c3c 2938# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2939# it's not even worth trying to configure, much less build, that tool.
79c06341 2940
671aa708
NN
2941case ${with_x} in
2942 yes | "") ;; # the default value for this tree is that X11 is available
2943 no)
b4f96efe 2944 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2945 # We won't be able to build gdbtk without X.
1c710c3c 2946 enable_gdbtk=no
671aa708
NN
2947 ;;
2948 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2949esac
79c06341 2950
1bcce263 2951# Some are only suitable for cross toolchains.
671aa708
NN
2952# Remove these if host=target.
2953cross_only="target-libgloss target-newlib target-opcodes"
2954
2955case $is_cross_compiler in
2956 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2957esac
79c06341 2958
671aa708
NN
2959# If both --with-headers and --with-libs are specified, default to
2960# --without-newlib.
ee6a22df
L
2961if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2962 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2963 if test x"${with_newlib}" = x ; then
2964 with_newlib=no
2965 fi
79c06341
JL
2966fi
2967
671aa708
NN
2968# Recognize --with-newlib/--without-newlib.
2969case ${with_newlib} in
2970 no) skipdirs="${skipdirs} target-newlib" ;;
2971 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2972esac
79c06341 2973
85c64bbe
BS
2974# Check whether --enable-as-accelerator-for was given.
2975if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2976 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2977fi
2978
2979
2980# Check whether --enable-offload-targets was given.
2981if test "${enable_offload_targets+set}" = set; then :
2982 enableval=$enable_offload_targets;
2983 if test x"$enable_offload_targets" = x; then
22e05272 2984 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
2985 fi
2986
2987else
2988 enable_offload_targets=
2989fi
2990
2991
21539e2e
MK
2992# Handle --enable-gold, --enable-ld.
2993# --disable-gold [--enable-ld]
2994# Build only ld. Default option.
9580395f
L
2995# --enable-gold [--enable-ld]
2996# Build both gold and ld. Install gold as "ld.gold", install ld
2997# as "ld.bfd" and "ld".
2998# --enable-gold=default [--enable-ld]
21539e2e
MK
2999# Build both gold and ld. Install gold as "ld.gold" and "ld",
3000# install ld as "ld.bfd".
3001# --enable-gold[=default] --disable-ld
3002# Build only gold, which is then installed as both "ld.gold" and "ld".
3003# --enable-gold --enable-ld=default
9580395f
L
3004# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3005# and ld.bfd).
21539e2e
MK
3006# In other words, ld is default
3007# --enable-gold=default --enable-ld=default
3008# Error.
3009
3010default_ld=
5213506e
RW
3011# Check whether --enable-gold was given.
3012if test "${enable_gold+set}" = set; then :
3013 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3014else
3015 ENABLE_GOLD=no
5213506e
RW
3016fi
3017
21539e2e
MK
3018case "${ENABLE_GOLD}" in
3019 yes|default)
38e3d868
RM
3020 # Check for ELF target.
3021 is_elf=no
3022 case "${target}" in
3023 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3024 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3025 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 3026 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
3027 case "${target}" in
3028 *-*-linux*aout* | *-*-linux*oldld*)
3029 ;;
3030 *)
3031 is_elf=yes
3032 ;;
3033 esac
3034 esac
3035
3036 if test "$is_elf" = "yes"; then
3037 # Check for target supported by gold.
5afab7ad 3038 case "${target}" in
7705dfd1 3039 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
1b858e76 3040 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
21539e2e
MK
3041 configdirs="$configdirs gold"
3042 if test x${ENABLE_GOLD} = xdefault; then
3043 default_ld=gold
3044 fi
38e3d868 3045 ENABLE_GOLD=yes
5afab7ad
ILT
3046 ;;
3047 esac
38e3d868
RM
3048 fi
3049 ;;
3050 no)
3051 ;;
3052 *)
22e05272 3053 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3054 ;;
21539e2e
MK
3055esac
3056
3057# Check whether --enable-ld was given.
3058if test "${enable_ld+set}" = set; then :
3059 enableval=$enable_ld; ENABLE_LD=$enableval
3060else
3061 ENABLE_LD=yes
3062fi
3063
3064
3065case "${ENABLE_LD}" in
3066 default)
9580395f 3067 if test x${default_ld} != x; then
22e05272 3068 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
3069 fi
3070 ;;
3071 yes)
3072 ;;
3073 no)
3074 if test x${ENABLE_GOLD} != xyes; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3076$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3077 fi
3078 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3079 ;;
3080 *)
22e05272 3081 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3082 ;;
3083esac
5afab7ad 3084
78edb32f
L
3085# PR gas/19109
3086# Decide the default method for compressing debug sections.
3087# Provide a configure time option to override our default.
3088# Check whether --enable-compressed_debug_sections was given.
3089if test "${enable_compressed_debug_sections+set}" = set; then :
3090 enableval=$enable_compressed_debug_sections;
3091 if test x"$enable_compressed_debug_sections" = xyes; then
22e05272 3092 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3093 fi
3094
3095else
3096 enable_compressed_debug_sections=
3097fi
3098
3099
671aa708 3100# Configure extra directories which are host specific
79c06341 3101
671aa708
NN
3102case "${host}" in
3103 *-cygwin*)
3104 configdirs="$configdirs libtermcap" ;;
3105esac
79c06341 3106
4fab7234
HPN
3107# A target can indicate whether a language isn't supported for some reason.
3108# Only spaces may be used in this macro; not newlines or tabs.
3109unsupported_languages=
3110
1c710c3c 3111# Remove more programs from consideration, based on the host or
671aa708
NN
3112# target this usually means that a port of the program doesn't
3113# exist yet.
ec8d6ddc 3114
671aa708 3115case "${host}" in
111eeb6e 3116 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3117 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3118 ;;
671aa708 3119esac
ec8d6ddc 3120
6de9cd9a 3121
87e6d9dc
TB
3122# Check whether --enable-libquadmath was given.
3123if test "${enable_libquadmath+set}" = set; then :
3124 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3125else
3126 ENABLE_LIBQUADMATH=yes
3127fi
3128
3129if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3130 noconfigdirs="$noconfigdirs target-libquadmath"
3131fi
3132
3133
3134# Check whether --enable-libquadmath-support was given.
3135if test "${enable_libquadmath_support+set}" = set; then :
3136 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3137else
3138 ENABLE_LIBQUADMATH_SUPPORT=yes
3139fi
3140
3141enable_libquadmath_support=
3142if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3143 enable_libquadmath_support=no
3144fi
3145
3146
5213506e
RW
3147# Check whether --enable-libada was given.
3148if test "${enable_libada+set}" = set; then :
3149 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3150else
3151 ENABLE_LIBADA=yes
5213506e
RW
3152fi
3153
d9cdb878 3154if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3155 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3156fi
3157
5213506e
RW
3158# Check whether --enable-libssp was given.
3159if test "${enable_libssp+set}" = set; then :
3160 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3161else
3162 ENABLE_LIBSSP=yes
5213506e
RW
3163fi
3164
ef0087a7 3165
1873ec0c
L
3166# Check whether --enable-libstdcxx was given.
3167if test "${enable_libstdcxx+set}" = set; then :
3168 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3169else
3170 ENABLE_LIBSTDCXX=default
3171fi
3172
3173if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3174 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3175fi
3176
5f520819
KY
3177# If this is accelerator compiler and its target is intelmic we enable
3178# target liboffloadmic by default. If this is compiler with offloading
3179# for intelmic we enable host liboffloadmic by default. Otherwise
3180# liboffloadmic is disabled by default.
3181# Check whether --enable-liboffloadmic was given.
3182if test "${enable_liboffloadmic+set}" = set; then :
3183 enableval=$enable_liboffloadmic; case "$enableval" in
3184 no | host | target)
3185 enable_liboffloadmic=$enableval ;;
3186 *)
22e05272 3187 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
5f520819
KY
3188esac
3189else
4b4f2e35 3190 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3191 case "${target}" in
3192 *-intelmic-* | *-intelmicemul-*)
3193 enable_liboffloadmic=target
3194 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3195 ;;
3196 *)
3197 enable_liboffloadmic=no
3198 ;;
3199 esac
3200else
3201 case "${enable_offload_targets}" in
3202 *-intelmic-* | *-intelmicemul-*)
3203 enable_liboffloadmic=host
3204 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3205 ;;
3206 *)
3207 enable_liboffloadmic=no
3208 ;;
3209 esac
3210fi
3211fi
3212
3213
3214
44a7d18d 3215# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3216if test x$enable_libgomp = x ; then
953ff289 3217 case "${target}" in
416ac4d4 3218 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3219 ;;
8c6d158a 3220 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3221 ;;
b24513a1 3222 *-*-solaris2* | *-*-hpux11*)
953ff289 3223 ;;
cac90078 3224 *-*-darwin* | *-*-aix*)
953ff289 3225 ;;
29b1533a 3226 nvptx*-*-* | amdgcn*-*-*)
44a7d18d 3227 ;;
953ff289
DN
3228 *)
3229 noconfigdirs="$noconfigdirs target-libgomp"
3230 ;;
3231 esac
27079765 3232fi
953ff289 3233
48310492
RH
3234# Disable libatomic on unsupported systems.
3235if test -d ${srcdir}/libatomic; then
3236 if test x$enable_libatomic = x; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3238$as_echo_n "checking for libatomic support... " >&6; }
3239 if (srcdir=${srcdir}/libatomic; \
3240 . ${srcdir}/configure.tgt; \
3241 test -n "$UNSUPPORTED")
3242 then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244$as_echo "no" >&6; }
3245 noconfigdirs="$noconfigdirs target-libatomic"
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3248$as_echo "yes" >&6; }
3249 fi
3250 fi
3251fi
3252
5f520819
KY
3253# Disable liboffloadmic on unsupported systems.
3254if test -d ${srcdir}/liboffloadmic; then
3255 if test x$enable_liboffloadmic != xno; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3257$as_echo_n "checking for liboffloadmic support... " >&6; }
3258 if (srcdir=${srcdir}/liboffloadmic; \
3259 . ${srcdir}/configure.tgt; \
3260 test -n "$UNSUPPORTED")
3261 then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263$as_echo "no" >&6; }
3264 noconfigdirs="$noconfigdirs target-liboffloadmic"
3265 else
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3267$as_echo "yes" >&6; }
3268 fi
3269 fi
3270fi
3271
e948157d
RH
3272# Disable libitm on unsupported systems.
3273if test -d ${srcdir}/libitm; then
3274 if test x$enable_libitm = x; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3276$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3277 if (srcdir=${srcdir}/libitm; \
3278 . ${srcdir}/configure.tgt; \
3279 test -n "$UNSUPPORTED")
3280 then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3282$as_echo "no" >&6; }
e948157d
RH
3283 noconfigdirs="$noconfigdirs target-libitm"
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3286$as_echo "yes" >&6; }
e948157d
RH
3287 fi
3288 fi
0a35513e
AH
3289fi
3290
93bf5390
RH
3291# Disable libsanitizer on unsupported systems.
3292if test -d ${srcdir}/libsanitizer; then
3293 if test x$enable_libsanitizer = x; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3295$as_echo_n "checking for libsanitizer support... " >&6; }
3296 if (srcdir=${srcdir}/libsanitizer; \
3297 . ${srcdir}/configure.tgt; \
3298 test -n "$UNSUPPORTED")
3299 then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301$as_echo "no" >&6; }
3302 noconfigdirs="$noconfigdirs target-libsanitizer"
3303 else
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3305$as_echo "yes" >&6; }
3306 fi
3307 fi
3308fi
3309
2077db1b
CT
3310# Disable libvtv on unsupported systems.
3311if test -d ${srcdir}/libvtv; then
3312 if test x$enable_libvtv = x; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3314$as_echo_n "checking for libvtv support... " >&6; }
3315 if (srcdir=${srcdir}/libvtv; \
3316 . ${srcdir}/configure.tgt; \
1e74b850 3317 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3318 then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320$as_echo "no" >&6; }
3321 noconfigdirs="$noconfigdirs target-libvtv"
3322 else
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324$as_echo "yes" >&6; }
3325 fi
3326 fi
3327fi
3328
5373cd33 3329
f6a24a94
MJ
3330# Disable libhsail-rt on unsupported systems.
3331if test -d ${srcdir}/libhsail-rt; then
3332 if test x$enable_libhsail_rt = x; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3334$as_echo_n "checking for libhsail-rt support... " >&6; }
3335 if (srcdir=${srcdir}/libhsail-rt; \
3336 . ${srcdir}/configure.tgt; \
3337 test -n "$UNSUPPORTED")
3338 then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340$as_echo "no" >&6; }
3341 unsupported_languages="$unsupported_languages brig"
3342 # This implicitly disables also target-libhsail-rt as it won't
3343 # get added to the build without BRIG FE.
3344 else
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3346$as_echo "yes" >&6; }
3347 fi
3348 fi
3349fi
5373cd33
IE
3350
3351
d91491e5
SE
3352# Disable libquadmath for some systems.
3353case "${target}" in
e7fae550
DE
3354 avr-*-*)
3355 noconfigdirs="$noconfigdirs target-libquadmath"
3356 ;;
d91491e5
SE
3357 # libquadmath is unused on AIX and libquadmath build process use of
3358 # LD_LIBRARY_PATH can break AIX bootstrap.
3359 powerpc-*-aix* | rs6000-*-aix*)
3360 noconfigdirs="$noconfigdirs target-libquadmath"
3361 ;;
3362esac
3363
1e9e0e23
JM
3364# Disable libssp for some systems.
3365case "${target}" in
3366 avr-*-*)
b318fb4b 3367 # No hosted I/O support.
1e9e0e23
JM
3368 noconfigdirs="$noconfigdirs target-libssp"
3369 ;;
91dfef96
JM
3370 bpf-*-*)
3371 noconfigdirs="$noconfigdirs target-libssp"
3372 ;;
1e9e0e23
JM
3373 powerpc-*-aix* | rs6000-*-aix*)
3374 noconfigdirs="$noconfigdirs target-libssp"
85b8555e 3375 ;;
8d2af3a2
DD
3376 pru-*-*)
3377 # No hosted I/O support.
3378 noconfigdirs="$noconfigdirs target-libssp"
3379 ;;
85b8555e 3380 rl78-*-*)
7cb62ef1
EB
3381 # libssp uses a misaligned load to trigger a fault, but the RL78
3382 # doesn't fault for those - instead, it gives a build-time error
3383 # for explicit misaligned loads.
85b8555e 3384 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3385 ;;
0969ec7d
EB
3386 visium-*-*)
3387 # No hosted I/O support.
3388 noconfigdirs="$noconfigdirs target-libssp"
3389 ;;
1e9e0e23
JM
3390esac
3391
1e9e0e23 3392# Disable libstdc++-v3 for some systems.
1873ec0c
L
3393# Allow user to override this if they pass --enable-libstdc++-v3
3394if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3395 case "${target}" in
3396 *-*-vxworks*)
3397 # VxWorks uses the Dinkumware C++ library.
3398 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3399 ;;
afa3d80e
TS
3400 amdgcn*-*-*)
3401 # Not ported/fails to build when using newlib.
3402 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3403 ;;
1873ec0c
L
3404 arm*-wince-pe*)
3405 # the C++ libraries don't build on top of CE's C libraries
3406 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3407 ;;
3408 avr-*-*)
3409 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3410 ;;
91dfef96
JM
3411 bpf-*-*)
3412 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3413 ;;
fef939d6
JB
3414 ft32-*-*)
3415 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3416 ;;
1873ec0c
L
3417 esac
3418fi
1e9e0e23 3419
91dfef96
JM
3420# Disable C++ on systems where it is known to not work.
3421# For testing, you can override this with --enable-languages=c++.
3422case ,${enable_languages}, in
3423 *,c++,*)
3424 ;;
3425 *)
3426 case "${target}" in
3427 bpf-*-*)
3428 unsupported_languages="$unsupported_languages c++"
3429 ;;
3430 esac
3431 ;;
3432esac
3433
3434# Disable Objc on systems where it is known to not work.
3435# For testing, you can override this with --enable-languages=objc.
3436case ,${enable_languages}, in
3437 *,objc,*)
3438 ;;
3439 *)
3440 case "${target}" in
3441 bpf-*-*)
3442 unsupported_languages="$unsupported_languages objc"
3443 ;;
3444 esac
3445 ;;
3446esac
3447
260eedb9
IB
3448# Disable D on systems where it is known to not work.
3449# For testing, you can override this with --enable-languages=d.
3450case ,${enable_languages}, in
3451 *,d,*)
3452 ;;
3453 *)
3454 case "${target}" in
91dfef96 3455 bpf-*-*)
260eedb9
IB
3456 unsupported_languages="$unsupported_languages d"
3457 ;;
3458 esac
3459 ;;
3460esac
3461
3462# Disable libphobos on unsupported systems.
3463# For testing, you can override this with --enable-libphobos.
3464if test -d ${srcdir}/libphobos; then
3465 if test x$enable_libphobos = x; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3467$as_echo_n "checking for libphobos support... " >&6; }
3468 if (srcdir=${srcdir}/libphobos; \
3469 . ${srcdir}/configure.tgt; \
7d31d331 3470 test "$LIBPHOBOS_SUPPORTED" != "yes")
260eedb9
IB
3471 then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473$as_echo "no" >&6; }
3474 noconfigdirs="$noconfigdirs target-libphobos"
3475 else
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3477$as_echo "yes" >&6; }
3478 fi
3479 fi
3480fi
3481
1e9e0e23
JM
3482# Disable Fortran for some systems.
3483case "${target}" in
3484 mmix-*-*)
3485 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3486 unsupported_languages="$unsupported_languages fortran"
3487 ;;
91dfef96
JM
3488 bpf-*-*)
3489 unsupported_languages="$unsupported_languages fortran"
3490 ;;
1e9e0e23
JM
3491esac
3492
012447ea
JJ
3493# Disable libffi for some systems.
3494case "${target}" in
3495 powerpc-*-darwin*)
3496 ;;
3497 i[3456789]86-*-darwin*)
3498 ;;
3499 x86_64-*-darwin[912]*)
3500 ;;
3501 *-*-darwin*)
3502 noconfigdirs="$noconfigdirs target-libffi"
3503 ;;
3504 *-*-netware*)
3505 noconfigdirs="$noconfigdirs target-libffi"
3506 ;;
3507 *-*-phoenix*)
3508 noconfigdirs="$noconfigdirs target-libffi"
3509 ;;
3510 *-*-rtems*)
3511 noconfigdirs="$noconfigdirs target-libffi"
3512 ;;
3513 *-*-tpf*)
3514 noconfigdirs="$noconfigdirs target-libffi"
3515 ;;
3516 *-*-uclinux*)
3517 noconfigdirs="$noconfigdirs target-libffi"
3518 ;;
3519 *-*-vxworks*)
3520 noconfigdirs="$noconfigdirs target-libffi"
3521 ;;
b20e7532
AT
3522 aarch64*-*-freebsd*)
3523 noconfigdirs="$noconfigdirs target-libffi"
3524 ;;
012447ea
JJ
3525 alpha*-*-*vms*)
3526 noconfigdirs="$noconfigdirs target-libffi"
3527 ;;
3528 arm*-*-freebsd*)
3529 noconfigdirs="$noconfigdirs target-libffi"
3530 ;;
3531 arm-wince-pe)
3532 noconfigdirs="$noconfigdirs target-libffi"
3533 ;;
3534 arm*-*-symbianelf*)
3535 noconfigdirs="$noconfigdirs target-libffi"
3536 ;;
91dfef96
JM
3537 bpf-*-*)
3538 noconfigdirs="$noconfigdirs target-libffi"
3539 ;;
012447ea
JJ
3540 cris-*-* | crisv32-*-*)
3541 case "${target}" in
3542 *-*-linux*)
3543 ;;
3544 *) # See PR46792 regarding target-libffi.
3545 noconfigdirs="$noconfigdirs target-libffi";;
3546 esac
3547 ;;
3548 hppa*64*-*-hpux*)
3549 noconfigdirs="$noconfigdirs target-libffi"
3550 ;;
3551 hppa*-hp-hpux11*)
3552 ;;
3553 hppa*-*-hpux*)
3554 noconfigdirs="$noconfigdirs target-libffi"
3555 ;;
3556 ia64*-*-*vms*)
3557 noconfigdirs="$noconfigdirs target-libffi"
3558 ;;
3559 i[3456789]86-w64-mingw*)
3560 noconfigdirs="$noconfigdirs target-libffi"
3561 ;;
3562 i[3456789]86-*-mingw*)
3563 noconfigdirs="$noconfigdirs target-libffi"
3564 ;;
3565 x86_64-*-mingw*)
3566 noconfigdirs="$noconfigdirs target-libffi"
3567 ;;
3568 mmix-*-*)
3569 noconfigdirs="$noconfigdirs target-libffi"
3570 ;;
3571 powerpc-*-aix*)
012447ea
JJ
3572 ;;
3573 rs6000-*-aix*)
012447ea
JJ
3574 ;;
3575 ft32-*-*)
3576 noconfigdirs="$noconfigdirs target-libffi"
3577 ;;
3578 *-*-lynxos*)
3579 noconfigdirs="$noconfigdirs target-libffi"
3580 ;;
3581esac
3582
3583# Disable the go frontend on systems where it is known to not work. Please keep
3584# this in sync with contrib/config-list.mk.
3585case "${target}" in
91dfef96 3586*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
012447ea
JJ
3587 unsupported_languages="$unsupported_languages go"
3588 ;;
3589esac
3590
f9d09df0
TT
3591# Only allow gdbserver on some systems.
3592if test -d ${srcdir}/gdbserver; then
3593 if test x$enable_gdbserver = x; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3595$as_echo_n "checking for gdbserver support... " >&6; }
3596 if (srcdir=${srcdir}/gdbserver; \
3597 . ${srcdir}/configure.srv; \
3598 test -n "$UNSUPPORTED")
3599 then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601$as_echo "no" >&6; }
3602 noconfigdirs="$noconfigdirs gdbserver"
3603 else
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3605$as_echo "yes" >&6; }
3606 fi
3607 fi
3608fi
3609
cdbc9e92
ILT
3610# Disable libgo for some systems where it is known to not work.
3611# For testing, you can easily override this with --enable-libgo.
3612if test x$enable_libgo = x; then
3613 case "${target}" in
3614 *-*-darwin*)
3615 # PR 46986
3616 noconfigdirs="$noconfigdirs target-libgo"
3617 ;;
3618 *-*-cygwin* | *-*-mingw*)
3619 noconfigdirs="$noconfigdirs target-libgo"
3620 ;;
91dfef96
JM
3621 bpf-*-*)
3622 noconfigdirs="$noconfigdirs target-libgo"
3623 ;;
cdbc9e92
ILT
3624 esac
3625fi
3626
c03353e2
RIL
3627# Default libgloss CPU subdirectory.
3628libgloss_dir="$target_cpu"
6de9cd9a 3629
fbcf0dca
JM
3630case "${target}" in
3631 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3632 libgloss_dir=wince
3633 ;;
4dddfc74
YZ
3634 aarch64*-*-* )
3635 libgloss_dir=aarch64
3636 ;;
fbcf0dca
JM
3637 arm*-*-*)
3638 libgloss_dir=arm
3639 ;;
3640 cris-*-* | crisv32-*-*)
3641 libgloss_dir=cris
3642 ;;
3643 hppa*-*-*)
3644 libgloss_dir=pa
3645 ;;
3646 i[3456789]86-*-*)
3647 libgloss_dir=i386
3648 ;;
3649 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3650 libgloss_dir=m68hc11
3651 ;;
3652 m68*-*-* | fido-*-*)
3653 libgloss_dir=m68k
3654 ;;
3655 mips*-*-*)
3656 libgloss_dir=mips
3657 ;;
3658 powerpc*-*-*)
3659 libgloss_dir=rs6000
3660 ;;
8d2af3a2
DD
3661 pru-*-*)
3662 libgloss_dir=pru
3663 ;;
fbcf0dca
JM
3664 sparc*-*-*)
3665 libgloss_dir=sparc
3666 ;;
3667esac
3668
6a789d5e 3669# Disable newlib and libgloss for various target OSes.
671aa708 3670case "${target}" in
6a789d5e
JM
3671 alpha*-dec-osf*)
3672 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3673 ;;
3674 i[3456789]86-*-linux*)
3675 # This section makes it possible to build newlib natively on linux.
3676 # If we are using a cross compiler then don't configure newlib.
3677 if test x${is_cross_compiler} != xno ; then
3678 noconfigdirs="$noconfigdirs target-newlib"
3679 fi
3680 noconfigdirs="$noconfigdirs target-libgloss"
3681 # If we are not using a cross compiler, do configure newlib.
3682 # Note however, that newlib will only be configured in this situation
3683 # if the --with-newlib option has been given, because otherwise
3684 # 'target-newlib' will appear in skipdirs.
3685 ;;
3686 i[3456789]86-*-rdos*)
3687 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3688 ;;
3689 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3690 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3691 ;;
3692 sparc-*-sunos4*)
3693 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3694 ;;
91dfef96
JM
3695 bpf-*-*)
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3697 ;;
6a789d5e
JM
3698 *-*-aix*)
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3700 ;;
3701 *-*-beos*)
3702 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3703 ;;
671aa708 3704 *-*-chorusos)
0036370f 3705 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3706 ;;
6a789d5e
JM
3707 *-*-dragonfly*)
3708 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3709 ;;
3710 *-*-freebsd*)
3711 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3712 ;;
3713 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3714 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3715 ;;
3716 *-*-lynxos*)
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3718 ;;
3719 *-*-mingw*)
3720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3721 ;;
3722 *-*-netbsd*)
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3724 ;;
3725 *-*-netware*)
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3727 ;;
3728 *-*-tpf*)
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3730 ;;
3731 *-*-uclinux*)
3732 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3733 ;;
3734 *-*-vxworks*)
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3736 ;;
3737esac
3738
3739case "${target}" in
3740 *-*-chorusos)
3741 ;;
3be96231
TG
3742 aarch64-*-darwin*)
3743 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3744 noconfigdirs="$noconfigdirs sim target-rda"
3745 ;;
7431c1a1
AS
3746 amdgcn*-*-*)
3747 ;;
3be96231
TG
3748 arm-*-darwin*)
3749 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3750 noconfigdirs="$noconfigdirs sim target-rda"
3751 ;;
75eeae1a 3752 powerpc-*-darwin*)
e1514c3f 3753 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3754 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3755 ;;
354ebf88
RW
3756 i[3456789]86-*-darwin*)
3757 noconfigdirs="$noconfigdirs ld gprof"
3758 noconfigdirs="$noconfigdirs sim target-rda"
3759 ;;
3760 x86_64-*-darwin[912]*)
0db3a858
TG
3761 noconfigdirs="$noconfigdirs ld gas gprof"
3762 noconfigdirs="$noconfigdirs sim target-rda"
3763 ;;
42c1cd8a
AT
3764 *-*-darwin*)
3765 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3766 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3767 ;;
8c6d158a 3768 *-*-dragonfly*)
8c6d158a 3769 ;;
c3f84f61 3770 *-*-freebsd*)
6de9cd9a 3771 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
c0d0a722 3772 && ! test -d ${srcdir}/gmp \
6de9cd9a
DN
3773 && test -f /usr/local/include/gmp.h; then
3774 with_gmp=/usr/local
3775 fi
6de9cd9a 3776 ;;
ef4e7569
US
3777 *-*-kaos*)
3778 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3779 noconfigdirs="$noconfigdirs target-libgloss"
3780 ;;
671aa708 3781 *-*-netbsd*)
671aa708 3782 ;;
61fec9ff 3783 *-*-netware*)
671aa708 3784 ;;
fd6487af
JS
3785 *-*-phoenix*)
3786 noconfigdirs="$noconfigdirs target-libgloss"
3787 ;;
671aa708 3788 *-*-rtems*)
2909494b 3789 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3790 ;;
a8ba31f2
EC
3791 # The tpf target doesn't support gdb yet.
3792 *-*-tpf*)
6a789d5e 3793 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3794 ;;
5785c0ed 3795 *-*-uclinux*)
6a789d5e 3796 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3797 ;;
671aa708 3798 *-*-vxworks*)
671aa708
NN
3799 ;;
3800 alpha*-dec-osf*)
3801 # ld works, but does not support shared libraries.
671aa708 3802 # gas doesn't generate exception information.
6a789d5e 3803 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3804 ;;
3805 alpha*-*-*vms*)
2909494b 3806 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3807 ;;
671aa708
NN
3808 alpha*-*-*)
3809 # newlib is not 64 bit ready
2909494b 3810 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3811 ;;
91dfef96
JM
3812 bpf-*-*)
3813 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3814 ;;
671aa708 3815 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3816 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3817 ;;
2fd88f4f
AK
3818 arc*-*-*)
3819 noconfigdirs="$noconfigdirs sim"
3820 ;;
671aa708 3821 arm-*-pe*)
2909494b 3822 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3823 ;;
671aa708 3824 arm-*-riscix*)
0036370f 3825 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3826 ;;
b588ae30
GJL
3827 avr-*-*)
3828 if test x${with_avrlibc} != xno; then
3829 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3830 fi
3831 ;;
671aa708 3832 c4x-*-* | tic4x-*-*)
0036370f 3833 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3834 ;;
0036370f
JM
3835 tic54x-*-*)
3836 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3837 ;;
671aa708 3838 d10v-*-*)
0036370f 3839 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3840 ;;
3841 d30v-*-*)
0036370f 3842 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3843 ;;
3844 fr30-*-elf*)
2909494b 3845 noconfigdirs="$noconfigdirs gdb"
671aa708 3846 ;;
a05c2c75
L
3847 ft32-*-*)
3848 noconfigdirs="$noconfigdirs target-rda gprof"
3849 ;;
55f2d967 3850 moxie-*-*)
a05c2c75 3851 noconfigdirs="$noconfigdirs"
55f2d967 3852 ;;
671aa708 3853 h8300*-*-*)
2909494b 3854 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3855 ;;
3856 h8500-*-*)
0036370f 3857 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3858 ;;
ee6a22df 3859 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3860 ;;
a05c2c75
L
3861 hppa*64*-*-hpux*)
3862 noconfigdirs="$noconfigdirs gdb"
3863 ;;
3864 hppa*-*-hpux11*)
3865 noconfigdirs="$noconfigdirs gdb ld"
3866 ;;
4569f85e 3867 hppa*64*-*-linux*)
671aa708 3868 ;;
56f8587a 3869 hppa*-*-linux*)
3e732ba0 3870 ;;
671aa708 3871 hppa*-*-*elf* | \
671aa708
NN
3872 hppa*-*-lites* | \
3873 hppa*-*-openbsd* | \
3874 hppa*64*-*-*)
671aa708 3875 ;;
c03353e2 3876 hppa*-*-pro*)
c03353e2 3877 ;;
671aa708 3878 hppa*-*-*)
2909494b 3879 noconfigdirs="$noconfigdirs ld"
671aa708 3880 ;;
fb87ad5d 3881 i960-*-*)
0036370f 3882 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3883 ;;
671aa708
NN
3884 ia64*-*-elf*)
3885 # No gdb support yet.
1bcce263 3886 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3887 ;;
3888 ia64*-**-hpux*)
5a2931d1 3889 # No ld support yet.
a05c2c75 3890 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3891 ;;
52535a64 3892 ia64*-*-*vms*)
091fe9ca
TG
3893 # No ld support yet.
3894 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3895 ;;
ef4c4300 3896 i[3456789]86-w64-mingw*)
ef4c4300
KT
3897 ;;
3898 i[3456789]86-*-mingw*)
b91f0a41 3899 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3900 ;;
671aa708
NN
3901 *-*-cygwin*)
3902 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3903 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3904 # always build newlib if winsup directory is present.
b91f0a41 3905 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3906 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3907 elif test -d "$srcdir/newlib"; then
b91f0a41 3908 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3909 fi
1c710c3c 3910 ;;
f2a0e225 3911 i[3456789]86-*-pe)
ebb9f8b0 3912 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3913 ;;
f2a0e225 3914 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3915 # The linker does not yet know about weak symbols in COFF,
3916 # and is not configured to handle mixed ELF and COFF.
0036370f 3917 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3918 ;;
f2a0e225 3919 i[3456789]86-*-sco*)
0036370f 3920 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3921 ;;
fbdd5d87 3922 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3923 noconfigdirs="$noconfigdirs target-libgloss"
3924 ;;
f2a0e225 3925 i[3456789]86-*-sysv4*)
0036370f 3926 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3927 ;;
f2a0e225 3928 i[3456789]86-*-beos*)
6a789d5e 3929 noconfigdirs="$noconfigdirs gdb"
3aa83176 3930 ;;
d1f8db0c 3931 i[3456789]86-*-rdos*)
6a789d5e 3932 noconfigdirs="$noconfigdirs gdb"
c03353e2 3933 ;;
671aa708 3934 mmix-*-*)
2909494b 3935 noconfigdirs="$noconfigdirs gdb"
671aa708 3936 ;;
ab34901f 3937 mt-*-*)
79dd769c
AH
3938 noconfigdirs="$noconfigdirs sim"
3939 ;;
58b40a67
FT
3940 nfp-*-*)
3941 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3942 noconfigdirs="$noconfigdirs $target_libraries"
3943 ;;
e6cbe965
SC
3944 pdp11-*-*)
3945 noconfigdirs="$noconfigdirs gdb gprof"
3946 ;;
671aa708
NN
3947 powerpc-*-aix*)
3948 # copied from rs6000-*-* entry
6a789d5e 3949 noconfigdirs="$noconfigdirs gprof"
671aa708 3950 ;;
4569f85e 3951 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3952 target_configdirs="$target_configdirs target-winsup"
0036370f 3953 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3954 # always build newlib.
3955 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3956 ;;
3957 # This is temporary until we can link against shared libraries
3958 powerpcle-*-solaris*)
0036370f 3959 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3960 ;;
3961 powerpc-*-beos*)
6a789d5e 3962 noconfigdirs="$noconfigdirs gdb"
671aa708 3963 ;;
671aa708 3964 rs6000-*-lynxos*)
6a789d5e 3965 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3966 ;;
3967 rs6000-*-aix*)
6a789d5e 3968 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3969 ;;
3970 rs6000-*-*)
2909494b 3971 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3972 ;;
3973 m68k-apollo-*)
0036370f 3974 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3975 ;;
ca9fe997 3976 microblaze*)
2909494b 3977 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3978 ;;
d896cc4d 3979 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3980 if test x$with_newlib = xyes; then
3981 noconfigdirs="$noconfigdirs gprof"
3982 fi
d9dced13 3983 ;;
671aa708 3984 mips*-*-irix5*)
0036370f 3985 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3986 ;;
3987 mips*-*-irix6*)
2909494b 3988 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3989 ;;
671aa708 3990 mips*-*-bsd*)
bc98bcc4 3991 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3992 ;;
671aa708 3993 mips*-*-linux*)
671aa708 3994 ;;
bc98bcc4
JBG
3995 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3996 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3997 noconfigdirs="$noconfigdirs ld gas gprof"
3998 ;;
671aa708 3999 mips*-*-*)
2909494b 4000 noconfigdirs="$noconfigdirs gprof"
671aa708 4001 ;;
738f2522 4002 nvptx*-*-*)
738f2522
BS
4003 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4004 ;;
bc6d9014 4005 sh-*-*)
ea2002ba
CB
4006 case "${target}" in
4007 sh*-*-elf)
2909494b 4008 ;;
ea2002ba 4009 *)
2909494b 4010 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 4011 esac
671aa708 4012 ;;
671aa708 4013 sparc-*-sunos4*)
6a789d5e 4014 if test x${is_cross_compiler} = xno ; then
671aa708
NN
4015 use_gnu_ld=no
4016 fi
4017 ;;
b42f0d7e 4018 tic6x-*-*)
0d557ff8 4019 noconfigdirs="$noconfigdirs sim"
b42f0d7e 4020 ;;
341c653c 4021 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
4022 noconfigdirs="$noconfigdirs sim"
4023 ;;
671aa708 4024 v810-*-*)
0036370f 4025 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
4026 ;;
4027 vax-*-*)
2909494b 4028 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 4029 ;;
1fc1d82e
MR
4030 wasm32-*-*)
4031 noconfigdirs="$noconfigdirs ld"
4032 ;;
671aa708 4033esac
79c06341 4034
671aa708
NN
4035# If we aren't building newlib, then don't build libgloss, since libgloss
4036# depends upon some newlib header files.
4037case "${noconfigdirs}" in
4038 *target-libgloss*) ;;
4039 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4040esac
4041
671aa708 4042# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
4043host_makefile_frag=/dev/null
4044if test -d ${srcdir}/config ; then
4045case "${host}" in
f2a0e225 4046 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
4047 host_makefile_frag="config/mh-djgpp"
4048 ;;
4049 *-cygwin*)
2a79c47f 4050
5213506e
RW
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4052$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 4053echo a >cygwin-cat-check
e25a8c82 4054if test `cat cygwin-cat-check` = a ; then
2a79c47f 4055 rm cygwin-cat-check
5213506e
RW
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4057$as_echo "yes" >&6; }
2a79c47f
NC
4058else
4059 rm cygwin-cat-check
5213506e
RW
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061$as_echo "no" >&6; }
22e05272 4062 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
4063 Please either mount the build directory in binary mode or run the following
4064 commands before running any configure script:
4065set -o igncr
4066export SHELLOPTS
5213506e 4067 " "$LINENO" 5
2a79c47f
NC
4068fi
4069
671aa708
NN
4070 host_makefile_frag="config/mh-cygwin"
4071 ;;
c53a18d3 4072 *-mingw*)
1f5a6b84 4073 host_makefile_frag="config/mh-mingw"
95af8923 4074 ;;
cabb9d59 4075 alpha*-linux*)
13be44ed
UB
4076 host_makefile_frag="config/mh-alpha-linux"
4077 ;;
efd41714 4078 hppa*-hp-hpux10*)
efd41714 4079 host_makefile_frag="config/mh-pa-hpux10"
671aa708 4080 ;;
111eeb6e 4081 hppa*-hp-hpux*)
efd41714
PB
4082 host_makefile_frag="config/mh-pa"
4083 ;;
4084 hppa*-*)
4085 host_makefile_frag="config/mh-pa"
4086 ;;
d7440517 4087 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
d8ed14ce 4088 host_makefile_frag="config/mh-darwin"
be8fff81 4089 ;;
d19bca38
PB
4090 powerpc-*-aix*)
4091 host_makefile_frag="config/mh-ppc-aix"
4092 ;;
4093 rs6000-*-aix*)
4094 host_makefile_frag="config/mh-ppc-aix"
4095 ;;
671aa708
NN
4096esac
4097fi
4098
55ffb5ed 4099if test "${build}" != "${host}" ; then
0999159b
PB
4100 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4101 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4102 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b 4103 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
10abab41 4104 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
0999159b 4105 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4106 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4107 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4108 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4109 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4110 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4111 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4112 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4113 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4114else
4115 AR_FOR_BUILD="\$(AR)"
4116 AS_FOR_BUILD="\$(AS)"
fb0103e5 4117 CC_FOR_BUILD="\$(CC)"
0999159b 4118 CXX_FOR_BUILD="\$(CXX)"
10abab41 4119 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
0999159b 4120 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4121 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4122 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4123 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4124 LD_FOR_BUILD="\$(LD)"
4125 NM_FOR_BUILD="\$(NM)"
4126 RANLIB_FOR_BUILD="\$(RANLIB)"
4127 WINDRES_FOR_BUILD="\$(WINDRES)"
4128 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4129fi
4130
4131ac_ext=c
1c710c3c
DJ
4132ac_cpp='$CPP $CPPFLAGS'
4133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135ac_compiler_gnu=$ac_cv_c_compiler_gnu
4136if test -n "$ac_tool_prefix"; then
4137 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4138set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4141if ${ac_cv_prog_CC+:} false; then :
5213506e 4142 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4143else
4144 if test -n "$CC"; then
4145 ac_cv_prog_CC="$CC" # Let the user override the test.
4146else
4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148for as_dir in $PATH
4149do
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
5213506e 4152 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4154 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4156 break 2
4157 fi
4158done
5213506e
RW
4159 done
4160IFS=$as_save_IFS
1c710c3c
DJ
4161
4162fi
4163fi
4164CC=$ac_cv_prog_CC
4165if test -n "$CC"; then
5213506e
RW
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4167$as_echo "$CC" >&6; }
1c710c3c 4168else
5213506e
RW
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170$as_echo "no" >&6; }
1c710c3c
DJ
4171fi
4172
5213506e 4173
1c710c3c
DJ
4174fi
4175if test -z "$ac_cv_prog_CC"; then
4176 ac_ct_CC=$CC
fb0103e5
RG
4177 # Extract the first word of "gcc", so it can be a program name with args.
4178set dummy gcc; ac_word=$2
5213506e
RW
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4181if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4182 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4183else
4184 if test -n "$ac_ct_CC"; then
4185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4186else
4187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188for as_dir in $PATH
4189do
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
5213506e 4192 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4194 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4196 break 2
4197 fi
4198done
5213506e
RW
4199 done
4200IFS=$as_save_IFS
1c710c3c
DJ
4201
4202fi
4203fi
4204ac_ct_CC=$ac_cv_prog_ac_ct_CC
4205if test -n "$ac_ct_CC"; then
5213506e
RW
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4207$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4208else
5213506e
RW
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210$as_echo "no" >&6; }
1c710c3c
DJ
4211fi
4212
5213506e
RW
4213 if test "x$ac_ct_CC" = x; then
4214 CC=""
4215 else
4216 case $cross_compiling:$ac_tool_warned in
4217yes:)
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4220ac_tool_warned=yes ;;
4221esac
4222 CC=$ac_ct_CC
4223 fi
1c710c3c
DJ
4224else
4225 CC="$ac_cv_prog_CC"
4226fi
4227
4228if test -z "$CC"; then
5213506e
RW
4229 if test -n "$ac_tool_prefix"; then
4230 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4231set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4234if ${ac_cv_prog_CC+:} false; then :
5213506e 4235 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4236else
4237 if test -n "$CC"; then
4238 ac_cv_prog_CC="$CC" # Let the user override the test.
4239else
1c710c3c
DJ
4240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241for as_dir in $PATH
4242do
4243 IFS=$as_save_IFS
4244 test -z "$as_dir" && as_dir=.
5213506e 4245 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4247 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4249 break 2
4250 fi
4251done
5213506e
RW
4252 done
4253IFS=$as_save_IFS
1c710c3c 4254
0b0dc272 4255fi
0b0dc272 4256fi
1c710c3c 4257CC=$ac_cv_prog_CC
af71363e 4258if test -n "$CC"; then
5213506e
RW
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4260$as_echo "$CC" >&6; }
2aeb72e9 4261else
5213506e
RW
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263$as_echo "no" >&6; }
2aeb72e9
DD
4264fi
4265
2aeb72e9 4266
5213506e 4267 fi
1c710c3c 4268fi
55ffb5ed
NN
4269if test -z "$CC"; then
4270 # Extract the first word of "cc", so it can be a program name with args.
4271set dummy cc; ac_word=$2
5213506e
RW
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4274if ${ac_cv_prog_CC+:} false; then :
5213506e 4275 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4276else
4277 if test -n "$CC"; then
4278 ac_cv_prog_CC="$CC" # Let the user override the test.
4279else
0b0dc272 4280 ac_prog_rejected=no
1c710c3c
DJ
4281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282for as_dir in $PATH
4283do
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
5213506e 4286 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4288 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4289 ac_prog_rejected=yes
4290 continue
4291 fi
4292 ac_cv_prog_CC="cc"
5213506e 4293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4294 break 2
4295 fi
4296done
5213506e
RW
4297 done
4298IFS=$as_save_IFS
1c710c3c 4299
55ffb5ed
NN
4300if test $ac_prog_rejected = yes; then
4301 # We found a bogon in the path, so make sure we never use it.
4302 set dummy $ac_cv_prog_CC
4303 shift
1c710c3c 4304 if test $# != 0; then
55ffb5ed
NN
4305 # We chose a different compiler from the bogus one.
4306 # However, it has the same basename, so the bogon will be chosen
4307 # first if we set CC to just the basename; use the full file name.
4308 shift
1c710c3c 4309 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4310 fi
4311fi
4312fi
4313fi
1c710c3c 4314CC=$ac_cv_prog_CC
55ffb5ed 4315if test -n "$CC"; then
5213506e
RW
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4317$as_echo "$CC" >&6; }
55ffb5ed 4318else
5213506e
RW
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4320$as_echo "no" >&6; }
55ffb5ed
NN
4321fi
4322
5213506e 4323
1c710c3c
DJ
4324fi
4325if test -z "$CC"; then
4326 if test -n "$ac_tool_prefix"; then
5213506e 4327 for ac_prog in cl.exe
1c710c3c
DJ
4328 do
4329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4330set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4332$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4333if ${ac_cv_prog_CC+:} false; then :
5213506e 4334 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4335else
4336 if test -n "$CC"; then
4337 ac_cv_prog_CC="$CC" # Let the user override the test.
4338else
1c710c3c
DJ
4339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340for as_dir in $PATH
4341do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
5213506e 4344 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4346 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4348 break 2
4349 fi
4350done
5213506e
RW
4351 done
4352IFS=$as_save_IFS
1c710c3c 4353
55ffb5ed
NN
4354fi
4355fi
1c710c3c 4356CC=$ac_cv_prog_CC
55ffb5ed 4357if test -n "$CC"; then
5213506e
RW
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4359$as_echo "$CC" >&6; }
a4b9e93e 4360else
5213506e
RW
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362$as_echo "no" >&6; }
fb0103e5 4363fi
af71363e 4364
5213506e 4365
1c710c3c
DJ
4366 test -n "$CC" && break
4367 done
af71363e 4368fi
1c710c3c
DJ
4369if test -z "$CC"; then
4370 ac_ct_CC=$CC
5213506e 4371 for ac_prog in cl.exe
1c710c3c
DJ
4372do
4373 # Extract the first word of "$ac_prog", so it can be a program name with args.
4374set dummy $ac_prog; ac_word=$2
5213506e
RW
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4377if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4378 $as_echo_n "(cached) " >&6
0b0dc272 4379else
1c710c3c
DJ
4380 if test -n "$ac_ct_CC"; then
4381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4382else
1c710c3c
DJ
4383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384for as_dir in $PATH
4385do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
5213506e 4388 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4390 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4392 break 2
4393 fi
4394done
5213506e
RW
4395 done
4396IFS=$as_save_IFS
1c710c3c 4397
af71363e
AS
4398fi
4399fi
1c710c3c
DJ
4400ac_ct_CC=$ac_cv_prog_ac_ct_CC
4401if test -n "$ac_ct_CC"; then
5213506e
RW
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4403$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4404else
5213506e
RW
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406$as_echo "no" >&6; }
af71363e 4407fi
0b0dc272 4408
5213506e 4409
1c710c3c
DJ
4410 test -n "$ac_ct_CC" && break
4411done
4412
5213506e
RW
4413 if test "x$ac_ct_CC" = x; then
4414 CC=""
4415 else
4416 case $cross_compiling:$ac_tool_warned in
4417yes:)
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4420ac_tool_warned=yes ;;
4421esac
4422 CC=$ac_ct_CC
4423 fi
1c710c3c
DJ
4424fi
4425
4426fi
4427
4428
5213506e
RW
4429test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4431as_fn_error $? "no acceptable C compiler found in \$PATH
4432See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4433
4434# Provide some information about the compiler.
5213506e
RW
4435$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4436set X $ac_compile
4437ac_compiler=$2
4438for ac_option in --version -v -V -qversion; do
4439 { { ac_try="$ac_compiler $ac_option >&5"
4440case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443esac
4444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445$as_echo "$ac_try_echo"; } >&5
4446 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4447 ac_status=$?
5213506e
RW
4448 if test -s conftest.err; then
4449 sed '10a\
4450... rest of stderr output deleted ...
4451 10q' conftest.err >conftest.er1
4452 cat conftest.er1 >&5
5213506e 4453 fi
22e05272 4454 rm -f conftest.er1 conftest.err
5213506e
RW
4455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4456 test $ac_status = 0; }
4457done
1c710c3c 4458
5213506e 4459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4460/* end confdefs.h. */
4461
4462int
4463main ()
4464{
4465
4466 ;
4467 return 0;
4468}
4469_ACEOF
4470ac_clean_files_save=$ac_clean_files
22e05272 4471ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4472# Try to create an executable without -o first, disregard a.out.
4473# It will help us diagnose broken compilers, and finding out an intuition
4474# of exeext.
22e05272
JM
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4476$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4477ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4478
4479# The possible output files:
4480ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4481
4482ac_rmfiles=
4483for ac_file in $ac_files
4484do
4485 case $ac_file in
4486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4487 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4488 esac
4489done
4490rm -f $ac_rmfiles
4491
4492if { { ac_try="$ac_link_default"
4493case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4496esac
4497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4498$as_echo "$ac_try_echo"; } >&5
4499 (eval "$ac_link_default") 2>&5
1c710c3c 4500 ac_status=$?
5213506e
RW
4501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4502 test $ac_status = 0; }; then :
4503 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4504# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4505# in a Makefile. We should not override ac_cv_exeext if it was cached,
4506# so that the user can short-circuit this test for compilers unknown to
4507# Autoconf.
4508for ac_file in $ac_files ''
1c710c3c
DJ
4509do
4510 test -f "$ac_file" || continue
4511 case $ac_file in
5213506e 4512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4513 ;;
4514 [ab].out )
4515 # We found the default executable, but exeext='' is most
4516 # certainly right.
4517 break;;
4518 *.* )
5213506e
RW
4519 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4520 then :; else
4521 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4522 fi
4523 # We set ac_cv_exeext here because the later test for it is not
4524 # safe: cross compilers may not add the suffix if given an `-o'
4525 # argument, so we may need to know it at that point already.
4526 # Even if this section looks crufty: it has the advantage of
4527 # actually working.
1c710c3c
DJ
4528 break;;
4529 * )
4530 break;;
4531 esac
4532done
5213506e
RW
4533test "$ac_cv_exeext" = no && ac_cv_exeext=
4534
1c710c3c 4535else
5213506e
RW
4536 ac_file=''
4537fi
5213506e 4538if test -z "$ac_file"; then :
22e05272
JM
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540$as_echo "no" >&6; }
4541$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4542sed 's/^/| /' conftest.$ac_ext >&5
4543
5213506e
RW
4544{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4546as_fn_error 77 "C compiler cannot create executables
4547See \`config.log' for more details" "$LINENO" 5; }
4548else
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4550$as_echo "yes" >&6; }
1c710c3c 4551fi
22e05272
JM
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4553$as_echo_n "checking for C compiler default output file name... " >&6; }
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4555$as_echo "$ac_file" >&6; }
1c710c3c 4556ac_exeext=$ac_cv_exeext
1c710c3c 4557
22e05272 4558rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4559ac_clean_files=$ac_clean_files_save
5213506e
RW
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4561$as_echo_n "checking for suffix of executables... " >&6; }
4562if { { ac_try="$ac_link"
4563case "(($ac_try" in
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4566esac
4567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4568$as_echo "$ac_try_echo"; } >&5
4569 (eval "$ac_link") 2>&5
1c710c3c 4570 ac_status=$?
5213506e
RW
4571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4572 test $ac_status = 0; }; then :
1c710c3c
DJ
4573 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4574# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4575# work properly (i.e., refer to `conftest.exe'), while it won't with
4576# `rm'.
4577for ac_file in conftest.exe conftest conftest.*; do
4578 test -f "$ac_file" || continue
4579 case $ac_file in
5213506e 4580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4581 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4582 break;;
4583 * ) break;;
4584 esac
4585done
af71363e 4586else
5213506e
RW
4587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4589as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4590See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4591fi
22e05272 4592rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4594$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4595
4596rm -f conftest.$ac_ext
4597EXEEXT=$ac_cv_exeext
4598ac_exeext=$EXEEXT
22e05272
JM
4599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600/* end confdefs.h. */
4601#include <stdio.h>
4602int
4603main ()
4604{
4605FILE *f = fopen ("conftest.out", "w");
4606 return ferror (f) || fclose (f) != 0;
4607
4608 ;
4609 return 0;
4610}
4611_ACEOF
4612ac_clean_files="$ac_clean_files conftest.out"
4613# Check that the compiler produces executables we can run. If not, either
4614# the compiler is broken, or we cross compile.
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4616$as_echo_n "checking whether we are cross compiling... " >&6; }
4617if test "$cross_compiling" != yes; then
4618 { { ac_try="$ac_link"
4619case "(($ac_try" in
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4622esac
4623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4624$as_echo "$ac_try_echo"; } >&5
4625 (eval "$ac_link") 2>&5
4626 ac_status=$?
4627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628 test $ac_status = 0; }
4629 if { ac_try='./conftest$ac_cv_exeext'
4630 { { case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633esac
4634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4635$as_echo "$ac_try_echo"; } >&5
4636 (eval "$ac_try") 2>&5
4637 ac_status=$?
4638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4639 test $ac_status = 0; }; }; then
4640 cross_compiling=no
4641 else
4642 if test "$cross_compiling" = maybe; then
4643 cross_compiling=yes
4644 else
4645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4647as_fn_error $? "cannot run C compiled programs.
4648If you meant to cross compile, use \`--host'.
4649See \`config.log' for more details" "$LINENO" 5; }
4650 fi
4651 fi
4652fi
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4654$as_echo "$cross_compiling" >&6; }
4655
4656rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4657ac_clean_files=$ac_clean_files_save
5213506e
RW
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4659$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4660if ${ac_cv_objext+:} false; then :
5213506e 4661 $as_echo_n "(cached) " >&6
1c710c3c 4662else
5213506e 4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4664/* end confdefs.h. */
4665
4666int
4667main ()
4668{
4669
4670 ;
4671 return 0;
4672}
4673_ACEOF
4674rm -f conftest.o conftest.obj
5213506e
RW
4675if { { ac_try="$ac_compile"
4676case "(($ac_try" in
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4679esac
4680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4681$as_echo "$ac_try_echo"; } >&5
4682 (eval "$ac_compile") 2>&5
1c710c3c 4683 ac_status=$?
5213506e
RW
4684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4685 test $ac_status = 0; }; then :
4686 for ac_file in conftest.o conftest.obj conftest.*; do
4687 test -f "$ac_file" || continue;
1c710c3c 4688 case $ac_file in
5213506e 4689 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4690 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4691 break;;
4692 esac
4693done
4694else
5213506e 4695 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4696sed 's/^/| /' conftest.$ac_ext >&5
4697
5213506e
RW
4698{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4700as_fn_error $? "cannot compute suffix of object files: cannot compile
4701See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4702fi
1c710c3c
DJ
4703rm -f conftest.$ac_cv_objext conftest.$ac_ext
4704fi
5213506e
RW
4705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4706$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4707OBJEXT=$ac_cv_objext
4708ac_objext=$OBJEXT
5213506e
RW
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4710$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4711if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4712 $as_echo_n "(cached) " >&6
1c710c3c 4713else
5213506e 4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4715/* end confdefs.h. */
4716
4717int
4718main ()
4719{
4720#ifndef __GNUC__
4721 choke me
4722#endif
4723
4724 ;
4725 return 0;
4726}
4727_ACEOF
5213506e 4728if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4729 ac_compiler_gnu=yes
4730else
5213506e 4731 ac_compiler_gnu=no
1c710c3c 4732fi
5213506e 4733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4734ac_cv_c_compiler_gnu=$ac_compiler_gnu
4735
4736fi
5213506e
RW
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4738$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4739if test $ac_compiler_gnu = yes; then
4740 GCC=yes
4741else
4742 GCC=
4743fi
1c710c3c
DJ
4744ac_test_CFLAGS=${CFLAGS+set}
4745ac_save_CFLAGS=$CFLAGS
5213506e
RW
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4747$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4748if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4749 $as_echo_n "(cached) " >&6
4750else
4751 ac_save_c_werror_flag=$ac_c_werror_flag
4752 ac_c_werror_flag=yes
4753 ac_cv_prog_cc_g=no
4754 CFLAGS="-g"
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4756/* end confdefs.h. */
4757
4758int
4759main ()
4760{
4761
4762 ;
4763 return 0;
4764}
4765_ACEOF
5213506e 4766if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4767 ac_cv_prog_cc_g=yes
4768else
5213506e
RW
4769 CFLAGS=""
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771/* end confdefs.h. */
4772
4773int
4774main ()
4775{
4776
4777 ;
4778 return 0;
4779}
4780_ACEOF
4781if ac_fn_c_try_compile "$LINENO"; then :
4782
4783else
4784 ac_c_werror_flag=$ac_save_c_werror_flag
4785 CFLAGS="-g"
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787/* end confdefs.h. */
af71363e 4788
5213506e
RW
4789int
4790main ()
4791{
4792
4793 ;
4794 return 0;
4795}
4796_ACEOF
4797if ac_fn_c_try_compile "$LINENO"; then :
4798 ac_cv_prog_cc_g=yes
4799fi
4800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4801fi
5213506e 4802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4803fi
5213506e
RW
4804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 ac_c_werror_flag=$ac_save_c_werror_flag
4806fi
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4808$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4809if test "$ac_test_CFLAGS" = set; then
1c710c3c 4810 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4811elif test $ac_cv_prog_cc_g = yes; then
4812 if test "$GCC" = yes; then
4813 CFLAGS="-g -O2"
4814 else
4815 CFLAGS="-g"
4816 fi
4817else
4818 if test "$GCC" = yes; then
4819 CFLAGS="-O2"
4820 else
4821 CFLAGS=
4822 fi
4823fi
5213506e
RW
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4825$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4826if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4827 $as_echo_n "(cached) " >&6
1c710c3c 4828else
5213506e 4829 ac_cv_prog_cc_c89=no
1c710c3c 4830ac_save_CC=$CC
5213506e 4831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4832/* end confdefs.h. */
4833#include <stdarg.h>
4834#include <stdio.h>
22e05272 4835struct stat;
1c710c3c
DJ
4836/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4837struct buf { int x; };
4838FILE * (*rcsopen) (struct buf *, struct stat *, int);
4839static char *e (p, i)
4840 char **p;
4841 int i;
4842{
4843 return p[i];
4844}
4845static char *f (char * (*g) (char **, int), char **p, ...)
4846{
4847 char *s;
4848 va_list v;
4849 va_start (v,p);
4850 s = g (p, va_arg (v,int));
4851 va_end (v);
4852 return s;
4853}
4854
4855/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4856 function prototypes and stuff, but not '\xHH' hex character constants.
4857 These don't provoke an error unfortunately, instead are silently treated
5213506e 4858 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4860 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4861 that's true only with -std. */
1c710c3c
DJ
4862int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4863
5213506e
RW
4864/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4865 inside strings and character constants. */
4866#define FOO(x) 'x'
4867int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4868
1c710c3c
DJ
4869int test (int i, double x);
4870struct s1 {int (*f) (int a);};
4871struct s2 {int (*f) (double a);};
4872int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4873int argc;
4874char **argv;
4875int
4876main ()
4877{
4878return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4879 ;
4880 return 0;
4881}
4882_ACEOF
5213506e
RW
4883for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4885do
4886 CC="$ac_save_CC $ac_arg"
5213506e
RW
4887 if ac_fn_c_try_compile "$LINENO"; then :
4888 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4889fi
5213506e
RW
4890rm -f core conftest.err conftest.$ac_objext
4891 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4892done
5213506e 4893rm -f conftest.$ac_ext
1c710c3c
DJ
4894CC=$ac_save_CC
4895
4896fi
5213506e
RW
4897# AC_CACHE_VAL
4898case "x$ac_cv_prog_cc_c89" in
4899 x)
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4901$as_echo "none needed" >&6; } ;;
4902 xno)
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4904$as_echo "unsupported" >&6; } ;;
1c710c3c 4905 *)
5213506e
RW
4906 CC="$CC $ac_cv_prog_cc_c89"
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4908$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4909esac
5213506e 4910if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4911
2aeb72e9
DD
4912fi
4913
2aeb72e9
DD
4914ac_ext=c
4915ac_cpp='$CPP $CPPFLAGS'
4916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918ac_compiler_gnu=$ac_cv_c_compiler_gnu
4919
5213506e 4920ac_ext=cpp
2aeb72e9
DD
4921ac_cpp='$CXXCPP $CPPFLAGS'
4922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4925if test -z "$CXX"; then
4926 if test -n "$CCC"; then
4927 CXX=$CCC
4928 else
4929 if test -n "$ac_tool_prefix"; then
4930 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4931 do
4932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4933set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4936if ${ac_cv_prog_CXX+:} false; then :
5213506e 4937 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4938else
4939 if test -n "$CXX"; then
4940 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4941else
4942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943for as_dir in $PATH
4944do
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
5213506e 4947 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 4949 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4951 break 2
4952 fi
4953done
5213506e
RW
4954 done
4955IFS=$as_save_IFS
55ffb5ed 4956
c3a86da9
DJ
4957fi
4958fi
4959CXX=$ac_cv_prog_CXX
4960if test -n "$CXX"; then
5213506e
RW
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4962$as_echo "$CXX" >&6; }
c3a86da9 4963else
5213506e
RW
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965$as_echo "no" >&6; }
c3a86da9
DJ
4966fi
4967
5213506e 4968
c3a86da9
DJ
4969 test -n "$CXX" && break
4970 done
4971fi
4972if test -z "$CXX"; then
4973 ac_ct_CXX=$CXX
5213506e 4974 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4975do
4976 # Extract the first word of "$ac_prog", so it can be a program name with args.
4977set dummy $ac_prog; ac_word=$2
5213506e
RW
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4980if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 4981 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4982else
4983 if test -n "$ac_ct_CXX"; then
4984 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4985else
4986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987for as_dir in $PATH
4988do
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
5213506e 4991 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 4993 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4995 break 2
4996 fi
4997done
5213506e
RW
4998 done
4999IFS=$as_save_IFS
c3a86da9
DJ
5000
5001fi
5002fi
5003ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5004if test -n "$ac_ct_CXX"; then
5213506e
RW
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5006$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 5007else
5213506e
RW
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009$as_echo "no" >&6; }
c3a86da9
DJ
5010fi
5011
5213506e 5012
c3a86da9
DJ
5013 test -n "$ac_ct_CXX" && break
5014done
c3a86da9 5015
5213506e
RW
5016 if test "x$ac_ct_CXX" = x; then
5017 CXX="g++"
5018 else
5019 case $cross_compiling:$ac_tool_warned in
5020yes:)
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5023ac_tool_warned=yes ;;
5024esac
5025 CXX=$ac_ct_CXX
5026 fi
c3a86da9
DJ
5027fi
5028
5213506e
RW
5029 fi
5030fi
c3a86da9 5031# Provide some information about the compiler.
5213506e
RW
5032$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5033set X $ac_compile
5034ac_compiler=$2
5035for ac_option in --version -v -V -qversion; do
5036 { { ac_try="$ac_compiler $ac_option >&5"
5037case "(($ac_try" in
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5040esac
5041eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5042$as_echo "$ac_try_echo"; } >&5
5043 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 5044 ac_status=$?
5213506e
RW
5045 if test -s conftest.err; then
5046 sed '10a\
5047... rest of stderr output deleted ...
5048 10q' conftest.err >conftest.er1
5049 cat conftest.er1 >&5
5213506e 5050 fi
22e05272 5051 rm -f conftest.er1 conftest.err
5213506e
RW
5052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5053 test $ac_status = 0; }
5054done
c3a86da9 5055
5213506e
RW
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5057$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5058if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 5059 $as_echo_n "(cached) " >&6
c3a86da9 5060else
5213506e 5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5062/* end confdefs.h. */
5063
5064int
5065main ()
5066{
5067#ifndef __GNUC__
5068 choke me
5069#endif
5070
5071 ;
5072 return 0;
5073}
5074_ACEOF
5213506e 5075if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5076 ac_compiler_gnu=yes
5077else
5213506e 5078 ac_compiler_gnu=no
c3a86da9 5079fi
5213506e 5080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
5081ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5082
5083fi
5213506e
RW
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5085$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5086if test $ac_compiler_gnu = yes; then
5087 GXX=yes
5088else
5089 GXX=
5090fi
c3a86da9
DJ
5091ac_test_CXXFLAGS=${CXXFLAGS+set}
5092ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5094$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5095if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
5096 $as_echo_n "(cached) " >&6
5097else
5098 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5099 ac_cxx_werror_flag=yes
5100 ac_cv_prog_cxx_g=no
5101 CXXFLAGS="-g"
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5103/* end confdefs.h. */
5104
5105int
5106main ()
5107{
5108
5109 ;
5110 return 0;
5111}
5112_ACEOF
5213506e 5113if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5114 ac_cv_prog_cxx_g=yes
5115else
5213506e
RW
5116 CXXFLAGS=""
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5118/* end confdefs.h. */
5213506e 5119
c3a86da9
DJ
5120int
5121main ()
5122{
5213506e 5123
c3a86da9
DJ
5124 ;
5125 return 0;
5126}
5127_ACEOF
5213506e 5128if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5129
5213506e
RW
5130else
5131 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5132 CXXFLAGS="-g"
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5134/* end confdefs.h. */
5213506e 5135
c3a86da9
DJ
5136int
5137main ()
5138{
5213506e 5139
c3a86da9
DJ
5140 ;
5141 return 0;
5142}
5143_ACEOF
5213506e
RW
5144if ac_fn_cxx_try_compile "$LINENO"; then :
5145 ac_cv_prog_cxx_g=yes
11a67599 5146fi
5213506e
RW
5147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5148fi
5149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150fi
5151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5153fi
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5155$as_echo "$ac_cv_prog_cxx_g" >&6; }
5156if test "$ac_test_CXXFLAGS" = set; then
5157 CXXFLAGS=$ac_save_CXXFLAGS
5158elif test $ac_cv_prog_cxx_g = yes; then
5159 if test "$GXX" = yes; then
5160 CXXFLAGS="-g -O2"
5161 else
5162 CXXFLAGS="-g"
5163 fi
5164else
5165 if test "$GXX" = yes; then
5166 CXXFLAGS="-O2"
5167 else
5168 CXXFLAGS=
5169 fi
c3a86da9 5170fi
c3a86da9
DJ
5171ac_ext=c
5172ac_cpp='$CPP $CPPFLAGS'
5173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175ac_compiler_gnu=$ac_cv_c_compiler_gnu
5176
5177
5178# We must set the default linker to the linker used by gcc for the correct
5179# operation of libtool. If LD is not defined and we are using gcc, try to
5180# set the LD default to the ld used by gcc.
5181if test -z "$LD"; then
5182 if test "$GCC" = yes; then
5183 case $build in
5184 *-*-mingw*)
5185 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5186 *)
5187 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5188 esac
5189 case $gcc_prog_ld in
5190 # Accept absolute paths.
5191 [\\/]* | [A-Za-z]:[\\/]*)
5192 LD="$gcc_prog_ld" ;;
5193 esac
5194 fi
23f6b2f9
PB
5195fi
5196
0b21f5d3
EB
5197# Check whether -static-libstdc++ -static-libgcc is supported.
5198have_static_libs=no
5199if test "$GCC" = yes; then
5200 saved_LDFLAGS="$LDFLAGS"
5201
5202 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5204$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5205 ac_ext=cpp
5206ac_cpp='$CXXCPP $CPPFLAGS'
5207ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5208ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5209ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5210
5211
5212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213/* end confdefs.h. */
0d6414b2
EB
5214
5215#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5216#error -static-libstdc++ not implemented
5217#endif
0b21f5d3
EB
5218int main() {}
5219_ACEOF
5220if ac_fn_cxx_try_link "$LINENO"; then :
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5222$as_echo "yes" >&6; }; have_static_libs=yes
5223else
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225$as_echo "no" >&6; }
5226fi
5227rm -f core conftest.err conftest.$ac_objext \
5228 conftest$ac_exeext conftest.$ac_ext
5229 ac_ext=c
5230ac_cpp='$CPP $CPPFLAGS'
5231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5233ac_compiler_gnu=$ac_cv_c_compiler_gnu
5234
5235
5236 LDFLAGS="$saved_LDFLAGS"
5237fi
5238
23f6b2f9
PB
5239
5240
55ffb5ed 5241
1c710c3c
DJ
5242if test -n "$ac_tool_prefix"; then
5243 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5244set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5247if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5248 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5249else
5250 if test -n "$GNATBIND"; then
5251 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5252else
1c710c3c
DJ
5253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254for as_dir in $PATH
5255do
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5213506e 5258 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5260 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5262 break 2
5263 fi
5264done
5213506e
RW
5265 done
5266IFS=$as_save_IFS
1c710c3c 5267
55ffb5ed
NN
5268fi
5269fi
1c710c3c 5270GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5271if test -n "$GNATBIND"; then
5213506e
RW
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5273$as_echo "$GNATBIND" >&6; }
55ffb5ed 5274else
5213506e
RW
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276$as_echo "no" >&6; }
55ffb5ed
NN
5277fi
5278
5213506e 5279
1c710c3c 5280fi
55ffb5ed 5281if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5282 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5283 # Extract the first word of "gnatbind", so it can be a program name with args.
5284set dummy gnatbind; ac_word=$2
5213506e
RW
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5287if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5288 $as_echo_n "(cached) " >&6
55ffb5ed 5289else
1c710c3c
DJ
5290 if test -n "$ac_ct_GNATBIND"; then
5291 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5292else
1c710c3c
DJ
5293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294for as_dir in $PATH
5295do
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5213506e 5298 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5300 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5302 break 2
5303 fi
5304done
5213506e
RW
5305 done
5306IFS=$as_save_IFS
1c710c3c 5307
55ffb5ed
NN
5308fi
5309fi
1c710c3c
DJ
5310ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5311if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5313$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5314else
5213506e
RW
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316$as_echo "no" >&6; }
55ffb5ed
NN
5317fi
5318
5213506e
RW
5319 if test "x$ac_ct_GNATBIND" = x; then
5320 GNATBIND="no"
5321 else
5322 case $cross_compiling:$ac_tool_warned in
5323yes:)
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5326ac_tool_warned=yes ;;
5327esac
5328 GNATBIND=$ac_ct_GNATBIND
5329 fi
55ffb5ed 5330else
1c710c3c 5331 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5332fi
5333
1c710c3c
DJ
5334if test -n "$ac_tool_prefix"; then
5335 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5336set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5339if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5340 $as_echo_n "(cached) " >&6
5305be7e
RG
5341else
5342 if test -n "$GNATMAKE"; then
5343 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5344else
1c710c3c
DJ
5345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346for as_dir in $PATH
5347do
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5213506e 5350 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5352 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5354 break 2
5355 fi
5356done
5213506e
RW
5357 done
5358IFS=$as_save_IFS
1c710c3c 5359
5305be7e
RG
5360fi
5361fi
1c710c3c 5362GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5363if test -n "$GNATMAKE"; then
5213506e
RW
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5365$as_echo "$GNATMAKE" >&6; }
5305be7e 5366else
5213506e
RW
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368$as_echo "no" >&6; }
5305be7e
RG
5369fi
5370
5213506e 5371
1c710c3c 5372fi
5305be7e 5373if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5374 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5375 # Extract the first word of "gnatmake", so it can be a program name with args.
5376set dummy gnatmake; ac_word=$2
5213506e
RW
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5379if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5380 $as_echo_n "(cached) " >&6
5305be7e 5381else
1c710c3c
DJ
5382 if test -n "$ac_ct_GNATMAKE"; then
5383 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5384else
1c710c3c
DJ
5385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386for as_dir in $PATH
5387do
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5213506e 5390 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5392 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5394 break 2
5395 fi
5396done
5213506e
RW
5397 done
5398IFS=$as_save_IFS
1c710c3c 5399
5305be7e
RG
5400fi
5401fi
1c710c3c
DJ
5402ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5403if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5405$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5406else
5213506e
RW
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408$as_echo "no" >&6; }
5305be7e
RG
5409fi
5410
5213506e
RW
5411 if test "x$ac_ct_GNATMAKE" = x; then
5412 GNATMAKE="no"
5413 else
5414 case $cross_compiling:$ac_tool_warned in
5415yes:)
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5418ac_tool_warned=yes ;;
5419esac
5420 GNATMAKE=$ac_ct_GNATMAKE
5421 fi
5305be7e 5422else
1c710c3c 5423 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5424fi
5425
5213506e
RW
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5427$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
22e05272 5428if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5429 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5430else
5431 cat >conftest.adb <<EOF
5432procedure conftest is begin null; end conftest;
5433EOF
5434acx_cv_cc_gcc_supports_ada=no
5435# There is a bug in old released versions of GCC which causes the
5436# driver to exit successfully when the appropriate language module
5437# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5438# Therefore we must check for the error message as well as an
5439# unsuccessful exit.
1db673ca
RO
5440# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5441# given a .adb file, but produce no object file. So we must check
5442# if an object file was really produced to guard against this.
55ffb5ed 5443errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5444if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5445 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5446fi
5447rm -f conftest.*
5448fi
5213506e
RW
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5450$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5451
7cb62ef1 5452if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5453 have_gnat=yes
5454else
5455 have_gnat=no
5456fi
5457
5213506e
RW
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5459$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5460if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5461 $as_echo_n "(cached) " >&6
a76494aa
PB
5462else
5463 echo abfoo >t1
5464 echo cdfoo >t2
b55e6680 5465 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5466 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5467 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5468 :
5469 else
5470 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5471 fi
5472 fi
a76494aa
PB
5473 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5474 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5475 :
a76494aa
PB
5476 else
5477 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5478 fi
5479 fi
5480 rm t1 t2
5481
5482fi
5213506e
RW
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5484$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5485do_compare="$gcc_cv_prog_cmp_skip"
5486
5487
55ffb5ed 5488
ff3ac0f4
ILT
5489# Check whether --enable-bootstrap was given.
5490if test "${enable_bootstrap+set}" = set; then :
5491 enableval=$enable_bootstrap;
5492else
5493 enable_bootstrap=default
5494fi
5495
5496
5497# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5498if test -r $srcdir/gcc/configure; then
5499 have_compiler=yes
5500else
5501 have_compiler=no
5502fi
ff3ac0f4
ILT
5503
5504case "$have_compiler:$host:$target:$enable_bootstrap" in
5505 *:*:*:no) ;;
5506
5507 # Default behavior. Enable bootstrap if we have a compiler
5508 # and we are in a native configuration.
5509 yes:$build:$build:default)
5510 enable_bootstrap=yes ;;
5511
5512 *:*:*:default)
5513 enable_bootstrap=no ;;
5514
5515 # We have a compiler and we are in a native configuration, bootstrap is ok
5516 yes:$build:$build:yes)
5517 ;;
5518
5519 # Other configurations, but we have a compiler. Assume the user knows
5520 # what he's doing.
5521 yes:*:*:yes)
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5523$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5524 ;;
5525
5526 # No compiler: if they passed --enable-bootstrap explicitly, fail
5527 no:*:*:yes)
22e05272 5528 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5529
5530 # Fail if wrong command line
5531 *)
22e05272 5532 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5533 ;;
5534esac
5535
5329b59a 5536# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
ffac9597
JM
5537# C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5538# require C++11 (or higher).
46070488 5539if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5329b59a 5540 CXX="$CXX -std=c++11"
ffac9597
JM
5541elif test "$have_compiler" = yes; then
5542 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5543 ac_ext=cpp
5544ac_cpp='$CXXCPP $CPPFLAGS'
5545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5548 ac_success=no
5549
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5551$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5552if ${ax_cv_cxx_compile_cxx11+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554else
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556/* end confdefs.h. */
5557
5558
5559// If the compiler admits that it is not ready for C++11, why torture it?
5560// Hopefully, this will speed up the test.
5561
5562#ifndef __cplusplus
5563
5564#error "This is not a C++ compiler"
5565
5566#elif __cplusplus < 201103L
5567
5568#error "This is not a C++11 compiler"
5569
5570#else
5571
5572namespace cxx11
5573{
5574
5575 namespace test_static_assert
5576 {
5577
5578 template <typename T>
5579 struct check
5580 {
5581 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5582 };
5583
5584 }
5585
5586 namespace test_final_override
5587 {
5588
5589 struct Base
5590 {
5591 virtual ~Base() {}
5592 virtual void f() {}
5593 };
5594
5595 struct Derived : public Base
5596 {
5597 virtual ~Derived() override {}
5598 virtual void f() override {}
5599 };
5600
5601 }
5602
5603 namespace test_double_right_angle_brackets
5604 {
5605
5606 template < typename T >
5607 struct check {};
5608
5609 typedef check<void> single_type;
5610 typedef check<check<void>> double_type;
5611 typedef check<check<check<void>>> triple_type;
5612 typedef check<check<check<check<void>>>> quadruple_type;
5613
5614 }
5615
5616 namespace test_decltype
5617 {
5618
5619 int
5620 f()
5621 {
5622 int a = 1;
5623 decltype(a) b = 2;
5624 return a + b;
5625 }
5626
5627 }
5628
5629 namespace test_type_deduction
5630 {
5631
5632 template < typename T1, typename T2 >
5633 struct is_same
5634 {
5635 static const bool value = false;
5636 };
5637
5638 template < typename T >
5639 struct is_same<T, T>
5640 {
5641 static const bool value = true;
5642 };
5643
5644 template < typename T1, typename T2 >
5645 auto
5646 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5647 {
5648 return a1 + a2;
5649 }
5650
5651 int
5652 test(const int c, volatile int v)
5653 {
5654 static_assert(is_same<int, decltype(0)>::value == true, "");
5655 static_assert(is_same<int, decltype(c)>::value == false, "");
5656 static_assert(is_same<int, decltype(v)>::value == false, "");
5657 auto ac = c;
5658 auto av = v;
5659 auto sumi = ac + av + 'x';
5660 auto sumf = ac + av + 1.0;
5661 static_assert(is_same<int, decltype(ac)>::value == true, "");
5662 static_assert(is_same<int, decltype(av)>::value == true, "");
5663 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5664 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5665 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5666 return (sumf > 0.0) ? sumi : add(c, v);
5667 }
5668
5669 }
5670
5671 namespace test_noexcept
5672 {
5673
5674 int f() { return 0; }
5675 int g() noexcept { return 0; }
5676
5677 static_assert(noexcept(f()) == false, "");
5678 static_assert(noexcept(g()) == true, "");
5679
5680 }
5681
5682 namespace test_constexpr
5683 {
5684
5685 template < typename CharT >
5686 unsigned long constexpr
5687 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5688 {
5689 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5690 }
5691
5692 template < typename CharT >
5693 unsigned long constexpr
5694 strlen_c(const CharT *const s) noexcept
5695 {
5696 return strlen_c_r(s, 0UL);
5697 }
5698
5699 static_assert(strlen_c("") == 0UL, "");
5700 static_assert(strlen_c("1") == 1UL, "");
5701 static_assert(strlen_c("example") == 7UL, "");
5702 static_assert(strlen_c("another\0example") == 7UL, "");
5703
5704 }
5705
5706 namespace test_rvalue_references
5707 {
5708
5709 template < int N >
5710 struct answer
5711 {
5712 static constexpr int value = N;
5713 };
5714
5715 answer<1> f(int&) { return answer<1>(); }
5716 answer<2> f(const int&) { return answer<2>(); }
5717 answer<3> f(int&&) { return answer<3>(); }
5718
5719 void
5720 test()
5721 {
5722 int i = 0;
5723 const int c = 0;
5724 static_assert(decltype(f(i))::value == 1, "");
5725 static_assert(decltype(f(c))::value == 2, "");
5726 static_assert(decltype(f(0))::value == 3, "");
5727 }
5728
5729 }
5730
5731 namespace test_uniform_initialization
5732 {
5733
5734 struct test
5735 {
5736 static const int zero {};
5737 static const int one {1};
5738 };
5739
5740 static_assert(test::zero == 0, "");
5741 static_assert(test::one == 1, "");
5742
5743 }
5744
5745 namespace test_lambdas
5746 {
5747
5748 void
5749 test1()
5750 {
5751 auto lambda1 = [](){};
5752 auto lambda2 = lambda1;
5753 lambda1();
5754 lambda2();
5755 }
5756
5757 int
5758 test2()
5759 {
5760 auto a = [](int i, int j){ return i + j; }(1, 2);
5761 auto b = []() -> int { return '0'; }();
5762 auto c = [=](){ return a + b; }();
5763 auto d = [&](){ return c; }();
5764 auto e = [a, &b](int x) mutable {
5765 const auto identity = [](int y){ return y; };
5766 for (auto i = 0; i < a; ++i)
5767 a += b--;
5768 return x + identity(a + b);
5769 }(0);
5770 return a + b + c + d + e;
5771 }
5772
5773 int
5774 test3()
5775 {
5776 const auto nullary = [](){ return 0; };
5777 const auto unary = [](int x){ return x; };
5778 using nullary_t = decltype(nullary);
5779 using unary_t = decltype(unary);
5780 const auto higher1st = [](nullary_t f){ return f(); };
5781 const auto higher2nd = [unary](nullary_t f1){
5782 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5783 };
5784 return higher1st(nullary) + higher2nd(nullary)(unary);
5785 }
5786
5787 }
5788
5789 namespace test_variadic_templates
5790 {
5791
5792 template <int...>
5793 struct sum;
5794
5795 template <int N0, int... N1toN>
5796 struct sum<N0, N1toN...>
5797 {
5798 static constexpr auto value = N0 + sum<N1toN...>::value;
5799 };
5800
5801 template <>
5802 struct sum<>
5803 {
5804 static constexpr auto value = 0;
5805 };
5806
5807 static_assert(sum<>::value == 0, "");
5808 static_assert(sum<1>::value == 1, "");
5809 static_assert(sum<23>::value == 23, "");
5810 static_assert(sum<1, 2>::value == 3, "");
5811 static_assert(sum<5, 5, 11>::value == 21, "");
5812 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5813
5814 }
5815
5816 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5817 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5818 // because of this.
5819 namespace test_template_alias_sfinae
5820 {
5821
5822 struct foo {};
5823
5824 template<typename T>
5825 using member = typename T::member_type;
5826
5827 template<typename T>
5828 void func(...) {}
5829
5830 template<typename T>
5831 void func(member<T>*) {}
5832
5833 void test();
5834
5835 void test() { func<foo>(0); }
5836
5837 }
5838
5839} // namespace cxx11
5840
5841#endif // __cplusplus >= 201103L
5842
5843
5844
5845_ACEOF
5846if ac_fn_cxx_try_compile "$LINENO"; then :
5847 ax_cv_cxx_compile_cxx11=yes
5848else
5849 ax_cv_cxx_compile_cxx11=no
5850fi
5851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852fi
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5854$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5855 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5856 ac_success=yes
5857 fi
5858
5859 if test x$ac_success = xno; then
5860 for alternative in ${ax_cxx_compile_alternatives}; do
5861 switch="-std=gnu++${alternative}"
5862 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5864$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5865if eval \${$cachevar+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867else
5868 ac_save_CXX="$CXX"
5869 CXX="$CXX $switch"
5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871/* end confdefs.h. */
5872
5873
5874// If the compiler admits that it is not ready for C++11, why torture it?
5875// Hopefully, this will speed up the test.
5876
5877#ifndef __cplusplus
5878
5879#error "This is not a C++ compiler"
5880
5881#elif __cplusplus < 201103L
5882
5883#error "This is not a C++11 compiler"
5884
5885#else
5886
5887namespace cxx11
5888{
5889
5890 namespace test_static_assert
5891 {
5892
5893 template <typename T>
5894 struct check
5895 {
5896 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5897 };
5898
5899 }
5900
5901 namespace test_final_override
5902 {
5903
5904 struct Base
5905 {
5906 virtual ~Base() {}
5907 virtual void f() {}
5908 };
5909
5910 struct Derived : public Base
5911 {
5912 virtual ~Derived() override {}
5913 virtual void f() override {}
5914 };
5915
5916 }
5917
5918 namespace test_double_right_angle_brackets
5919 {
5920
5921 template < typename T >
5922 struct check {};
5923
5924 typedef check<void> single_type;
5925 typedef check<check<void>> double_type;
5926 typedef check<check<check<void>>> triple_type;
5927 typedef check<check<check<check<void>>>> quadruple_type;
5928
5929 }
5930
5931 namespace test_decltype
5932 {
5933
5934 int
5935 f()
5936 {
5937 int a = 1;
5938 decltype(a) b = 2;
5939 return a + b;
5940 }
5941
5942 }
5943
5944 namespace test_type_deduction
5945 {
5946
5947 template < typename T1, typename T2 >
5948 struct is_same
5949 {
5950 static const bool value = false;
5951 };
5952
5953 template < typename T >
5954 struct is_same<T, T>
5955 {
5956 static const bool value = true;
5957 };
5958
5959 template < typename T1, typename T2 >
5960 auto
5961 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5962 {
5963 return a1 + a2;
5964 }
5965
5966 int
5967 test(const int c, volatile int v)
5968 {
5969 static_assert(is_same<int, decltype(0)>::value == true, "");
5970 static_assert(is_same<int, decltype(c)>::value == false, "");
5971 static_assert(is_same<int, decltype(v)>::value == false, "");
5972 auto ac = c;
5973 auto av = v;
5974 auto sumi = ac + av + 'x';
5975 auto sumf = ac + av + 1.0;
5976 static_assert(is_same<int, decltype(ac)>::value == true, "");
5977 static_assert(is_same<int, decltype(av)>::value == true, "");
5978 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5979 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5980 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5981 return (sumf > 0.0) ? sumi : add(c, v);
5982 }
5983
5984 }
5985
5986 namespace test_noexcept
5987 {
5988
5989 int f() { return 0; }
5990 int g() noexcept { return 0; }
5991
5992 static_assert(noexcept(f()) == false, "");
5993 static_assert(noexcept(g()) == true, "");
5994
5995 }
5996
5997 namespace test_constexpr
5998 {
5999
6000 template < typename CharT >
6001 unsigned long constexpr
6002 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6003 {
6004 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6005 }
6006
6007 template < typename CharT >
6008 unsigned long constexpr
6009 strlen_c(const CharT *const s) noexcept
6010 {
6011 return strlen_c_r(s, 0UL);
6012 }
6013
6014 static_assert(strlen_c("") == 0UL, "");
6015 static_assert(strlen_c("1") == 1UL, "");
6016 static_assert(strlen_c("example") == 7UL, "");
6017 static_assert(strlen_c("another\0example") == 7UL, "");
6018
6019 }
6020
6021 namespace test_rvalue_references
6022 {
6023
6024 template < int N >
6025 struct answer
6026 {
6027 static constexpr int value = N;
6028 };
6029
6030 answer<1> f(int&) { return answer<1>(); }
6031 answer<2> f(const int&) { return answer<2>(); }
6032 answer<3> f(int&&) { return answer<3>(); }
6033
6034 void
6035 test()
6036 {
6037 int i = 0;
6038 const int c = 0;
6039 static_assert(decltype(f(i))::value == 1, "");
6040 static_assert(decltype(f(c))::value == 2, "");
6041 static_assert(decltype(f(0))::value == 3, "");
6042 }
6043
6044 }
6045
6046 namespace test_uniform_initialization
6047 {
6048
6049 struct test
6050 {
6051 static const int zero {};
6052 static const int one {1};
6053 };
6054
6055 static_assert(test::zero == 0, "");
6056 static_assert(test::one == 1, "");
6057
6058 }
6059
6060 namespace test_lambdas
6061 {
6062
6063 void
6064 test1()
6065 {
6066 auto lambda1 = [](){};
6067 auto lambda2 = lambda1;
6068 lambda1();
6069 lambda2();
6070 }
6071
6072 int
6073 test2()
6074 {
6075 auto a = [](int i, int j){ return i + j; }(1, 2);
6076 auto b = []() -> int { return '0'; }();
6077 auto c = [=](){ return a + b; }();
6078 auto d = [&](){ return c; }();
6079 auto e = [a, &b](int x) mutable {
6080 const auto identity = [](int y){ return y; };
6081 for (auto i = 0; i < a; ++i)
6082 a += b--;
6083 return x + identity(a + b);
6084 }(0);
6085 return a + b + c + d + e;
6086 }
6087
6088 int
6089 test3()
6090 {
6091 const auto nullary = [](){ return 0; };
6092 const auto unary = [](int x){ return x; };
6093 using nullary_t = decltype(nullary);
6094 using unary_t = decltype(unary);
6095 const auto higher1st = [](nullary_t f){ return f(); };
6096 const auto higher2nd = [unary](nullary_t f1){
6097 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6098 };
6099 return higher1st(nullary) + higher2nd(nullary)(unary);
6100 }
6101
6102 }
6103
6104 namespace test_variadic_templates
6105 {
6106
6107 template <int...>
6108 struct sum;
6109
6110 template <int N0, int... N1toN>
6111 struct sum<N0, N1toN...>
6112 {
6113 static constexpr auto value = N0 + sum<N1toN...>::value;
6114 };
6115
6116 template <>
6117 struct sum<>
6118 {
6119 static constexpr auto value = 0;
6120 };
6121
6122 static_assert(sum<>::value == 0, "");
6123 static_assert(sum<1>::value == 1, "");
6124 static_assert(sum<23>::value == 23, "");
6125 static_assert(sum<1, 2>::value == 3, "");
6126 static_assert(sum<5, 5, 11>::value == 21, "");
6127 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6128
6129 }
6130
6131 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6132 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6133 // because of this.
6134 namespace test_template_alias_sfinae
6135 {
6136
6137 struct foo {};
6138
6139 template<typename T>
6140 using member = typename T::member_type;
6141
6142 template<typename T>
6143 void func(...) {}
6144
6145 template<typename T>
6146 void func(member<T>*) {}
6147
6148 void test();
6149
6150 void test() { func<foo>(0); }
6151
6152 }
6153
6154} // namespace cxx11
6155
6156#endif // __cplusplus >= 201103L
6157
6158
6159
6160_ACEOF
6161if ac_fn_cxx_try_compile "$LINENO"; then :
6162 eval $cachevar=yes
6163else
6164 eval $cachevar=no
6165fi
6166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167 CXX="$ac_save_CXX"
6168fi
6169eval ac_res=\$$cachevar
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6171$as_echo "$ac_res" >&6; }
6172 if eval test x\$$cachevar = xyes; then
6173 CXX="$CXX $switch"
6174 if test -n "$CXXCPP" ; then
6175 CXXCPP="$CXXCPP $switch"
6176 fi
6177 ac_success=yes
6178 break
6179 fi
6180 done
6181 fi
6182
6183 if test x$ac_success = xno; then
6184 for alternative in ${ax_cxx_compile_alternatives}; do
6185 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6186 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6188$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6189if eval \${$cachevar+:} false; then :
6190 $as_echo_n "(cached) " >&6
6191else
6192 ac_save_CXX="$CXX"
6193 CXX="$CXX $switch"
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195/* end confdefs.h. */
6196
6197
6198// If the compiler admits that it is not ready for C++11, why torture it?
6199// Hopefully, this will speed up the test.
6200
6201#ifndef __cplusplus
6202
6203#error "This is not a C++ compiler"
6204
6205#elif __cplusplus < 201103L
6206
6207#error "This is not a C++11 compiler"
6208
6209#else
6210
6211namespace cxx11
6212{
6213
6214 namespace test_static_assert
6215 {
6216
6217 template <typename T>
6218 struct check
6219 {
6220 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6221 };
6222
6223 }
6224
6225 namespace test_final_override
6226 {
6227
6228 struct Base
6229 {
6230 virtual ~Base() {}
6231 virtual void f() {}
6232 };
6233
6234 struct Derived : public Base
6235 {
6236 virtual ~Derived() override {}
6237 virtual void f() override {}
6238 };
6239
6240 }
6241
6242 namespace test_double_right_angle_brackets
6243 {
6244
6245 template < typename T >
6246 struct check {};
6247
6248 typedef check<void> single_type;
6249 typedef check<check<void>> double_type;
6250 typedef check<check<check<void>>> triple_type;
6251 typedef check<check<check<check<void>>>> quadruple_type;
6252
6253 }
6254
6255 namespace test_decltype
6256 {
6257
6258 int
6259 f()
6260 {
6261 int a = 1;
6262 decltype(a) b = 2;
6263 return a + b;
6264 }
6265
6266 }
6267
6268 namespace test_type_deduction
6269 {
6270
6271 template < typename T1, typename T2 >
6272 struct is_same
6273 {
6274 static const bool value = false;
6275 };
6276
6277 template < typename T >
6278 struct is_same<T, T>
6279 {
6280 static const bool value = true;
6281 };
6282
6283 template < typename T1, typename T2 >
6284 auto
6285 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6286 {
6287 return a1 + a2;
6288 }
6289
6290 int
6291 test(const int c, volatile int v)
6292 {
6293 static_assert(is_same<int, decltype(0)>::value == true, "");
6294 static_assert(is_same<int, decltype(c)>::value == false, "");
6295 static_assert(is_same<int, decltype(v)>::value == false, "");
6296 auto ac = c;
6297 auto av = v;
6298 auto sumi = ac + av + 'x';
6299 auto sumf = ac + av + 1.0;
6300 static_assert(is_same<int, decltype(ac)>::value == true, "");
6301 static_assert(is_same<int, decltype(av)>::value == true, "");
6302 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6303 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6304 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6305 return (sumf > 0.0) ? sumi : add(c, v);
6306 }
6307
6308 }
6309
6310 namespace test_noexcept
6311 {
6312
6313 int f() { return 0; }
6314 int g() noexcept { return 0; }
6315
6316 static_assert(noexcept(f()) == false, "");
6317 static_assert(noexcept(g()) == true, "");
6318
6319 }
6320
6321 namespace test_constexpr
6322 {
6323
6324 template < typename CharT >
6325 unsigned long constexpr
6326 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6327 {
6328 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6329 }
6330
6331 template < typename CharT >
6332 unsigned long constexpr
6333 strlen_c(const CharT *const s) noexcept
6334 {
6335 return strlen_c_r(s, 0UL);
6336 }
6337
6338 static_assert(strlen_c("") == 0UL, "");
6339 static_assert(strlen_c("1") == 1UL, "");
6340 static_assert(strlen_c("example") == 7UL, "");
6341 static_assert(strlen_c("another\0example") == 7UL, "");
6342
6343 }
6344
6345 namespace test_rvalue_references
6346 {
6347
6348 template < int N >
6349 struct answer
6350 {
6351 static constexpr int value = N;
6352 };
6353
6354 answer<1> f(int&) { return answer<1>(); }
6355 answer<2> f(const int&) { return answer<2>(); }
6356 answer<3> f(int&&) { return answer<3>(); }
6357
6358 void
6359 test()
6360 {
6361 int i = 0;
6362 const int c = 0;
6363 static_assert(decltype(f(i))::value == 1, "");
6364 static_assert(decltype(f(c))::value == 2, "");
6365 static_assert(decltype(f(0))::value == 3, "");
6366 }
6367
6368 }
6369
6370 namespace test_uniform_initialization
6371 {
6372
6373 struct test
6374 {
6375 static const int zero {};
6376 static const int one {1};
6377 };
6378
6379 static_assert(test::zero == 0, "");
6380 static_assert(test::one == 1, "");
6381
6382 }
6383
6384 namespace test_lambdas
6385 {
6386
6387 void
6388 test1()
6389 {
6390 auto lambda1 = [](){};
6391 auto lambda2 = lambda1;
6392 lambda1();
6393 lambda2();
6394 }
6395
6396 int
6397 test2()
6398 {
6399 auto a = [](int i, int j){ return i + j; }(1, 2);
6400 auto b = []() -> int { return '0'; }();
6401 auto c = [=](){ return a + b; }();
6402 auto d = [&](){ return c; }();
6403 auto e = [a, &b](int x) mutable {
6404 const auto identity = [](int y){ return y; };
6405 for (auto i = 0; i < a; ++i)
6406 a += b--;
6407 return x + identity(a + b);
6408 }(0);
6409 return a + b + c + d + e;
6410 }
6411
6412 int
6413 test3()
6414 {
6415 const auto nullary = [](){ return 0; };
6416 const auto unary = [](int x){ return x; };
6417 using nullary_t = decltype(nullary);
6418 using unary_t = decltype(unary);
6419 const auto higher1st = [](nullary_t f){ return f(); };
6420 const auto higher2nd = [unary](nullary_t f1){
6421 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6422 };
6423 return higher1st(nullary) + higher2nd(nullary)(unary);
6424 }
6425
6426 }
6427
6428 namespace test_variadic_templates
6429 {
6430
6431 template <int...>
6432 struct sum;
6433
6434 template <int N0, int... N1toN>
6435 struct sum<N0, N1toN...>
6436 {
6437 static constexpr auto value = N0 + sum<N1toN...>::value;
6438 };
6439
6440 template <>
6441 struct sum<>
6442 {
6443 static constexpr auto value = 0;
6444 };
6445
6446 static_assert(sum<>::value == 0, "");
6447 static_assert(sum<1>::value == 1, "");
6448 static_assert(sum<23>::value == 23, "");
6449 static_assert(sum<1, 2>::value == 3, "");
6450 static_assert(sum<5, 5, 11>::value == 21, "");
6451 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6452
6453 }
6454
6455 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6456 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6457 // because of this.
6458 namespace test_template_alias_sfinae
6459 {
6460
6461 struct foo {};
6462
6463 template<typename T>
6464 using member = typename T::member_type;
6465
6466 template<typename T>
6467 void func(...) {}
6468
6469 template<typename T>
6470 void func(member<T>*) {}
6471
6472 void test();
6473
6474 void test() { func<foo>(0); }
6475
6476 }
6477
6478} // namespace cxx11
6479
6480#endif // __cplusplus >= 201103L
6481
6482
6483
6484_ACEOF
6485if ac_fn_cxx_try_compile "$LINENO"; then :
6486 eval $cachevar=yes
6487else
6488 eval $cachevar=no
6489fi
6490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491 CXX="$ac_save_CXX"
6492fi
6493eval ac_res=\$$cachevar
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6495$as_echo "$ac_res" >&6; }
6496 if eval test x\$$cachevar = xyes; then
6497 CXX="$CXX $switch"
6498 if test -n "$CXXCPP" ; then
6499 CXXCPP="$CXXCPP $switch"
6500 fi
6501 ac_success=yes
6502 break
6503 fi
6504 done
6505 if test x$ac_success = xyes; then
6506 break
6507 fi
6508 done
6509 fi
7ffcf5d6 6510
ffac9597
JM
6511 ac_ext=c
6512ac_cpp='$CPP $CPPFLAGS'
6513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6515ac_compiler_gnu=$ac_cv_c_compiler_gnu
6516
6517 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6518 if test x$ac_success = xno; then
6519 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6520 fi
6521 fi
6522 if test x$ac_success = xno; then
6523 HAVE_CXX11=0
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6525$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6526 else
6527 HAVE_CXX11=1
6528
6529$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6530
6531 fi
6532
6533
7ffcf5d6
TB
6534
6535 if test "${build}" != "${host}"; then
6536 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6537 ac_ext=cpp
6538ac_cpp='$CXXCPP $CPPFLAGS'
6539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6542 ac_success=no
6543 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6544 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6545 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6546 CXX="$CXX_FOR_BUILD"
6547 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6548 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6550$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6551if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6552 $as_echo_n "(cached) " >&6
6553else
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555/* end confdefs.h. */
6556
6557
6558// If the compiler admits that it is not ready for C++11, why torture it?
6559// Hopefully, this will speed up the test.
6560
6561#ifndef __cplusplus
6562
6563#error "This is not a C++ compiler"
6564
6565#elif __cplusplus < 201103L
6566
6567#error "This is not a C++11 compiler"
6568
6569#else
6570
6571namespace cxx11
6572{
6573
6574 namespace test_static_assert
6575 {
6576
6577 template <typename T>
6578 struct check
6579 {
6580 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6581 };
6582
6583 }
6584
6585 namespace test_final_override
6586 {
6587
6588 struct Base
6589 {
6590 virtual ~Base() {}
6591 virtual void f() {}
6592 };
6593
6594 struct Derived : public Base
6595 {
6596 virtual ~Derived() override {}
6597 virtual void f() override {}
6598 };
6599
6600 }
6601
6602 namespace test_double_right_angle_brackets
6603 {
6604
6605 template < typename T >
6606 struct check {};
6607
6608 typedef check<void> single_type;
6609 typedef check<check<void>> double_type;
6610 typedef check<check<check<void>>> triple_type;
6611 typedef check<check<check<check<void>>>> quadruple_type;
6612
6613 }
6614
6615 namespace test_decltype
6616 {
6617
6618 int
6619 f()
6620 {
6621 int a = 1;
6622 decltype(a) b = 2;
6623 return a + b;
6624 }
6625
6626 }
6627
6628 namespace test_type_deduction
6629 {
6630
6631 template < typename T1, typename T2 >
6632 struct is_same
6633 {
6634 static const bool value = false;
6635 };
6636
6637 template < typename T >
6638 struct is_same<T, T>
6639 {
6640 static const bool value = true;
6641 };
6642
6643 template < typename T1, typename T2 >
6644 auto
6645 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6646 {
6647 return a1 + a2;
6648 }
6649
6650 int
6651 test(const int c, volatile int v)
6652 {
6653 static_assert(is_same<int, decltype(0)>::value == true, "");
6654 static_assert(is_same<int, decltype(c)>::value == false, "");
6655 static_assert(is_same<int, decltype(v)>::value == false, "");
6656 auto ac = c;
6657 auto av = v;
6658 auto sumi = ac + av + 'x';
6659 auto sumf = ac + av + 1.0;
6660 static_assert(is_same<int, decltype(ac)>::value == true, "");
6661 static_assert(is_same<int, decltype(av)>::value == true, "");
6662 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6663 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6664 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6665 return (sumf > 0.0) ? sumi : add(c, v);
6666 }
6667
6668 }
6669
6670 namespace test_noexcept
6671 {
6672
6673 int f() { return 0; }
6674 int g() noexcept { return 0; }
6675
6676 static_assert(noexcept(f()) == false, "");
6677 static_assert(noexcept(g()) == true, "");
6678
6679 }
6680
6681 namespace test_constexpr
6682 {
6683
6684 template < typename CharT >
6685 unsigned long constexpr
6686 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6687 {
6688 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6689 }
6690
6691 template < typename CharT >
6692 unsigned long constexpr
6693 strlen_c(const CharT *const s) noexcept
6694 {
6695 return strlen_c_r(s, 0UL);
6696 }
6697
6698 static_assert(strlen_c("") == 0UL, "");
6699 static_assert(strlen_c("1") == 1UL, "");
6700 static_assert(strlen_c("example") == 7UL, "");
6701 static_assert(strlen_c("another\0example") == 7UL, "");
6702
6703 }
6704
6705 namespace test_rvalue_references
6706 {
6707
6708 template < int N >
6709 struct answer
6710 {
6711 static constexpr int value = N;
6712 };
6713
6714 answer<1> f(int&) { return answer<1>(); }
6715 answer<2> f(const int&) { return answer<2>(); }
6716 answer<3> f(int&&) { return answer<3>(); }
6717
6718 void
6719 test()
6720 {
6721 int i = 0;
6722 const int c = 0;
6723 static_assert(decltype(f(i))::value == 1, "");
6724 static_assert(decltype(f(c))::value == 2, "");
6725 static_assert(decltype(f(0))::value == 3, "");
6726 }
6727
6728 }
6729
6730 namespace test_uniform_initialization
6731 {
6732
6733 struct test
6734 {
6735 static const int zero {};
6736 static const int one {1};
6737 };
6738
6739 static_assert(test::zero == 0, "");
6740 static_assert(test::one == 1, "");
6741
6742 }
6743
6744 namespace test_lambdas
6745 {
6746
6747 void
6748 test1()
6749 {
6750 auto lambda1 = [](){};
6751 auto lambda2 = lambda1;
6752 lambda1();
6753 lambda2();
6754 }
6755
6756 int
6757 test2()
6758 {
6759 auto a = [](int i, int j){ return i + j; }(1, 2);
6760 auto b = []() -> int { return '0'; }();
6761 auto c = [=](){ return a + b; }();
6762 auto d = [&](){ return c; }();
6763 auto e = [a, &b](int x) mutable {
6764 const auto identity = [](int y){ return y; };
6765 for (auto i = 0; i < a; ++i)
6766 a += b--;
6767 return x + identity(a + b);
6768 }(0);
6769 return a + b + c + d + e;
6770 }
6771
6772 int
6773 test3()
6774 {
6775 const auto nullary = [](){ return 0; };
6776 const auto unary = [](int x){ return x; };
6777 using nullary_t = decltype(nullary);
6778 using unary_t = decltype(unary);
6779 const auto higher1st = [](nullary_t f){ return f(); };
6780 const auto higher2nd = [unary](nullary_t f1){
6781 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6782 };
6783 return higher1st(nullary) + higher2nd(nullary)(unary);
6784 }
6785
6786 }
6787
6788 namespace test_variadic_templates
6789 {
6790
6791 template <int...>
6792 struct sum;
6793
6794 template <int N0, int... N1toN>
6795 struct sum<N0, N1toN...>
6796 {
6797 static constexpr auto value = N0 + sum<N1toN...>::value;
6798 };
6799
6800 template <>
6801 struct sum<>
6802 {
6803 static constexpr auto value = 0;
6804 };
6805
6806 static_assert(sum<>::value == 0, "");
6807 static_assert(sum<1>::value == 1, "");
6808 static_assert(sum<23>::value == 23, "");
6809 static_assert(sum<1, 2>::value == 3, "");
6810 static_assert(sum<5, 5, 11>::value == 21, "");
6811 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6812
6813 }
6814
6815 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6816 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6817 // because of this.
6818 namespace test_template_alias_sfinae
6819 {
6820
6821 struct foo {};
6822
6823 template<typename T>
6824 using member = typename T::member_type;
6825
6826 template<typename T>
6827 void func(...) {}
6828
6829 template<typename T>
6830 void func(member<T>*) {}
6831
6832 void test();
6833
6834 void test() { func<foo>(0); }
6835
6836 }
6837
6838} // namespace cxx11
6839
6840#endif // __cplusplus >= 201103L
6841
6842
6843
6844_ACEOF
6845if ac_fn_cxx_try_compile "$LINENO"; then :
6846 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
6847else
6848 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
6849fi
6850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851fi
6852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
6853$as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
6854 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
6855 ac_success=yes
6856 fi
6857
6858 if test x$ac_success = xno; then
6859 for alternative in ${ax_cxx_compile_alternatives}; do
6860 switch="-std=gnu++${alternative}"
6861 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6863$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6864if eval \${$cachevar+:} false; then :
6865 $as_echo_n "(cached) " >&6
6866else
6867 ac_save_CXX="$CXX"
6868 CXX="$CXX $switch"
6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870/* end confdefs.h. */
6871
6872
6873// If the compiler admits that it is not ready for C++11, why torture it?
6874// Hopefully, this will speed up the test.
6875
6876#ifndef __cplusplus
6877
6878#error "This is not a C++ compiler"
6879
6880#elif __cplusplus < 201103L
6881
6882#error "This is not a C++11 compiler"
6883
6884#else
6885
6886namespace cxx11
6887{
6888
6889 namespace test_static_assert
6890 {
6891
6892 template <typename T>
6893 struct check
6894 {
6895 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6896 };
6897
6898 }
6899
6900 namespace test_final_override
6901 {
6902
6903 struct Base
6904 {
6905 virtual ~Base() {}
6906 virtual void f() {}
6907 };
6908
6909 struct Derived : public Base
6910 {
6911 virtual ~Derived() override {}
6912 virtual void f() override {}
6913 };
6914
6915 }
6916
6917 namespace test_double_right_angle_brackets
6918 {
6919
6920 template < typename T >
6921 struct check {};
6922
6923 typedef check<void> single_type;
6924 typedef check<check<void>> double_type;
6925 typedef check<check<check<void>>> triple_type;
6926 typedef check<check<check<check<void>>>> quadruple_type;
6927
6928 }
6929
6930 namespace test_decltype
6931 {
6932
6933 int
6934 f()
6935 {
6936 int a = 1;
6937 decltype(a) b = 2;
6938 return a + b;
6939 }
6940
6941 }
6942
6943 namespace test_type_deduction
6944 {
6945
6946 template < typename T1, typename T2 >
6947 struct is_same
6948 {
6949 static const bool value = false;
6950 };
6951
6952 template < typename T >
6953 struct is_same<T, T>
6954 {
6955 static const bool value = true;
6956 };
6957
6958 template < typename T1, typename T2 >
6959 auto
6960 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6961 {
6962 return a1 + a2;
6963 }
6964
6965 int
6966 test(const int c, volatile int v)
6967 {
6968 static_assert(is_same<int, decltype(0)>::value == true, "");
6969 static_assert(is_same<int, decltype(c)>::value == false, "");
6970 static_assert(is_same<int, decltype(v)>::value == false, "");
6971 auto ac = c;
6972 auto av = v;
6973 auto sumi = ac + av + 'x';
6974 auto sumf = ac + av + 1.0;
6975 static_assert(is_same<int, decltype(ac)>::value == true, "");
6976 static_assert(is_same<int, decltype(av)>::value == true, "");
6977 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6978 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6979 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6980 return (sumf > 0.0) ? sumi : add(c, v);
6981 }
6982
6983 }
6984
6985 namespace test_noexcept
6986 {
6987
6988 int f() { return 0; }
6989 int g() noexcept { return 0; }
6990
6991 static_assert(noexcept(f()) == false, "");
6992 static_assert(noexcept(g()) == true, "");
6993
6994 }
6995
6996 namespace test_constexpr
6997 {
6998
6999 template < typename CharT >
7000 unsigned long constexpr
7001 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7002 {
7003 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7004 }
7005
7006 template < typename CharT >
7007 unsigned long constexpr
7008 strlen_c(const CharT *const s) noexcept
7009 {
7010 return strlen_c_r(s, 0UL);
7011 }
7012
7013 static_assert(strlen_c("") == 0UL, "");
7014 static_assert(strlen_c("1") == 1UL, "");
7015 static_assert(strlen_c("example") == 7UL, "");
7016 static_assert(strlen_c("another\0example") == 7UL, "");
7017
7018 }
7019
7020 namespace test_rvalue_references
7021 {
7022
7023 template < int N >
7024 struct answer
7025 {
7026 static constexpr int value = N;
7027 };
7028
7029 answer<1> f(int&) { return answer<1>(); }
7030 answer<2> f(const int&) { return answer<2>(); }
7031 answer<3> f(int&&) { return answer<3>(); }
7032
7033 void
7034 test()
7035 {
7036 int i = 0;
7037 const int c = 0;
7038 static_assert(decltype(f(i))::value == 1, "");
7039 static_assert(decltype(f(c))::value == 2, "");
7040 static_assert(decltype(f(0))::value == 3, "");
7041 }
7042
7043 }
7044
7045 namespace test_uniform_initialization
7046 {
7047
7048 struct test
7049 {
7050 static const int zero {};
7051 static const int one {1};
7052 };
7053
7054 static_assert(test::zero == 0, "");
7055 static_assert(test::one == 1, "");
7056
7057 }
7058
7059 namespace test_lambdas
7060 {
7061
7062 void
7063 test1()
7064 {
7065 auto lambda1 = [](){};
7066 auto lambda2 = lambda1;
7067 lambda1();
7068 lambda2();
7069 }
7070
7071 int
7072 test2()
7073 {
7074 auto a = [](int i, int j){ return i + j; }(1, 2);
7075 auto b = []() -> int { return '0'; }();
7076 auto c = [=](){ return a + b; }();
7077 auto d = [&](){ return c; }();
7078 auto e = [a, &b](int x) mutable {
7079 const auto identity = [](int y){ return y; };
7080 for (auto i = 0; i < a; ++i)
7081 a += b--;
7082 return x + identity(a + b);
7083 }(0);
7084 return a + b + c + d + e;
7085 }
7086
7087 int
7088 test3()
7089 {
7090 const auto nullary = [](){ return 0; };
7091 const auto unary = [](int x){ return x; };
7092 using nullary_t = decltype(nullary);
7093 using unary_t = decltype(unary);
7094 const auto higher1st = [](nullary_t f){ return f(); };
7095 const auto higher2nd = [unary](nullary_t f1){
7096 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7097 };
7098 return higher1st(nullary) + higher2nd(nullary)(unary);
7099 }
7100
7101 }
7102
7103 namespace test_variadic_templates
7104 {
7105
7106 template <int...>
7107 struct sum;
7108
7109 template <int N0, int... N1toN>
7110 struct sum<N0, N1toN...>
7111 {
7112 static constexpr auto value = N0 + sum<N1toN...>::value;
7113 };
7114
7115 template <>
7116 struct sum<>
7117 {
7118 static constexpr auto value = 0;
7119 };
7120
7121 static_assert(sum<>::value == 0, "");
7122 static_assert(sum<1>::value == 1, "");
7123 static_assert(sum<23>::value == 23, "");
7124 static_assert(sum<1, 2>::value == 3, "");
7125 static_assert(sum<5, 5, 11>::value == 21, "");
7126 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7127
7128 }
7129
7130 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7131 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7132 // because of this.
7133 namespace test_template_alias_sfinae
7134 {
7135
7136 struct foo {};
7137
7138 template<typename T>
7139 using member = typename T::member_type;
7140
7141 template<typename T>
7142 void func(...) {}
7143
7144 template<typename T>
7145 void func(member<T>*) {}
7146
7147 void test();
7148
7149 void test() { func<foo>(0); }
7150
7151 }
7152
7153} // namespace cxx11
7154
7155#endif // __cplusplus >= 201103L
7156
7157
7158
7159_ACEOF
7160if ac_fn_cxx_try_compile "$LINENO"; then :
7161 eval $cachevar=yes
7162else
7163 eval $cachevar=no
7164fi
7165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7166 CXX="$ac_save_CXX"
7167fi
7168eval ac_res=\$$cachevar
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7170$as_echo "$ac_res" >&6; }
7171 if eval test x\$$cachevar = xyes; then
7172 CXX="$CXX $switch"
7173 if test -n "$CXXCPP" ; then
7174 CXXCPP="$CXXCPP $switch"
7175 fi
7176 ac_success=yes
7177 break
7178 fi
7179 done
7180 fi
7181
7182 if test x$ac_success = xno; then
7183 for alternative in ${ax_cxx_compile_alternatives}; do
7184 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7185 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7187$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7188if eval \${$cachevar+:} false; then :
7189 $as_echo_n "(cached) " >&6
7190else
7191 ac_save_CXX="$CXX"
7192 CXX="$CXX $switch"
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194/* end confdefs.h. */
7195
7196
7197// If the compiler admits that it is not ready for C++11, why torture it?
7198// Hopefully, this will speed up the test.
7199
7200#ifndef __cplusplus
7201
7202#error "This is not a C++ compiler"
7203
7204#elif __cplusplus < 201103L
7205
7206#error "This is not a C++11 compiler"
7207
7208#else
7209
7210namespace cxx11
7211{
7212
7213 namespace test_static_assert
7214 {
7215
7216 template <typename T>
7217 struct check
7218 {
7219 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7220 };
7221
7222 }
7223
7224 namespace test_final_override
7225 {
7226
7227 struct Base
7228 {
7229 virtual ~Base() {}
7230 virtual void f() {}
7231 };
7232
7233 struct Derived : public Base
7234 {
7235 virtual ~Derived() override {}
7236 virtual void f() override {}
7237 };
7238
7239 }
7240
7241 namespace test_double_right_angle_brackets
7242 {
7243
7244 template < typename T >
7245 struct check {};
7246
7247 typedef check<void> single_type;
7248 typedef check<check<void>> double_type;
7249 typedef check<check<check<void>>> triple_type;
7250 typedef check<check<check<check<void>>>> quadruple_type;
7251
7252 }
7253
7254 namespace test_decltype
7255 {
7256
7257 int
7258 f()
7259 {
7260 int a = 1;
7261 decltype(a) b = 2;
7262 return a + b;
7263 }
7264
7265 }
7266
7267 namespace test_type_deduction
7268 {
7269
7270 template < typename T1, typename T2 >
7271 struct is_same
7272 {
7273 static const bool value = false;
7274 };
7275
7276 template < typename T >
7277 struct is_same<T, T>
7278 {
7279 static const bool value = true;
7280 };
7281
7282 template < typename T1, typename T2 >
7283 auto
7284 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7285 {
7286 return a1 + a2;
7287 }
7288
7289 int
7290 test(const int c, volatile int v)
7291 {
7292 static_assert(is_same<int, decltype(0)>::value == true, "");
7293 static_assert(is_same<int, decltype(c)>::value == false, "");
7294 static_assert(is_same<int, decltype(v)>::value == false, "");
7295 auto ac = c;
7296 auto av = v;
7297 auto sumi = ac + av + 'x';
7298 auto sumf = ac + av + 1.0;
7299 static_assert(is_same<int, decltype(ac)>::value == true, "");
7300 static_assert(is_same<int, decltype(av)>::value == true, "");
7301 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7302 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7303 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7304 return (sumf > 0.0) ? sumi : add(c, v);
7305 }
7306
7307 }
7308
7309 namespace test_noexcept
7310 {
7311
7312 int f() { return 0; }
7313 int g() noexcept { return 0; }
7314
7315 static_assert(noexcept(f()) == false, "");
7316 static_assert(noexcept(g()) == true, "");
7317
7318 }
7319
7320 namespace test_constexpr
7321 {
7322
7323 template < typename CharT >
7324 unsigned long constexpr
7325 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7326 {
7327 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7328 }
7329
7330 template < typename CharT >
7331 unsigned long constexpr
7332 strlen_c(const CharT *const s) noexcept
7333 {
7334 return strlen_c_r(s, 0UL);
7335 }
7336
7337 static_assert(strlen_c("") == 0UL, "");
7338 static_assert(strlen_c("1") == 1UL, "");
7339 static_assert(strlen_c("example") == 7UL, "");
7340 static_assert(strlen_c("another\0example") == 7UL, "");
7341
7342 }
7343
7344 namespace test_rvalue_references
7345 {
7346
7347 template < int N >
7348 struct answer
7349 {
7350 static constexpr int value = N;
7351 };
7352
7353 answer<1> f(int&) { return answer<1>(); }
7354 answer<2> f(const int&) { return answer<2>(); }
7355 answer<3> f(int&&) { return answer<3>(); }
7356
7357 void
7358 test()
7359 {
7360 int i = 0;
7361 const int c = 0;
7362 static_assert(decltype(f(i))::value == 1, "");
7363 static_assert(decltype(f(c))::value == 2, "");
7364 static_assert(decltype(f(0))::value == 3, "");
7365 }
7366
7367 }
7368
7369 namespace test_uniform_initialization
7370 {
7371
7372 struct test
7373 {
7374 static const int zero {};
7375 static const int one {1};
7376 };
7377
7378 static_assert(test::zero == 0, "");
7379 static_assert(test::one == 1, "");
7380
7381 }
7382
7383 namespace test_lambdas
7384 {
7385
7386 void
7387 test1()
7388 {
7389 auto lambda1 = [](){};
7390 auto lambda2 = lambda1;
7391 lambda1();
7392 lambda2();
7393 }
7394
7395 int
7396 test2()
7397 {
7398 auto a = [](int i, int j){ return i + j; }(1, 2);
7399 auto b = []() -> int { return '0'; }();
7400 auto c = [=](){ return a + b; }();
7401 auto d = [&](){ return c; }();
7402 auto e = [a, &b](int x) mutable {
7403 const auto identity = [](int y){ return y; };
7404 for (auto i = 0; i < a; ++i)
7405 a += b--;
7406 return x + identity(a + b);
7407 }(0);
7408 return a + b + c + d + e;
7409 }
7410
7411 int
7412 test3()
7413 {
7414 const auto nullary = [](){ return 0; };
7415 const auto unary = [](int x){ return x; };
7416 using nullary_t = decltype(nullary);
7417 using unary_t = decltype(unary);
7418 const auto higher1st = [](nullary_t f){ return f(); };
7419 const auto higher2nd = [unary](nullary_t f1){
7420 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7421 };
7422 return higher1st(nullary) + higher2nd(nullary)(unary);
7423 }
7424
7425 }
7426
7427 namespace test_variadic_templates
7428 {
7429
7430 template <int...>
7431 struct sum;
7432
7433 template <int N0, int... N1toN>
7434 struct sum<N0, N1toN...>
7435 {
7436 static constexpr auto value = N0 + sum<N1toN...>::value;
7437 };
7438
7439 template <>
7440 struct sum<>
7441 {
7442 static constexpr auto value = 0;
7443 };
7444
7445 static_assert(sum<>::value == 0, "");
7446 static_assert(sum<1>::value == 1, "");
7447 static_assert(sum<23>::value == 23, "");
7448 static_assert(sum<1, 2>::value == 3, "");
7449 static_assert(sum<5, 5, 11>::value == 21, "");
7450 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7451
7452 }
7453
7454 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7455 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7456 // because of this.
7457 namespace test_template_alias_sfinae
7458 {
7459
7460 struct foo {};
7461
7462 template<typename T>
7463 using member = typename T::member_type;
7464
7465 template<typename T>
7466 void func(...) {}
7467
7468 template<typename T>
7469 void func(member<T>*) {}
7470
7471 void test();
7472
7473 void test() { func<foo>(0); }
7474
7475 }
7476
7477} // namespace cxx11
7478
7479#endif // __cplusplus >= 201103L
7480
7481
7482
7483_ACEOF
7484if ac_fn_cxx_try_compile "$LINENO"; then :
7485 eval $cachevar=yes
7486else
7487 eval $cachevar=no
7488fi
7489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490 CXX="$ac_save_CXX"
7491fi
7492eval ac_res=\$$cachevar
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7494$as_echo "$ac_res" >&6; }
7495 if eval test x\$$cachevar = xyes; then
7496 CXX="$CXX $switch"
7497 if test -n "$CXXCPP" ; then
7498 CXXCPP="$CXXCPP $switch"
7499 fi
7500 ac_success=yes
7501 break
7502 fi
7503 done
7504 if test x$ac_success = xyes; then
7505 break
7506 fi
7507 done
7508 fi
7509 CXX_FOR_BUILD="$CXX"
7510 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7511 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7512 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7513 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7514 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7515 ac_ext=c
7516ac_cpp='$CPP $CPPFLAGS'
7517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7519ac_compiler_gnu=$ac_cv_c_compiler_gnu
7520
7521 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7522 if test x$ac_success = xno; then
7523 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7524 fi
7525 fi
7526 if test x$ac_success = xno; then
7527 HAVE_CXX11_FOR_BUILD=0
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7529$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7530 else
7531 HAVE_CXX11_FOR_BUILD=1
7532
7533$as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7534
7535 fi
7536
7537
7538 fi
46070488
JM
7539fi
7540
592c90ff
KG
7541# Used for setting $lt_cv_objdir
7542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7543$as_echo_n "checking for objdir... " >&6; }
22e05272 7544if ${lt_cv_objdir+:} false; then :
592c90ff
KG
7545 $as_echo_n "(cached) " >&6
7546else
7547 rm -f .libs 2>/dev/null
7548mkdir .libs 2>/dev/null
7549if test -d .libs; then
7550 lt_cv_objdir=.libs
7551else
7552 # MS-DOS does not allow filenames that begin with a dot.
7553 lt_cv_objdir=_libs
7554fi
7555rmdir .libs 2>/dev/null
7556fi
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7558$as_echo "$lt_cv_objdir" >&6; }
7559objdir=$lt_cv_objdir
7560
7561
7562
7563
7564
7565cat >>confdefs.h <<_ACEOF
7566#define LT_OBJDIR "$lt_cv_objdir/"
7567_ACEOF
7568
7569
7570
acd26225 7571# Check for GMP, MPFR and MPC
3a5729ea 7572gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 7573gmpinc=
e69bf64b 7574have_gmp=no
acd26225
KG
7575
7576# Specify a location for mpc
7577# check for this first so it ends up on the link line before mpfr.
7578
5213506e
RW
7579# Check whether --with-mpc was given.
7580if test "${with_mpc+set}" = set; then :
7581 withval=$with_mpc;
7582fi
acd26225 7583
acd26225 7584
9965e3cd 7585# Check whether --with-mpc-include was given.
5213506e
RW
7586if test "${with_mpc_include+set}" = set; then :
7587 withval=$with_mpc_include;
7588fi
acd26225 7589
acd26225 7590
9965e3cd 7591# Check whether --with-mpc-lib was given.
5213506e
RW
7592if test "${with_mpc_lib+set}" = set; then :
7593 withval=$with_mpc_lib;
7594fi
acd26225 7595
acd26225
KG
7596
7597if test "x$with_mpc" != x; then
3a5729ea
KG
7598 gmplibs="-L$with_mpc/lib $gmplibs"
7599 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
7600fi
7601if test "x$with_mpc_include" != x; then
3a5729ea 7602 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
7603fi
7604if test "x$with_mpc_lib" != x; then
3a5729ea 7605 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
7606fi
7607if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 7608 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 7609 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
7610 # Do not test the mpc version. Assume that it is sufficient, since
7611 # it is in the source tree, and the library has not been built yet
7612 # but it would be included on the link line in the version check below
7613 # hence making the test fail.
3a5729ea 7614 have_gmp=yes
acd26225 7615fi
e69bf64b 7616
bebf829d
PB
7617# Specify a location for mpfr
7618# check for this first so it ends up on the link line before gmp.
1c710c3c 7619
5213506e
RW
7620# Check whether --with-mpfr-dir was given.
7621if test "${with_mpfr_dir+set}" = set; then :
22e05272 7622 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5213506e
RW
7623Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7624fi
7625
bebf829d
PB
7626
7627
5213506e
RW
7628# Check whether --with-mpfr was given.
7629if test "${with_mpfr+set}" = set; then :
7630 withval=$with_mpfr;
7631fi
1c710c3c 7632
bebf829d 7633
9965e3cd 7634# Check whether --with-mpfr-include was given.
5213506e
RW
7635if test "${with_mpfr_include+set}" = set; then :
7636 withval=$with_mpfr_include;
7637fi
1c710c3c 7638
8a877c9c 7639
9965e3cd 7640# Check whether --with-mpfr-lib was given.
5213506e
RW
7641if test "${with_mpfr_lib+set}" = set; then :
7642 withval=$with_mpfr_lib;
7643fi
8a877c9c 7644
bebf829d
PB
7645
7646if test "x$with_mpfr" != x; then
7647 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 7648 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 7649fi
8a877c9c 7650if test "x$with_mpfr_include" != x; then
3a5729ea 7651 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
7652fi
7653if test "x$with_mpfr_lib" != x; then
7654 gmplibs="-L$with_mpfr_lib $gmplibs"
7655fi
e69bf64b 7656if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
7657 # MPFR v3.1.0 moved the sources into a src sub-directory.
7658 if ! test -d ${srcdir}/mpfr/src; then
22e05272 7659 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 7660 fi
00f35794
BE
7661 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7662 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7663 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
7664 # Do not test the mpfr version. Assume that it is sufficient, since
7665 # it is in the source tree, and the library has not been built yet
7666 # but it would be included on the link line in the version check below
7667 # hence making the test fail.
7668 have_gmp=yes
7669fi
bebf829d 7670
6de9cd9a 7671# Specify a location for gmp
1c710c3c 7672
5213506e
RW
7673# Check whether --with-gmp-dir was given.
7674if test "${with_gmp_dir+set}" = set; then :
22e05272 7675 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5213506e
RW
7676Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7677fi
7678
6de9cd9a 7679
6de9cd9a 7680
5213506e
RW
7681# Check whether --with-gmp was given.
7682if test "${with_gmp+set}" = set; then :
7683 withval=$with_gmp;
7684fi
1c710c3c 7685
6de9cd9a 7686
9965e3cd 7687# Check whether --with-gmp-include was given.
5213506e
RW
7688if test "${with_gmp_include+set}" = set; then :
7689 withval=$with_gmp_include;
7690fi
1c710c3c 7691
8a877c9c 7692
9965e3cd 7693# Check whether --with-gmp-lib was given.
5213506e
RW
7694if test "${with_gmp_lib+set}" = set; then :
7695 withval=$with_gmp_lib;
7696fi
8a877c9c
KG
7697
7698
6de9cd9a 7699
bebf829d
PB
7700if test "x$with_gmp" != x; then
7701 gmplibs="-L$with_gmp/lib $gmplibs"
7702 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 7703fi
8a877c9c
KG
7704if test "x$with_gmp_include" != x; then
7705 gmpinc="-I$with_gmp_include $gmpinc"
7706fi
7707if test "x$with_gmp_lib" != x; then
7708 gmplibs="-L$with_gmp_lib $gmplibs"
7709fi
e69bf64b 7710if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 7711 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 7712 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 7713 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 7714 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 7715 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
7716 # Do not test the gmp version. Assume that it is sufficient, since
7717 # it is in the source tree, and the library has not been built yet
7718 # but it would be included on the link line in the version check below
7719 # hence making the test fail.
7720 have_gmp=yes
7721fi
6de9cd9a 7722
d943d7c4 7723if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
7724 have_gmp=yes
7725 saved_CFLAGS="$CFLAGS"
7726 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
7727 # Check for the recommended and required versions of GMP.
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
7729$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
7730
7731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
7732/* end confdefs.h. */
7733#include "gmp.h"
7734int
7735main ()
7736{
7737
7738 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7739 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 7740 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
7741 choke me
7742 #endif
7743
7744 ;
7745 return 0;
7746}
7747_ACEOF
7748if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 7749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 7750/* end confdefs.h. */
362c6d2f 7751#include <gmp.h>
1c710c3c
DJ
7752int
7753main ()
7754{
6de9cd9a 7755
362c6d2f
KG
7756 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7757 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7758 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
7759 choke me
7760 #endif
1c710c3c
DJ
7761
7762 ;
7763 return 0;
7764}
7765_ACEOF
5213506e
RW
7766if ac_fn_c_try_compile "$LINENO"; then :
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7768$as_echo "yes" >&6; }
362c6d2f
KG
7769else
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7771$as_echo "buggy but acceptable" >&6; }
7772fi
7773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 7774else
5213506e
RW
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776$as_echo "no" >&6; }; have_gmp=no
1c710c3c 7777fi
5213506e 7778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 7779
acd26225 7780 # If we have GMP, check the MPFR version.
e69bf64b 7781 if test x"$have_gmp" = xyes; then
362c6d2f
KG
7782 # Check for the recommended and required versions of MPFR.
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
7784$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 7786/* end confdefs.h. */
70ec446f 7787#include <gmp.h>
e69bf64b 7788 #include <mpfr.h>
1c710c3c
DJ
7789int
7790main ()
7791{
e48d66a9 7792
8be34204 7793 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
e69bf64b
PB
7794 choke me
7795 #endif
1c710c3c
DJ
7796
7797 ;
7798 return 0;
7799}
7800_ACEOF
5213506e
RW
7801if ac_fn_c_try_compile "$LINENO"; then :
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 7803/* end confdefs.h. */
a3993f33 7804#include <gmp.h>
e69bf64b 7805 #include <mpfr.h>
1c710c3c
DJ
7806int
7807main ()
7808{
a3993f33 7809
8be34204 7810 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
e69bf64b
PB
7811 choke me
7812 #endif
acd26225
KG
7813
7814 ;
7815 return 0;
7816}
7817_ACEOF
5213506e
RW
7818if ac_fn_c_try_compile "$LINENO"; then :
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7820$as_echo "yes" >&6; }
acd26225 7821else
5213506e
RW
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7823$as_echo "buggy but acceptable" >&6; }
acd26225 7824fi
5213506e 7825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 7826else
5213506e
RW
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828$as_echo "no" >&6; }; have_gmp=no
acd26225 7829fi
5213506e 7830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
7831 fi
7832
7833 # Check for the MPC header version.
3a5729ea 7834 if test x"$have_gmp" = xyes ; then
362c6d2f 7835 # Check for the recommended and required versions of MPC.
5213506e
RW
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
7837$as_echo_n "checking for the correct version of mpc.h... " >&6; }
7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
7839/* end confdefs.h. */
7840#include <mpc.h>
7841int
7842main ()
7843{
7844
362c6d2f
KG
7845 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
7846 choke me
7847 #endif
7848
7849 ;
7850 return 0;
7851}
7852_ACEOF
7853if ac_fn_c_try_compile "$LINENO"; then :
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855/* end confdefs.h. */
7856#include <mpc.h>
7857int
7858main ()
7859{
7860
7861 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
7862 choke me
7863 #endif
7864
7865 ;
7866 return 0;
7867}
7868_ACEOF
5213506e
RW
7869if ac_fn_c_try_compile "$LINENO"; then :
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 7871$as_echo "yes" >&6; }
362c6d2f
KG
7872else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7874$as_echo "buggy but acceptable" >&6; }
7875fi
7876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 7877else
5213506e 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 7879$as_echo "no" >&6; }; have_gmp=no
acd26225 7880fi
5213506e 7881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
7882 fi
7883
7884 # Now check the MPFR library.
7885 if test x"$have_gmp" = xyes; then
7886 saved_LIBS="$LIBS"
7887 LIBS="$LIBS $gmplibs"
3a5729ea
KG
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
7889$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 7890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 7891/* end confdefs.h. */
3a5729ea 7892#include <mpc.h>
acd26225
KG
7893int
7894main ()
7895{
7896
7897 mpfr_t n;
7898 mpfr_t x;
3a5729ea 7899 mpc_t c;
acd26225
KG
7900 int t;
7901 mpfr_init (n);
7902 mpfr_init (x);
90ca6847
TB
7903 mpfr_atan2 (n, n, x, MPFR_RNDN);
7904 mpfr_erfc (n, x, MPFR_RNDN);
7905 mpfr_subnormalize (x, t, MPFR_RNDN);
3a5729ea
KG
7906 mpfr_clear(n);
7907 mpfr_clear(x);
7908 mpc_init2 (c, 53);
7909 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
7910 mpc_cosh (c, c, MPC_RNDNN);
7911 mpc_pow (c, c, c, MPC_RNDNN);
7912 mpc_acosh (c, c, MPC_RNDNN);
7913 mpc_clear (c);
1c710c3c
DJ
7914
7915 ;
7916 return 0;
7917}
7918_ACEOF
5213506e
RW
7919if ac_fn_c_try_link "$LINENO"; then :
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7921$as_echo "yes" >&6; }
1c710c3c 7922else
5213506e
RW
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924$as_echo "no" >&6; }; have_gmp=no
1c710c3c 7925fi
5213506e
RW
7926rm -f core conftest.err conftest.$ac_objext \
7927 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
7928 LIBS="$saved_LIBS"
7929 fi
7930
e69bf64b 7931 CFLAGS="$saved_CFLAGS"
6de9cd9a 7932
362c6d2f
KG
7933# The library versions listed in the error message below should match
7934# the HARD-minimums enforced above.
e69bf64b 7935 if test x$have_gmp != xyes; then
8be34204 7936 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
3a5729ea
KG
7937Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
7938their locations. Source code for these libraries can be found at
7939their respective hosting sites as well as at
aeebd94c 7940https://gcc.gnu.org/pub/gcc/infrastructure/. See also
3a5729ea
KG
7941http://gcc.gnu.org/install/prerequisites.html for additional info. If
7942you obtained GMP, MPFR and/or MPC from a vendor distribution package,
7943make sure that you have installed both the libraries and the header
7944files. They may be located in separate packages." "$LINENO" 5
e69bf64b 7945 fi
70ec446f
KG
7946fi
7947
acd26225
KG
7948# Flags needed for both GMP, MPFR and/or MPC.
7949
7950
6de9cd9a
DN
7951
7952
7953
9e3eba15 7954
0ff2d841 7955
0b21f5d3 7956# Libraries to use for stage1 or when not bootstrapping.
00020c16 7957
0b21f5d3
EB
7958# Check whether --with-stage1-libs was given.
7959if test "${with_stage1_libs+set}" = set; then :
7960 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
7961 stage1_libs=
00020c16 7962 else
0b21f5d3 7963 stage1_libs=$withval
00020c16
ILT
7964 fi
7965else
5dc85f7e 7966 stage1_libs=
5213506e
RW
7967fi
7968
00020c16
ILT
7969
7970
aac9103b
TT
7971# Whether or not to use -static-libstdc++ and -static-libgcc. The
7972# default is yes if gcc is being built; no otherwise. The reason for
7973# this default is that gdb is sometimes linked against GNU Source
7974# Highlight, which is a shared library that uses C++ exceptions. In
7975# this case, -static-libstdc++ will cause crashes.
7976
7977# Check whether --with-static-standard-libraries was given.
7978if test "${with_static_standard_libraries+set}" = set; then :
7979 withval=$with_static_standard_libraries;
7980else
7981 with_static_standard_libraries=auto
7982fi
7983
7984if test "$with_static_standard_libraries" = auto; then
7985 with_static_standard_libraries=$have_compiler
7986fi
7987
0b21f5d3 7988# Linker flags to use for stage1 or when not bootstrapping.
00020c16 7989
0b21f5d3
EB
7990# Check whether --with-stage1-ldflags was given.
7991if test "${with_stage1_ldflags+set}" = set; then :
7992 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
7993 stage1_ldflags=
00020c16 7994 else
0b21f5d3 7995 stage1_ldflags=$withval
00020c16
ILT
7996 fi
7997else
0b21f5d3
EB
7998 stage1_ldflags=
7999 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8000 # if supported. But if the user explicitly specified the libraries to use,
8001 # trust that they are doing what they want.
aac9103b
TT
8002 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8003 -a "$have_static_libs" = yes; then
0b21f5d3
EB
8004 stage1_ldflags="-static-libstdc++ -static-libgcc"
8005 fi
5213506e
RW
8006fi
8007
00020c16
ILT
8008
8009
5dc85f7e 8010# Libraries to use for stage2 and later builds.
00020c16 8011
5213506e
RW
8012# Check whether --with-boot-libs was given.
8013if test "${with_boot_libs+set}" = set; then :
8014 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
8015 poststage1_libs=
8016 else
8017 poststage1_libs=$withval
8018 fi
8019else
5dc85f7e 8020 poststage1_libs=
5213506e
RW
8021fi
8022
00020c16
ILT
8023
8024
ed2eaa9f
ILT
8025# Linker flags to use for stage2 and later builds.
8026
8027# Check whether --with-boot-ldflags was given.
8028if test "${with_boot_ldflags+set}" = set; then :
8029 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8030 poststage1_ldflags=
8031 else
8032 poststage1_ldflags=$withval
8033 fi
8034else
8035 poststage1_ldflags=
bec93d73
ILT
8036 # In stages 2 and 3, default to linking libstdc++ and libgcc
8037 # statically. But if the user explicitly specified the libraries to
8038 # use, trust that they are doing what they want.
8039 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
8040 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8041 fi
8042fi
8043
8044
8045
e357a5e0 8046# GCC GRAPHITE dependency isl.
4a9bb2aa 8047# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
8048
8049
33ad93b9
RG
8050# Check whether --with-isl was given.
8051if test "${with_isl+set}" = set; then :
8052 withval=$with_isl;
5213506e 8053fi
f8bf9252 8054
f8bf9252 8055
eae1a5d4 8056# Treat --without-isl as a request to disable
625afa23 8057# GRAPHITE support and skip all following checks.
eae1a5d4 8058if test "x$with_isl" != "xno"; then
e357a5e0 8059 # Check for isl
625afa23
RG
8060
8061
33ad93b9
RG
8062# Check whether --with-isl-include was given.
8063if test "${with_isl_include+set}" = set; then :
8064 withval=$with_isl_include;
5213506e
RW
8065fi
8066
f8bf9252 8067
33ad93b9
RG
8068# Check whether --with-isl-lib was given.
8069if test "${with_isl_lib+set}" = set; then :
8070 withval=$with_isl_lib;
5213506e 8071fi
f8bf9252 8072
f8bf9252 8073
33ad93b9
RG
8074 # Check whether --enable-isl-version-check was given.
8075if test "${enable_isl_version_check+set}" = set; then :
8076 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8077else
8078 ENABLE_ISL_CHECK=yes
7d32a440
SP
8079fi
8080
8081
33ad93b9
RG
8082 # Initialize isllibs and islinc.
8083 case $with_isl in
8084 no)
8085 isllibs=
8086 islinc=
8087 ;;
8088 "" | yes)
8089 ;;
8090 *)
8091 isllibs="-L$with_isl/lib"
8092 islinc="-I$with_isl/include"
8093 ;;
8094 esac
8095 if test "x${with_isl_include}" != x ; then
8096 islinc="-I$with_isl_include"
8097 fi
8098 if test "x${with_isl_lib}" != x; then
8099 isllibs="-L$with_isl_lib"
8100 fi
8101 if test "x${islinc}" = x && test "x${isllibs}" = x \
8102 && test -d ${srcdir}/isl; then
8103 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8104 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8105 ENABLE_ISL_CHECK=no
560d18d3
AK
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8107$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 8108 fi
7d32a440 8109
eae1a5d4
RG
8110 isllibs="${isllibs} -lisl"
8111
7d32a440 8112
7d32a440 8113
9847828b
RB
8114 if test "${ENABLE_ISL_CHECK}" = yes ; then
8115 _isl_saved_CFLAGS=$CFLAGS
8116 _isl_saved_LDFLAGS=$LDFLAGS
8117 _isl_saved_LIBS=$LIBS
8118
8119 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
8120 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8121 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 8122
f877b3ad
RB
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8124$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 8126/* end confdefs.h. */
f877b3ad 8127#include <isl/schedule.h>
622dbadf
BC
8128int
8129main ()
8130{
f877b3ad 8131isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
8132 ;
8133 return 0;
8134}
8135_ACEOF
8136if ac_fn_c_try_link "$LINENO"; then :
9847828b 8137 gcc_cv_isl=yes
622dbadf
BC
8138else
8139 gcc_cv_isl=no
8140fi
8141rm -f core conftest.err conftest.$ac_objext \
8142 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8144$as_echo "$gcc_cv_isl" >&6; }
8145
560d18d3 8146 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8148$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
8149 fi
8150
9847828b
RB
8151 CFLAGS=$_isl_saved_CFLAGS
8152 LDFLAGS=$_isl_saved_LDFLAGS
8153 LIBS=$_isl_saved_LIBS
8154 fi
8155
8156
f8bf9252 8157
f8bf9252 8158
33ad93b9
RG
8159
8160
33ad93b9
RG
8161 if test "x${with_isl}" = xno; then
8162 graphite_requested=no
8163 elif test "x${with_isl}" != x \
8164 || test "x${with_isl_include}" != x \
8165 || test "x${with_isl_lib}" != x ; then
8166 graphite_requested=yes
8167 else
8168 graphite_requested=no
7d32a440 8169 fi
d789184e 8170
d789184e
SP
8171
8172
33ad93b9
RG
8173 if test "${gcc_cv_isl}" = no ; then
8174 isllibs=
8175 islinc=
8176 fi
8177
8178 if test "${graphite_requested}" = yes \
8179 && test "x${isllibs}" = x \
8180 && test "x${islinc}" = x ; then
f8bf9252 8181
22e05272 8182 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 8183 fi
f8bf9252 8184
d32ef397 8185
d32ef397
AS
8186fi
8187
e357a5e0 8188# If the isl check failed, disable builds of in-tree variant of isl
625afa23 8189if test "x$with_isl" = xno ||
625afa23 8190 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 8191 noconfigdirs="$noconfigdirs isl"
625afa23 8192 islinc=
32d024bf
RG
8193fi
8194
625afa23
RG
8195
8196
8197
d7f09764
DN
8198# Check for LTO support.
8199# Check whether --enable-lto was given.
8200if test "${enable_lto+set}" = set; then :
8201 enableval=$enable_lto; enable_lto=$enableval
8202else
8203 enable_lto=yes; default_enable_lto=yes
8204fi
8205
8206
7413962d 8207
9a02962b
DK
8208
8209
8210target_elf=no
8211case $target in
8212 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 8213 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 8214 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 8215 nvptx-*-none)
9a02962b
DK
8216 target_elf=no
8217 ;;
8218 *)
8219 target_elf=yes
8220 ;;
8221esac
8222
8223if test $target_elf = yes; then :
48215350
DK
8224 # ELF platforms build the lto-plugin always.
8225 build_lto_plugin=yes
9a02962b 8226
9a02962b
DK
8227else
8228 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 8229 case $target in
deeba76a 8230 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 8231 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
8232 *) enable_lto=no ;;
8233 esac
9a02962b 8234 else
db50fe7d
IS
8235 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8236 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
8237 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8238 # warn during gcc/ subconfigure; unless you're bootstrapping with
8239 # -flto it won't be needed until after installation anyway.
8240 case $target in
9e530bcd 8241 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 8242 *) if test x"$enable_lto" = x"yes"; then
22e05272 8243 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
8244 fi
8245 ;;
8246 esac
8247 fi
1cd0b716 8248 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 8249 # Build it unless LTO was explicitly disabled.
1cd0b716 8250 case $target in
48215350 8251 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
8252 *) ;;
8253 esac
48215350 8254
9a02962b
DK
8255fi
8256
d7f09764 8257
45b3824d
TS
8258# Check whether --enable-linker-plugin-configure-flags was given.
8259if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8260 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8261else
8262 extra_linker_plugin_configure_flags=
8263fi
8264
8265
8266# Check whether --enable-linker-plugin-flags was given.
8267if test "${enable_linker_plugin_flags+set}" = set; then :
8268 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8269else
8270 extra_linker_plugin_flags=
8271fi
8272
8273
8274
cdfee50a
NS
8275# Enable --enable-host-shared.
8276# Checked early to determine whether jit is an 'all' language
8277# Check whether --enable-host-shared was given.
8278if test "${enable_host_shared+set}" = set; then :
8279 enableval=$enable_host_shared; host_shared=$enableval
dddcf63e 8280 case $host in
67d7ab01
IS
8281 x86_64-*-darwin* | aarch64-*-darwin*)
8282 if test x$host_shared != xyes ; then
8283 # PIC is the default, and actually cannot be switched off.
8284 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8285 host_shared=yes
8286 fi ;;
8287 *) ;;
8288 esac
cdfee50a 8289else
dddcf63e 8290 case $host in
67d7ab01
IS
8291 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8292 *) host_shared=no ;;
8293 esac
cdfee50a
NS
8294fi
8295
8296
f8bf9252 8297
0823efed 8298# By default, C and C++ are the only stage 1 languages.
e1888513 8299stage1_languages=,c,
2805b53a 8300
00020c16 8301# Target libraries that we bootstrap.
ad1e5170 8302bootstrap_target_libs=,target-libgcc,
00020c16 8303
55ffb5ed
NN
8304# Figure out what language subdirectories are present.
8305# Look if the user specified --enable-languages="..."; if not, use
8306# the environment variable $LANGUAGES if defined. $LANGUAGES might
8307# go away some day.
8308# NB: embedded tabs in this IF block -- do not untabify
8309if test -d ${srcdir}/gcc; then
8310 if test x"${enable_languages+set}" != xset; then
8311 if test x"${LANGUAGES+set}" = xset; then
8312 enable_languages="${LANGUAGES}"
6b1786aa 8313 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 8314 else
cdfee50a 8315 enable_languages=default
55ffb5ed
NN
8316 fi
8317 else
8318 if test x"${enable_languages}" = x ||
8319 test x"${enable_languages}" = xyes;
8320 then
6b1786aa 8321 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
8322 exit 1
8323 fi
8324 fi
8325 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8326
7f26dfa3
FXC
8327 # 'f95' is the old name for the 'fortran' language. We issue a warning
8328 # and make the substitution.
8329 case ,${enable_languages}, in
8330 *,f95,*)
6b1786aa 8331 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
8332 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8333 ;;
8334 esac
8335
0823efed
DN
8336 # If bootstrapping, C++ must be enabled.
8337 case ",$enable_languages,:$enable_bootstrap" in
8338 *,c++,*:*) ;;
8339 *:yes)
ff3ac0f4
ILT
8340 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8341 enable_languages="${enable_languages},c++"
8342 else
22e05272 8343 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
8344 fi
8345 ;;
8346 esac
8347
55ffb5ed
NN
8348 # First scan to see if an enabled language requires some other language.
8349 # We assume that a given config-lang.in will list all the language
8350 # front ends it requires, even if some are required indirectly.
8351 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8352 case ${lang_frag} in
8353 ..) ;;
8354 # The odd quoting in the next line works around
8355 # an apparent bug in bash 1.12 on linux.
8356 ${srcdir}/gcc/[*]/config-lang.in) ;;
8357 *)
69ecd18f
ILT
8358 # From the config-lang.in, get $language, $lang_requires, and
8359 # $lang_requires_boot_languages.
55ffb5ed
NN
8360 language=
8361 lang_requires=
69ecd18f 8362 lang_requires_boot_languages=
d4360477
NS
8363 # set srcdir during sourcing lang_frag to the gcc dir.
8364 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8365 # polutes this shell
8366 saved_srcdir=${srcdir}
8367 srcdir=${srcdir}/gcc . ${lang_frag}
8368 srcdir=${saved_srcdir}
69ecd18f 8369 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
8370 case ,${enable_languages}, in
8371 *,$other,*) ;;
cdfee50a 8372 *,default,*) ;;
55ffb5ed
NN
8373 *,all,*) ;;
8374 *,$language,*)
8375 echo " \`$other' language required by \`$language'; enabling" 1>&2
8376 enable_languages="${enable_languages},${other}"
8377 ;;
8378 esac
8379 done
69ecd18f
ILT
8380 for other in ${lang_requires_boot_languages} ; do
8381 if test "$other" != "c"; then
8382 case ,${enable_stage1_languages}, in
8383 *,$other,*) ;;
cdfee50a 8384 *,default,*) ;;
69ecd18f
ILT
8385 *,all,*) ;;
8386 *)
8387 case ,${enable_languages}, in
8388 *,$language,*)
8389 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8390 enable_stage1_languages="$enable_stage1_languages,${other}"
8391 ;;
8392 esac
8393 ;;
8394 esac
8395 fi
8396 done
55ffb5ed
NN
8397 ;;
8398 esac
8399 done
8400
e1888513 8401 new_enable_languages=,c,
d7f09764
DN
8402
8403 # If LTO is enabled, add the LTO front end.
d7f09764 8404 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
8405 case ,${enable_languages}, in
8406 *,lto,*) ;;
8407 *) enable_languages="${enable_languages},lto" ;;
8408 esac
1cd0b716 8409 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 8410 configdirs="$configdirs lto-plugin"
d7f09764
DN
8411 fi
8412 fi
8413
426c1eb0
TS
8414 # If we're building an offloading compiler, add the LTO front end.
8415 if test x"$enable_as_accelerator_for" != x ; then
8416 case ,${enable_languages}, in
8417 *,lto,*) ;;
8418 *) enable_languages="${enable_languages},lto" ;;
8419 esac
8420 fi
8421
cdfee50a 8422 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 8423 potential_languages=,c,
55ffb5ed 8424
4da3b0f8
ILT
8425 enabled_target_libs=
8426 disabled_target_libs=
8427
55ffb5ed
NN
8428 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8429 case ${lang_frag} in
8430 ..) ;;
8431 # The odd quoting in the next line works around
8432 # an apparent bug in bash 1.12 on linux.
8433 ${srcdir}/gcc/[*]/config-lang.in) ;;
8434 *)
1c710c3c 8435 # From the config-lang.in, get $language, $target_libs,
2805b53a 8436 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
8437 language=
8438 target_libs=
8439 lang_dirs=
1546bb64 8440 subdir_requires=
e1888513
PB
8441 boot_language=no
8442 build_by_default=yes
d4360477
NS
8443 # set srcdir during sourcing. See above about save & restore
8444 saved_srcdir=${srcdir}
8445 srcdir=${srcdir}/gcc . ${lang_frag}
8446 srcdir=${saved_srcdir}
e1888513
PB
8447 if test x${language} = x; then
8448 echo "${lang_frag} doesn't set \$language." 1>&2
8449 exit 1
8450 fi
8451
78767fd9 8452 if test "$language" = "c++"; then
0823efed 8453 boot_language=yes
00020c16
ILT
8454 fi
8455
178f875a 8456 add_this_lang=no
cdfee50a
NS
8457 # C is always enabled, so no need to add it again
8458 if test "$language" != "c"; then
8459 case ,${enable_languages}, in
8460 *,${language},*)
8461 # Language was explicitly selected; include it
d4a10d0a 8462 add_this_lang=yes
cdfee50a
NS
8463 ;;
8464 *,all,*)
8465 # All languages are enabled
8466 add_this_lang=all
8467 ;;
8468 *,default,*)
8469 # 'default' was selected, select it if it is a default language
178f875a 8470 add_this_lang=${build_by_default}
cdfee50a
NS
8471 ;;
8472 esac
8473 fi
6de9cd9a 8474
1546bb64 8475 # Disable languages that need other directories if these aren't available.
95695ad3 8476 for i in $subdir_requires; do
b6348cb3 8477 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
8478 case ${add_this_lang} in
8479 yes)
1546bb64 8480 # Specifically requested language; tell them.
22e05272 8481 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 8482 ;;
cdfee50a
NS
8483 all)
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8485$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8486 add_this_lang=unsupported
8487 ;;
1546bb64
PB
8488 *)
8489 # Silently disable.
e1888513 8490 add_this_lang=unsupported
1546bb64
PB
8491 ;;
8492 esac
8493 done
8494
e1888513 8495 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
8496 case ${add_this_lang}:${language}:${have_gnat} in
8497 yes:ada:no)
e1888513 8498 # Specifically requested language; tell them.
22e05272 8499 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 8500 ;;
cdfee50a
NS
8501 all:ada:no)
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8503$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8504 add_this_lang=unsupported
8505 ;;
e1888513
PB
8506 *:ada:no)
8507 # Silently disable.
8508 add_this_lang=unsupported
8509 ;;
8510 esac
8511
cdfee50a 8512 # Disable jit if -enable-host-shared not specified
ffac9597
JM
8513 # but not if building for Mingw. All code in Windows
8514 # is position independent code (PIC).
c83027f3
NB
8515 case $target in
8516 *mingw*) ;;
8517 *)
8518 case ${add_this_lang}:${language}:${host_shared} in
8519 yes:jit:no)
8520 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 8521 as_fn_error $? "
cdfee50a
NS
8522Enabling language \"jit\" requires --enable-host-shared.
8523
8524--enable-host-shared typically slows the rest of the compiler down by
8525a few %, so you must explicitly enable it.
8526
8527If you want to build both the jit and the regular compiler, it is often
8528best to do this via two separate configure/builds, in separate
8529directories, to avoid imposing the performance cost of
8530--enable-host-shared on the regular compiler." "$LINENO" 5
c83027f3
NB
8531 ;;
8532 all:jit:no)
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
cdfee50a 8534$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
c83027f3
NB
8535 add_this_lang=unsupported
8536 ;;
8537 *:jit:no)
8538 # Silently disable.
8539 add_this_lang=unsupported
8540 ;;
8541 esac
8542 ;;
8543 esac
cdfee50a
NS
8544
8545 # Disable a language that is unsupported by the target.
8546 case "${add_this_lang}: $unsupported_languages " in
8547 no:*) ;;
8548 unsupported:*) ;;
8549 *:*" $language "*)
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8551$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 8552 add_this_lang=unsupported
4fab7234
HPN
8553 ;;
8554 esac
8555
6de9cd9a 8556 case $add_this_lang in
e1888513 8557 unsupported)
55ffb5ed 8558 # Remove language-dependent dirs.
4da3b0f8
ILT
8559 disabled_target_libs="$disabled_target_libs $target_libs"
8560 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 8561 ;;
e1888513
PB
8562 no)
8563 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
8564 disabled_target_libs="$disabled_target_libs $target_libs"
8565 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
8566 potential_languages="${potential_languages}${language},"
8567 ;;
cdfee50a 8568 all|yes)
e1888513
PB
8569 new_enable_languages="${new_enable_languages}${language},"
8570 potential_languages="${potential_languages}${language},"
2805b53a 8571 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 8572 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
8573 case "${boot_language}:,$enable_stage1_languages," in
8574 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 8575 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
8576 case ",$stage1_languages," in
8577 *,$language,* | ,yes, | ,all,) ;;
8578 *) stage1_languages="${stage1_languages}${language}," ;;
8579 esac
00020c16
ILT
8580 # We need to bootstrap any supporting libraries.
8581 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
8582 ;;
8583 esac
8584 ;;
55ffb5ed
NN
8585 esac
8586 ;;
8587 esac
8588 done
8589
4da3b0f8
ILT
8590 # Add target libraries which are only needed for disabled languages
8591 # to noconfigdirs.
8592 if test -n "$disabled_target_libs"; then
8593 for dir in $disabled_target_libs; do
8594 case " $enabled_target_libs " in
8595 *" ${dir} "*) ;;
8596 *) noconfigdirs="$noconfigdirs $dir" ;;
8597 esac
8598 done
8599 fi
8600
5213506e
RW
8601 # Check whether --enable-stage1-languages was given.
8602if test "${enable_stage1_languages+set}" = set; then :
8603 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
8604 ,no,|,,)
8605 # Set it to something that will have no effect in the loop below
8606 enable_stage1_languages=c ;;
8607 ,yes,)
8608 enable_stage1_languages=`echo $new_enable_languages | \
8609 sed -e "s/^,//" -e "s/,$//" ` ;;
8610 *,all,*)
8611 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8612 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8613 esac
8614
8615 # Add "good" languages from enable_stage1_languages to stage1_languages,
8616 # while "bad" languages go in missing_languages. Leave no duplicates.
8617 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8618 case $potential_languages in
8619 *,$i,*)
8620 case $stage1_languages in
8621 *,$i,*) ;;
8622 *) stage1_languages="$stage1_languages$i," ;;
8623 esac ;;
8624 *)
8625 case $missing_languages in
8626 *,$i,*) ;;
8627 *) missing_languages="$missing_languages$i," ;;
8628 esac ;;
8629 esac
8630 done
5213506e
RW
8631fi
8632
e1888513
PB
8633
8634 # Remove leading/trailing commas that were added for simplicity
8635 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 8636 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
8637 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8638 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8639
55ffb5ed 8640 if test "x$missing_languages" != x; then
22e05272 8641 as_fn_error $? "
0cf085e4 8642The following requested languages could not be built: ${missing_languages}
5213506e 8643Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 8644 fi
55ffb5ed
NN
8645 if test "x$new_enable_languages" != "x$enable_languages"; then
8646 echo The following languages will be built: ${new_enable_languages}
e1888513 8647 enable_languages="$new_enable_languages"
55ffb5ed 8648 fi
e1888513 8649
1c710c3c 8650
b2eaac4a 8651 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
8652fi
8653
27079765
AH
8654# Handle --disable-<component> generically.
8655for dir in $configdirs $build_configdirs $target_configdirs ; do
8656 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
8657 varname=`echo $dirname | sed -e s/+/_/g`
8658 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
8659 noconfigdirs="$noconfigdirs $dir"
8660 fi
8661done
8662
43c40f3e
RO
8663# Check for Boehm's garbage collector
8664# Check whether --enable-objc-gc was given.
8665if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
8666 enableval=$enable_objc_gc;
8667fi
8668
8669
8670# Check whether --with-target-bdw-gc was given.
8671if test "${with_target_bdw_gc+set}" = set; then :
8672 withval=$with_target_bdw_gc;
8673fi
8674
8675
8676# Check whether --with-target-bdw-gc-include was given.
8677if test "${with_target_bdw_gc_include+set}" = set; then :
8678 withval=$with_target_bdw_gc_include;
8679fi
8680
8681
8682# Check whether --with-target-bdw-gc-lib was given.
8683if test "${with_target_bdw_gc_lib+set}" = set; then :
8684 withval=$with_target_bdw_gc_lib;
8685fi
8686
8687
8688case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8690$as_echo_n "checking for bdw garbage collector... " >&6; }
8691 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8693$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
8694 else
8695 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 8696 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 8697 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 8698 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
8699 else
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8701$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8702 fi
8703 fi
43c40f3e
RO
8704esac
8705
5e9d6aa4 8706# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 8707case ,${enable_languages}, in
1007a55c 8708 *,c++,*)
5e9d6aa4 8709 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
8710 case "${noconfigdirs}" in
8711 *target-libstdc++-v3*)
5e9d6aa4 8712 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
8713 ;;
8714 *) ;;
8715 esac
8716 ;;
99776ebd 8717 *)
5e9d6aa4 8718 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
8719 ;;
8720esac
8721
ee6a22df
L
8722# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
8723# $build_configdirs and $target_configdirs.
55ffb5ed
NN
8724# If we have the source for $noconfigdirs entries, add them to $notsupp.
8725
8726notsupp=""
8727for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 8728 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
8729 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8730 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
8731 if test -r $srcdir/$dirname/configure ; then
8732 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8733 true
8734 else
8735 notsupp="$notsupp $dir"
8736 fi
8737 fi
8738 fi
ee6a22df
L
8739 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8740 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
8741 if test -r $srcdir/$dirname/configure ; then
8742 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8743 true
8744 else
8745 notsupp="$notsupp $dir"
8746 fi
8747 fi
8748 fi
55ffb5ed
NN
8749 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8750 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
8751 if test -r $srcdir/$dirname/configure ; then
8752 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8753 true
8754 else
8755 notsupp="$notsupp $dir"
8756 fi
8757 fi
8758 fi
8759done
8760
55ffb5ed
NN
8761# Quietly strip out all directories which aren't configurable in this tree.
8762# This relies on all configurable subdirectories being autoconfiscated, which
8763# is now the case.
23f6b2f9
PB
8764build_configdirs_all="$build_configdirs"
8765build_configdirs=
8766for i in ${build_configdirs_all} ; do
1c710c3c 8767 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
8768 if test -f ${srcdir}/$j/configure ; then
8769 build_configdirs="${build_configdirs} $i"
8770 fi
8771done
8772
55ffb5ed
NN
8773configdirs_all="$configdirs"
8774configdirs=
8775for i in ${configdirs_all} ; do
8776 if test -f ${srcdir}/$i/configure ; then
8777 configdirs="${configdirs} $i"
8778 fi
8779done
23f6b2f9 8780
55ffb5ed
NN
8781target_configdirs_all="$target_configdirs"
8782target_configdirs=
8783for i in ${target_configdirs_all} ; do
1c710c3c 8784 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
8785 if test -f ${srcdir}/$j/configure ; then
8786 target_configdirs="${target_configdirs} $i"
8787 fi
8788done
8789
45b3824d
TS
8790# libiberty-linker-plugin is special: it doesn't have its own source directory,
8791# so we have to add it after the preceding checks.
8792if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
8793then
8794 case " $configdirs " in
8795 *" libiberty "*)
8796 # If we can build libiberty, we can also build libiberty-linker-plugin.
8797 configdirs="$configdirs libiberty-linker-plugin"
8798 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
8799 --with-libiberty=../libiberty-linker-plugin";;
8800 *)
22e05272 8801 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
8802 esac
8803fi
8804
fca38047
TS
8805# Sometimes we have special requirements for the host libiberty.
8806extra_host_libiberty_configure_flags=
1c01ebf6 8807extra_host_zlib_configure_flags=
fca38047
TS
8808case " $configdirs " in
8809 *" lto-plugin "* | *" libcc1 "*)
8810 # When these are to be built as shared libraries, the same applies to
8811 # libiberty.
8812 extra_host_libiberty_configure_flags=--enable-shared
8813 ;;
1c01ebf6
L
8814 *" bfd "*)
8815 # When bfd is to be built as a shared library, the same applies to
8816 # zlib.
8817 if test "$enable_shared" = "yes"; then
8818 extra_host_zlib_configure_flags=--enable-host-shared
8819 fi
8820 ;;
fca38047
TS
8821esac
8822
8823
1c01ebf6 8824
55ffb5ed
NN
8825# Produce a warning message for the subdirs we can't configure.
8826# This isn't especially interesting in the Cygnus tree, but in the individual
8827# FSF releases, it's important to let people know when their machine isn't
8828# supported by the one or two programs in a package.
8829
8830if test -n "${notsupp}" && test -z "${norecursion}" ; then
8831 # If $appdirs is non-empty, at least one of those directories must still
8832 # be configured, or we error out. (E.g., if the gas release supports a
8833 # specified target in some subdirs but not the gas subdir, we shouldn't
8834 # pretend that all is well.)
8835 if test -n "$appdirs" ; then
8836 for dir in $appdirs ; do
8837 if test -r $dir/Makefile.in ; then
8838 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8839 appdirs=""
8840 break
8841 fi
23f6b2f9 8842 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
8843 appdirs=""
8844 break
8845 fi
8846 fi
8847 done
8848 if test -n "$appdirs" ; then
8849 echo "*** This configuration is not supported by this package." 1>&2
8850 exit 1
8851 fi
8852 fi
8853 # Okay, some application will build, or we don't care to check. Still
8854 # notify of subdirs not getting built.
8855 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
8856 echo " ${notsupp}" 1>&2
8857 echo " (Any other directories should still work fine.)" 1>&2
8858fi
8859
8860case "$host" in
8861 *msdosdjgpp*)
8862 enable_gdbtk=no ;;
8863esac
8864
c3a86da9
DJ
8865# To find our prefix, in gcc_cv_tool_prefix.
8866
8867# The user is always right.
8868if test "${PATH_SEPARATOR+set}" != set; then
8869 echo "#! /bin/sh" >conf$$.sh
8870 echo "exit 0" >>conf$$.sh
8871 chmod +x conf$$.sh
8872 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8873 PATH_SEPARATOR=';'
8874 else
8875 PATH_SEPARATOR=:
8876 fi
8877 rm -f conf$$.sh
8878fi
8879
8880
3c36aa6b
JJ
8881 get_gcc_base_ver="cat"
8882
8883# Check whether --with-gcc-major-version-only was given.
8884if test "${with_gcc_major_version_only+set}" = set; then :
8885 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 8886 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
8887 fi
8888
8889fi
8890
8891
8892
8893
8894
c3a86da9
DJ
8895
8896if test "x$exec_prefix" = xNONE; then
8897 if test "x$prefix" = xNONE; then
8898 gcc_cv_tool_prefix=$ac_default_prefix
8899 else
8900 gcc_cv_tool_prefix=$prefix
8901 fi
8902else
8903 gcc_cv_tool_prefix=$exec_prefix
8904fi
8905
8906# If there is no compiler in the tree, use the PATH only. In any
8907# case, if there is no compiler in the tree nobody should use
8908# AS_FOR_TARGET and LD_FOR_TARGET.
8909if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
8910 if test x$with_gcc_major_version_only = xyes ; then
8911 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
8912 else
8913 gcc_version=`cat $srcdir/gcc/BASE-VER`
8914 fi
c3a86da9
DJ
8915 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
8916 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
8917 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
8918 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
8919 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
8920 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
8921else
8922 gcc_cv_tool_dirs=
8923fi
8924
8925if test x$build = x$target && test -n "$md_exec_prefix"; then
8926 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
8927fi
8928
8929
8930
55ffb5ed
NN
8931copy_dirs=
8932
1c710c3c 8933
5213506e
RW
8934# Check whether --with-build-sysroot was given.
8935if test "${with_build_sysroot+set}" = set; then :
8936 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
8937 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
8938 fi
8939else
8940 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 8941fi
526635cb
MM
8942
8943
c8aea42c 8944
5213506e
RW
8945
8946# Check whether --with-debug-prefix-map was given.
8947if test "${with_debug_prefix_map+set}" = set; then :
8948 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
8949 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
8950 for debug_map in $withval; do
8951 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
8952 done
8953 fi
8954else
8955 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
8956fi
8957
c8aea42c
PB
8958
8959
1c8bd6a3
PB
8960# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
8961# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
8962# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
8963# We want to ensure that TARGET libraries (which we know are built with
8964# gcc) are built with "-O2 -g", so include those options when setting
8965# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
8966if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
8967 if test "x${is_cross_compiler}" = xyes; then
8968 CFLAGS_FOR_TARGET="-g -O2"
8969 else
8970 CFLAGS_FOR_TARGET=$CFLAGS
8971 case " $CFLAGS " in
8972 *" -O2 "*) ;;
8973 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
8974 esac
8975 case " $CFLAGS " in
8976 *" -g "* | *" -g3 "*) ;;
8977 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
8978 esac
8979 fi
1c8bd6a3
PB
8980fi
8981
8982
8983if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
8984 if test "x${is_cross_compiler}" = xyes; then
8985 CXXFLAGS_FOR_TARGET="-g -O2"
8986 else
8987 CXXFLAGS_FOR_TARGET=$CXXFLAGS
8988 case " $CXXFLAGS " in
8989 *" -O2 "*) ;;
8990 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
8991 esac
8992 case " $CXXFLAGS " in
8993 *" -g "* | *" -g3 "*) ;;
8994 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
8995 esac
8996 fi
1c8bd6a3
PB
8997fi
8998
8999
6f57bdf6
DK
9000
9001
55ffb5ed
NN
9002# Handle --with-headers=XXX. If the value is not "yes", the contents of
9003# the named directory are copied to $(tooldir)/sys-include.
9004if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9005 if test x${is_cross_compiler} = xno ; then
9006 echo 1>&2 '***' --with-headers is only supported when cross compiling
9007 exit 1
9008 fi
9009 if test x"${with_headers}" != xyes ; then
c3a86da9 9010 x=${gcc_cv_tool_prefix}
1c710c3c 9011 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
9012 fi
9013fi
9014
9015# Handle --with-libs=XXX. If the value is not "yes", the contents of
9016# the name directories are copied to $(tooldir)/lib. Multiple directories
9017# are permitted.
9018if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9019 if test x${is_cross_compiler} = xno ; then
9020 echo 1>&2 '***' --with-libs is only supported when cross compiling
9021 exit 1
9022 fi
9023 if test x"${with_libs}" != xyes ; then
9024 # Copy the libraries in reverse order, so that files in the first named
9025 # library override files in subsequent libraries.
c3a86da9 9026 x=${gcc_cv_tool_prefix}
55ffb5ed 9027 for l in ${with_libs}; do
1c710c3c 9028 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
9029 done
9030 fi
9031fi
9032
d7f09764 9033# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
9034#
9035# This is done by determining whether or not the appropriate directory
9036# is available, and by checking whether or not specific configurations
9037# have requested that this magic not happen.
1c710c3c
DJ
9038#
9039# The command line options always override the explicit settings in
6b1786aa 9040# configure.ac, and the settings in configure.ac override this magic.
e8b05380 9041#
1c710c3c 9042# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 9043# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
9044# --without-gnu-ld options for the configure script. Similarly, if
9045# the default is to use the included zlib and you don't want to do that,
9046# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
9047
9048if test x${use_gnu_as} = x &&
9049 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9050 with_gnu_as=yes
9051 extra_host_args="$extra_host_args --with-gnu-as"
9052fi
9053
9054if test x${use_gnu_ld} = x &&
5afab7ad 9055 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
9056 with_gnu_ld=yes
9057 extra_host_args="$extra_host_args --with-gnu-ld"
9058fi
9059
d7f09764
DN
9060if test x${use_included_zlib} = x &&
9061 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9062 :
9063else
9064 with_system_zlib=yes
9065 extra_host_args="$extra_host_args --with-system-zlib"
9066fi
9067
e8b05380
PB
9068# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9069# can detect this case.
9070
9071if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9072 with_newlib=yes
9073 extra_host_args="$extra_host_args --with-newlib"
9074fi
9075
55ffb5ed
NN
9076# Handle ${copy_dirs}
9077set fnord ${copy_dirs}
9078shift
9079while test $# != 0 ; do
9080 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9081 :
9082 else
9083 echo Copying $1 to $2
9084
9085 # Use the install script to create the directory and all required
9086 # parent directories.
9087 if test -d $2 ; then
9088 :
9089 else
9090 echo >config.temp
9091 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9092 fi
9093
9094 # Copy the directory, assuming we have tar.
9095 # FIXME: Should we use B in the second tar? Not all systems support it.
9096 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9097
9098 # It is the responsibility of the user to correctly adjust all
9099 # symlinks. If somebody can figure out how to handle them correctly
9100 # here, feel free to add the code.
9101
9102 echo $1 > $2/COPIED
9103 fi
9104 shift; shift
9105done
9106
e8b05380
PB
9107# Determine a target-dependent exec_prefix that the installed
9108# gcc will search in. Keep this list sorted by triplet, with
9109# the *-*-osname triplets last.
9110md_exec_prefix=
9111case "${target}" in
30b74385 9112 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
9113 md_exec_prefix=/dev/env/DJDIR/bin
9114 ;;
e8b05380 9115 *-*-hpux* | \
e8b05380 9116 *-*-nto-qnx* | \
6de66370 9117 *-*-solaris2*)
e8b05380
PB
9118 md_exec_prefix=/usr/ccs/bin
9119 ;;
9120esac
9121
671aa708
NN
9122extra_arflags_for_target=
9123extra_nmflags_for_target=
9124extra_ranlibflags_for_target=
9125target_makefile_frag=/dev/null
9126case "${target}" in
58e24147
AM
9127 spu-*-*)
9128 target_makefile_frag="config/mt-spu"
9129 ;;
d896cc4d 9130 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
9131 target_makefile_frag="config/mt-sde"
9132 ;;
1ec3b87b
RS
9133 mipsisa*-*-elfoabi*)
9134 target_makefile_frag="config/mt-mips-elfoabi"
9135 ;;
08d0963a
RS
9136 mips*-*-*linux* | mips*-*-gnu*)
9137 target_makefile_frag="config/mt-mips-gnu"
9138 ;;
707f1839
SL
9139 nios2-*-elf*)
9140 target_makefile_frag="config/mt-nios2-elf"
9141 ;;
76052545
EB
9142 *-*-linux-android*)
9143 target_makefile_frag="config/mt-android"
9144 ;;
416ac4d4 9145 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 9146 target_makefile_frag="config/mt-gnu"
671aa708
NN
9147 ;;
9148 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 9149 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
9150 # commands to handle both 32-bit and 64-bit objects. These flags are
9151 # harmless if we're using GNU nm or ar.
9152 extra_arflags_for_target=" -X32_64"
9153 extra_nmflags_for_target=" -B -X32_64"
9154 ;;
671aa708
NN
9155esac
9156
9157alphaieee_frag=/dev/null
9158case $target in
9159 alpha*-*-*)
9160 # This just makes sure to use the -mieee option to build target libs.
9161 # This should probably be set individually by each library.
9162 alphaieee_frag="config/mt-alphaieee"
9163 ;;
9164esac
9165
9166# If --enable-target-optspace always use -Os instead of -O2 to build
9167# the target libraries, similarly if it is not specified, use -Os
9168# on selected platforms.
9169ospace_frag=/dev/null
9170case "${enable_target_optspace}:${target}" in
9171 yes:*)
9172 ospace_frag="config/mt-ospace"
9173 ;;
9174 :d30v-*)
9175 ospace_frag="config/mt-d30v"
9176 ;;
d9063947 9177 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
9178 ospace_frag="config/mt-ospace"
9179 ;;
9180 no:* | :*)
9181 ;;
9182 *)
9183 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9184 ;;
9185esac
9186
671aa708
NN
9187# Some systems (e.g., one of the i386-aix systems the gas testers are
9188# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 9189tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
9190build_tooldir=${tooldir}
9191
671aa708
NN
9192# Create a .gdbinit file which runs the one in srcdir
9193# and tells GDB to look there for source files.
9194
9195if test -r ${srcdir}/.gdbinit ; then
9196 case ${srcdir} in
9197 .) ;;
9198 *) cat > ./.gdbinit <<EOF
9199# ${NO_EDIT}
9200dir ${srcdir}
9201dir .
9202source ${srcdir}/.gdbinit
9203EOF
9204 ;;
9205 esac
9206fi
9207
671aa708
NN
9208# Make sure that the compiler is able to generate an executable. If it
9209# can't, we are probably in trouble. We don't care whether we can run the
9210# executable--we might be using a cross compiler--we only care whether it
9211# can be created. At this point the main configure script has set CC.
9212we_are_ok=no
9213echo "int main () { return 0; }" > conftest.c
9214${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9215if test $? = 0 ; then
9216 if test -s conftest || test -s conftest.exe ; then
9217 we_are_ok=yes
9218 fi
1c710c3c 9219fi
671aa708
NN
9220case $we_are_ok in
9221 no)
9222 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9223 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9224 rm -f conftest*
9225 exit 1
9226 ;;
9227esac
9228rm -f conftest*
9229
d89f0ad6 9230# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
9231case "${host}" in
9232 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 9233 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 9234 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
9235 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9236esac
9237
d89f0ad6
AL
9238# On systems where the dynamic library environment variable is PATH,
9239# gcc/ will put dynamic libraries into a subdirectory to avoid adding
9240# built executables to PATH.
9241if test "$RPATH_ENVVAR" = PATH; then
9242 GCC_SHLIB_SUBDIR=/shlib
9243else
9244 GCC_SHLIB_SUBDIR=
9245fi
9246
beeda1d9
JJ
9247# Adjust the toplevel makefile according to whether bootstrap was selected.
9248case $enable_bootstrap in
9249 yes)
9250 bootstrap_suffix=bootstrap
9251 BUILD_CONFIG=bootstrap-debug
9252 ;;
9253 no)
9254 bootstrap_suffix=no-bootstrap
9255 BUILD_CONFIG=
9256 ;;
9257esac
9258
9259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9260$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9261
9262
9263# Check whether --with-build-config was given.
9264if test "${with_build_config+set}" = set; then :
9265 withval=$with_build_config; case $with_build_config in
9266 yes) with_build_config= ;;
9267 no) with_build_config= BUILD_CONFIG= ;;
9268 esac
9269fi
9270
9271
9272if test "x${with_build_config}" != x; then
9273 BUILD_CONFIG=$with_build_config
9274else
9275 case $BUILD_CONFIG in
9276 bootstrap-debug)
9277 if echo "int f (void) { return 0; }" > conftest.c &&
9278 ${CC} -c conftest.c &&
9279 mv conftest.o conftest.o.g0 &&
9280 ${CC} -c -g conftest.c &&
9281 mv conftest.o conftest.o.g &&
9282 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9283 :
9284 else
9285 BUILD_CONFIG=
9286 fi
9287 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9288 ;;
9289 esac
9290fi
9291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9292$as_echo "$BUILD_CONFIG" >&6; }
9293
9294
9295# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9297$as_echo_n "checking for --enable-vtable-verify... " >&6; }
9298# Check whether --enable-vtable-verify was given.
9299if test "${enable_vtable_verify+set}" = set; then :
9300 enableval=$enable_vtable_verify; case "$enableval" in
9301 yes) enable_vtable_verify=yes ;;
9302 no) enable_vtable_verify=no ;;
9303 *) enable_vtable_verify=no;;
9304 esac
9305else
9306 enable_vtable_verify=no
9307fi
9308
9309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9310$as_echo "$enable_vtable_verify" >&6; }
9311
671aa708
NN
9312# Record target_configdirs and the configure arguments for target and
9313# build configuration in Makefile.
9314target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 9315build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 9316bootstrap_fixincludes=no
671aa708 9317
ad1e5170
JR
9318# If we are building libgomp, bootstrap it.
9319if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9320 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9321fi
9322
beeda1d9
JJ
9323# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9324# or bootstrap-ubsan, bootstrap it.
9325if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9326 case "$BUILD_CONFIG" in
170e618e 9327 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
beeda1d9 9328 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 9329 bootstrap_fixincludes=yes
beeda1d9
JJ
9330 ;;
9331 esac
ac8701fe
L
9332fi
9333
beeda1d9
JJ
9334# If we are building libvtv and --enable-vtable-verify, bootstrap it.
9335if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9336 test "$enable_vtable_verify" != no; then
2077db1b
CT
9337 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9338fi
9339
671aa708
NN
9340# Determine whether gdb needs tk/tcl or not.
9341# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9342# and in that case we want gdb to be built without tk. Ugh!
9343# In fact I believe gdb is the *only* package directly dependent on tk,
9344# so we should be able to put the 'maybe's in unconditionally and
9345# leave out the maybe dependencies when enable_gdbtk is false. I'm not
9346# 100% sure that that's safe though.
e914a571 9347
b4f96efe 9348gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
9349case "$enable_gdbtk" in
9350 no)
9351 GDB_TK="" ;;
e914a571
AC
9352 yes)
9353 GDB_TK="${gdb_tk}" ;;
671aa708 9354 *)
e914a571
AC
9355 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9356 # distro. Eventually someone will fix this and move Insight, nee
9357 # gdbtk to a separate directory.
9358 if test -d ${srcdir}/gdb/gdbtk ; then
9359 GDB_TK="${gdb_tk}"
9360 else
9361 GDB_TK=""
9362 fi
9363 ;;
671aa708 9364esac
ef9db8d5
DJ
9365CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9366INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 9367
f9d09df0
TT
9368# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9369# else does, only include them if one of these is built. The Makefile
9370# provides the ordering, so it's enough here to add to the list.
9371case " ${configdirs} " in
9372 *\ gdb\ *)
9373 configdirs="${configdirs} gnulib gdbsupport"
9374 ;;
9375 *\ gdbserver\ *)
9376 configdirs="${configdirs} gnulib gdbsupport"
9377 ;;
9378esac
98e5be21 9379
60975492 9380# Strip out unwanted targets.
8b87bb96
NN
9381
9382# While at that, we remove Makefiles if we were started for recursive
9383# configuration, so that the top-level Makefile reconfigures them,
9384# like we used to do when configure itself was recursive.
8b87bb96 9385
3e54529c
RW
9386# Loop over modules. We used to use the "$extrasub" feature from Autoconf
9387# but now we're fixing up the Makefile ourselves with the additional
9388# commands passed to AC_CONFIG_FILES. Use separate variables
9389# extrasub-{build,host,target} not because there is any reason to split
9390# the substitutions up that way, but only to remain below the limit of
9391# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
9392
9393# Do not nest @if/@endif or @unless/@endunless pairs, because
9394# configure will not warn you at all.
8b87bb96 9395
79cd2b23
RW
9396case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9397 yes:yes:*\ gold\ *:*,c++,*) ;;
9398 yes:yes:*\ gold\ *:*)
22e05272 9399 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
9400 ;;
9401esac
9402
3e54529c 9403extrasub_build=
23f6b2f9 9404for module in ${build_configdirs} ; do
5607edfd
PB
9405 if test -z "${no_recursion}" \
9406 && test -f ${build_subdir}/${module}/Makefile; then
9407 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9408 rm -f ${build_subdir}/${module}/Makefile
9409 fi
3e54529c 9410 extrasub_build="$extrasub_build
5607edfd
PB
9411/^@if build-$module\$/d
9412/^@endif build-$module\$/d
da34ca3f 9413/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 9414/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
9415/^@endif build-$module-$bootstrap_suffix\$/d
9416/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 9417done
3e54529c 9418extrasub_host=
5607edfd 9419for module in ${configdirs} ; do
a6fbc1e2 9420 if test -z "${no_recursion}"; then
f063a9ed 9421 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
9422 if test -f ${file}; then
9423 echo 1>&2 "*** removing ${file} to force reconfigure"
9424 rm -f ${file}
9425 fi
9426 done
5607edfd 9427 fi
9e1c8fc1
JJ
9428 case ${module},${bootstrap_fixincludes} in
9429 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9430 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9431 esac
3e54529c 9432 extrasub_host="$extrasub_host
5607edfd
PB
9433/^@if $module\$/d
9434/^@endif $module\$/d
da34ca3f 9435/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 9436/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
9437/^@endif $module-$host_bootstrap_suffix\$/d
9438/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 9439done
3e54529c 9440extrasub_target=
5607edfd
PB
9441for module in ${target_configdirs} ; do
9442 if test -z "${no_recursion}" \
9443 && test -f ${target_subdir}/${module}/Makefile; then
9444 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9445 rm -f ${target_subdir}/${module}/Makefile
9446 fi
00020c16
ILT
9447
9448 # We only bootstrap target libraries listed in bootstrap_target_libs.
9449 case $bootstrap_target_libs in
9450 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9451 *) target_bootstrap_suffix=no-bootstrap ;;
9452 esac
9453
3e54529c 9454 extrasub_target="$extrasub_target
5607edfd
PB
9455/^@if target-$module\$/d
9456/^@endif target-$module\$/d
da34ca3f 9457/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 9458/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
9459/^@endif target-$module-$target_bootstrap_suffix\$/d
9460/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
9461done
9462
3e54529c
RW
9463# Do the final fixup along with target modules.
9464extrasub_target="$extrasub_target
da34ca3f
AO
9465/^@if /,/^@endif /d
9466/^@unless /d
9467/^@endunless /d"
671aa708
NN
9468
9469# Create the serialization dependencies. This uses a temporary file.
9470
5213506e
RW
9471# Check whether --enable-serial-configure was given.
9472if test "${enable_serial_configure+set}" = set; then :
9473 enableval=$enable_serial_configure;
9474fi
ade82b16
AO
9475
9476
bf1d3e81
NN
9477case ${enable_serial_configure} in
9478 yes)
9479 enable_serial_build_configure=yes
9480 enable_serial_host_configure=yes
9481 enable_serial_target_configure=yes
9482 ;;
9483esac
9484
671aa708
NN
9485# These force 'configure's to be done one at a time, to avoid problems
9486# with contention over a shared config.cache.
9487rm -f serdep.tmp
ade82b16 9488echo '# serdep.tmp' > serdep.tmp
671aa708 9489olditem=
bf1d3e81 9490test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
9491for item in ${build_configdirs} ; do
9492 case ${olditem} in
9493 "") ;;
ade82b16 9494 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
9495 esac
9496 olditem=${item}
9497done
9498olditem=
bf1d3e81 9499test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
9500for item in ${configdirs} ; do
9501 case ${olditem} in
9502 "") ;;
ade82b16 9503 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
9504 esac
9505 olditem=${item}
9506done
9507olditem=
bf1d3e81 9508test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
9509for item in ${target_configdirs} ; do
9510 case ${olditem} in
9511 "") ;;
ade82b16 9512 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
9513 esac
9514 olditem=${item}
9515done
9516serialization_dependencies=serdep.tmp
9517
9518
ade82b16 9519# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 9520# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
9521# might not want to pass down to subconfigures. The exception being
9522# --cache-file=/dev/null, which is used to turn off the use of cache
9523# files altogether, and which should be passed on to subconfigures.
9524# Also strip program-prefix, program-suffix, and program-transform-name,
9525# so that we can pass down a consistent program-transform-name.
1c710c3c 9526baseargs=
29a63921 9527tbaseargs=
1c710c3c
DJ
9528keep_next=no
9529skip_next=no
9530eval "set -- $ac_configure_args"
44bfc3ac
DJ
9531for ac_arg
9532do
1c710c3c
DJ
9533 if test X"$skip_next" = X"yes"; then
9534 skip_next=no
9535 continue
9536 fi
9537 if test X"$keep_next" = X"yes"; then
9538 case $ac_arg in
9539 *\'*)
9540 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9541 esac
9542 baseargs="$baseargs '$ac_arg'"
29a63921 9543 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
9544 keep_next=no
9545 continue
9546 fi
9547
9548 # Handle separated arguments. Based on the logic generated by
9549 # autoconf 2.59.
9550 case $ac_arg in
9551 *=* | --config-cache | -C | -disable-* | --disable-* \
9552 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9553 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9554 | -with-* | --with-* | -without-* | --without-* | --x)
9555 separate_arg=no
9556 ;;
9557 -*)
9558 separate_arg=yes
9559 ;;
9560 *)
9561 separate_arg=no
9562 ;;
9563 esac
9564
29a63921
AO
9565 skip_targ=no
9566 case $ac_arg in
9567
9568 --with-* | --without-*)
9569 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9570
9571 case $libopt in
9572 *[-_]include)
9573 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9574 ;;
9575 *[-_]lib)
9576 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9577 ;;
9578 *)
9579 lib=$libopt
9580 ;;
9581 esac
9582
9583
9584 case $lib in
4a9bb2aa 9585 mpc | mpfr | gmp | isl)
29a63921
AO
9586 # If we're processing --with-$lib, --with-$lib-include or
9587 # --with-$lib-lib, for one of the libs above, and target is
9588 # different from host, don't pass the current argument to any
9589 # target library's configure.
9590 if test x$is_cross_compiler = xyes; then
9591 skip_targ=yes
9592 fi
9593 ;;
9594 esac
9595 ;;
9596 esac
9597
1c710c3c 9598 case "$ac_arg" in
f1a036e4
NC
9599 --cache-file=/dev/null | \
9600 -cache-file=/dev/null )
9601 # Handled here to avoid the test to skip args below.
9602 baseargs="$baseargs '$ac_arg'"
29a63921 9603 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
9604 # Assert: $separate_arg should always be no.
9605 keep_next=$separate_arg
9606 ;;
1c710c3c
DJ
9607 --no*)
9608 continue
9609 ;;
9610 --c* | \
9611 --sr* | \
9612 --ho* | \
9613 --bu* | \
9614 --t* | \
9615 --program-* | \
9616 -cache_file* | \
9617 -srcdir* | \
9618 -host* | \
9619 -build* | \
9620 -target* | \
9621 -program-prefix* | \
9622 -program-suffix* | \
9623 -program-transform-name* )
9624 skip_next=$separate_arg
9625 continue
9626 ;;
9627 -*)
9628 # An option. Add it.
9629 case $ac_arg in
9630 *\'*)
9631 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9632 esac
9633 baseargs="$baseargs '$ac_arg'"
29a63921
AO
9634 if test X"$skip_targ" = Xno; then
9635 tbaseargs="$tbaseargs '$ac_arg'"
9636 fi
1c710c3c
DJ
9637 keep_next=$separate_arg
9638 ;;
9639 *)
9640 # Either a variable assignment, or a nonopt (triplet). Don't
9641 # pass it down; let the Makefile handle this.
9642 continue
9643 ;;
9644 esac
9645done
9646# Remove the initial space we just introduced and, as these will be
9647# expanded by make, quote '$'.
9648baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 9649
43bb47c2
DJ
9650# Add in --program-transform-name, after --program-prefix and
9651# --program-suffix have been applied to it. Autoconf has already
9652# doubled dollar signs and backslashes in program_transform_name; we want
9653# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 9654# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
9655# Also, because we want to override the logic in subdir configure scripts to
9656# choose program_transform_name, replace any s,x,x, with s,y,y,.
9657sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9658${program_transform_name}
9659EOF_SED
9660gcc_transform_name=`cat conftestsed.out`
9661rm -f conftestsed.out
9662baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 9663tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
9664if test "$silent" = yes; then
9665 baseargs="$baseargs --silent"
29a63921 9666 tbaseargs="$tbaseargs --silent"
d9acb717 9667fi
0115d4a3 9668baseargs="$baseargs --disable-option-checking"
29a63921 9669tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 9670
ffedf511
RW
9671# Record and document user additions to sub configure arguments.
9672
9673
9674
9675
671aa708
NN
9676# For the build-side libraries, we just need to pretend we're native,
9677# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
9678# desired. We can't even use the same cache file for all build-side
9679# libraries, as they're compiled differently; some with C, some with
9680# C++ or with different feature-enabling options.
9681build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
9682
9683# For host modules, accept cache file option, or specification as blank.
9684case "${cache_file}" in
9685"") # empty
9686 cache_file_option="" ;;
9687/* | [A-Za-z]:[\\/]* ) # absolute path
9688 cache_file_option="--cache-file=${cache_file}" ;;
9689*) # relative path
9690 cache_file_option="--cache-file=../${cache_file}" ;;
9691esac
9692
09438bde
NN
9693# Host dirs don't like to share a cache file either, horribly enough.
9694# This seems to be due to autoconf 2.5x stupidity.
ffedf511 9695host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 9696
29a63921 9697target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
9698
9699# Passing a --with-cross-host argument lets the target libraries know
9700# whether they are being built with a cross-compiler or being built
9701# native. However, it would be better to use other mechanisms to make the
9702# sorts of decisions they want to make on this basis. Please consider
9703# this option to be deprecated. FIXME.
9704if test x${is_cross_compiler} = xyes ; then
1c710c3c 9705 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
9706fi
9707
79e0604d
FXC
9708# Special user-friendly check for native x86_64-linux build, if
9709# multilib is not explicitly enabled.
9710case "$target:$have_compiler:$host:$target:$enable_multilib" in
9711 x86_64-*linux*:yes:$build:$build:)
e640447c 9712 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
9713 dev64=no
9714 echo "int main () { return 0; }" > conftest.c
9715 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9716 if test $? = 0 ; then
9717 if test -s conftest || test -s conftest.exe ; then
9718 dev64=yes
9719 fi
9720 fi
9721 rm -f conftest*
9722 if test x${dev64} != xyes ; then
22e05272 9723 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
9724 fi
9725 ;;
9726esac
9727
dc683a3f
RW
9728# Default to --enable-multilib.
9729if test x${enable_multilib} = x ; then
671aa708 9730 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 9731fi
671aa708
NN
9732
9733# Pass --with-newlib if appropriate. Note that target_configdirs has
9734# changed from the earlier setting of with_newlib.
9735if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
9736 target_configargs="--with-newlib ${target_configargs}"
9737fi
9738
6b9eb62c
NN
9739# Different target subdirs use different values of certain variables
9740# (notably CXX). Worse, multilibs use *lots* of different values.
9741# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
9742# it doesn't automatically accept command-line overrides of them.
9743# This means it's not safe for target subdirs to share a cache file,
9744# which is disgusting, but there you have it. Hopefully this can be
9745# fixed in future. It's still worthwhile to use a cache file for each
9746# directory. I think.
9747
bebcd931
MS
9748# Pass the appropriate --build, --host, --target and --cache-file arguments.
9749# We need to pass --target, as newer autoconf's requires consistency
9750# for target_alias and gcc doesn't manage it consistently.
e69bf64b 9751target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 9752
671aa708
NN
9753FLAGS_FOR_TARGET=
9754case " $target_configdirs " in
9755 *" newlib "*)
9756 case " $target_configargs " in
9757 *" --with-newlib "*)
9758 case "$target" in
5d571eaa 9759 *-cygwin*)
443e6238 9760 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 9761 ;;
671aa708
NN
9762 esac
9763
9764 # If we're not building GCC, don't discard standard headers.
9765 if test -d ${srcdir}/gcc; then
9766 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
9767
9768 if test "${build}" != "${host}"; then
9769 # On Canadian crosses, CC_FOR_TARGET will have already been set
9770 # by `configure', so we won't have an opportunity to add -Bgcc/
9771 # to it. This is right: we don't want to search that directory
9772 # for binaries, but we want the header files in there, so add
9773 # them explicitly.
0463992b 9774 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
9775
9776 # Someone might think of using the pre-installed headers on
9777 # Canadian crosses, in case the installed compiler is not fully
9778 # compatible with the compiler being built. In this case, it
9779 # would be better to flag an error than risking having
9780 # incompatible object files being constructed. We can't
9781 # guarantee that an error will be flagged, but let's hope the
9782 # compiler will do it, when presented with incompatible header
9783 # files.
9784 fi
9785 fi
9786
9787 case "${target}-${is_cross_compiler}" in
f2a0e225 9788 i[3456789]86-*-linux*-no)
671aa708
NN
9789 # Here host == target, so we don't need to build gcc,
9790 # so we don't want to discard standard headers.
9791 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
9792 ;;
9793 *)
9794 # If we're building newlib, use its generic headers last, but search
9795 # for any libc-related directories first (so make it the last -B
9796 # switch).
9797 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
9798
9799 # If we're building libgloss, find the startup file, simulator library
9800 # and linker script.
9801 case " $target_configdirs " in
9802 *" libgloss "*)
9803 # Look for startup file, simulator library and maybe linker script.
9804 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
9805 # Look for libnosys.a in case the target needs it.
9806 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
9807 # Most targets have the linker script in the source directory.
9808 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
9809 ;;
9810 esac
671aa708
NN
9811 ;;
9812 esac
9813 ;;
9814 esac
9815 ;;
9816esac
5d571eaa 9817
b91f0a41 9818case "$target" in
5d571eaa
OS
9819 x86_64-*mingw* | *-w64-mingw*)
9820 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
9821 # however, use a symlink named 'mingw' in ${prefix} .
9822 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
9823 ;;
9824 *-mingw*)
9825 # MinGW can't be handled as Cygwin above since it does not use newlib.
9826 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'
9827 ;;
b91f0a41 9828esac
671aa708 9829
6691a79e
ME
9830# Allow the user to override the flags for
9831# our build compiler if desired.
f019adc1
MF
9832if test x"${build}" = x"${host}" ; then
9833 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
9834 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
9835 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
9836fi
6691a79e 9837
671aa708
NN
9838# On Canadian crosses, we'll be searching the right directories for
9839# the previously-installed cross compiler, so don't bother to add
9840# flags for directories within the install tree of the compiler
9841# being built; programs in there won't even run.
9842if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
9843 # Search for pre-installed headers if nothing else fits.
9124bc53 9844 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
9845fi
9846
9847if test "x${use_gnu_ld}" = x &&
9848 echo " ${configdirs} " | grep " ld " > /dev/null ; then
9849 # Arrange for us to find uninstalled linker scripts.
215c351a 9850 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
9851fi
9852
e88a2c09
DD
9853# Search for other target-specific linker scripts and such.
9854case "${target}" in
3e19841a
PB
9855 mep*)
9856 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
9857 ;;
e88a2c09
DD
9858esac
9859
671aa708 9860# Makefile fragments.
7b61653a
PE
9861for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
9862do
9863 eval fragval=\$$frag
9864 if test $fragval != /dev/null; then
9865 eval $frag=${srcdir}/$fragval
9866 fi
9867done
671aa708
NN
9868
9869
9870
9871
9872
9873# Miscellanea: directories, flags, etc.
9874
9875
9876
9877
9878
9879
9880
d89f0ad6 9881
23f6b2f9 9882# Build module lists & subconfigure args.
671aa708
NN
9883
9884
9885
2abefe3d
PB
9886# Host module lists & subconfigure args.
9887
9888
9889
aae29963 9890
2abefe3d
PB
9891# Target module lists & subconfigure args.
9892
9893
9894
9895# Build tools.
9896
9897
9898
0999159b
PB
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
b4c522fa 9912
10abab41 9913
67d7ab01
IS
9914
9915
2abefe3d
PB
9916# Generate default definitions for YACC, M4, LEX and other programs that run
9917# on the build machine. These are used if the Makefile can't locate these
9918# programs in objdir.
9919MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
9920
9921for ac_prog in 'bison -y' byacc yacc
9922do
1c710c3c 9923 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 9924set dummy $ac_prog; ac_word=$2
5213506e
RW
9925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9926$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9927if ${ac_cv_prog_YACC+:} false; then :
5213506e 9928 $as_echo_n "(cached) " >&6
2abefe3d
PB
9929else
9930 if test -n "$YACC"; then
9931 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9932else
1c710c3c
DJ
9933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9934for as_dir in $PATH
9935do
9936 IFS=$as_save_IFS
9937 test -z "$as_dir" && as_dir=.
5213506e 9938 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9940 ac_cv_prog_YACC="$ac_prog"
5213506e 9941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9942 break 2
9943 fi
9944done
5213506e
RW
9945 done
9946IFS=$as_save_IFS
1c710c3c 9947
2abefe3d
PB
9948fi
9949fi
1c710c3c 9950YACC=$ac_cv_prog_YACC
2abefe3d 9951if test -n "$YACC"; then
5213506e
RW
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
9953$as_echo "$YACC" >&6; }
2abefe3d 9954else
5213506e
RW
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956$as_echo "no" >&6; }
2abefe3d
PB
9957fi
9958
5213506e 9959
1c710c3c 9960 test -n "$YACC" && break
2abefe3d
PB
9961done
9962test -n "$YACC" || YACC="$MISSING bison -y"
9963
9964case " $build_configdirs " in
9965 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
9966esac
9967
9968for ac_prog in bison
9969do
1c710c3c 9970 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 9971set dummy $ac_prog; ac_word=$2
5213506e
RW
9972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9973$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9974if ${ac_cv_prog_BISON+:} false; then :
5213506e 9975 $as_echo_n "(cached) " >&6
2abefe3d
PB
9976else
9977 if test -n "$BISON"; then
9978 ac_cv_prog_BISON="$BISON" # Let the user override the test.
9979else
1c710c3c
DJ
9980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981for as_dir in $PATH
9982do
9983 IFS=$as_save_IFS
9984 test -z "$as_dir" && as_dir=.
5213506e 9985 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9987 ac_cv_prog_BISON="$ac_prog"
5213506e 9988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9989 break 2
9990 fi
9991done
5213506e
RW
9992 done
9993IFS=$as_save_IFS
1c710c3c 9994
2abefe3d
PB
9995fi
9996fi
1c710c3c 9997BISON=$ac_cv_prog_BISON
2abefe3d 9998if test -n "$BISON"; then
5213506e
RW
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10000$as_echo "$BISON" >&6; }
2abefe3d 10001else
5213506e
RW
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10003$as_echo "no" >&6; }
2abefe3d
PB
10004fi
10005
5213506e 10006
1c710c3c 10007 test -n "$BISON" && break
2abefe3d
PB
10008done
10009test -n "$BISON" || BISON="$MISSING bison"
10010
10011case " $build_configdirs " in
10012 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10013esac
10014
10015for ac_prog in gm4 gnum4 m4
10016do
1c710c3c 10017 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10018set dummy $ac_prog; ac_word=$2
5213506e
RW
10019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10021if ${ac_cv_prog_M4+:} false; then :
5213506e 10022 $as_echo_n "(cached) " >&6
2abefe3d
PB
10023else
10024 if test -n "$M4"; then
10025 ac_cv_prog_M4="$M4" # Let the user override the test.
10026else
1c710c3c
DJ
10027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028for as_dir in $PATH
10029do
10030 IFS=$as_save_IFS
10031 test -z "$as_dir" && as_dir=.
5213506e 10032 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10034 ac_cv_prog_M4="$ac_prog"
5213506e 10035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10036 break 2
10037 fi
10038done
5213506e
RW
10039 done
10040IFS=$as_save_IFS
1c710c3c 10041
2abefe3d
PB
10042fi
10043fi
1c710c3c 10044M4=$ac_cv_prog_M4
2abefe3d 10045if test -n "$M4"; then
5213506e
RW
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10047$as_echo "$M4" >&6; }
2abefe3d 10048else
5213506e
RW
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10050$as_echo "no" >&6; }
2abefe3d
PB
10051fi
10052
5213506e 10053
1c710c3c 10054 test -n "$M4" && break
2abefe3d
PB
10055done
10056test -n "$M4" || M4="$MISSING m4"
10057
10058case " $build_configdirs " in
10059 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10060esac
10061
10062for ac_prog in flex lex
10063do
1c710c3c 10064 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10065set dummy $ac_prog; ac_word=$2
5213506e
RW
10066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10067$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10068if ${ac_cv_prog_LEX+:} false; then :
5213506e 10069 $as_echo_n "(cached) " >&6
2abefe3d
PB
10070else
10071 if test -n "$LEX"; then
10072 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10073else
1c710c3c
DJ
10074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075for as_dir in $PATH
10076do
10077 IFS=$as_save_IFS
10078 test -z "$as_dir" && as_dir=.
5213506e 10079 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10081 ac_cv_prog_LEX="$ac_prog"
5213506e 10082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10083 break 2
10084 fi
10085done
5213506e
RW
10086 done
10087IFS=$as_save_IFS
1c710c3c 10088
2abefe3d
PB
10089fi
10090fi
1c710c3c 10091LEX=$ac_cv_prog_LEX
2abefe3d 10092if test -n "$LEX"; then
5213506e
RW
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10094$as_echo "$LEX" >&6; }
2abefe3d 10095else
5213506e
RW
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097$as_echo "no" >&6; }
2abefe3d
PB
10098fi
10099
5213506e 10100
1c710c3c 10101 test -n "$LEX" && break
2abefe3d
PB
10102done
10103test -n "$LEX" || LEX="$MISSING flex"
10104
10105case " $build_configdirs " in
10106 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10107 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10108esac
10109
10110for ac_prog in flex
10111do
1c710c3c 10112 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10113set dummy $ac_prog; ac_word=$2
5213506e
RW
10114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10115$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10116if ${ac_cv_prog_FLEX+:} false; then :
5213506e 10117 $as_echo_n "(cached) " >&6
2abefe3d
PB
10118else
10119 if test -n "$FLEX"; then
10120 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10121else
1c710c3c
DJ
10122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10123for as_dir in $PATH
10124do
10125 IFS=$as_save_IFS
10126 test -z "$as_dir" && as_dir=.
5213506e 10127 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10129 ac_cv_prog_FLEX="$ac_prog"
5213506e 10130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10131 break 2
10132 fi
10133done
5213506e
RW
10134 done
10135IFS=$as_save_IFS
1c710c3c 10136
2abefe3d
PB
10137fi
10138fi
1c710c3c 10139FLEX=$ac_cv_prog_FLEX
2abefe3d 10140if test -n "$FLEX"; then
5213506e
RW
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10142$as_echo "$FLEX" >&6; }
2abefe3d 10143else
5213506e
RW
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145$as_echo "no" >&6; }
2abefe3d
PB
10146fi
10147
5213506e 10148
1c710c3c 10149 test -n "$FLEX" && break
2abefe3d
PB
10150done
10151test -n "$FLEX" || FLEX="$MISSING flex"
10152
10153case " $build_configdirs " in
10154 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10155esac
10156
10157for ac_prog in makeinfo
10158do
1c710c3c 10159 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10160set dummy $ac_prog; ac_word=$2
5213506e
RW
10161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10162$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10163if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 10164 $as_echo_n "(cached) " >&6
2abefe3d
PB
10165else
10166 if test -n "$MAKEINFO"; then
10167 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10168else
1c710c3c
DJ
10169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10170for as_dir in $PATH
10171do
10172 IFS=$as_save_IFS
10173 test -z "$as_dir" && as_dir=.
5213506e 10174 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10176 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 10177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10178 break 2
10179 fi
10180done
5213506e
RW
10181 done
10182IFS=$as_save_IFS
1c710c3c 10183
2abefe3d
PB
10184fi
10185fi
1c710c3c 10186MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 10187if test -n "$MAKEINFO"; then
5213506e
RW
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10189$as_echo "$MAKEINFO" >&6; }
2abefe3d 10190else
5213506e
RW
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10192$as_echo "no" >&6; }
2abefe3d
PB
10193fi
10194
5213506e 10195
1c710c3c 10196 test -n "$MAKEINFO" && break
2abefe3d
PB
10197done
10198test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10199
10200case " $build_configdirs " in
10201 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10202 *)
10203
d18ff35a 10204 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
10205 # higher, else we use the "missing" dummy.
10206 if ${MAKEINFO} --version \
d18ff35a 10207 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
10208 :
10209 else
10210 MAKEINFO="$MISSING makeinfo"
10211 fi
10212 ;;
10213
10214esac
671aa708 10215
2abefe3d 10216# FIXME: expect and dejagnu may become build tools?
671aa708 10217
2abefe3d
PB
10218for ac_prog in expect
10219do
1c710c3c 10220 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10221set dummy $ac_prog; ac_word=$2
5213506e
RW
10222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10224if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 10225 $as_echo_n "(cached) " >&6
2abefe3d
PB
10226else
10227 if test -n "$EXPECT"; then
10228 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10229else
1c710c3c
DJ
10230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231for as_dir in $PATH
10232do
10233 IFS=$as_save_IFS
10234 test -z "$as_dir" && as_dir=.
5213506e 10235 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10237 ac_cv_prog_EXPECT="$ac_prog"
5213506e 10238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10239 break 2
10240 fi
10241done
5213506e
RW
10242 done
10243IFS=$as_save_IFS
1c710c3c 10244
2abefe3d
PB
10245fi
10246fi
1c710c3c 10247EXPECT=$ac_cv_prog_EXPECT
2abefe3d 10248if test -n "$EXPECT"; then
5213506e
RW
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10250$as_echo "$EXPECT" >&6; }
2abefe3d 10251else
5213506e
RW
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253$as_echo "no" >&6; }
2abefe3d 10254fi
671aa708 10255
5213506e 10256
1c710c3c 10257 test -n "$EXPECT" && break
2abefe3d
PB
10258done
10259test -n "$EXPECT" || EXPECT="expect"
671aa708 10260
2abefe3d
PB
10261case " $configdirs " in
10262 *" expect "*)
10263 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10264 ;;
10265esac
671aa708 10266
2abefe3d
PB
10267for ac_prog in runtest
10268do
1c710c3c 10269 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10270set dummy $ac_prog; ac_word=$2
5213506e
RW
10271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10272$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10273if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 10274 $as_echo_n "(cached) " >&6
2abefe3d
PB
10275else
10276 if test -n "$RUNTEST"; then
10277 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 10278else
1c710c3c
DJ
10279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280for as_dir in $PATH
10281do
10282 IFS=$as_save_IFS
10283 test -z "$as_dir" && as_dir=.
5213506e 10284 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10286 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 10287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10288 break 2
10289 fi
10290done
5213506e
RW
10291 done
10292IFS=$as_save_IFS
1c710c3c 10293
2abefe3d
PB
10294fi
10295fi
1c710c3c 10296RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 10297if test -n "$RUNTEST"; then
5213506e
RW
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10299$as_echo "$RUNTEST" >&6; }
2abefe3d 10300else
5213506e
RW
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302$as_echo "no" >&6; }
2abefe3d 10303fi
671aa708 10304
5213506e 10305
1c710c3c 10306 test -n "$RUNTEST" && break
2abefe3d
PB
10307done
10308test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 10309
2abefe3d
PB
10310case " $configdirs " in
10311 *" dejagnu "*)
c394e891 10312 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
10313 ;;
10314esac
671aa708
NN
10315
10316
671aa708 10317# Host tools.
ca9f4b81
AO
10318ncn_tool_prefix=
10319test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10320ncn_target_tool_prefix=
10321test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10322
278a7a38
AO
10323
10324
10325if test -n "$AR"; then
10326 ac_cv_prog_AR=$AR
10327elif test -n "$ac_cv_prog_AR"; then
10328 AR=$ac_cv_prog_AR
10329fi
10330
10331if test -n "$ac_cv_prog_AR"; then
10332 for ncn_progname in ar; do
10333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10334set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10336$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10337if ${ac_cv_prog_AR+:} false; then :
5213506e 10338 $as_echo_n "(cached) " >&6
278a7a38
AO
10339else
10340 if test -n "$AR"; then
10341 ac_cv_prog_AR="$AR" # Let the user override the test.
10342else
10343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10344for as_dir in $PATH
10345do
10346 IFS=$as_save_IFS
10347 test -z "$as_dir" && as_dir=.
5213506e 10348 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10350 ac_cv_prog_AR="${ncn_progname}"
5213506e 10351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10352 break 2
10353 fi
10354done
5213506e
RW
10355 done
10356IFS=$as_save_IFS
278a7a38
AO
10357
10358fi
10359fi
10360AR=$ac_cv_prog_AR
10361if test -n "$AR"; then
5213506e
RW
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10363$as_echo "$AR" >&6; }
278a7a38 10364else
5213506e
RW
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10366$as_echo "no" >&6; }
278a7a38
AO
10367fi
10368
5213506e 10369
278a7a38
AO
10370 done
10371fi
10372
10373for ncn_progname in ar; do
2693c0b0
PB
10374 if test -n "$ncn_tool_prefix"; then
10375 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10376set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10378$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10379if ${ac_cv_prog_AR+:} false; then :
5213506e 10380 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10381else
10382 if test -n "$AR"; then
10383 ac_cv_prog_AR="$AR" # Let the user override the test.
10384else
1c710c3c
DJ
10385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386for as_dir in $PATH
10387do
10388 IFS=$as_save_IFS
10389 test -z "$as_dir" && as_dir=.
5213506e 10390 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10392 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 10393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10394 break 2
10395 fi
10396done
5213506e
RW
10397 done
10398IFS=$as_save_IFS
1c710c3c 10399
ca9f4b81
AO
10400fi
10401fi
1c710c3c 10402AR=$ac_cv_prog_AR
ca9f4b81 10403if test -n "$AR"; then
5213506e
RW
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10405$as_echo "$AR" >&6; }
ca9f4b81 10406else
5213506e
RW
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408$as_echo "no" >&6; }
ca9f4b81
AO
10409fi
10410
5213506e 10411
2693c0b0
PB
10412 fi
10413 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10415set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10417$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10418if ${ac_cv_prog_AR+:} false; then :
5213506e 10419 $as_echo_n "(cached) " >&6
ca9f4b81 10420else
2693c0b0 10421 if test -n "$AR"; then
af71363e
AS
10422 ac_cv_prog_AR="$AR" # Let the user override the test.
10423else
1c710c3c
DJ
10424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10425for as_dir in $PATH
10426do
10427 IFS=$as_save_IFS
10428 test -z "$as_dir" && as_dir=.
5213506e 10429 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10431 ac_cv_prog_AR="${ncn_progname}"
5213506e 10432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10433 break 2
10434 fi
10435done
5213506e
RW
10436 done
10437IFS=$as_save_IFS
1c710c3c 10438
ca9f4b81
AO
10439fi
10440fi
1c710c3c 10441AR=$ac_cv_prog_AR
2693c0b0 10442if test -n "$AR"; then
5213506e
RW
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10444$as_echo "$AR" >&6; }
ca9f4b81 10445else
5213506e
RW
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447$as_echo "no" >&6; }
ca9f4b81 10448fi
1c710c3c 10449
5213506e 10450
2693c0b0
PB
10451 fi
10452 test -n "$ac_cv_prog_AR" && break
10453done
10454
10455if test -z "$ac_cv_prog_AR" ; then
10456 set dummy ar
10457 if test $build = $host ; then
10458 AR="$2"
ca9f4b81 10459 else
2693c0b0 10460 AR="${ncn_tool_prefix}$2"
ca9f4b81 10461 fi
ca9f4b81
AO
10462fi
10463
278a7a38
AO
10464
10465
10466if test -n "$AS"; then
10467 ac_cv_prog_AS=$AS
10468elif test -n "$ac_cv_prog_AS"; then
10469 AS=$ac_cv_prog_AS
10470fi
10471
10472if test -n "$ac_cv_prog_AS"; then
10473 for ncn_progname in as; do
10474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10475set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10477$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10478if ${ac_cv_prog_AS+:} false; then :
5213506e 10479 $as_echo_n "(cached) " >&6
278a7a38
AO
10480else
10481 if test -n "$AS"; then
10482 ac_cv_prog_AS="$AS" # Let the user override the test.
10483else
10484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10485for as_dir in $PATH
10486do
10487 IFS=$as_save_IFS
10488 test -z "$as_dir" && as_dir=.
5213506e 10489 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10491 ac_cv_prog_AS="${ncn_progname}"
5213506e 10492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10493 break 2
10494 fi
10495done
5213506e
RW
10496 done
10497IFS=$as_save_IFS
278a7a38
AO
10498
10499fi
10500fi
10501AS=$ac_cv_prog_AS
10502if test -n "$AS"; then
5213506e
RW
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10504$as_echo "$AS" >&6; }
278a7a38 10505else
5213506e
RW
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10507$as_echo "no" >&6; }
278a7a38
AO
10508fi
10509
5213506e 10510
278a7a38
AO
10511 done
10512fi
10513
10514for ncn_progname in as; do
2693c0b0
PB
10515 if test -n "$ncn_tool_prefix"; then
10516 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10517set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10520if ${ac_cv_prog_AS+:} false; then :
5213506e 10521 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10522else
10523 if test -n "$AS"; then
10524 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 10525else
1c710c3c
DJ
10526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527for as_dir in $PATH
10528do
10529 IFS=$as_save_IFS
10530 test -z "$as_dir" && as_dir=.
5213506e 10531 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10533 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 10534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10535 break 2
10536 fi
10537done
5213506e
RW
10538 done
10539IFS=$as_save_IFS
1c710c3c 10540
ca9f4b81
AO
10541fi
10542fi
1c710c3c 10543AS=$ac_cv_prog_AS
ca9f4b81 10544if test -n "$AS"; then
5213506e
RW
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10546$as_echo "$AS" >&6; }
ca9f4b81 10547else
5213506e
RW
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549$as_echo "no" >&6; }
ca9f4b81
AO
10550fi
10551
5213506e 10552
2693c0b0
PB
10553 fi
10554 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10556set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10558$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10559if ${ac_cv_prog_AS+:} false; then :
5213506e 10560 $as_echo_n "(cached) " >&6
ca9f4b81 10561else
2693c0b0
PB
10562 if test -n "$AS"; then
10563 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 10564else
1c710c3c
DJ
10565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10566for as_dir in $PATH
10567do
10568 IFS=$as_save_IFS
10569 test -z "$as_dir" && as_dir=.
5213506e 10570 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10572 ac_cv_prog_AS="${ncn_progname}"
5213506e 10573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10574 break 2
10575 fi
10576done
5213506e
RW
10577 done
10578IFS=$as_save_IFS
1c710c3c 10579
ca9f4b81
AO
10580fi
10581fi
1c710c3c 10582AS=$ac_cv_prog_AS
2693c0b0 10583if test -n "$AS"; then
5213506e
RW
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10585$as_echo "$AS" >&6; }
ca9f4b81 10586else
5213506e
RW
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588$as_echo "no" >&6; }
ca9f4b81 10589fi
1c710c3c 10590
5213506e 10591
2693c0b0
PB
10592 fi
10593 test -n "$ac_cv_prog_AS" && break
10594done
10595
10596if test -z "$ac_cv_prog_AS" ; then
10597 set dummy as
10598 if test $build = $host ; then
10599 AS="$2"
ca9f4b81 10600 else
2693c0b0 10601 AS="${ncn_tool_prefix}$2"
ca9f4b81 10602 fi
ca9f4b81
AO
10603fi
10604
278a7a38
AO
10605
10606
10607if test -n "$DLLTOOL"; then
10608 ac_cv_prog_DLLTOOL=$DLLTOOL
10609elif test -n "$ac_cv_prog_DLLTOOL"; then
10610 DLLTOOL=$ac_cv_prog_DLLTOOL
10611fi
10612
10613if test -n "$ac_cv_prog_DLLTOOL"; then
10614 for ncn_progname in dlltool; do
10615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10616set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10619if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 10620 $as_echo_n "(cached) " >&6
278a7a38
AO
10621else
10622 if test -n "$DLLTOOL"; then
10623 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10624else
10625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10626for as_dir in $PATH
10627do
10628 IFS=$as_save_IFS
10629 test -z "$as_dir" && as_dir=.
5213506e 10630 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10632 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 10633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10634 break 2
10635 fi
10636done
5213506e
RW
10637 done
10638IFS=$as_save_IFS
278a7a38
AO
10639
10640fi
10641fi
10642DLLTOOL=$ac_cv_prog_DLLTOOL
10643if test -n "$DLLTOOL"; then
5213506e
RW
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10645$as_echo "$DLLTOOL" >&6; }
278a7a38 10646else
5213506e
RW
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10648$as_echo "no" >&6; }
278a7a38
AO
10649fi
10650
5213506e 10651
278a7a38
AO
10652 done
10653fi
10654
10655for ncn_progname in dlltool; do
2693c0b0
PB
10656 if test -n "$ncn_tool_prefix"; then
10657 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10658set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10660$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10661if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 10662 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10663else
10664 if test -n "$DLLTOOL"; then
10665 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10666else
1c710c3c
DJ
10667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10668for as_dir in $PATH
10669do
10670 IFS=$as_save_IFS
10671 test -z "$as_dir" && as_dir=.
5213506e 10672 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10674 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 10675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10676 break 2
10677 fi
10678done
5213506e
RW
10679 done
10680IFS=$as_save_IFS
1c710c3c 10681
ca9f4b81
AO
10682fi
10683fi
1c710c3c 10684DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 10685if test -n "$DLLTOOL"; then
5213506e
RW
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10687$as_echo "$DLLTOOL" >&6; }
ca9f4b81 10688else
5213506e
RW
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10690$as_echo "no" >&6; }
ca9f4b81
AO
10691fi
10692
5213506e 10693
2693c0b0
PB
10694 fi
10695 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
10696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10697set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10699$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10700if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 10701 $as_echo_n "(cached) " >&6
ca9f4b81 10702else
2693c0b0
PB
10703 if test -n "$DLLTOOL"; then
10704 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 10705else
1c710c3c
DJ
10706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10707for as_dir in $PATH
10708do
10709 IFS=$as_save_IFS
10710 test -z "$as_dir" && as_dir=.
5213506e 10711 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10713 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 10714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10715 break 2
10716 fi
10717done
5213506e
RW
10718 done
10719IFS=$as_save_IFS
1c710c3c 10720
ca9f4b81
AO
10721fi
10722fi
1c710c3c 10723DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 10724if test -n "$DLLTOOL"; then
5213506e
RW
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10726$as_echo "$DLLTOOL" >&6; }
ca9f4b81 10727else
5213506e
RW
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729$as_echo "no" >&6; }
ca9f4b81 10730fi
1c710c3c 10731
5213506e 10732
2693c0b0
PB
10733 fi
10734 test -n "$ac_cv_prog_DLLTOOL" && break
10735done
10736
10737if test -z "$ac_cv_prog_DLLTOOL" ; then
10738 set dummy dlltool
10739 if test $build = $host ; then
10740 DLLTOOL="$2"
ca9f4b81 10741 else
2693c0b0 10742 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 10743 fi
ca9f4b81
AO
10744fi
10745
278a7a38
AO
10746
10747
10abab41
IS
10748if test -n "$DSYMUTIL"; then
10749 ac_cv_prog_DSYMUTIL=$DSYMUTIL
10750elif test -n "$ac_cv_prog_DSYMUTIL"; then
10751 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10752fi
10753
10754if test -n "$ac_cv_prog_DSYMUTIL"; then
10755 for ncn_progname in dsymutil; do
10756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10757set dummy ${ncn_progname}; ac_word=$2
10758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10759$as_echo_n "checking for $ac_word... " >&6; }
10760if ${ac_cv_prog_DSYMUTIL+:} false; then :
10761 $as_echo_n "(cached) " >&6
10762else
10763 if test -n "$DSYMUTIL"; then
10764 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10765else
10766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10767for as_dir in $PATH
10768do
10769 IFS=$as_save_IFS
10770 test -z "$as_dir" && as_dir=.
10771 for ac_exec_ext in '' $ac_executable_extensions; do
10772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10773 ac_cv_prog_DSYMUTIL="${ncn_progname}"
10774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10775 break 2
10776 fi
10777done
10778 done
10779IFS=$as_save_IFS
10780
10781fi
10782fi
10783DSYMUTIL=$ac_cv_prog_DSYMUTIL
10784if test -n "$DSYMUTIL"; then
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10786$as_echo "$DSYMUTIL" >&6; }
10787else
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789$as_echo "no" >&6; }
10790fi
10791
10792
10793 done
10794fi
10795
10796for ncn_progname in dsymutil; do
10797 if test -n "$ncn_tool_prefix"; then
10798 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10799set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10801$as_echo_n "checking for $ac_word... " >&6; }
10802if ${ac_cv_prog_DSYMUTIL+:} false; then :
10803 $as_echo_n "(cached) " >&6
10804else
10805 if test -n "$DSYMUTIL"; then
10806 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10807else
10808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809for as_dir in $PATH
10810do
10811 IFS=$as_save_IFS
10812 test -z "$as_dir" && as_dir=.
10813 for ac_exec_ext in '' $ac_executable_extensions; do
10814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10815 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
10816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10817 break 2
10818 fi
10819done
10820 done
10821IFS=$as_save_IFS
10822
10823fi
10824fi
10825DSYMUTIL=$ac_cv_prog_DSYMUTIL
10826if test -n "$DSYMUTIL"; then
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10828$as_echo "$DSYMUTIL" >&6; }
10829else
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831$as_echo "no" >&6; }
10832fi
10833
10834
10835 fi
10836 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
10837 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10838set dummy ${ncn_progname}; ac_word=$2
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10840$as_echo_n "checking for $ac_word... " >&6; }
10841if ${ac_cv_prog_DSYMUTIL+:} false; then :
10842 $as_echo_n "(cached) " >&6
10843else
10844 if test -n "$DSYMUTIL"; then
10845 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10846else
10847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10848for as_dir in $PATH
10849do
10850 IFS=$as_save_IFS
10851 test -z "$as_dir" && as_dir=.
10852 for ac_exec_ext in '' $ac_executable_extensions; do
10853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10854 ac_cv_prog_DSYMUTIL="${ncn_progname}"
10855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10856 break 2
10857 fi
10858done
10859 done
10860IFS=$as_save_IFS
10861
10862fi
10863fi
10864DSYMUTIL=$ac_cv_prog_DSYMUTIL
10865if test -n "$DSYMUTIL"; then
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10867$as_echo "$DSYMUTIL" >&6; }
10868else
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10870$as_echo "no" >&6; }
10871fi
10872
10873
10874 fi
10875 test -n "$ac_cv_prog_DSYMUTIL" && break
10876done
10877
10878if test -z "$ac_cv_prog_DSYMUTIL" ; then
10879 set dummy dsymutil
10880 if test $build = $host ; then
10881 DSYMUTIL="$2"
10882 else
10883 DSYMUTIL="${ncn_tool_prefix}$2"
10884 fi
10885fi
10886
10887
10888
278a7a38
AO
10889if test -n "$LD"; then
10890 ac_cv_prog_LD=$LD
10891elif test -n "$ac_cv_prog_LD"; then
10892 LD=$ac_cv_prog_LD
10893fi
10894
10895if test -n "$ac_cv_prog_LD"; then
10896 for ncn_progname in ld; do
10897 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10898set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10900$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10901if ${ac_cv_prog_LD+:} false; then :
5213506e 10902 $as_echo_n "(cached) " >&6
278a7a38
AO
10903else
10904 if test -n "$LD"; then
10905 ac_cv_prog_LD="$LD" # Let the user override the test.
10906else
10907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10908for as_dir in $PATH
10909do
10910 IFS=$as_save_IFS
10911 test -z "$as_dir" && as_dir=.
5213506e 10912 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10914 ac_cv_prog_LD="${ncn_progname}"
5213506e 10915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10916 break 2
10917 fi
10918done
5213506e
RW
10919 done
10920IFS=$as_save_IFS
278a7a38
AO
10921
10922fi
10923fi
10924LD=$ac_cv_prog_LD
10925if test -n "$LD"; then
5213506e
RW
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10927$as_echo "$LD" >&6; }
278a7a38 10928else
5213506e
RW
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10930$as_echo "no" >&6; }
278a7a38
AO
10931fi
10932
5213506e 10933
278a7a38
AO
10934 done
10935fi
10936
10937for ncn_progname in ld; do
2693c0b0
PB
10938 if test -n "$ncn_tool_prefix"; then
10939 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10940set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10942$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10943if ${ac_cv_prog_LD+:} false; then :
5213506e 10944 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10945else
10946 if test -n "$LD"; then
10947 ac_cv_prog_LD="$LD" # Let the user override the test.
10948else
1c710c3c
DJ
10949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10950for as_dir in $PATH
10951do
10952 IFS=$as_save_IFS
10953 test -z "$as_dir" && as_dir=.
5213506e 10954 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10956 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 10957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10958 break 2
10959 fi
10960done
5213506e
RW
10961 done
10962IFS=$as_save_IFS
1c710c3c 10963
ca9f4b81
AO
10964fi
10965fi
1c710c3c 10966LD=$ac_cv_prog_LD
ca9f4b81 10967if test -n "$LD"; then
5213506e
RW
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10969$as_echo "$LD" >&6; }
ca9f4b81 10970else
5213506e
RW
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972$as_echo "no" >&6; }
ca9f4b81
AO
10973fi
10974
5213506e 10975
2693c0b0
PB
10976 fi
10977 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
10978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10979set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10981$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10982if ${ac_cv_prog_LD+:} false; then :
5213506e 10983 $as_echo_n "(cached) " >&6
ca9f4b81 10984else
2693c0b0
PB
10985 if test -n "$LD"; then
10986 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 10987else
1c710c3c
DJ
10988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10989for as_dir in $PATH
10990do
10991 IFS=$as_save_IFS
10992 test -z "$as_dir" && as_dir=.
5213506e 10993 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10995 ac_cv_prog_LD="${ncn_progname}"
5213506e 10996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10997 break 2
10998 fi
10999done
5213506e
RW
11000 done
11001IFS=$as_save_IFS
1c710c3c 11002
ca9f4b81
AO
11003fi
11004fi
1c710c3c 11005LD=$ac_cv_prog_LD
2693c0b0 11006if test -n "$LD"; then
5213506e
RW
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11008$as_echo "$LD" >&6; }
ca9f4b81 11009else
5213506e
RW
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11011$as_echo "no" >&6; }
ca9f4b81 11012fi
1c710c3c 11013
5213506e 11014
2693c0b0
PB
11015 fi
11016 test -n "$ac_cv_prog_LD" && break
11017done
11018
11019if test -z "$ac_cv_prog_LD" ; then
11020 set dummy ld
11021 if test $build = $host ; then
11022 LD="$2"
ca9f4b81 11023 else
2693c0b0 11024 LD="${ncn_tool_prefix}$2"
ca9f4b81 11025 fi
ca9f4b81
AO
11026fi
11027
278a7a38
AO
11028
11029
11030if test -n "$LIPO"; then
11031 ac_cv_prog_LIPO=$LIPO
11032elif test -n "$ac_cv_prog_LIPO"; then
11033 LIPO=$ac_cv_prog_LIPO
11034fi
11035
11036if test -n "$ac_cv_prog_LIPO"; then
11037 for ncn_progname in lipo; do
11038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11039set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11041$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11042if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11043 $as_echo_n "(cached) " >&6
278a7a38
AO
11044else
11045 if test -n "$LIPO"; then
11046 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11047else
11048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049for as_dir in $PATH
11050do
11051 IFS=$as_save_IFS
11052 test -z "$as_dir" && as_dir=.
5213506e 11053 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11055 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11057 break 2
11058 fi
11059done
5213506e
RW
11060 done
11061IFS=$as_save_IFS
278a7a38
AO
11062
11063fi
11064fi
11065LIPO=$ac_cv_prog_LIPO
11066if test -n "$LIPO"; then
5213506e
RW
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11068$as_echo "$LIPO" >&6; }
278a7a38 11069else
5213506e
RW
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071$as_echo "no" >&6; }
278a7a38
AO
11072fi
11073
5213506e 11074
278a7a38
AO
11075 done
11076fi
11077
11078for ncn_progname in lipo; do
2abefe3d
PB
11079 if test -n "$ncn_tool_prefix"; then
11080 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11081set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11083$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11084if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11085 $as_echo_n "(cached) " >&6
2abefe3d
PB
11086else
11087 if test -n "$LIPO"; then
11088 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11089else
1c710c3c
DJ
11090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11091for as_dir in $PATH
11092do
11093 IFS=$as_save_IFS
11094 test -z "$as_dir" && as_dir=.
5213506e 11095 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11097 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 11098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11099 break 2
11100 fi
11101done
5213506e
RW
11102 done
11103IFS=$as_save_IFS
1c710c3c 11104
2abefe3d
PB
11105fi
11106fi
1c710c3c 11107LIPO=$ac_cv_prog_LIPO
2abefe3d 11108if test -n "$LIPO"; then
5213506e
RW
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11110$as_echo "$LIPO" >&6; }
2abefe3d 11111else
5213506e
RW
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11113$as_echo "no" >&6; }
2abefe3d
PB
11114fi
11115
5213506e 11116
2abefe3d
PB
11117 fi
11118 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11120set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11122$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11123if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11124 $as_echo_n "(cached) " >&6
2abefe3d
PB
11125else
11126 if test -n "$LIPO"; then
11127 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11128else
1c710c3c
DJ
11129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130for as_dir in $PATH
11131do
11132 IFS=$as_save_IFS
11133 test -z "$as_dir" && as_dir=.
5213506e 11134 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11136 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11138 break 2
11139 fi
11140done
5213506e
RW
11141 done
11142IFS=$as_save_IFS
1c710c3c 11143
2abefe3d
PB
11144fi
11145fi
1c710c3c 11146LIPO=$ac_cv_prog_LIPO
2abefe3d 11147if test -n "$LIPO"; then
5213506e
RW
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11149$as_echo "$LIPO" >&6; }
2abefe3d 11150else
5213506e
RW
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152$as_echo "no" >&6; }
2abefe3d 11153fi
1c710c3c 11154
5213506e 11155
2abefe3d
PB
11156 fi
11157 test -n "$ac_cv_prog_LIPO" && break
11158done
11159
11160if test -z "$ac_cv_prog_LIPO" ; then
11161 set dummy lipo
11162 if test $build = $host ; then
11163 LIPO="$2"
11164 else
11165 LIPO="${ncn_tool_prefix}$2"
11166 fi
11167fi
11168
278a7a38
AO
11169
11170
11171if test -n "$NM"; then
11172 ac_cv_prog_NM=$NM
11173elif test -n "$ac_cv_prog_NM"; then
11174 NM=$ac_cv_prog_NM
11175fi
11176
11177if test -n "$ac_cv_prog_NM"; then
11178 for ncn_progname in nm; do
11179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11180set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11182$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11183if ${ac_cv_prog_NM+:} false; then :
5213506e 11184 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11185else
11186 if test -n "$NM"; then
11187 ac_cv_prog_NM="$NM" # Let the user override the test.
11188else
1c710c3c
DJ
11189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190for as_dir in $PATH
11191do
11192 IFS=$as_save_IFS
11193 test -z "$as_dir" && as_dir=.
5213506e 11194 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11196 ac_cv_prog_NM="${ncn_progname}"
5213506e 11197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11198 break 2
11199 fi
11200done
5213506e
RW
11201 done
11202IFS=$as_save_IFS
1c710c3c 11203
ca9f4b81
AO
11204fi
11205fi
1c710c3c 11206NM=$ac_cv_prog_NM
ca9f4b81 11207if test -n "$NM"; then
5213506e
RW
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11209$as_echo "$NM" >&6; }
ca9f4b81 11210else
5213506e
RW
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212$as_echo "no" >&6; }
ca9f4b81
AO
11213fi
11214
5213506e 11215
278a7a38
AO
11216 done
11217fi
11218
11219for ncn_progname in nm; do
11220 if test -n "$ncn_tool_prefix"; then
11221 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11222set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11225if ${ac_cv_prog_NM+:} false; then :
5213506e 11226 $as_echo_n "(cached) " >&6
ca9f4b81 11227else
2693c0b0
PB
11228 if test -n "$NM"; then
11229 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 11230else
1c710c3c
DJ
11231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232for as_dir in $PATH
11233do
11234 IFS=$as_save_IFS
11235 test -z "$as_dir" && as_dir=.
5213506e 11236 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11238 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 11239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11240 break 2
11241 fi
11242done
5213506e
RW
11243 done
11244IFS=$as_save_IFS
1c710c3c 11245
ca9f4b81
AO
11246fi
11247fi
1c710c3c 11248NM=$ac_cv_prog_NM
2693c0b0 11249if test -n "$NM"; then
5213506e
RW
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11251$as_echo "$NM" >&6; }
ca9f4b81 11252else
5213506e
RW
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254$as_echo "no" >&6; }
ca9f4b81 11255fi
1c710c3c 11256
5213506e 11257
2693c0b0 11258 fi
278a7a38
AO
11259 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11261set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11263$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11264if ${ac_cv_prog_NM+:} false; then :
5213506e 11265 $as_echo_n "(cached) " >&6
278a7a38
AO
11266else
11267 if test -n "$NM"; then
11268 ac_cv_prog_NM="$NM" # Let the user override the test.
11269else
11270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271for as_dir in $PATH
11272do
11273 IFS=$as_save_IFS
11274 test -z "$as_dir" && as_dir=.
5213506e 11275 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11277 ac_cv_prog_NM="${ncn_progname}"
5213506e 11278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11279 break 2
11280 fi
11281done
5213506e
RW
11282 done
11283IFS=$as_save_IFS
278a7a38
AO
11284
11285fi
11286fi
11287NM=$ac_cv_prog_NM
11288if test -n "$NM"; then
5213506e
RW
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11290$as_echo "$NM" >&6; }
278a7a38 11291else
5213506e
RW
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293$as_echo "no" >&6; }
278a7a38
AO
11294fi
11295
5213506e 11296
278a7a38
AO
11297 fi
11298 test -n "$ac_cv_prog_NM" && break
11299done
11300
11301if test -z "$ac_cv_prog_NM" ; then
11302 set dummy nm
11303 if test $build = $host ; then
11304 NM="$2"
11305 else
11306 NM="${ncn_tool_prefix}$2"
11307 fi
11308fi
11309
11310
11311
11312if test -n "$RANLIB"; then
11313 ac_cv_prog_RANLIB=$RANLIB
11314elif test -n "$ac_cv_prog_RANLIB"; then
11315 RANLIB=$ac_cv_prog_RANLIB
11316fi
11317
11318if test -n "$ac_cv_prog_RANLIB"; then
11319 for ncn_progname in ranlib; do
11320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11321set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11324if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11325 $as_echo_n "(cached) " >&6
278a7a38
AO
11326else
11327 if test -n "$RANLIB"; then
11328 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11329else
11330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331for as_dir in $PATH
11332do
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
5213506e 11335 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11337 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11339 break 2
11340 fi
11341done
5213506e
RW
11342 done
11343IFS=$as_save_IFS
278a7a38
AO
11344
11345fi
11346fi
11347RANLIB=$ac_cv_prog_RANLIB
11348if test -n "$RANLIB"; then
5213506e
RW
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11350$as_echo "$RANLIB" >&6; }
278a7a38 11351else
5213506e
RW
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353$as_echo "no" >&6; }
278a7a38
AO
11354fi
11355
5213506e 11356
278a7a38
AO
11357 done
11358fi
ca9f4b81 11359
278a7a38 11360for ncn_progname in ranlib; do
2693c0b0
PB
11361 if test -n "$ncn_tool_prefix"; then
11362 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11363set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11365$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11366if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11367 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11368else
11369 if test -n "$RANLIB"; then
11370 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11371else
1c710c3c
DJ
11372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11373for as_dir in $PATH
11374do
11375 IFS=$as_save_IFS
11376 test -z "$as_dir" && as_dir=.
5213506e 11377 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11379 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 11380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11381 break 2
11382 fi
11383done
5213506e
RW
11384 done
11385IFS=$as_save_IFS
1c710c3c 11386
ca9f4b81
AO
11387fi
11388fi
1c710c3c 11389RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 11390if test -n "$RANLIB"; then
5213506e
RW
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11392$as_echo "$RANLIB" >&6; }
ca9f4b81 11393else
5213506e
RW
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11395$as_echo "no" >&6; }
ca9f4b81
AO
11396fi
11397
5213506e 11398
2693c0b0
PB
11399 fi
11400 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11402set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11404$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11405if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11406 $as_echo_n "(cached) " >&6
ca9f4b81 11407else
2693c0b0
PB
11408 if test -n "$RANLIB"; then
11409 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 11410else
1c710c3c
DJ
11411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412for as_dir in $PATH
11413do
11414 IFS=$as_save_IFS
11415 test -z "$as_dir" && as_dir=.
5213506e 11416 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11418 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11420 break 2
11421 fi
11422done
5213506e
RW
11423 done
11424IFS=$as_save_IFS
1c710c3c 11425
ca9f4b81
AO
11426fi
11427fi
1c710c3c 11428RANLIB=$ac_cv_prog_RANLIB
2693c0b0 11429if test -n "$RANLIB"; then
5213506e
RW
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11431$as_echo "$RANLIB" >&6; }
ca9f4b81 11432else
5213506e
RW
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11434$as_echo "no" >&6; }
ca9f4b81 11435fi
1c710c3c 11436
5213506e 11437
ca9f4b81 11438 fi
2693c0b0
PB
11439 test -n "$ac_cv_prog_RANLIB" && break
11440done
11441
11442if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 11443 RANLIB="true"
ca9f4b81
AO
11444fi
11445
278a7a38
AO
11446
11447
11448if test -n "$STRIP"; then
11449 ac_cv_prog_STRIP=$STRIP
11450elif test -n "$ac_cv_prog_STRIP"; then
11451 STRIP=$ac_cv_prog_STRIP
11452fi
11453
11454if test -n "$ac_cv_prog_STRIP"; then
11455 for ncn_progname in strip; do
11456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11457set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11459$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11460if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11461 $as_echo_n "(cached) " >&6
278a7a38
AO
11462else
11463 if test -n "$STRIP"; then
11464 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11465else
11466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467for as_dir in $PATH
11468do
11469 IFS=$as_save_IFS
11470 test -z "$as_dir" && as_dir=.
5213506e 11471 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11473 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11475 break 2
11476 fi
11477done
5213506e
RW
11478 done
11479IFS=$as_save_IFS
278a7a38
AO
11480
11481fi
11482fi
11483STRIP=$ac_cv_prog_STRIP
11484if test -n "$STRIP"; then
5213506e
RW
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11486$as_echo "$STRIP" >&6; }
278a7a38 11487else
5213506e
RW
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489$as_echo "no" >&6; }
278a7a38
AO
11490fi
11491
5213506e 11492
278a7a38
AO
11493 done
11494fi
11495
11496for ncn_progname in strip; do
2abefe3d
PB
11497 if test -n "$ncn_tool_prefix"; then
11498 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11499set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11501$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11502if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11503 $as_echo_n "(cached) " >&6
2abefe3d
PB
11504else
11505 if test -n "$STRIP"; then
11506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11507else
1c710c3c
DJ
11508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509for as_dir in $PATH
11510do
11511 IFS=$as_save_IFS
11512 test -z "$as_dir" && as_dir=.
5213506e 11513 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11515 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 11516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11517 break 2
11518 fi
11519done
5213506e
RW
11520 done
11521IFS=$as_save_IFS
1c710c3c 11522
2abefe3d
PB
11523fi
11524fi
1c710c3c 11525STRIP=$ac_cv_prog_STRIP
2abefe3d 11526if test -n "$STRIP"; then
5213506e
RW
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11528$as_echo "$STRIP" >&6; }
2abefe3d 11529else
5213506e
RW
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531$as_echo "no" >&6; }
2abefe3d
PB
11532fi
11533
5213506e 11534
2abefe3d
PB
11535 fi
11536 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11537 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11538set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11540$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11541if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11542 $as_echo_n "(cached) " >&6
2abefe3d
PB
11543else
11544 if test -n "$STRIP"; then
11545 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11546else
1c710c3c
DJ
11547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11548for as_dir in $PATH
11549do
11550 IFS=$as_save_IFS
11551 test -z "$as_dir" && as_dir=.
5213506e 11552 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11554 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11556 break 2
11557 fi
11558done
5213506e
RW
11559 done
11560IFS=$as_save_IFS
1c710c3c 11561
2abefe3d
PB
11562fi
11563fi
1c710c3c 11564STRIP=$ac_cv_prog_STRIP
2abefe3d 11565if test -n "$STRIP"; then
5213506e
RW
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11567$as_echo "$STRIP" >&6; }
2abefe3d 11568else
5213506e
RW
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11570$as_echo "no" >&6; }
2abefe3d 11571fi
1c710c3c 11572
5213506e 11573
2abefe3d
PB
11574 fi
11575 test -n "$ac_cv_prog_STRIP" && break
11576done
11577
11578if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 11579 STRIP="true"
2abefe3d
PB
11580fi
11581
278a7a38
AO
11582
11583
11584if test -n "$WINDRES"; then
11585 ac_cv_prog_WINDRES=$WINDRES
11586elif test -n "$ac_cv_prog_WINDRES"; then
11587 WINDRES=$ac_cv_prog_WINDRES
11588fi
11589
11590if test -n "$ac_cv_prog_WINDRES"; then
11591 for ncn_progname in windres; do
11592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11593set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11595$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11596if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 11597 $as_echo_n "(cached) " >&6
278a7a38
AO
11598else
11599 if test -n "$WINDRES"; then
11600 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11601else
11602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11603for as_dir in $PATH
11604do
11605 IFS=$as_save_IFS
11606 test -z "$as_dir" && as_dir=.
5213506e 11607 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11609 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 11610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11611 break 2
11612 fi
11613done
5213506e
RW
11614 done
11615IFS=$as_save_IFS
278a7a38
AO
11616
11617fi
11618fi
11619WINDRES=$ac_cv_prog_WINDRES
11620if test -n "$WINDRES"; then
5213506e
RW
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11622$as_echo "$WINDRES" >&6; }
278a7a38 11623else
5213506e
RW
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11625$as_echo "no" >&6; }
278a7a38
AO
11626fi
11627
5213506e 11628
278a7a38
AO
11629 done
11630fi
11631
11632for ncn_progname in windres; do
2693c0b0
PB
11633 if test -n "$ncn_tool_prefix"; then
11634 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11635set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11637$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11638if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 11639 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11640else
11641 if test -n "$WINDRES"; then
11642 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11643else
1c710c3c
DJ
11644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645for as_dir in $PATH
11646do
11647 IFS=$as_save_IFS
11648 test -z "$as_dir" && as_dir=.
5213506e 11649 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11651 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 11652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11653 break 2
11654 fi
11655done
5213506e
RW
11656 done
11657IFS=$as_save_IFS
1c710c3c 11658
ca9f4b81
AO
11659fi
11660fi
1c710c3c 11661WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 11662if test -n "$WINDRES"; then
5213506e
RW
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11664$as_echo "$WINDRES" >&6; }
ca9f4b81 11665else
5213506e
RW
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667$as_echo "no" >&6; }
ca9f4b81
AO
11668fi
11669
5213506e 11670
2693c0b0
PB
11671 fi
11672 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11674set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11677if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 11678 $as_echo_n "(cached) " >&6
ca9f4b81 11679else
2693c0b0
PB
11680 if test -n "$WINDRES"; then
11681 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 11682else
1c710c3c
DJ
11683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11684for as_dir in $PATH
11685do
11686 IFS=$as_save_IFS
11687 test -z "$as_dir" && as_dir=.
5213506e 11688 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11690 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 11691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11692 break 2
11693 fi
11694done
5213506e
RW
11695 done
11696IFS=$as_save_IFS
1c710c3c 11697
ca9f4b81
AO
11698fi
11699fi
1c710c3c 11700WINDRES=$ac_cv_prog_WINDRES
2693c0b0 11701if test -n "$WINDRES"; then
5213506e
RW
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11703$as_echo "$WINDRES" >&6; }
ca9f4b81 11704else
5213506e
RW
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706$as_echo "no" >&6; }
ca9f4b81 11707fi
1c710c3c 11708
5213506e 11709
2693c0b0
PB
11710 fi
11711 test -n "$ac_cv_prog_WINDRES" && break
11712done
11713
11714if test -z "$ac_cv_prog_WINDRES" ; then
11715 set dummy windres
11716 if test $build = $host ; then
11717 WINDRES="$2"
ca9f4b81 11718 else
2693c0b0 11719 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 11720 fi
ca9f4b81
AO
11721fi
11722
278a7a38
AO
11723
11724
901119ae
KT
11725if test -n "$WINDMC"; then
11726 ac_cv_prog_WINDMC=$WINDMC
11727elif test -n "$ac_cv_prog_WINDMC"; then
11728 WINDMC=$ac_cv_prog_WINDMC
11729fi
11730
11731if test -n "$ac_cv_prog_WINDMC"; then
11732 for ncn_progname in windmc; do
11733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11734set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11737if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 11738 $as_echo_n "(cached) " >&6
901119ae
KT
11739else
11740 if test -n "$WINDMC"; then
11741 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11742else
11743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11744for as_dir in $PATH
11745do
11746 IFS=$as_save_IFS
11747 test -z "$as_dir" && as_dir=.
5213506e 11748 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 11750 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 11751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
11752 break 2
11753 fi
11754done
5213506e
RW
11755 done
11756IFS=$as_save_IFS
901119ae
KT
11757
11758fi
11759fi
11760WINDMC=$ac_cv_prog_WINDMC
11761if test -n "$WINDMC"; then
5213506e
RW
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11763$as_echo "$WINDMC" >&6; }
901119ae 11764else
5213506e
RW
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766$as_echo "no" >&6; }
901119ae
KT
11767fi
11768
5213506e 11769
901119ae
KT
11770 done
11771fi
11772
11773for ncn_progname in windmc; do
11774 if test -n "$ncn_tool_prefix"; then
11775 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11776set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11779if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 11780 $as_echo_n "(cached) " >&6
901119ae
KT
11781else
11782 if test -n "$WINDMC"; then
11783 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11784else
11785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786for as_dir in $PATH
11787do
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
5213506e 11790 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 11792 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
11794 break 2
11795 fi
11796done
5213506e
RW
11797 done
11798IFS=$as_save_IFS
901119ae
KT
11799
11800fi
11801fi
11802WINDMC=$ac_cv_prog_WINDMC
11803if test -n "$WINDMC"; then
5213506e
RW
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11805$as_echo "$WINDMC" >&6; }
901119ae 11806else
5213506e
RW
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808$as_echo "no" >&6; }
901119ae
KT
11809fi
11810
5213506e 11811
901119ae
KT
11812 fi
11813 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
11814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11815set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11817$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11818if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 11819 $as_echo_n "(cached) " >&6
901119ae
KT
11820else
11821 if test -n "$WINDMC"; then
11822 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11823else
11824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11825for as_dir in $PATH
11826do
11827 IFS=$as_save_IFS
11828 test -z "$as_dir" && as_dir=.
5213506e 11829 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 11831 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 11832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
11833 break 2
11834 fi
11835done
5213506e
RW
11836 done
11837IFS=$as_save_IFS
901119ae
KT
11838
11839fi
11840fi
11841WINDMC=$ac_cv_prog_WINDMC
11842if test -n "$WINDMC"; then
5213506e
RW
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11844$as_echo "$WINDMC" >&6; }
901119ae 11845else
5213506e
RW
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847$as_echo "no" >&6; }
901119ae
KT
11848fi
11849
5213506e 11850
901119ae
KT
11851 fi
11852 test -n "$ac_cv_prog_WINDMC" && break
11853done
11854
11855if test -z "$ac_cv_prog_WINDMC" ; then
11856 set dummy windmc
11857 if test $build = $host ; then
11858 WINDMC="$2"
11859 else
11860 WINDMC="${ncn_tool_prefix}$2"
11861 fi
11862fi
11863
11864
11865
278a7a38
AO
11866if test -n "$OBJCOPY"; then
11867 ac_cv_prog_OBJCOPY=$OBJCOPY
11868elif test -n "$ac_cv_prog_OBJCOPY"; then
11869 OBJCOPY=$ac_cv_prog_OBJCOPY
11870fi
11871
11872if test -n "$ac_cv_prog_OBJCOPY"; then
11873 for ncn_progname in objcopy; do
11874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11875set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11877$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11878if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 11879 $as_echo_n "(cached) " >&6
278a7a38
AO
11880else
11881 if test -n "$OBJCOPY"; then
11882 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11883else
11884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11885for as_dir in $PATH
11886do
11887 IFS=$as_save_IFS
11888 test -z "$as_dir" && as_dir=.
5213506e 11889 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11891 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 11892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11893 break 2
11894 fi
11895done
5213506e
RW
11896 done
11897IFS=$as_save_IFS
278a7a38
AO
11898
11899fi
11900fi
11901OBJCOPY=$ac_cv_prog_OBJCOPY
11902if test -n "$OBJCOPY"; then
5213506e
RW
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11904$as_echo "$OBJCOPY" >&6; }
278a7a38 11905else
5213506e
RW
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907$as_echo "no" >&6; }
278a7a38
AO
11908fi
11909
5213506e 11910
278a7a38
AO
11911 done
11912fi
11913
11914for ncn_progname in objcopy; do
2693c0b0
PB
11915 if test -n "$ncn_tool_prefix"; then
11916 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11917set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11919$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11920if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 11921 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11922else
11923 if test -n "$OBJCOPY"; then
11924 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11925else
1c710c3c
DJ
11926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11927for as_dir in $PATH
11928do
11929 IFS=$as_save_IFS
11930 test -z "$as_dir" && as_dir=.
5213506e 11931 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11933 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 11934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11935 break 2
11936 fi
11937done
5213506e
RW
11938 done
11939IFS=$as_save_IFS
1c710c3c 11940
ca9f4b81
AO
11941fi
11942fi
1c710c3c 11943OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 11944if test -n "$OBJCOPY"; then
5213506e
RW
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11946$as_echo "$OBJCOPY" >&6; }
ca9f4b81 11947else
5213506e
RW
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949$as_echo "no" >&6; }
ca9f4b81
AO
11950fi
11951
5213506e 11952
2693c0b0
PB
11953 fi
11954 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
11955 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11956set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11958$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11959if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 11960 $as_echo_n "(cached) " >&6
ca9f4b81 11961else
2693c0b0
PB
11962 if test -n "$OBJCOPY"; then
11963 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 11964else
1c710c3c
DJ
11965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11966for as_dir in $PATH
11967do
11968 IFS=$as_save_IFS
11969 test -z "$as_dir" && as_dir=.
5213506e 11970 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11972 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 11973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11974 break 2
11975 fi
11976done
5213506e
RW
11977 done
11978IFS=$as_save_IFS
1c710c3c 11979
ca9f4b81
AO
11980fi
11981fi
1c710c3c 11982OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 11983if test -n "$OBJCOPY"; then
5213506e
RW
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11985$as_echo "$OBJCOPY" >&6; }
ca9f4b81 11986else
5213506e
RW
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11988$as_echo "no" >&6; }
ca9f4b81 11989fi
1c710c3c 11990
5213506e 11991
2693c0b0
PB
11992 fi
11993 test -n "$ac_cv_prog_OBJCOPY" && break
11994done
11995
11996if test -z "$ac_cv_prog_OBJCOPY" ; then
11997 set dummy objcopy
11998 if test $build = $host ; then
11999 OBJCOPY="$2"
ca9f4b81 12000 else
2693c0b0 12001 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 12002 fi
ca9f4b81
AO
12003fi
12004
278a7a38
AO
12005
12006
12007if test -n "$OBJDUMP"; then
12008 ac_cv_prog_OBJDUMP=$OBJDUMP
12009elif test -n "$ac_cv_prog_OBJDUMP"; then
12010 OBJDUMP=$ac_cv_prog_OBJDUMP
12011fi
12012
12013if test -n "$ac_cv_prog_OBJDUMP"; then
12014 for ncn_progname in objdump; do
12015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12016set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12018$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12019if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12020 $as_echo_n "(cached) " >&6
278a7a38
AO
12021else
12022 if test -n "$OBJDUMP"; then
12023 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12024else
12025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026for as_dir in $PATH
12027do
12028 IFS=$as_save_IFS
12029 test -z "$as_dir" && as_dir=.
5213506e 12030 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12032 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12034 break 2
12035 fi
12036done
5213506e
RW
12037 done
12038IFS=$as_save_IFS
278a7a38
AO
12039
12040fi
12041fi
12042OBJDUMP=$ac_cv_prog_OBJDUMP
12043if test -n "$OBJDUMP"; then
5213506e
RW
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12045$as_echo "$OBJDUMP" >&6; }
278a7a38 12046else
5213506e
RW
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048$as_echo "no" >&6; }
278a7a38
AO
12049fi
12050
5213506e 12051
278a7a38
AO
12052 done
12053fi
12054
12055for ncn_progname in objdump; do
2693c0b0
PB
12056 if test -n "$ncn_tool_prefix"; then
12057 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12058set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12060$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12061if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12062 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12063else
12064 if test -n "$OBJDUMP"; then
12065 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12066else
1c710c3c
DJ
12067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068for as_dir in $PATH
12069do
12070 IFS=$as_save_IFS
12071 test -z "$as_dir" && as_dir=.
5213506e 12072 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12074 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 12075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12076 break 2
12077 fi
12078done
5213506e
RW
12079 done
12080IFS=$as_save_IFS
1c710c3c 12081
ca9f4b81
AO
12082fi
12083fi
1c710c3c 12084OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 12085if test -n "$OBJDUMP"; then
5213506e
RW
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12087$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12088else
5213506e
RW
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090$as_echo "no" >&6; }
ca9f4b81
AO
12091fi
12092
5213506e 12093
2693c0b0
PB
12094 fi
12095 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12097set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12099$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12100if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12101 $as_echo_n "(cached) " >&6
ca9f4b81 12102else
2693c0b0
PB
12103 if test -n "$OBJDUMP"; then
12104 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 12105else
1c710c3c
DJ
12106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12107for as_dir in $PATH
12108do
12109 IFS=$as_save_IFS
12110 test -z "$as_dir" && as_dir=.
5213506e 12111 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12113 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12115 break 2
12116 fi
12117done
5213506e
RW
12118 done
12119IFS=$as_save_IFS
1c710c3c 12120
ca9f4b81
AO
12121fi
12122fi
1c710c3c 12123OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 12124if test -n "$OBJDUMP"; then
5213506e
RW
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12126$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12127else
5213506e
RW
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12129$as_echo "no" >&6; }
ca9f4b81 12130fi
1c710c3c 12131
5213506e 12132
2693c0b0
PB
12133 fi
12134 test -n "$ac_cv_prog_OBJDUMP" && break
12135done
12136
12137if test -z "$ac_cv_prog_OBJDUMP" ; then
12138 set dummy objdump
12139 if test $build = $host ; then
12140 OBJDUMP="$2"
ca9f4b81 12141 else
2693c0b0 12142 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 12143 fi
ca9f4b81
AO
12144fi
12145
671aa708
NN
12146
12147
e4a9a572
IS
12148if test -n "$OTOOL"; then
12149 ac_cv_prog_OTOOL=$OTOOL
12150elif test -n "$ac_cv_prog_OTOOL"; then
12151 OTOOL=$ac_cv_prog_OTOOL
12152fi
12153
12154if test -n "$ac_cv_prog_OTOOL"; then
12155 for ncn_progname in otool; do
12156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12157set dummy ${ncn_progname}; ac_word=$2
12158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12159$as_echo_n "checking for $ac_word... " >&6; }
12160if ${ac_cv_prog_OTOOL+:} false; then :
12161 $as_echo_n "(cached) " >&6
12162else
12163 if test -n "$OTOOL"; then
12164 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12165else
12166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12167for as_dir in $PATH
12168do
12169 IFS=$as_save_IFS
12170 test -z "$as_dir" && as_dir=.
12171 for ac_exec_ext in '' $ac_executable_extensions; do
12172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12173 ac_cv_prog_OTOOL="${ncn_progname}"
12174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12175 break 2
12176 fi
12177done
12178 done
12179IFS=$as_save_IFS
12180
12181fi
12182fi
12183OTOOL=$ac_cv_prog_OTOOL
12184if test -n "$OTOOL"; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12186$as_echo "$OTOOL" >&6; }
12187else
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189$as_echo "no" >&6; }
12190fi
12191
12192
12193 done
12194fi
12195
12196for ncn_progname in otool; do
12197 if test -n "$ncn_tool_prefix"; then
12198 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12199set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12201$as_echo_n "checking for $ac_word... " >&6; }
12202if ${ac_cv_prog_OTOOL+:} false; then :
12203 $as_echo_n "(cached) " >&6
12204else
12205 if test -n "$OTOOL"; then
12206 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12207else
12208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12209for as_dir in $PATH
12210do
12211 IFS=$as_save_IFS
12212 test -z "$as_dir" && as_dir=.
12213 for ac_exec_ext in '' $ac_executable_extensions; do
12214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12215 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12217 break 2
12218 fi
12219done
12220 done
12221IFS=$as_save_IFS
12222
12223fi
12224fi
12225OTOOL=$ac_cv_prog_OTOOL
12226if test -n "$OTOOL"; then
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12228$as_echo "$OTOOL" >&6; }
12229else
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12231$as_echo "no" >&6; }
12232fi
12233
12234
12235 fi
12236 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12238set dummy ${ncn_progname}; ac_word=$2
12239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12240$as_echo_n "checking for $ac_word... " >&6; }
12241if ${ac_cv_prog_OTOOL+:} false; then :
12242 $as_echo_n "(cached) " >&6
12243else
12244 if test -n "$OTOOL"; then
12245 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12246else
12247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12248for as_dir in $PATH
12249do
12250 IFS=$as_save_IFS
12251 test -z "$as_dir" && as_dir=.
12252 for ac_exec_ext in '' $ac_executable_extensions; do
12253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12254 ac_cv_prog_OTOOL="${ncn_progname}"
12255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12256 break 2
12257 fi
12258done
12259 done
12260IFS=$as_save_IFS
12261
12262fi
12263fi
12264OTOOL=$ac_cv_prog_OTOOL
12265if test -n "$OTOOL"; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12267$as_echo "$OTOOL" >&6; }
12268else
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270$as_echo "no" >&6; }
12271fi
12272
12273
12274 fi
12275 test -n "$ac_cv_prog_OTOOL" && break
12276done
12277
12278if test -z "$ac_cv_prog_OTOOL" ; then
12279 set dummy otool
12280 if test $build = $host ; then
12281 OTOOL="$2"
12282 else
12283 OTOOL="${ncn_tool_prefix}$2"
12284 fi
12285fi
12286
12287
12288
e7a82751
RM
12289if test -n "$READELF"; then
12290 ac_cv_prog_READELF=$READELF
12291elif test -n "$ac_cv_prog_READELF"; then
12292 READELF=$ac_cv_prog_READELF
12293fi
12294
12295if test -n "$ac_cv_prog_READELF"; then
12296 for ncn_progname in readelf; do
12297 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12298set dummy ${ncn_progname}; ac_word=$2
12299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12300$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12301if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12302 $as_echo_n "(cached) " >&6
12303else
12304 if test -n "$READELF"; then
12305 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12306else
12307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12308for as_dir in $PATH
12309do
12310 IFS=$as_save_IFS
12311 test -z "$as_dir" && as_dir=.
12312 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12314 ac_cv_prog_READELF="${ncn_progname}"
12315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12316 break 2
12317 fi
12318done
12319 done
12320IFS=$as_save_IFS
12321
12322fi
12323fi
12324READELF=$ac_cv_prog_READELF
12325if test -n "$READELF"; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12327$as_echo "$READELF" >&6; }
12328else
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330$as_echo "no" >&6; }
12331fi
12332
12333
12334 done
12335fi
12336
12337for ncn_progname in readelf; do
12338 if test -n "$ncn_tool_prefix"; then
12339 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12340set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12342$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12343if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12344 $as_echo_n "(cached) " >&6
12345else
12346 if test -n "$READELF"; then
12347 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12348else
12349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12350for as_dir in $PATH
12351do
12352 IFS=$as_save_IFS
12353 test -z "$as_dir" && as_dir=.
12354 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12356 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12358 break 2
12359 fi
12360done
12361 done
12362IFS=$as_save_IFS
12363
12364fi
12365fi
12366READELF=$ac_cv_prog_READELF
12367if test -n "$READELF"; then
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12369$as_echo "$READELF" >&6; }
12370else
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372$as_echo "no" >&6; }
12373fi
12374
12375
12376 fi
12377 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12378 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12379set dummy ${ncn_progname}; ac_word=$2
12380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12381$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12382if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12383 $as_echo_n "(cached) " >&6
12384else
12385 if test -n "$READELF"; then
12386 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12387else
12388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12389for as_dir in $PATH
12390do
12391 IFS=$as_save_IFS
12392 test -z "$as_dir" && as_dir=.
12393 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12395 ac_cv_prog_READELF="${ncn_progname}"
12396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12397 break 2
12398 fi
12399done
12400 done
12401IFS=$as_save_IFS
12402
12403fi
12404fi
12405READELF=$ac_cv_prog_READELF
12406if test -n "$READELF"; then
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12408$as_echo "$READELF" >&6; }
12409else
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411$as_echo "no" >&6; }
12412fi
12413
12414
12415 fi
12416 test -n "$ac_cv_prog_READELF" && break
12417done
12418
12419if test -z "$ac_cv_prog_READELF" ; then
12420 set dummy readelf
12421 if test $build = $host ; then
12422 READELF="$2"
12423 else
12424 READELF="${ncn_tool_prefix}$2"
12425 fi
12426fi
12427
12428
12429
671aa708
NN
12430
12431
12432
2abefe3d 12433# Target tools.
1c710c3c 12434
5213506e
RW
12435# Check whether --with-build-time-tools was given.
12436if test "${with_build_time_tools+set}" = set; then :
12437 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
12438 x/*) ;;
12439 *)
12440 with_build_time_tools=
5213506e
RW
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12442$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
12443 ;;
12444 esac
ca9f4b81 12445else
e8b05380 12446 with_build_time_tools=
5213506e
RW
12447fi
12448
ca9f4b81 12449
278a7a38
AO
12450
12451
12452if test -n "$CC_FOR_TARGET"; then
12453 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12454elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12455 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12456fi
12457
12458if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12459 for ncn_progname in cc gcc; do
12460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12461set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12463$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12464if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12465 $as_echo_n "(cached) " >&6
278a7a38
AO
12466else
12467 if test -n "$CC_FOR_TARGET"; then
12468 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12469else
12470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471for as_dir in $PATH
12472do
12473 IFS=$as_save_IFS
12474 test -z "$as_dir" && as_dir=.
5213506e 12475 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12477 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12479 break 2
12480 fi
12481done
5213506e
RW
12482 done
12483IFS=$as_save_IFS
278a7a38
AO
12484
12485fi
12486fi
12487CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12488if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12490$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 12491else
5213506e
RW
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493$as_echo "no" >&6; }
278a7a38
AO
12494fi
12495
5213506e 12496
278a7a38
AO
12497 done
12498fi
12499
12500if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12501 for ncn_progname in cc gcc; do
5213506e
RW
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12503$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12504 if test -x $with_build_time_tools/${ncn_progname}; then
12505 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12507$as_echo "yes" >&6; }
72a7ab82 12508 break
e8b05380 12509 else
5213506e
RW
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511$as_echo "no" >&6; }
72a7ab82
AP
12512 fi
12513 done
4de997d1
PB
12514fi
12515
e8b05380
PB
12516if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12517 for ncn_progname in cc gcc; do
12518 if test -n "$ncn_target_tool_prefix"; then
12519 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12520set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12522$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12523if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12524 $as_echo_n "(cached) " >&6
4de997d1
PB
12525else
12526 if test -n "$CC_FOR_TARGET"; then
12527 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12528else
1c710c3c
DJ
12529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12530for as_dir in $PATH
12531do
12532 IFS=$as_save_IFS
12533 test -z "$as_dir" && as_dir=.
5213506e 12534 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12536 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12538 break 2
12539 fi
12540done
5213506e
RW
12541 done
12542IFS=$as_save_IFS
1c710c3c 12543
4de997d1
PB
12544fi
12545fi
1c710c3c 12546CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 12547if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12549$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 12550else
5213506e
RW
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552$as_echo "no" >&6; }
4de997d1
PB
12553fi
12554
5213506e 12555
e8b05380
PB
12556 fi
12557 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12559set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12561$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12562if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12563 $as_echo_n "(cached) " >&6
4de997d1 12564else
2693c0b0
PB
12565 if test -n "$CC_FOR_TARGET"; then
12566 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 12567else
1c710c3c
DJ
12568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569for as_dir in $PATH
12570do
12571 IFS=$as_save_IFS
12572 test -z "$as_dir" && as_dir=.
5213506e 12573 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12575 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12577 break 2
12578 fi
12579done
5213506e
RW
12580 done
12581IFS=$as_save_IFS
1c710c3c 12582
4de997d1
PB
12583fi
12584fi
1c710c3c 12585CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 12586if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12588$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 12589else
5213506e
RW
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591$as_echo "no" >&6; }
4de997d1 12592fi
1c710c3c 12593
5213506e 12594
e8b05380
PB
12595 fi
12596 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12597 done
12598fi
1c710c3c 12599
2693c0b0
PB
12600if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12601 set dummy cc gcc
12602 if test $build = $target ; then
12603 CC_FOR_TARGET="$2"
4de997d1 12604 else
2693c0b0 12605 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 12606 fi
1c00b503
PB
12607else
12608 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
12609fi
12610
278a7a38
AO
12611
12612
12613if test -n "$CXX_FOR_TARGET"; then
12614 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12615elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12616 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12617fi
12618
12619if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12620 for ncn_progname in c++ g++ cxx gxx; do
12621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12622set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12624$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12625if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 12626 $as_echo_n "(cached) " >&6
278a7a38
AO
12627else
12628 if test -n "$CXX_FOR_TARGET"; then
12629 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12630else
12631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12632for as_dir in $PATH
12633do
12634 IFS=$as_save_IFS
12635 test -z "$as_dir" && as_dir=.
5213506e 12636 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12638 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 12639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12640 break 2
12641 fi
12642done
5213506e
RW
12643 done
12644IFS=$as_save_IFS
278a7a38
AO
12645
12646fi
12647fi
12648CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12649if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12651$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 12652else
5213506e
RW
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654$as_echo "no" >&6; }
278a7a38
AO
12655fi
12656
5213506e 12657
278a7a38
AO
12658 done
12659fi
12660
12661if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12662 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12664$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12665 if test -x $with_build_time_tools/${ncn_progname}; then
12666 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12668$as_echo "yes" >&6; }
e8b05380
PB
12669 break
12670 else
5213506e
RW
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672$as_echo "no" >&6; }
e8b05380
PB
12673 fi
12674 done
12675fi
12676
12677if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12678 for ncn_progname in c++ g++ cxx gxx; do
12679 if test -n "$ncn_target_tool_prefix"; then
12680 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12681set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12683$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12684if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 12685 $as_echo_n "(cached) " >&6
4de997d1
PB
12686else
12687 if test -n "$CXX_FOR_TARGET"; then
12688 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12689else
1c710c3c
DJ
12690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12691for as_dir in $PATH
12692do
12693 IFS=$as_save_IFS
12694 test -z "$as_dir" && as_dir=.
5213506e 12695 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12697 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12699 break 2
12700 fi
12701done
5213506e
RW
12702 done
12703IFS=$as_save_IFS
1c710c3c 12704
4de997d1
PB
12705fi
12706fi
1c710c3c 12707CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 12708if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12710$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 12711else
5213506e
RW
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713$as_echo "no" >&6; }
4de997d1
PB
12714fi
12715
5213506e 12716
e8b05380
PB
12717 fi
12718 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
12719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12720set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12722$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12723if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 12724 $as_echo_n "(cached) " >&6
4de997d1 12725else
2693c0b0
PB
12726 if test -n "$CXX_FOR_TARGET"; then
12727 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 12728else
1c710c3c
DJ
12729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730for as_dir in $PATH
12731do
12732 IFS=$as_save_IFS
12733 test -z "$as_dir" && as_dir=.
5213506e 12734 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12736 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 12737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12738 break 2
12739 fi
12740done
5213506e
RW
12741 done
12742IFS=$as_save_IFS
1c710c3c 12743
4de997d1
PB
12744fi
12745fi
1c710c3c 12746CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 12747if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12749$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 12750else
5213506e
RW
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752$as_echo "no" >&6; }
4de997d1 12753fi
1c710c3c 12754
5213506e 12755
e8b05380
PB
12756 fi
12757 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
12758 done
12759fi
1c710c3c 12760
2693c0b0
PB
12761if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
12762 set dummy c++ g++ cxx gxx
12763 if test $build = $target ; then
12764 CXX_FOR_TARGET="$2"
4de997d1 12765 else
2693c0b0 12766 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 12767 fi
1c00b503
PB
12768else
12769 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
12770fi
12771
278a7a38
AO
12772
12773
12774if test -n "$GCC_FOR_TARGET"; then
12775 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
12776elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12777 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12778fi
12779
12780if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12781 for ncn_progname in gcc; do
12782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12783set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12785$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12786if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 12787 $as_echo_n "(cached) " >&6
278a7a38
AO
12788else
12789 if test -n "$GCC_FOR_TARGET"; then
12790 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12791else
12792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793for as_dir in $PATH
12794do
12795 IFS=$as_save_IFS
12796 test -z "$as_dir" && as_dir=.
5213506e 12797 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12799 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 12800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12801 break 2
12802 fi
12803done
5213506e
RW
12804 done
12805IFS=$as_save_IFS
278a7a38
AO
12806
12807fi
12808fi
12809GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12810if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12812$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 12813else
5213506e
RW
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815$as_echo "no" >&6; }
278a7a38
AO
12816fi
12817
5213506e 12818
278a7a38
AO
12819 done
12820fi
12821
12822if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12823 for ncn_progname in gcc; do
5213506e
RW
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12825$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12826 if test -x $with_build_time_tools/${ncn_progname}; then
12827 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12829$as_echo "yes" >&6; }
e8b05380
PB
12830 break
12831 else
5213506e
RW
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833$as_echo "no" >&6; }
e8b05380
PB
12834 fi
12835 done
12836fi
12837
12838if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
12839 for ncn_progname in gcc; do
12840 if test -n "$ncn_target_tool_prefix"; then
12841 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12842set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12844$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12845if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 12846 $as_echo_n "(cached) " >&6
ca9f4b81 12847else
e8b05380
PB
12848 if test -n "$GCC_FOR_TARGET"; then
12849 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 12850else
1c710c3c
DJ
12851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852for as_dir in $PATH
12853do
12854 IFS=$as_save_IFS
12855 test -z "$as_dir" && as_dir=.
5213506e 12856 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12858 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12860 break 2
12861 fi
12862done
5213506e
RW
12863 done
12864IFS=$as_save_IFS
1c710c3c 12865
ca9f4b81
AO
12866fi
12867fi
1c710c3c 12868GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 12869if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12871$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 12872else
5213506e
RW
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874$as_echo "no" >&6; }
ca9f4b81
AO
12875fi
12876
5213506e 12877
e8b05380
PB
12878 fi
12879 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
12880 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12881set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12883$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12884if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 12885 $as_echo_n "(cached) " >&6
ca9f4b81 12886else
e8b05380
PB
12887 if test -n "$GCC_FOR_TARGET"; then
12888 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 12889else
1c710c3c
DJ
12890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12891for as_dir in $PATH
12892do
12893 IFS=$as_save_IFS
12894 test -z "$as_dir" && as_dir=.
5213506e 12895 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12897 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 12898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12899 break 2
12900 fi
12901done
5213506e
RW
12902 done
12903IFS=$as_save_IFS
1c710c3c 12904
ca9f4b81
AO
12905fi
12906fi
1c710c3c 12907GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 12908if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12910$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 12911else
5213506e
RW
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12913$as_echo "no" >&6; }
ca9f4b81 12914fi
1c710c3c 12915
5213506e 12916
e8b05380
PB
12917 fi
12918 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
12919 done
12920fi
1c710c3c 12921
e8b05380
PB
12922if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
12923 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
12924else
12925 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
12926fi
12927
278a7a38
AO
12928
12929
278a7a38
AO
12930if test -n "$GFORTRAN_FOR_TARGET"; then
12931 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
12932elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12933 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
12934fi
12935
278a7a38
AO
12936if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12937 for ncn_progname in gfortran; do
12938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 12939set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12941$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12942if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 12943 $as_echo_n "(cached) " >&6
e8b05380 12944else
278a7a38
AO
12945 if test -n "$GFORTRAN_FOR_TARGET"; then
12946 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 12947else
1c710c3c
DJ
12948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949for as_dir in $PATH
12950do
12951 IFS=$as_save_IFS
12952 test -z "$as_dir" && as_dir=.
5213506e 12953 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12955 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 12956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12957 break 2
12958 fi
12959done
5213506e
RW
12960 done
12961IFS=$as_save_IFS
1c710c3c 12962
e8b05380
PB
12963fi
12964fi
278a7a38
AO
12965GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12966if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12968$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 12969else
5213506e
RW
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971$as_echo "no" >&6; }
e8b05380 12972fi
1c710c3c 12973
5213506e 12974
e8b05380
PB
12975 done
12976fi
1c710c3c 12977
278a7a38 12978if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12979 for ncn_progname in gfortran; do
5213506e
RW
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12981$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12982 if test -x $with_build_time_tools/${ncn_progname}; then
12983 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12985$as_echo "yes" >&6; }
e8b05380
PB
12986 break
12987 else
5213506e
RW
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989$as_echo "no" >&6; }
e8b05380
PB
12990 fi
12991 done
12992fi
12993
12994if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12995 for ncn_progname in gfortran; do
12996 if test -n "$ncn_target_tool_prefix"; then
12997 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12998set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13001if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13002 $as_echo_n "(cached) " >&6
e8b05380
PB
13003else
13004 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
13005 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13006else
13007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008for as_dir in $PATH
13009do
13010 IFS=$as_save_IFS
13011 test -z "$as_dir" && as_dir=.
5213506e 13012 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13014 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13016 break 2
13017 fi
13018done
5213506e
RW
13019 done
13020IFS=$as_save_IFS
1c710c3c 13021
e8b05380
PB
13022fi
13023fi
1c710c3c 13024GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13025if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13027$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13028else
5213506e
RW
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030$as_echo "no" >&6; }
e8b05380
PB
13031fi
13032
5213506e 13033
e8b05380
PB
13034 fi
13035 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13037set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13039$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13040if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13041 $as_echo_n "(cached) " >&6
e8b05380
PB
13042else
13043 if test -n "$GFORTRAN_FOR_TARGET"; then
13044 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13045else
1c710c3c
DJ
13046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047for as_dir in $PATH
13048do
13049 IFS=$as_save_IFS
13050 test -z "$as_dir" && as_dir=.
5213506e 13051 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13053 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13055 break 2
13056 fi
13057done
5213506e
RW
13058 done
13059IFS=$as_save_IFS
1c710c3c 13060
e8b05380
PB
13061fi
13062fi
1c710c3c 13063GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13064if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13066$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13067else
5213506e
RW
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069$as_echo "no" >&6; }
e8b05380 13070fi
1c710c3c 13071
5213506e 13072
e8b05380
PB
13073 fi
13074 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13075 done
13076fi
1c710c3c 13077
e8b05380
PB
13078if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13079 set dummy gfortran
2693c0b0 13080 if test $build = $target ; then
e8b05380 13081 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 13082 else
e8b05380
PB
13083 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13084 fi
1c00b503
PB
13085else
13086 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
13087fi
13088
13089
13090
632e2a07
ILT
13091if test -n "$GOC_FOR_TARGET"; then
13092 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13093elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13094 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13095fi
13096
13097if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13098 for ncn_progname in gccgo; do
13099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13100set dummy ${ncn_progname}; ac_word=$2
13101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13102$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13103if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13104 $as_echo_n "(cached) " >&6
13105else
13106 if test -n "$GOC_FOR_TARGET"; then
13107 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13108else
13109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13110for as_dir in $PATH
13111do
13112 IFS=$as_save_IFS
13113 test -z "$as_dir" && as_dir=.
13114 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13116 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13118 break 2
13119 fi
13120done
13121 done
13122IFS=$as_save_IFS
13123
13124fi
13125fi
13126GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13127if test -n "$GOC_FOR_TARGET"; then
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13129$as_echo "$GOC_FOR_TARGET" >&6; }
13130else
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13132$as_echo "no" >&6; }
13133fi
13134
13135
13136 done
13137fi
13138
13139if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13140 for ncn_progname in gccgo; do
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13142$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13143 if test -x $with_build_time_tools/${ncn_progname}; then
13144 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13146$as_echo "yes" >&6; }
13147 break
13148 else
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13150$as_echo "no" >&6; }
13151 fi
13152 done
13153fi
13154
13155if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13156 for ncn_progname in gccgo; do
13157 if test -n "$ncn_target_tool_prefix"; then
13158 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13159set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13161$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13162if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13163 $as_echo_n "(cached) " >&6
13164else
13165 if test -n "$GOC_FOR_TARGET"; then
13166 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13167else
13168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169for as_dir in $PATH
13170do
13171 IFS=$as_save_IFS
13172 test -z "$as_dir" && as_dir=.
13173 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13175 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13177 break 2
13178 fi
13179done
13180 done
13181IFS=$as_save_IFS
13182
13183fi
13184fi
13185GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13186if test -n "$GOC_FOR_TARGET"; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13188$as_echo "$GOC_FOR_TARGET" >&6; }
13189else
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191$as_echo "no" >&6; }
13192fi
13193
13194
13195 fi
13196 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13198set dummy ${ncn_progname}; ac_word=$2
13199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13200$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13201if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13202 $as_echo_n "(cached) " >&6
13203else
13204 if test -n "$GOC_FOR_TARGET"; then
13205 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13206else
13207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13208for as_dir in $PATH
13209do
13210 IFS=$as_save_IFS
13211 test -z "$as_dir" && as_dir=.
13212 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13214 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13216 break 2
13217 fi
13218done
13219 done
13220IFS=$as_save_IFS
13221
13222fi
13223fi
13224GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13225if test -n "$GOC_FOR_TARGET"; then
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13227$as_echo "$GOC_FOR_TARGET" >&6; }
13228else
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230$as_echo "no" >&6; }
13231fi
13232
13233
13234 fi
13235 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13236 done
13237fi
13238
13239if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13240 set dummy gccgo
13241 if test $build = $target ; then
13242 GOC_FOR_TARGET="$2"
13243 else
13244 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13245 fi
13246else
13247 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13248fi
13249
13250
13251
b4c522fa
IB
13252if test -n "$GDC_FOR_TARGET"; then
13253 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13254elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13255 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13256fi
13257
13258if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13259 for ncn_progname in gdc; do
13260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13261set dummy ${ncn_progname}; ac_word=$2
13262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13263$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13264if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13265 $as_echo_n "(cached) " >&6
13266else
13267 if test -n "$GDC_FOR_TARGET"; then
13268 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13269else
13270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13271for as_dir in $PATH
13272do
13273 IFS=$as_save_IFS
13274 test -z "$as_dir" && as_dir=.
13275 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13277 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13279 break 2
13280 fi
13281done
13282 done
13283IFS=$as_save_IFS
13284
13285fi
13286fi
13287GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13288if test -n "$GDC_FOR_TARGET"; then
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13290$as_echo "$GDC_FOR_TARGET" >&6; }
13291else
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13293$as_echo "no" >&6; }
13294fi
13295
13296
13297 done
13298fi
13299
13300if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13301 for ncn_progname in gdc; do
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13303$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13304 if test -x $with_build_time_tools/${ncn_progname}; then
13305 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13307$as_echo "yes" >&6; }
13308 break
13309 else
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13311$as_echo "no" >&6; }
13312 fi
13313 done
13314fi
13315
13316if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13317 for ncn_progname in gdc; do
13318 if test -n "$ncn_target_tool_prefix"; then
13319 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13320set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13322$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13323if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13324 $as_echo_n "(cached) " >&6
13325else
13326 if test -n "$GDC_FOR_TARGET"; then
13327 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13328else
13329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330for as_dir in $PATH
13331do
13332 IFS=$as_save_IFS
13333 test -z "$as_dir" && as_dir=.
13334 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13336 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13338 break 2
13339 fi
13340done
13341 done
13342IFS=$as_save_IFS
13343
13344fi
13345fi
13346GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13347if test -n "$GDC_FOR_TARGET"; then
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13349$as_echo "$GDC_FOR_TARGET" >&6; }
13350else
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13352$as_echo "no" >&6; }
13353fi
13354
13355
13356 fi
13357 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13358 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13359set dummy ${ncn_progname}; ac_word=$2
13360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13361$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13362if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13363 $as_echo_n "(cached) " >&6
13364else
13365 if test -n "$GDC_FOR_TARGET"; then
13366 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13367else
13368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13369for as_dir in $PATH
13370do
13371 IFS=$as_save_IFS
13372 test -z "$as_dir" && as_dir=.
13373 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13375 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13377 break 2
13378 fi
13379done
13380 done
13381IFS=$as_save_IFS
13382
13383fi
13384fi
13385GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13386if test -n "$GDC_FOR_TARGET"; then
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13388$as_echo "$GDC_FOR_TARGET" >&6; }
13389else
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13391$as_echo "no" >&6; }
13392fi
13393
13394
13395 fi
13396 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13397 done
13398fi
13399
13400if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13401 set dummy gdc
13402 if test $build = $target ; then
13403 GDC_FOR_TARGET="$2"
13404 else
13405 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13406 fi
13407else
13408 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13409fi
13410
13411
13412
e8b05380
PB
13413cat > conftest.c << \EOF
13414#ifdef __GNUC__
13415 gcc_yay;
13416#endif
13417EOF
13418if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13419 have_gcc_for_target=yes
13420else
13421 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13422 have_gcc_for_target=no
13423fi
13424rm conftest.c
13425
13426
13427
13428
13429if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13430 if test -n "$with_build_time_tools"; then
5213506e
RW
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13432$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13433 if test -x $with_build_time_tools/ar; then
13434 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13435 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13437$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 13438 else
5213506e
RW
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13440$as_echo "no" >&6; }
d1f8db0c 13441 fi
e8b05380
PB
13442 elif test $build != $host && test $have_gcc_for_target = yes; then
13443 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
13444 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13445 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
13446 fi
13447fi
3e19841a 13448if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13449 # Extract the first word of "ar", so it can be a program name with args.
13450set dummy ar; ac_word=$2
5213506e
RW
13451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13452$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13453if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 13454 $as_echo_n "(cached) " >&6
e8b05380 13455else
1c710c3c
DJ
13456 case $AR_FOR_TARGET in
13457 [\\/]* | ?:[\\/]*)
e8b05380
PB
13458 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13459 ;;
e8b05380 13460 *)
1c710c3c
DJ
13461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13462for as_dir in $gcc_cv_tool_dirs
13463do
13464 IFS=$as_save_IFS
13465 test -z "$as_dir" && as_dir=.
5213506e 13466 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13468 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13470 break 2
13471 fi
13472done
5213506e
RW
13473 done
13474IFS=$as_save_IFS
1c710c3c 13475
e8b05380
PB
13476 ;;
13477esac
13478fi
1c710c3c 13479AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 13480if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13482$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 13483else
5213506e
RW
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485$as_echo "no" >&6; }
4de997d1
PB
13486fi
13487
5213506e 13488
e8b05380
PB
13489fi
13490if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
13491
13492
13493if test -n "$AR_FOR_TARGET"; then
13494 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13495elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13496 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13497fi
13498
13499if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13500 for ncn_progname in ar; do
13501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13502set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13504$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13505if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13506 $as_echo_n "(cached) " >&6
278a7a38
AO
13507else
13508 if test -n "$AR_FOR_TARGET"; then
13509 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13510else
13511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13512for as_dir in $PATH
13513do
13514 IFS=$as_save_IFS
13515 test -z "$as_dir" && as_dir=.
5213506e 13516 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13518 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 13519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13520 break 2
13521 fi
13522done
5213506e
RW
13523 done
13524IFS=$as_save_IFS
278a7a38
AO
13525
13526fi
13527fi
13528AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13529if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13531$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 13532else
5213506e
RW
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13534$as_echo "no" >&6; }
278a7a38
AO
13535fi
13536
5213506e 13537
278a7a38
AO
13538 done
13539fi
13540
13541if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13542 for ncn_progname in ar; do
5213506e
RW
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13544$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13545 if test -x $with_build_time_tools/${ncn_progname}; then
13546 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13548$as_echo "yes" >&6; }
e8b05380
PB
13549 break
13550 else
5213506e
RW
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13552$as_echo "no" >&6; }
e8b05380
PB
13553 fi
13554 done
13555fi
13556
13557if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13558 for ncn_progname in ar; do
13559 if test -n "$ncn_target_tool_prefix"; then
13560 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13561set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13563$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13564if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13565 $as_echo_n "(cached) " >&6
4de997d1 13566else
e8b05380
PB
13567 if test -n "$AR_FOR_TARGET"; then
13568 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 13569else
1c710c3c
DJ
13570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571for as_dir in $PATH
13572do
13573 IFS=$as_save_IFS
13574 test -z "$as_dir" && as_dir=.
5213506e 13575 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13577 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13579 break 2
13580 fi
13581done
5213506e
RW
13582 done
13583IFS=$as_save_IFS
1c710c3c 13584
4de997d1
PB
13585fi
13586fi
1c710c3c 13587AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 13588if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13590$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 13591else
5213506e
RW
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593$as_echo "no" >&6; }
4de997d1
PB
13594fi
13595
5213506e 13596
e8b05380
PB
13597 fi
13598 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13600set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13602$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13603if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13604 $as_echo_n "(cached) " >&6
e8b05380
PB
13605else
13606 if test -n "$AR_FOR_TARGET"; then
13607 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13608else
1c710c3c
DJ
13609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610for as_dir in $PATH
13611do
13612 IFS=$as_save_IFS
13613 test -z "$as_dir" && as_dir=.
5213506e 13614 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13616 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 13617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13618 break 2
13619 fi
13620done
5213506e
RW
13621 done
13622IFS=$as_save_IFS
1c710c3c 13623
e8b05380
PB
13624fi
13625fi
1c710c3c 13626AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 13627if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13629$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 13630else
5213506e
RW
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13632$as_echo "no" >&6; }
e8b05380 13633fi
1c710c3c 13634
5213506e 13635
e8b05380
PB
13636 fi
13637 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13638 done
13639fi
1c710c3c 13640
e8b05380
PB
13641if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13642 set dummy ar
13643 if test $build = $target ; then
13644 AR_FOR_TARGET="$2"
13645 else
13646 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 13647 fi
1c00b503
PB
13648else
13649 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
13650fi
13651
d1f8db0c
PB
13652else
13653 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
13654fi
13655
13656
13657
13658
13659if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13660 if test -n "$with_build_time_tools"; then
5213506e
RW
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
13662$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13663 if test -x $with_build_time_tools/as; then
13664 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
13665 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
13667$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 13668 else
5213506e
RW
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670$as_echo "no" >&6; }
d1f8db0c 13671 fi
e8b05380
PB
13672 elif test $build != $host && test $have_gcc_for_target = yes; then
13673 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
13674 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
13675 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
13676 fi
13677fi
3e19841a 13678if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13679 # Extract the first word of "as", so it can be a program name with args.
13680set dummy as; ac_word=$2
5213506e
RW
13681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13682$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13683if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 13684 $as_echo_n "(cached) " >&6
e8b05380 13685else
1c710c3c
DJ
13686 case $AS_FOR_TARGET in
13687 [\\/]* | ?:[\\/]*)
e8b05380
PB
13688 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
13689 ;;
e8b05380 13690 *)
1c710c3c
DJ
13691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13692for as_dir in $gcc_cv_tool_dirs
13693do
13694 IFS=$as_save_IFS
13695 test -z "$as_dir" && as_dir=.
5213506e 13696 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13698 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13700 break 2
13701 fi
13702done
5213506e
RW
13703 done
13704IFS=$as_save_IFS
1c710c3c 13705
e8b05380
PB
13706 ;;
13707esac
13708fi
1c710c3c 13709AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 13710if test -n "$AS_FOR_TARGET"; then
5213506e
RW
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13712$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 13713else
5213506e
RW
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13715$as_echo "no" >&6; }
e8b05380
PB
13716fi
13717
5213506e 13718
e8b05380
PB
13719fi
13720if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
13721
13722
13723if test -n "$AS_FOR_TARGET"; then
13724 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
13725elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13726 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13727fi
13728
13729if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13730 for ncn_progname in as; do
13731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13732set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13734$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13735if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 13736 $as_echo_n "(cached) " >&6
278a7a38
AO
13737else
13738 if test -n "$AS_FOR_TARGET"; then
13739 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13740else
13741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742for as_dir in $PATH
13743do
13744 IFS=$as_save_IFS
13745 test -z "$as_dir" && as_dir=.
5213506e 13746 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13748 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 13749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13750 break 2
13751 fi
13752done
5213506e
RW
13753 done
13754IFS=$as_save_IFS
278a7a38
AO
13755
13756fi
13757fi
13758AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13759if test -n "$AS_FOR_TARGET"; then
5213506e
RW
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13761$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 13762else
5213506e
RW
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13764$as_echo "no" >&6; }
278a7a38
AO
13765fi
13766
5213506e 13767
278a7a38
AO
13768 done
13769fi
13770
13771if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13772 for ncn_progname in as; do
5213506e
RW
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13774$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13775 if test -x $with_build_time_tools/${ncn_progname}; then
13776 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13778$as_echo "yes" >&6; }
e8b05380
PB
13779 break
13780 else
5213506e
RW
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782$as_echo "no" >&6; }
e8b05380
PB
13783 fi
13784 done
13785fi
13786
13787if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
13788 for ncn_progname in as; do
13789 if test -n "$ncn_target_tool_prefix"; then
13790 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13791set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13793$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13794if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 13795 $as_echo_n "(cached) " >&6
e8b05380
PB
13796else
13797 if test -n "$AS_FOR_TARGET"; then
13798 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13799else
1c710c3c
DJ
13800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13801for as_dir in $PATH
13802do
13803 IFS=$as_save_IFS
13804 test -z "$as_dir" && as_dir=.
5213506e 13805 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13807 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13809 break 2
13810 fi
13811done
5213506e
RW
13812 done
13813IFS=$as_save_IFS
1c710c3c 13814
e8b05380
PB
13815fi
13816fi
1c710c3c 13817AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 13818if test -n "$AS_FOR_TARGET"; then
5213506e
RW
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13820$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 13821else
5213506e
RW
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13823$as_echo "no" >&6; }
e8b05380
PB
13824fi
13825
5213506e 13826
e8b05380
PB
13827 fi
13828 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
13829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13830set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13832$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13833if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 13834 $as_echo_n "(cached) " >&6
4de997d1 13835else
e8b05380
PB
13836 if test -n "$AS_FOR_TARGET"; then
13837 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 13838else
1c710c3c
DJ
13839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13840for as_dir in $PATH
13841do
13842 IFS=$as_save_IFS
13843 test -z "$as_dir" && as_dir=.
5213506e 13844 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13846 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 13847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13848 break 2
13849 fi
13850done
5213506e
RW
13851 done
13852IFS=$as_save_IFS
1c710c3c 13853
4de997d1
PB
13854fi
13855fi
1c710c3c 13856AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 13857if test -n "$AS_FOR_TARGET"; then
5213506e
RW
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13859$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 13860else
5213506e
RW
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13862$as_echo "no" >&6; }
4de997d1 13863fi
1c710c3c 13864
5213506e 13865
e8b05380
PB
13866 fi
13867 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
13868 done
13869fi
1c710c3c 13870
e8b05380
PB
13871if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
13872 set dummy as
13873 if test $build = $target ; then
13874 AS_FOR_TARGET="$2"
13875 else
13876 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13877 fi
1c00b503
PB
13878else
13879 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 13880fi
2693c0b0 13881
d1f8db0c
PB
13882else
13883 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
13884fi
13885
e8b05380
PB
13886
13887
13888
13889if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13890 if test -n "$with_build_time_tools"; then
5213506e
RW
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
13892$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13893 if test -x $with_build_time_tools/dlltool; then
13894 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
13895 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
13897$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 13898 else
5213506e
RW
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13900$as_echo "no" >&6; }
d1f8db0c 13901 fi
e8b05380
PB
13902 elif test $build != $host && test $have_gcc_for_target = yes; then
13903 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
13904 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
13905 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
13906 fi
13907fi
3e19841a 13908if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13909 # Extract the first word of "dlltool", so it can be a program name with args.
13910set dummy dlltool; ac_word=$2
5213506e
RW
13911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13912$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13913if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 13914 $as_echo_n "(cached) " >&6
4de997d1 13915else
1c710c3c
DJ
13916 case $DLLTOOL_FOR_TARGET in
13917 [\\/]* | ?:[\\/]*)
e8b05380
PB
13918 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
13919 ;;
e8b05380 13920 *)
1c710c3c
DJ
13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922for as_dir in $gcc_cv_tool_dirs
13923do
13924 IFS=$as_save_IFS
13925 test -z "$as_dir" && as_dir=.
5213506e 13926 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13928 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13930 break 2
13931 fi
13932done
5213506e
RW
13933 done
13934IFS=$as_save_IFS
1c710c3c 13935
e8b05380
PB
13936 ;;
13937esac
4de997d1 13938fi
1c710c3c 13939DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 13940if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13942$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 13943else
5213506e
RW
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945$as_echo "no" >&6; }
4de997d1
PB
13946fi
13947
5213506e 13948
e8b05380
PB
13949fi
13950if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
13951
13952
13953if test -n "$DLLTOOL_FOR_TARGET"; then
13954 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13955elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13956 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13957fi
13958
13959if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13960 for ncn_progname in dlltool; do
13961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13962set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13964$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13965if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 13966 $as_echo_n "(cached) " >&6
278a7a38
AO
13967else
13968 if test -n "$DLLTOOL_FOR_TARGET"; then
13969 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
13970else
13971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13972for as_dir in $PATH
13973do
13974 IFS=$as_save_IFS
13975 test -z "$as_dir" && as_dir=.
5213506e 13976 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13978 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 13979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13980 break 2
13981 fi
13982done
5213506e
RW
13983 done
13984IFS=$as_save_IFS
278a7a38
AO
13985
13986fi
13987fi
13988DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13989if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13991$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 13992else
5213506e
RW
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13994$as_echo "no" >&6; }
278a7a38
AO
13995fi
13996
5213506e 13997
278a7a38
AO
13998 done
13999fi
14000
14001if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14002 for ncn_progname in dlltool; do
5213506e
RW
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14004$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14005 if test -x $with_build_time_tools/${ncn_progname}; then
14006 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14008$as_echo "yes" >&6; }
e8b05380
PB
14009 break
14010 else
5213506e
RW
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14012$as_echo "no" >&6; }
e8b05380
PB
14013 fi
14014 done
14015fi
14016
14017if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14018 for ncn_progname in dlltool; do
14019 if test -n "$ncn_target_tool_prefix"; then
14020 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14021set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14023$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14024if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14025 $as_echo_n "(cached) " >&6
4de997d1 14026else
e8b05380
PB
14027 if test -n "$DLLTOOL_FOR_TARGET"; then
14028 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14029else
1c710c3c
DJ
14030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14031for as_dir in $PATH
14032do
14033 IFS=$as_save_IFS
14034 test -z "$as_dir" && as_dir=.
5213506e 14035 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14037 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14039 break 2
14040 fi
14041done
5213506e
RW
14042 done
14043IFS=$as_save_IFS
1c710c3c 14044
4de997d1
PB
14045fi
14046fi
1c710c3c 14047DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14048if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14050$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14051else
5213506e
RW
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14053$as_echo "no" >&6; }
4de997d1 14054fi
4de997d1 14055
5213506e 14056
e8b05380
PB
14057 fi
14058 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14060set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14062$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14063if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14064 $as_echo_n "(cached) " >&6
4de997d1 14065else
e8b05380
PB
14066 if test -n "$DLLTOOL_FOR_TARGET"; then
14067 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14068else
1c710c3c
DJ
14069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14070for as_dir in $PATH
14071do
14072 IFS=$as_save_IFS
14073 test -z "$as_dir" && as_dir=.
5213506e 14074 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14076 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14078 break 2
14079 fi
14080done
5213506e
RW
14081 done
14082IFS=$as_save_IFS
1c710c3c 14083
4de997d1
PB
14084fi
14085fi
1c710c3c 14086DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14087if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14089$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14090else
5213506e
RW
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14092$as_echo "no" >&6; }
4de997d1 14093fi
1c710c3c 14094
5213506e 14095
e8b05380
PB
14096 fi
14097 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14098 done
14099fi
1c710c3c 14100
e8b05380
PB
14101if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14102 set dummy dlltool
14103 if test $build = $target ; then
14104 DLLTOOL_FOR_TARGET="$2"
14105 else
14106 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14107 fi
1c00b503
PB
14108else
14109 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
14110fi
14111
d1f8db0c
PB
14112else
14113 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
14114fi
14115
4de997d1 14116
e8b05380
PB
14117
14118
10abab41
IS
14119if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14120 if test -n "$with_build_time_tools"; then
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14122$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14123 if test -x $with_build_time_tools/dsymutil; then
14124 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14125 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14127$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14128 else
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14130$as_echo "no" >&6; }
14131 fi
14132 elif test $build != $host && test $have_gcc_for_target = yes; then
14133 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14134 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14135 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14136 fi
14137fi
14138if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14139 # Extract the first word of "dsymutil", so it can be a program name with args.
14140set dummy dsymutil; ac_word=$2
14141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14142$as_echo_n "checking for $ac_word... " >&6; }
14143if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14144 $as_echo_n "(cached) " >&6
14145else
14146 case $DSYMUTIL_FOR_TARGET in
14147 [\\/]* | ?:[\\/]*)
14148 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14149 ;;
14150 *)
14151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14152for as_dir in $gcc_cv_tool_dirs
14153do
14154 IFS=$as_save_IFS
14155 test -z "$as_dir" && as_dir=.
14156 for ac_exec_ext in '' $ac_executable_extensions; do
14157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14158 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14160 break 2
14161 fi
14162done
14163 done
14164IFS=$as_save_IFS
14165
14166 ;;
14167esac
14168fi
14169DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14170if test -n "$DSYMUTIL_FOR_TARGET"; then
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14172$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14173else
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175$as_echo "no" >&6; }
14176fi
14177
14178
14179fi
14180if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14181
14182
14183if test -n "$DSYMUTIL_FOR_TARGET"; then
14184 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14185elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14186 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14187fi
14188
14189if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14190 for ncn_progname in dsymutil; do
14191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14192set dummy ${ncn_progname}; ac_word=$2
14193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14194$as_echo_n "checking for $ac_word... " >&6; }
14195if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14196 $as_echo_n "(cached) " >&6
14197else
14198 if test -n "$DSYMUTIL_FOR_TARGET"; then
14199 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14200else
14201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14202for as_dir in $PATH
14203do
14204 IFS=$as_save_IFS
14205 test -z "$as_dir" && as_dir=.
14206 for ac_exec_ext in '' $ac_executable_extensions; do
14207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14208 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14210 break 2
14211 fi
14212done
14213 done
14214IFS=$as_save_IFS
14215
14216fi
14217fi
14218DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14219if test -n "$DSYMUTIL_FOR_TARGET"; then
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14221$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14222else
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14224$as_echo "no" >&6; }
14225fi
14226
14227
14228 done
14229fi
14230
14231if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14232 for ncn_progname in dsymutil; do
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14234$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14235 if test -x $with_build_time_tools/${ncn_progname}; then
14236 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14238$as_echo "yes" >&6; }
14239 break
14240 else
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14242$as_echo "no" >&6; }
14243 fi
14244 done
14245fi
14246
14247if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14248 for ncn_progname in dsymutil; do
14249 if test -n "$ncn_target_tool_prefix"; then
14250 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14251set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14253$as_echo_n "checking for $ac_word... " >&6; }
14254if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14255 $as_echo_n "(cached) " >&6
14256else
14257 if test -n "$DSYMUTIL_FOR_TARGET"; then
14258 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14259else
14260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14261for as_dir in $PATH
14262do
14263 IFS=$as_save_IFS
14264 test -z "$as_dir" && as_dir=.
14265 for ac_exec_ext in '' $ac_executable_extensions; do
14266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14267 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14269 break 2
14270 fi
14271done
14272 done
14273IFS=$as_save_IFS
14274
14275fi
14276fi
14277DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14278if test -n "$DSYMUTIL_FOR_TARGET"; then
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14280$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14281else
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14283$as_echo "no" >&6; }
14284fi
14285
14286
14287 fi
14288 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14290set dummy ${ncn_progname}; ac_word=$2
14291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14292$as_echo_n "checking for $ac_word... " >&6; }
14293if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14294 $as_echo_n "(cached) " >&6
14295else
14296 if test -n "$DSYMUTIL_FOR_TARGET"; then
14297 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14298else
14299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14300for as_dir in $PATH
14301do
14302 IFS=$as_save_IFS
14303 test -z "$as_dir" && as_dir=.
14304 for ac_exec_ext in '' $ac_executable_extensions; do
14305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14306 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14308 break 2
14309 fi
14310done
14311 done
14312IFS=$as_save_IFS
14313
14314fi
14315fi
14316DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14317if test -n "$DSYMUTIL_FOR_TARGET"; then
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14319$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14320else
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14322$as_echo "no" >&6; }
14323fi
14324
14325
14326 fi
14327 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14328 done
14329fi
14330
14331if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14332 set dummy dsymutil
14333 if test $build = $target ; then
14334 DSYMUTIL_FOR_TARGET="$2"
14335 else
14336 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14337 fi
14338else
14339 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14340fi
14341
14342else
14343 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14344fi
14345
14346
14347
14348
e8b05380
PB
14349if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14350 if test -n "$with_build_time_tools"; then
5213506e
RW
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14352$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14353 if test -x $with_build_time_tools/ld; then
14354 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14355 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14357$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 14358 else
5213506e
RW
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14360$as_echo "no" >&6; }
d1f8db0c 14361 fi
e8b05380
PB
14362 elif test $build != $host && test $have_gcc_for_target = yes; then
14363 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
14364 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14365 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 14366 fi
e8b05380 14367fi
3e19841a 14368if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14369 # Extract the first word of "ld", so it can be a program name with args.
14370set dummy ld; ac_word=$2
5213506e
RW
14371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14372$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14373if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 14374 $as_echo_n "(cached) " >&6
4de997d1 14375else
1c710c3c
DJ
14376 case $LD_FOR_TARGET in
14377 [\\/]* | ?:[\\/]*)
e8b05380
PB
14378 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14379 ;;
e8b05380 14380 *)
1c710c3c
DJ
14381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14382for as_dir in $gcc_cv_tool_dirs
14383do
14384 IFS=$as_save_IFS
14385 test -z "$as_dir" && as_dir=.
5213506e 14386 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14388 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14390 break 2
14391 fi
14392done
5213506e
RW
14393 done
14394IFS=$as_save_IFS
1c710c3c 14395
e8b05380
PB
14396 ;;
14397esac
4de997d1 14398fi
1c710c3c 14399LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 14400if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14402$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 14403else
5213506e
RW
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14405$as_echo "no" >&6; }
4de997d1 14406fi
2693c0b0 14407
5213506e 14408
e8b05380
PB
14409fi
14410if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
14411
14412
14413if test -n "$LD_FOR_TARGET"; then
14414 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14415elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14416 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14417fi
14418
14419if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14420 for ncn_progname in ld; do
14421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14422set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14424$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14425if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14426 $as_echo_n "(cached) " >&6
278a7a38
AO
14427else
14428 if test -n "$LD_FOR_TARGET"; then
14429 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14430else
14431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14432for as_dir in $PATH
14433do
14434 IFS=$as_save_IFS
14435 test -z "$as_dir" && as_dir=.
5213506e 14436 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14438 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 14439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14440 break 2
14441 fi
14442done
5213506e
RW
14443 done
14444IFS=$as_save_IFS
278a7a38
AO
14445
14446fi
14447fi
14448LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14449if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14451$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 14452else
5213506e
RW
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14454$as_echo "no" >&6; }
278a7a38
AO
14455fi
14456
5213506e 14457
278a7a38
AO
14458 done
14459fi
14460
14461if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14462 for ncn_progname in ld; do
5213506e
RW
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14464$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14465 if test -x $with_build_time_tools/${ncn_progname}; then
14466 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14468$as_echo "yes" >&6; }
e8b05380
PB
14469 break
14470 else
5213506e
RW
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14472$as_echo "no" >&6; }
e8b05380
PB
14473 fi
14474 done
ca9f4b81
AO
14475fi
14476
e8b05380
PB
14477if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14478 for ncn_progname in ld; do
14479 if test -n "$ncn_target_tool_prefix"; then
14480 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14481set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14483$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14484if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14485 $as_echo_n "(cached) " >&6
ca9f4b81 14486else
4de997d1
PB
14487 if test -n "$LD_FOR_TARGET"; then
14488 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 14489else
1c710c3c
DJ
14490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14491for as_dir in $PATH
14492do
14493 IFS=$as_save_IFS
14494 test -z "$as_dir" && as_dir=.
5213506e 14495 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14497 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14499 break 2
14500 fi
14501done
5213506e
RW
14502 done
14503IFS=$as_save_IFS
1c710c3c 14504
ca9f4b81
AO
14505fi
14506fi
1c710c3c 14507LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 14508if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14510$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 14511else
5213506e
RW
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14513$as_echo "no" >&6; }
ca9f4b81
AO
14514fi
14515
5213506e 14516
e8b05380
PB
14517 fi
14518 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14520set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14522$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14523if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14524 $as_echo_n "(cached) " >&6
ca9f4b81 14525else
2693c0b0
PB
14526 if test -n "$LD_FOR_TARGET"; then
14527 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 14528else
1c710c3c
DJ
14529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14530for as_dir in $PATH
14531do
14532 IFS=$as_save_IFS
14533 test -z "$as_dir" && as_dir=.
5213506e 14534 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14536 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 14537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14538 break 2
14539 fi
14540done
5213506e
RW
14541 done
14542IFS=$as_save_IFS
1c710c3c 14543
ca9f4b81
AO
14544fi
14545fi
1c710c3c 14546LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 14547if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14549$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 14550else
5213506e
RW
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14552$as_echo "no" >&6; }
ca9f4b81 14553fi
1c710c3c 14554
5213506e 14555
e8b05380
PB
14556 fi
14557 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14558 done
14559fi
1c710c3c 14560
2693c0b0
PB
14561if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14562 set dummy ld
14563 if test $build = $target ; then
14564 LD_FOR_TARGET="$2"
ca9f4b81 14565 else
2693c0b0 14566 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 14567 fi
1c00b503
PB
14568else
14569 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
14570fi
14571
d1f8db0c
PB
14572else
14573 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
14574fi
14575
14576
14577
14578
14579if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14580 if test -n "$with_build_time_tools"; then
5213506e
RW
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14582$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14583 if test -x $with_build_time_tools/lipo; then
14584 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14585 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14587$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 14588 else
5213506e
RW
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14590$as_echo "no" >&6; }
d1f8db0c 14591 fi
e8b05380
PB
14592 elif test $build != $host && test $have_gcc_for_target = yes; then
14593 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
14594 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14595 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
14596 fi
14597fi
278a7a38
AO
14598if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14599 # Extract the first word of "lipo", so it can be a program name with args.
14600set dummy lipo; ac_word=$2
5213506e
RW
14601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14602$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14603if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 14604 $as_echo_n "(cached) " >&6
278a7a38
AO
14605else
14606 case $LIPO_FOR_TARGET in
14607 [\\/]* | ?:[\\/]*)
14608 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14609 ;;
14610 *)
14611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14612for as_dir in $gcc_cv_tool_dirs
14613do
14614 IFS=$as_save_IFS
14615 test -z "$as_dir" && as_dir=.
5213506e 14616 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14618 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14620 break 2
14621 fi
14622done
5213506e
RW
14623 done
14624IFS=$as_save_IFS
278a7a38
AO
14625
14626 ;;
14627esac
14628fi
14629LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 14630if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14632$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 14633else
5213506e
RW
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14635$as_echo "no" >&6; }
278a7a38
AO
14636fi
14637
5213506e 14638
278a7a38
AO
14639fi
14640if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14641
14642
14643if test -n "$LIPO_FOR_TARGET"; then
14644 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14645elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14646 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14647fi
14648
14649if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14650 for ncn_progname in lipo; do
14651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14652set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14654$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14655if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 14656 $as_echo_n "(cached) " >&6
e8b05380 14657else
278a7a38
AO
14658 if test -n "$LIPO_FOR_TARGET"; then
14659 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14660else
14661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14662for as_dir in $PATH
1c710c3c
DJ
14663do
14664 IFS=$as_save_IFS
14665 test -z "$as_dir" && as_dir=.
5213506e 14666 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14668 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 14669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14670 break 2
14671 fi
14672done
5213506e
RW
14673 done
14674IFS=$as_save_IFS
1c710c3c 14675
e8b05380 14676fi
278a7a38
AO
14677fi
14678LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 14679if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14681$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 14682else
5213506e
RW
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14684$as_echo "no" >&6; }
e8b05380
PB
14685fi
14686
5213506e 14687
278a7a38 14688 done
e8b05380 14689fi
278a7a38
AO
14690
14691if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14692 for ncn_progname in lipo; do
5213506e
RW
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14694$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14695 if test -x $with_build_time_tools/${ncn_progname}; then
14696 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14698$as_echo "yes" >&6; }
e8b05380
PB
14699 break
14700 else
5213506e
RW
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14702$as_echo "no" >&6; }
e8b05380
PB
14703 fi
14704 done
14705fi
14706
14707if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
14708 for ncn_progname in lipo; do
14709 if test -n "$ncn_target_tool_prefix"; then
14710 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14711set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14713$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14714if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 14715 $as_echo_n "(cached) " >&6
040b1c5a
GK
14716else
14717 if test -n "$LIPO_FOR_TARGET"; then
14718 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14719else
1c710c3c
DJ
14720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14721for as_dir in $PATH
14722do
14723 IFS=$as_save_IFS
14724 test -z "$as_dir" && as_dir=.
5213506e 14725 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14727 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14729 break 2
14730 fi
14731done
5213506e
RW
14732 done
14733IFS=$as_save_IFS
1c710c3c 14734
040b1c5a
GK
14735fi
14736fi
1c710c3c 14737LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 14738if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14740$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 14741else
5213506e
RW
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14743$as_echo "no" >&6; }
040b1c5a
GK
14744fi
14745
5213506e 14746
e8b05380
PB
14747 fi
14748 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
14749 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 14750set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14752$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14753if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 14754 $as_echo_n "(cached) " >&6
040b1c5a
GK
14755else
14756 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
14757 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14758else
1c710c3c
DJ
14759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14760for as_dir in $PATH
14761do
14762 IFS=$as_save_IFS
14763 test -z "$as_dir" && as_dir=.
5213506e 14764 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14766 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 14767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14768 break 2
14769 fi
14770done
5213506e
RW
14771 done
14772IFS=$as_save_IFS
1c710c3c 14773
040b1c5a
GK
14774fi
14775fi
1c710c3c 14776LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 14777if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14779$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 14780else
5213506e
RW
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14782$as_echo "no" >&6; }
040b1c5a 14783fi
1c710c3c 14784
5213506e 14785
e8b05380
PB
14786 fi
14787 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
14788 done
14789fi
1c710c3c 14790
040b1c5a
GK
14791if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
14792 set dummy lipo
14793 if test $build = $target ; then
14794 LIPO_FOR_TARGET="$2"
14795 else
14796 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
14797 fi
1c00b503
PB
14798else
14799 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
14800fi
14801
d1f8db0c
PB
14802else
14803 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
14804fi
14805
14806
14807
14808
14809if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14810 if test -n "$with_build_time_tools"; then
5213506e
RW
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
14812$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14813 if test -x $with_build_time_tools/nm; then
14814 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
14815 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
14817$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 14818 else
5213506e
RW
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14820$as_echo "no" >&6; }
d1f8db0c 14821 fi
e8b05380
PB
14822 elif test $build != $host && test $have_gcc_for_target = yes; then
14823 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
14824 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
14825 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
14826 fi
14827fi
3e19841a 14828if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14829 # Extract the first word of "nm", so it can be a program name with args.
14830set dummy nm; ac_word=$2
5213506e
RW
14831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14832$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14833if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 14834 $as_echo_n "(cached) " >&6
e8b05380 14835else
1c710c3c
DJ
14836 case $NM_FOR_TARGET in
14837 [\\/]* | ?:[\\/]*)
e8b05380
PB
14838 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
14839 ;;
e8b05380 14840 *)
1c710c3c
DJ
14841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14842for as_dir in $gcc_cv_tool_dirs
14843do
14844 IFS=$as_save_IFS
14845 test -z "$as_dir" && as_dir=.
5213506e 14846 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14848 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14850 break 2
14851 fi
14852done
5213506e
RW
14853 done
14854IFS=$as_save_IFS
1c710c3c 14855
e8b05380
PB
14856 ;;
14857esac
14858fi
1c710c3c 14859NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 14860if test -n "$NM_FOR_TARGET"; then
5213506e
RW
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14862$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 14863else
5213506e
RW
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14865$as_echo "no" >&6; }
e8b05380
PB
14866fi
14867
5213506e 14868
e8b05380
PB
14869fi
14870if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
14871
14872
14873if test -n "$NM_FOR_TARGET"; then
14874 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
14875elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14876 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14877fi
14878
14879if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14880 for ncn_progname in nm; do
14881 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14882set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14884$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14885if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 14886 $as_echo_n "(cached) " >&6
278a7a38
AO
14887else
14888 if test -n "$NM_FOR_TARGET"; then
14889 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14890else
14891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14892for as_dir in $PATH
14893do
14894 IFS=$as_save_IFS
14895 test -z "$as_dir" && as_dir=.
5213506e 14896 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14898 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 14899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14900 break 2
14901 fi
14902done
5213506e
RW
14903 done
14904IFS=$as_save_IFS
278a7a38
AO
14905
14906fi
14907fi
14908NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14909if test -n "$NM_FOR_TARGET"; then
5213506e
RW
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14911$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 14912else
5213506e
RW
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14914$as_echo "no" >&6; }
278a7a38
AO
14915fi
14916
5213506e 14917
278a7a38
AO
14918 done
14919fi
14920
14921if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14922 for ncn_progname in nm; do
5213506e
RW
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14924$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14925 if test -x $with_build_time_tools/${ncn_progname}; then
14926 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14928$as_echo "yes" >&6; }
e8b05380
PB
14929 break
14930 else
5213506e
RW
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14932$as_echo "no" >&6; }
e8b05380
PB
14933 fi
14934 done
14935fi
14936
14937if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
14938 for ncn_progname in nm; do
14939 if test -n "$ncn_target_tool_prefix"; then
14940 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 14941set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14943$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14944if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 14945 $as_echo_n "(cached) " >&6
ca9f4b81 14946else
4de997d1
PB
14947 if test -n "$NM_FOR_TARGET"; then
14948 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 14949else
1c710c3c
DJ
14950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14951for as_dir in $PATH
14952do
14953 IFS=$as_save_IFS
14954 test -z "$as_dir" && as_dir=.
5213506e 14955 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14957 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14959 break 2
14960 fi
14961done
5213506e
RW
14962 done
14963IFS=$as_save_IFS
1c710c3c 14964
ca9f4b81
AO
14965fi
14966fi
1c710c3c 14967NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 14968if test -n "$NM_FOR_TARGET"; then
5213506e
RW
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14970$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 14971else
5213506e
RW
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14973$as_echo "no" >&6; }
ca9f4b81
AO
14974fi
14975
5213506e 14976
e8b05380
PB
14977 fi
14978 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
14979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14980set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14982$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14983if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 14984 $as_echo_n "(cached) " >&6
ca9f4b81 14985else
2693c0b0
PB
14986 if test -n "$NM_FOR_TARGET"; then
14987 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 14988else
1c710c3c
DJ
14989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14990for as_dir in $PATH
14991do
14992 IFS=$as_save_IFS
14993 test -z "$as_dir" && as_dir=.
5213506e 14994 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14996 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 14997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14998 break 2
14999 fi
15000done
5213506e
RW
15001 done
15002IFS=$as_save_IFS
1c710c3c 15003
ca9f4b81
AO
15004fi
15005fi
1c710c3c 15006NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 15007if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15009$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15010else
5213506e
RW
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15012$as_echo "no" >&6; }
ca9f4b81 15013fi
1c710c3c 15014
5213506e 15015
e8b05380
PB
15016 fi
15017 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15018 done
15019fi
1c710c3c 15020
2693c0b0
PB
15021if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15022 set dummy nm
15023 if test $build = $target ; then
15024 NM_FOR_TARGET="$2"
ca9f4b81 15025 else
2693c0b0 15026 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15027 fi
1c00b503
PB
15028else
15029 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
15030fi
15031
d1f8db0c
PB
15032else
15033 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
15034fi
15035
15036
15037
15038
9bccfdf5
AP
15039if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15040 if test -n "$with_build_time_tools"; then
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15042$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15043 if test -x $with_build_time_tools/objcopy; then
15044 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15045 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15047$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15048 else
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15050$as_echo "no" >&6; }
15051 fi
15052 elif test $build != $host && test $have_gcc_for_target = yes; then
15053 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15054 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15055 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15056 fi
15057fi
15058if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15059 # Extract the first word of "objcopy", so it can be a program name with args.
15060set dummy objcopy; ac_word=$2
15061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15062$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15063if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15064 $as_echo_n "(cached) " >&6
15065else
15066 case $OBJCOPY_FOR_TARGET in
15067 [\\/]* | ?:[\\/]*)
15068 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15069 ;;
15070 *)
15071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15072for as_dir in $gcc_cv_tool_dirs
15073do
15074 IFS=$as_save_IFS
15075 test -z "$as_dir" && as_dir=.
15076 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15078 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15080 break 2
15081 fi
15082done
15083 done
15084IFS=$as_save_IFS
15085
15086 ;;
15087esac
15088fi
15089OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15090if test -n "$OBJCOPY_FOR_TARGET"; then
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15092$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15093else
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15095$as_echo "no" >&6; }
15096fi
15097
15098
15099fi
15100if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15101
15102
15103if test -n "$OBJCOPY_FOR_TARGET"; then
15104 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15105elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15106 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15107fi
15108
15109if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15110 for ncn_progname in objcopy; do
15111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15112set dummy ${ncn_progname}; ac_word=$2
15113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15114$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15115if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15116 $as_echo_n "(cached) " >&6
15117else
15118 if test -n "$OBJCOPY_FOR_TARGET"; then
15119 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15120else
15121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15122for as_dir in $PATH
15123do
15124 IFS=$as_save_IFS
15125 test -z "$as_dir" && as_dir=.
15126 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15128 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15130 break 2
15131 fi
15132done
15133 done
15134IFS=$as_save_IFS
15135
15136fi
15137fi
15138OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15139if test -n "$OBJCOPY_FOR_TARGET"; then
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15141$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15142else
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15144$as_echo "no" >&6; }
15145fi
15146
15147
15148 done
15149fi
15150
15151if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15152 for ncn_progname in objcopy; do
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15154$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15155 if test -x $with_build_time_tools/${ncn_progname}; then
15156 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15158$as_echo "yes" >&6; }
15159 break
15160 else
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15162$as_echo "no" >&6; }
15163 fi
15164 done
15165fi
15166
15167if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15168 for ncn_progname in objcopy; do
15169 if test -n "$ncn_target_tool_prefix"; then
15170 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15171set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15173$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15174if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15175 $as_echo_n "(cached) " >&6
15176else
15177 if test -n "$OBJCOPY_FOR_TARGET"; then
15178 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15179else
15180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15181for as_dir in $PATH
15182do
15183 IFS=$as_save_IFS
15184 test -z "$as_dir" && as_dir=.
15185 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15187 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15189 break 2
15190 fi
15191done
15192 done
15193IFS=$as_save_IFS
15194
15195fi
15196fi
15197OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15198if test -n "$OBJCOPY_FOR_TARGET"; then
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15200$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15201else
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15203$as_echo "no" >&6; }
15204fi
15205
15206
15207 fi
15208 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15209 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15210set dummy ${ncn_progname}; ac_word=$2
15211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15212$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15213if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15214 $as_echo_n "(cached) " >&6
15215else
15216 if test -n "$OBJCOPY_FOR_TARGET"; then
15217 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15218else
15219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15220for as_dir in $PATH
15221do
15222 IFS=$as_save_IFS
15223 test -z "$as_dir" && as_dir=.
15224 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15226 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15228 break 2
15229 fi
15230done
15231 done
15232IFS=$as_save_IFS
15233
15234fi
15235fi
15236OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15237if test -n "$OBJCOPY_FOR_TARGET"; then
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15239$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15240else
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15242$as_echo "no" >&6; }
15243fi
15244
15245
15246 fi
15247 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15248 done
15249fi
15250
15251if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15252 set dummy objcopy
15253 if test $build = $target ; then
15254 OBJCOPY_FOR_TARGET="$2"
15255 else
15256 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15257 fi
15258else
15259 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15260fi
15261
15262else
15263 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15264fi
15265
15266
15267
15268
e8b05380
PB
15269if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15270 if test -n "$with_build_time_tools"; then
5213506e
RW
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15272$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15273 if test -x $with_build_time_tools/objdump; then
15274 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15275 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15277$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 15278 else
5213506e
RW
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15280$as_echo "no" >&6; }
d1f8db0c 15281 fi
e8b05380
PB
15282 elif test $build != $host && test $have_gcc_for_target = yes; then
15283 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
15284 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15285 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
15286 fi
15287fi
3e19841a 15288if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15289 # Extract the first word of "objdump", so it can be a program name with args.
15290set dummy objdump; ac_word=$2
5213506e
RW
15291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15292$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15293if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15294 $as_echo_n "(cached) " >&6
e8b05380 15295else
1c710c3c
DJ
15296 case $OBJDUMP_FOR_TARGET in
15297 [\\/]* | ?:[\\/]*)
e8b05380
PB
15298 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15299 ;;
e8b05380 15300 *)
1c710c3c
DJ
15301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15302for as_dir in $gcc_cv_tool_dirs
15303do
15304 IFS=$as_save_IFS
15305 test -z "$as_dir" && as_dir=.
5213506e 15306 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15308 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15310 break 2
15311 fi
15312done
5213506e
RW
15313 done
15314IFS=$as_save_IFS
1c710c3c 15315
e8b05380
PB
15316 ;;
15317esac
15318fi
1c710c3c 15319OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 15320if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15322$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 15323else
5213506e
RW
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15325$as_echo "no" >&6; }
e8b05380
PB
15326fi
15327
5213506e 15328
e8b05380
PB
15329fi
15330if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
15331
15332
15333if test -n "$OBJDUMP_FOR_TARGET"; then
15334 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15335elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15336 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15337fi
15338
15339if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15340 for ncn_progname in objdump; do
15341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15342set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15344$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15345if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15346 $as_echo_n "(cached) " >&6
278a7a38
AO
15347else
15348 if test -n "$OBJDUMP_FOR_TARGET"; then
15349 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15350else
15351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15352for as_dir in $PATH
15353do
15354 IFS=$as_save_IFS
15355 test -z "$as_dir" && as_dir=.
5213506e 15356 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15358 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 15359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15360 break 2
15361 fi
15362done
5213506e
RW
15363 done
15364IFS=$as_save_IFS
278a7a38
AO
15365
15366fi
15367fi
15368OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15369if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15371$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 15372else
5213506e
RW
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15374$as_echo "no" >&6; }
278a7a38
AO
15375fi
15376
5213506e 15377
278a7a38
AO
15378 done
15379fi
15380
15381if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15382 for ncn_progname in objdump; do
5213506e
RW
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15384$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15385 if test -x $with_build_time_tools/${ncn_progname}; then
15386 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15388$as_echo "yes" >&6; }
e8b05380
PB
15389 break
15390 else
5213506e
RW
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15392$as_echo "no" >&6; }
e8b05380
PB
15393 fi
15394 done
15395fi
15396
15397if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15398 for ncn_progname in objdump; do
15399 if test -n "$ncn_target_tool_prefix"; then
15400 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15401set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15403$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15404if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15405 $as_echo_n "(cached) " >&6
d739199a
DJ
15406else
15407 if test -n "$OBJDUMP_FOR_TARGET"; then
15408 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15409else
1c710c3c
DJ
15410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15411for as_dir in $PATH
15412do
15413 IFS=$as_save_IFS
15414 test -z "$as_dir" && as_dir=.
5213506e 15415 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15417 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15419 break 2
15420 fi
15421done
5213506e
RW
15422 done
15423IFS=$as_save_IFS
1c710c3c 15424
d739199a
DJ
15425fi
15426fi
1c710c3c 15427OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 15428if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15430$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 15431else
5213506e
RW
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15433$as_echo "no" >&6; }
d739199a
DJ
15434fi
15435
5213506e 15436
e8b05380
PB
15437 fi
15438 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 15440set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15442$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15443if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15444 $as_echo_n "(cached) " >&6
d739199a
DJ
15445else
15446 if test -n "$OBJDUMP_FOR_TARGET"; then
15447 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15448else
1c710c3c
DJ
15449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15450for as_dir in $PATH
15451do
15452 IFS=$as_save_IFS
15453 test -z "$as_dir" && as_dir=.
5213506e 15454 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15456 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 15457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15458 break 2
15459 fi
15460done
5213506e
RW
15461 done
15462IFS=$as_save_IFS
1c710c3c 15463
d739199a
DJ
15464fi
15465fi
1c710c3c 15466OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 15467if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15469$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 15470else
5213506e
RW
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15472$as_echo "no" >&6; }
d739199a 15473fi
1c710c3c 15474
5213506e 15475
e8b05380
PB
15476 fi
15477 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15478 done
15479fi
1c710c3c 15480
d739199a
DJ
15481if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15482 set dummy objdump
15483 if test $build = $target ; then
15484 OBJDUMP_FOR_TARGET="$2"
15485 else
15486 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15487 fi
1c00b503
PB
15488else
15489 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
15490fi
15491
d1f8db0c
PB
15492else
15493 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
15494fi
15495
15496
15497
15498
e4a9a572
IS
15499if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15500 if test -n "$with_build_time_tools"; then
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15502$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15503 if test -x $with_build_time_tools/otool; then
15504 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15505 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15507$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15508 else
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15510$as_echo "no" >&6; }
15511 fi
15512 elif test $build != $host && test $have_gcc_for_target = yes; then
15513 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15514 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15515 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15516 fi
15517fi
15518if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15519 # Extract the first word of "otool", so it can be a program name with args.
15520set dummy otool; ac_word=$2
15521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15522$as_echo_n "checking for $ac_word... " >&6; }
15523if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15524 $as_echo_n "(cached) " >&6
15525else
15526 case $OTOOL_FOR_TARGET in
15527 [\\/]* | ?:[\\/]*)
15528 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15529 ;;
15530 *)
15531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15532for as_dir in $gcc_cv_tool_dirs
15533do
15534 IFS=$as_save_IFS
15535 test -z "$as_dir" && as_dir=.
15536 for ac_exec_ext in '' $ac_executable_extensions; do
15537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15538 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15540 break 2
15541 fi
15542done
15543 done
15544IFS=$as_save_IFS
15545
15546 ;;
15547esac
15548fi
15549OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15550if test -n "$OTOOL_FOR_TARGET"; then
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15552$as_echo "$OTOOL_FOR_TARGET" >&6; }
15553else
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15555$as_echo "no" >&6; }
15556fi
15557
15558
15559fi
15560if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15561
15562
15563if test -n "$OTOOL_FOR_TARGET"; then
15564 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15565elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15566 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15567fi
15568
15569if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15570 for ncn_progname in otool; do
15571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15572set dummy ${ncn_progname}; ac_word=$2
15573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15574$as_echo_n "checking for $ac_word... " >&6; }
15575if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15576 $as_echo_n "(cached) " >&6
15577else
15578 if test -n "$OTOOL_FOR_TARGET"; then
15579 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15580else
15581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15582for as_dir in $PATH
15583do
15584 IFS=$as_save_IFS
15585 test -z "$as_dir" && as_dir=.
15586 for ac_exec_ext in '' $ac_executable_extensions; do
15587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15588 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15590 break 2
15591 fi
15592done
15593 done
15594IFS=$as_save_IFS
15595
15596fi
15597fi
15598OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15599if test -n "$OTOOL_FOR_TARGET"; then
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15601$as_echo "$OTOOL_FOR_TARGET" >&6; }
15602else
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15604$as_echo "no" >&6; }
15605fi
15606
15607
15608 done
15609fi
15610
15611if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15612 for ncn_progname in otool; do
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15614$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15615 if test -x $with_build_time_tools/${ncn_progname}; then
15616 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15618$as_echo "yes" >&6; }
15619 break
15620 else
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15622$as_echo "no" >&6; }
15623 fi
15624 done
15625fi
15626
15627if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15628 for ncn_progname in otool; do
15629 if test -n "$ncn_target_tool_prefix"; then
15630 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15631set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15633$as_echo_n "checking for $ac_word... " >&6; }
15634if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15635 $as_echo_n "(cached) " >&6
15636else
15637 if test -n "$OTOOL_FOR_TARGET"; then
15638 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15639else
15640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15641for as_dir in $PATH
15642do
15643 IFS=$as_save_IFS
15644 test -z "$as_dir" && as_dir=.
15645 for ac_exec_ext in '' $ac_executable_extensions; do
15646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15647 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15649 break 2
15650 fi
15651done
15652 done
15653IFS=$as_save_IFS
15654
15655fi
15656fi
15657OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15658if test -n "$OTOOL_FOR_TARGET"; then
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15660$as_echo "$OTOOL_FOR_TARGET" >&6; }
15661else
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15663$as_echo "no" >&6; }
15664fi
15665
15666
15667 fi
15668 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15669 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15670set dummy ${ncn_progname}; ac_word=$2
15671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15672$as_echo_n "checking for $ac_word... " >&6; }
15673if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15674 $as_echo_n "(cached) " >&6
15675else
15676 if test -n "$OTOOL_FOR_TARGET"; then
15677 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15678else
15679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15680for as_dir in $PATH
15681do
15682 IFS=$as_save_IFS
15683 test -z "$as_dir" && as_dir=.
15684 for ac_exec_ext in '' $ac_executable_extensions; do
15685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15686 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15688 break 2
15689 fi
15690done
15691 done
15692IFS=$as_save_IFS
15693
15694fi
15695fi
15696OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15697if test -n "$OTOOL_FOR_TARGET"; then
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15699$as_echo "$OTOOL_FOR_TARGET" >&6; }
15700else
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15702$as_echo "no" >&6; }
15703fi
15704
15705
15706 fi
15707 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
15708 done
15709fi
15710
15711if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
15712 set dummy otool
15713 if test $build = $target ; then
15714 OTOOL_FOR_TARGET="$2"
15715 else
15716 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15717 fi
15718else
15719 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
15720fi
15721
15722else
15723 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15724fi
15725
15726
15727
15728
e8b05380
PB
15729if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15730 if test -n "$with_build_time_tools"; then
5213506e
RW
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
15732$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15733 if test -x $with_build_time_tools/ranlib; then
15734 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
15735 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
15737$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 15738 else
5213506e
RW
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15740$as_echo "no" >&6; }
d1f8db0c 15741 fi
e8b05380
PB
15742 elif test $build != $host && test $have_gcc_for_target = yes; then
15743 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
15744 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
15745 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
15746 fi
15747fi
3e19841a 15748if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15749 # Extract the first word of "ranlib", so it can be a program name with args.
15750set dummy ranlib; ac_word=$2
5213506e
RW
15751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15752$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15753if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 15754 $as_echo_n "(cached) " >&6
e8b05380 15755else
1c710c3c
DJ
15756 case $RANLIB_FOR_TARGET in
15757 [\\/]* | ?:[\\/]*)
e8b05380
PB
15758 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
15759 ;;
e8b05380 15760 *)
1c710c3c
DJ
15761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15762for as_dir in $gcc_cv_tool_dirs
15763do
15764 IFS=$as_save_IFS
15765 test -z "$as_dir" && as_dir=.
5213506e 15766 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15768 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15770 break 2
15771 fi
15772done
5213506e
RW
15773 done
15774IFS=$as_save_IFS
1c710c3c 15775
e8b05380
PB
15776 ;;
15777esac
15778fi
1c710c3c 15779RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 15780if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15782$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 15783else
5213506e
RW
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15785$as_echo "no" >&6; }
e8b05380
PB
15786fi
15787
5213506e 15788
e8b05380
PB
15789fi
15790if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
15791
15792
15793if test -n "$RANLIB_FOR_TARGET"; then
15794 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15795elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15796 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15797fi
15798
15799if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15800 for ncn_progname in ranlib; do
15801 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15802set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15804$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15805if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 15806 $as_echo_n "(cached) " >&6
278a7a38
AO
15807else
15808 if test -n "$RANLIB_FOR_TARGET"; then
15809 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15810else
15811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15812for as_dir in $PATH
15813do
15814 IFS=$as_save_IFS
15815 test -z "$as_dir" && as_dir=.
5213506e 15816 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15818 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 15819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15820 break 2
15821 fi
15822done
5213506e
RW
15823 done
15824IFS=$as_save_IFS
278a7a38
AO
15825
15826fi
15827fi
15828RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15829if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15831$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 15832else
5213506e
RW
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15834$as_echo "no" >&6; }
278a7a38
AO
15835fi
15836
5213506e 15837
278a7a38
AO
15838 done
15839fi
15840
15841if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15842 for ncn_progname in ranlib; do
5213506e
RW
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15844$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15845 if test -x $with_build_time_tools/${ncn_progname}; then
15846 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15848$as_echo "yes" >&6; }
e8b05380
PB
15849 break
15850 else
5213506e
RW
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15852$as_echo "no" >&6; }
e8b05380
PB
15853 fi
15854 done
15855fi
15856
15857if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15858 for ncn_progname in ranlib; do
15859 if test -n "$ncn_target_tool_prefix"; then
15860 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 15861set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15863$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15864if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 15865 $as_echo_n "(cached) " >&6
ca9f4b81 15866else
4de997d1
PB
15867 if test -n "$RANLIB_FOR_TARGET"; then
15868 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 15869else
1c710c3c
DJ
15870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15871for as_dir in $PATH
15872do
15873 IFS=$as_save_IFS
15874 test -z "$as_dir" && as_dir=.
5213506e 15875 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15877 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15879 break 2
15880 fi
15881done
5213506e
RW
15882 done
15883IFS=$as_save_IFS
1c710c3c 15884
ca9f4b81
AO
15885fi
15886fi
1c710c3c 15887RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 15888if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15890$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 15891else
5213506e
RW
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15893$as_echo "no" >&6; }
ca9f4b81
AO
15894fi
15895
5213506e 15896
e8b05380
PB
15897 fi
15898 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
15899 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15900set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15902$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15903if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 15904 $as_echo_n "(cached) " >&6
ca9f4b81 15905else
2693c0b0
PB
15906 if test -n "$RANLIB_FOR_TARGET"; then
15907 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 15908else
1c710c3c
DJ
15909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15910for as_dir in $PATH
15911do
15912 IFS=$as_save_IFS
15913 test -z "$as_dir" && as_dir=.
5213506e 15914 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15916 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 15917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15918 break 2
15919 fi
15920done
5213506e
RW
15921 done
15922IFS=$as_save_IFS
1c710c3c 15923
ca9f4b81
AO
15924fi
15925fi
1c710c3c 15926RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 15927if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15929$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 15930else
5213506e
RW
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15932$as_echo "no" >&6; }
ca9f4b81 15933fi
1c710c3c 15934
5213506e 15935
e8b05380
PB
15936 fi
15937 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
15938 done
15939fi
1c710c3c 15940
e8b05380
PB
15941if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
15942 set dummy ranlib
15943 if test $build = $target ; then
15944 RANLIB_FOR_TARGET="$2"
15945 else
15946 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15947 fi
1c00b503
PB
15948else
15949 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 15950fi
2693c0b0 15951
d1f8db0c
PB
15952else
15953 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
15954fi
15955
e8b05380
PB
15956
15957
15958
e7a82751
RM
15959if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
15960 if test -n "$with_build_time_tools"; then
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
15962$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
15963 if test -x $with_build_time_tools/readelf; then
15964 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
15965 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
15967$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
15968 else
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15970$as_echo "no" >&6; }
15971 fi
15972 elif test $build != $host && test $have_gcc_for_target = yes; then
15973 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
15974 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
15975 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
15976 fi
15977fi
15978if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15979 # Extract the first word of "readelf", so it can be a program name with args.
15980set dummy readelf; ac_word=$2
15981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15982$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15983if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
15984 $as_echo_n "(cached) " >&6
15985else
15986 case $READELF_FOR_TARGET in
15987 [\\/]* | ?:[\\/]*)
15988 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
15989 ;;
15990 *)
15991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15992for as_dir in $gcc_cv_tool_dirs
15993do
15994 IFS=$as_save_IFS
15995 test -z "$as_dir" && as_dir=.
15996 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
15998 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16000 break 2
16001 fi
16002done
16003 done
16004IFS=$as_save_IFS
16005
16006 ;;
16007esac
16008fi
16009READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16010if test -n "$READELF_FOR_TARGET"; then
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16012$as_echo "$READELF_FOR_TARGET" >&6; }
16013else
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16015$as_echo "no" >&6; }
16016fi
16017
16018
16019fi
16020if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16021
16022
16023if test -n "$READELF_FOR_TARGET"; then
16024 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16025elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16026 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16027fi
16028
16029if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16030 for ncn_progname in readelf; do
16031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16032set dummy ${ncn_progname}; ac_word=$2
16033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16034$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16035if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16036 $as_echo_n "(cached) " >&6
16037else
16038 if test -n "$READELF_FOR_TARGET"; then
16039 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16040else
16041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16042for as_dir in $PATH
16043do
16044 IFS=$as_save_IFS
16045 test -z "$as_dir" && as_dir=.
16046 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16048 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16050 break 2
16051 fi
16052done
16053 done
16054IFS=$as_save_IFS
16055
16056fi
16057fi
16058READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16059if test -n "$READELF_FOR_TARGET"; then
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16061$as_echo "$READELF_FOR_TARGET" >&6; }
16062else
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16064$as_echo "no" >&6; }
16065fi
16066
16067
16068 done
16069fi
16070
16071if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16072 for ncn_progname in readelf; do
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16074$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16075 if test -x $with_build_time_tools/${ncn_progname}; then
16076 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16078$as_echo "yes" >&6; }
16079 break
16080 else
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16082$as_echo "no" >&6; }
16083 fi
16084 done
16085fi
16086
16087if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16088 for ncn_progname in readelf; do
16089 if test -n "$ncn_target_tool_prefix"; then
16090 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16091set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16093$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16094if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16095 $as_echo_n "(cached) " >&6
16096else
16097 if test -n "$READELF_FOR_TARGET"; then
16098 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16099else
16100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16101for as_dir in $PATH
16102do
16103 IFS=$as_save_IFS
16104 test -z "$as_dir" && as_dir=.
16105 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16107 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16109 break 2
16110 fi
16111done
16112 done
16113IFS=$as_save_IFS
16114
16115fi
16116fi
16117READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16118if test -n "$READELF_FOR_TARGET"; then
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16120$as_echo "$READELF_FOR_TARGET" >&6; }
16121else
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16123$as_echo "no" >&6; }
16124fi
16125
16126
16127 fi
16128 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16130set dummy ${ncn_progname}; ac_word=$2
16131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16132$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16133if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16134 $as_echo_n "(cached) " >&6
16135else
16136 if test -n "$READELF_FOR_TARGET"; then
16137 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16138else
16139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16140for as_dir in $PATH
16141do
16142 IFS=$as_save_IFS
16143 test -z "$as_dir" && as_dir=.
16144 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16146 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16148 break 2
16149 fi
16150done
16151 done
16152IFS=$as_save_IFS
16153
16154fi
16155fi
16156READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16157if test -n "$READELF_FOR_TARGET"; then
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16159$as_echo "$READELF_FOR_TARGET" >&6; }
16160else
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16162$as_echo "no" >&6; }
16163fi
16164
16165
16166 fi
16167 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16168 done
16169fi
16170
16171if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16172 set dummy readelf
16173 if test $build = $target ; then
16174 READELF_FOR_TARGET="$2"
16175 else
16176 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16177 fi
16178else
16179 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16180fi
16181
16182else
16183 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16184fi
16185
16186
16187
16188
e8b05380
PB
16189if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16190 if test -n "$with_build_time_tools"; then
5213506e
RW
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16192$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16193 if test -x $with_build_time_tools/strip; then
16194 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16195 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16197$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 16198 else
5213506e
RW
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16200$as_echo "no" >&6; }
d1f8db0c 16201 fi
e8b05380
PB
16202 elif test $build != $host && test $have_gcc_for_target = yes; then
16203 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
16204 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16205 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
16206 fi
16207fi
3e19841a 16208if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16209 # Extract the first word of "strip", so it can be a program name with args.
16210set dummy strip; ac_word=$2
5213506e
RW
16211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16212$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16213if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 16214 $as_echo_n "(cached) " >&6
e8b05380 16215else
1c710c3c
DJ
16216 case $STRIP_FOR_TARGET in
16217 [\\/]* | ?:[\\/]*)
e8b05380
PB
16218 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16219 ;;
e8b05380 16220 *)
1c710c3c
DJ
16221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16222for as_dir in $gcc_cv_tool_dirs
16223do
16224 IFS=$as_save_IFS
16225 test -z "$as_dir" && as_dir=.
5213506e 16226 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16228 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16230 break 2
16231 fi
16232done
5213506e
RW
16233 done
16234IFS=$as_save_IFS
1c710c3c 16235
e8b05380
PB
16236 ;;
16237esac
16238fi
1c710c3c 16239STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 16240if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16242$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 16243else
5213506e
RW
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16245$as_echo "no" >&6; }
e8b05380
PB
16246fi
16247
5213506e 16248
e8b05380
PB
16249fi
16250if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
16251
16252
16253if test -n "$STRIP_FOR_TARGET"; then
16254 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16255elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16256 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16257fi
16258
16259if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16260 for ncn_progname in strip; do
16261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16262set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16264$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16265if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16266 $as_echo_n "(cached) " >&6
278a7a38
AO
16267else
16268 if test -n "$STRIP_FOR_TARGET"; then
16269 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16270else
16271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16272for as_dir in $PATH
16273do
16274 IFS=$as_save_IFS
16275 test -z "$as_dir" && as_dir=.
5213506e 16276 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16278 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16280 break 2
16281 fi
16282done
5213506e
RW
16283 done
16284IFS=$as_save_IFS
278a7a38
AO
16285
16286fi
16287fi
16288STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16289if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16291$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 16292else
5213506e
RW
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16294$as_echo "no" >&6; }
278a7a38
AO
16295fi
16296
5213506e 16297
278a7a38
AO
16298 done
16299fi
16300
16301if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16302 for ncn_progname in strip; do
5213506e
RW
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16304$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16305 if test -x $with_build_time_tools/${ncn_progname}; then
16306 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16308$as_echo "yes" >&6; }
e8b05380
PB
16309 break
16310 else
5213506e
RW
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16312$as_echo "no" >&6; }
e8b05380
PB
16313 fi
16314 done
16315fi
16316
16317if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16318 for ncn_progname in strip; do
16319 if test -n "$ncn_target_tool_prefix"; then
16320 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 16321set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16323$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16324if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16325 $as_echo_n "(cached) " >&6
af71363e
AS
16326else
16327 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
16328 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16329else
16330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16331for as_dir in $PATH
16332do
16333 IFS=$as_save_IFS
16334 test -z "$as_dir" && as_dir=.
5213506e 16335 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16337 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16339 break 2
16340 fi
16341done
5213506e
RW
16342 done
16343IFS=$as_save_IFS
1c710c3c 16344
040b1c5a
GK
16345fi
16346fi
1c710c3c 16347STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 16348if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16350$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 16351else
5213506e
RW
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16353$as_echo "no" >&6; }
040b1c5a
GK
16354fi
16355
5213506e 16356
e8b05380
PB
16357 fi
16358 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 16360set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16362$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16363if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16364 $as_echo_n "(cached) " >&6
040b1c5a
GK
16365else
16366 if test -n "$STRIP_FOR_TARGET"; then
16367 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16368else
1c710c3c
DJ
16369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16370for as_dir in $PATH
16371do
16372 IFS=$as_save_IFS
16373 test -z "$as_dir" && as_dir=.
5213506e 16374 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16376 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16378 break 2
16379 fi
16380done
5213506e
RW
16381 done
16382IFS=$as_save_IFS
1c710c3c 16383
040b1c5a
GK
16384fi
16385fi
1c710c3c 16386STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 16387if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16389$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 16390else
5213506e
RW
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16392$as_echo "no" >&6; }
040b1c5a 16393fi
1c710c3c 16394
5213506e 16395
e8b05380
PB
16396 fi
16397 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16398 done
16399fi
1c710c3c 16400
040b1c5a
GK
16401if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16402 set dummy strip
16403 if test $build = $target ; then
16404 STRIP_FOR_TARGET="$2"
16405 else
16406 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16407 fi
1c00b503
PB
16408else
16409 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
16410fi
16411
d1f8db0c
PB
16412else
16413 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
16414fi
16415
16416
16417
16418
16419if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16420 if test -n "$with_build_time_tools"; then
5213506e
RW
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16422$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16423 if test -x $with_build_time_tools/windres; then
16424 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16425 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16427$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 16428 else
5213506e
RW
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16430$as_echo "no" >&6; }
d1f8db0c 16431 fi
e8b05380
PB
16432 elif test $build != $host && test $have_gcc_for_target = yes; then
16433 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
16434 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16435 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
16436 fi
16437fi
3e19841a 16438if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16439 # Extract the first word of "windres", so it can be a program name with args.
16440set dummy windres; ac_word=$2
5213506e
RW
16441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16442$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16443if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 16444 $as_echo_n "(cached) " >&6
e8b05380 16445else
1c710c3c
DJ
16446 case $WINDRES_FOR_TARGET in
16447 [\\/]* | ?:[\\/]*)
e8b05380
PB
16448 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16449 ;;
e8b05380 16450 *)
1c710c3c
DJ
16451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16452for as_dir in $gcc_cv_tool_dirs
16453do
16454 IFS=$as_save_IFS
16455 test -z "$as_dir" && as_dir=.
5213506e 16456 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16458 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16460 break 2
16461 fi
16462done
5213506e
RW
16463 done
16464IFS=$as_save_IFS
1c710c3c 16465
e8b05380
PB
16466 ;;
16467esac
16468fi
1c710c3c 16469WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 16470if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16472$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 16473else
5213506e
RW
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16475$as_echo "no" >&6; }
e8b05380
PB
16476fi
16477
5213506e 16478
e8b05380
PB
16479fi
16480if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
16481
16482
16483if test -n "$WINDRES_FOR_TARGET"; then
16484 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16485elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16486 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16487fi
16488
16489if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16490 for ncn_progname in windres; do
16491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16492set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16494$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16495if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16496 $as_echo_n "(cached) " >&6
278a7a38
AO
16497else
16498 if test -n "$WINDRES_FOR_TARGET"; then
16499 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16500else
16501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16502for as_dir in $PATH
16503do
16504 IFS=$as_save_IFS
16505 test -z "$as_dir" && as_dir=.
5213506e 16506 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16508 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 16509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16510 break 2
16511 fi
16512done
5213506e
RW
16513 done
16514IFS=$as_save_IFS
278a7a38
AO
16515
16516fi
16517fi
16518WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16519if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16521$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 16522else
5213506e
RW
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16524$as_echo "no" >&6; }
278a7a38
AO
16525fi
16526
5213506e 16527
278a7a38
AO
16528 done
16529fi
16530
16531if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16532 for ncn_progname in windres; do
5213506e
RW
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16534$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16535 if test -x $with_build_time_tools/${ncn_progname}; then
16536 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16538$as_echo "yes" >&6; }
e8b05380
PB
16539 break
16540 else
5213506e
RW
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16542$as_echo "no" >&6; }
e8b05380
PB
16543 fi
16544 done
16545fi
16546
16547if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16548 for ncn_progname in windres; do
16549 if test -n "$ncn_target_tool_prefix"; then
16550 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 16551set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16553$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16554if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16555 $as_echo_n "(cached) " >&6
ca9f4b81 16556else
4de997d1
PB
16557 if test -n "$WINDRES_FOR_TARGET"; then
16558 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 16559else
1c710c3c
DJ
16560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16561for as_dir in $PATH
16562do
16563 IFS=$as_save_IFS
16564 test -z "$as_dir" && as_dir=.
5213506e 16565 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16567 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16569 break 2
16570 fi
16571done
5213506e
RW
16572 done
16573IFS=$as_save_IFS
1c710c3c 16574
ca9f4b81
AO
16575fi
16576fi
1c710c3c 16577WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 16578if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16580$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 16581else
5213506e
RW
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16583$as_echo "no" >&6; }
ca9f4b81
AO
16584fi
16585
5213506e 16586
e8b05380
PB
16587 fi
16588 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 16590set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16592$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16593if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16594 $as_echo_n "(cached) " >&6
ca9f4b81 16595else
2693c0b0
PB
16596 if test -n "$WINDRES_FOR_TARGET"; then
16597 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 16598else
1c710c3c
DJ
16599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16600for as_dir in $PATH
16601do
16602 IFS=$as_save_IFS
16603 test -z "$as_dir" && as_dir=.
5213506e 16604 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16606 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 16607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16608 break 2
16609 fi
16610done
5213506e
RW
16611 done
16612IFS=$as_save_IFS
1c710c3c 16613
ca9f4b81
AO
16614fi
16615fi
1c710c3c 16616WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 16617if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16619$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 16620else
5213506e
RW
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16622$as_echo "no" >&6; }
ca9f4b81 16623fi
1c710c3c 16624
5213506e 16625
e8b05380
PB
16626 fi
16627 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16628 done
16629fi
1c710c3c 16630
2693c0b0
PB
16631if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16632 set dummy windres
16633 if test $build = $target ; then
16634 WINDRES_FOR_TARGET="$2"
ca9f4b81 16635 else
2693c0b0 16636 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 16637 fi
1c00b503
PB
16638else
16639 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
16640fi
16641
d1f8db0c
PB
16642else
16643 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
16644fi
16645
4977bab6 16646
901119ae
KT
16647
16648
16649if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16650 if test -n "$with_build_time_tools"; then
5213506e
RW
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
16652$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
16653 if test -x $with_build_time_tools/windmc; then
16654 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
16655 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16657$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 16658 else
5213506e
RW
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16660$as_echo "no" >&6; }
901119ae
KT
16661 fi
16662 elif test $build != $host && test $have_gcc_for_target = yes; then
16663 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
16664 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
16665 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
16666 fi
16667fi
16668if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16669 # Extract the first word of "windmc", so it can be a program name with args.
16670set dummy windmc; ac_word=$2
5213506e
RW
16671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16672$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16673if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 16674 $as_echo_n "(cached) " >&6
901119ae
KT
16675else
16676 case $WINDMC_FOR_TARGET in
16677 [\\/]* | ?:[\\/]*)
16678 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16679 ;;
16680 *)
16681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16682for as_dir in $gcc_cv_tool_dirs
16683do
16684 IFS=$as_save_IFS
16685 test -z "$as_dir" && as_dir=.
5213506e 16686 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 16688 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
16690 break 2
16691 fi
16692done
5213506e
RW
16693 done
16694IFS=$as_save_IFS
901119ae
KT
16695
16696 ;;
16697esac
16698fi
16699WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 16700if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16702$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 16703else
5213506e
RW
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16705$as_echo "no" >&6; }
901119ae
KT
16706fi
16707
5213506e 16708
901119ae
KT
16709fi
16710if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16711
16712
16713if test -n "$WINDMC_FOR_TARGET"; then
16714 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16715elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16716 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16717fi
16718
16719if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16720 for ncn_progname in windmc; do
16721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16722set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16724$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16725if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 16726 $as_echo_n "(cached) " >&6
901119ae
KT
16727else
16728 if test -n "$WINDMC_FOR_TARGET"; then
16729 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16730else
16731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16732for as_dir in $PATH
16733do
16734 IFS=$as_save_IFS
16735 test -z "$as_dir" && as_dir=.
5213506e 16736 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 16738 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 16739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
16740 break 2
16741 fi
16742done
5213506e
RW
16743 done
16744IFS=$as_save_IFS
901119ae
KT
16745
16746fi
16747fi
16748WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16749if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16751$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 16752else
5213506e
RW
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16754$as_echo "no" >&6; }
901119ae
KT
16755fi
16756
5213506e 16757
901119ae
KT
16758 done
16759fi
16760
16761if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
16762 for ncn_progname in windmc; do
5213506e
RW
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16764$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
16765 if test -x $with_build_time_tools/${ncn_progname}; then
16766 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16768$as_echo "yes" >&6; }
901119ae
KT
16769 break
16770 else
5213506e
RW
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16772$as_echo "no" >&6; }
901119ae
KT
16773 fi
16774 done
16775fi
16776
16777if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16778 for ncn_progname in windmc; do
16779 if test -n "$ncn_target_tool_prefix"; then
16780 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16781set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16783$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16784if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 16785 $as_echo_n "(cached) " >&6
901119ae
KT
16786else
16787 if test -n "$WINDMC_FOR_TARGET"; then
16788 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16789else
16790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16791for as_dir in $PATH
16792do
16793 IFS=$as_save_IFS
16794 test -z "$as_dir" && as_dir=.
5213506e 16795 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 16797 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
16799 break 2
16800 fi
16801done
5213506e
RW
16802 done
16803IFS=$as_save_IFS
901119ae
KT
16804
16805fi
16806fi
16807WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16808if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16810$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 16811else
5213506e
RW
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16813$as_echo "no" >&6; }
901119ae
KT
16814fi
16815
5213506e 16816
901119ae
KT
16817 fi
16818 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
16819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16820set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16822$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16823if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 16824 $as_echo_n "(cached) " >&6
901119ae
KT
16825else
16826 if test -n "$WINDMC_FOR_TARGET"; then
16827 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16828else
16829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16830for as_dir in $PATH
16831do
16832 IFS=$as_save_IFS
16833 test -z "$as_dir" && as_dir=.
5213506e 16834 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 16836 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 16837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
16838 break 2
16839 fi
16840done
5213506e
RW
16841 done
16842IFS=$as_save_IFS
901119ae
KT
16843
16844fi
16845fi
16846WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16847if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16849$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 16850else
5213506e
RW
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16852$as_echo "no" >&6; }
901119ae
KT
16853fi
16854
5213506e 16855
901119ae
KT
16856 fi
16857 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
16858 done
16859fi
16860
16861if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
16862 set dummy windmc
16863 if test $build = $target ; then
16864 WINDMC_FOR_TARGET="$2"
16865 else
16866 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
16867 fi
1c00b503
PB
16868else
16869 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
16870fi
16871
16872else
16873 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16874fi
16875
16876
2abefe3d
PB
16877RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
16878
5213506e
RW
16879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
16880$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 16881if test "x${build}" != "x${host}" ; then
e8b05380
PB
16882 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
16883 # We already found the complete path
172e41aa 16884 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16886$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
16887 else
16888 # Canadian cross, just use what we found
5213506e
RW
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16890$as_echo "pre-installed" >&6; }
e8b05380 16891 fi
2abefe3d
PB
16892else
16893 ok=yes
16894 case " ${configdirs} " in
16895 *" binutils "*) ;;
16896 *) ok=no ;;
16897 esac
1c710c3c 16898
2abefe3d
PB
16899 if test $ok = yes; then
16900 # An in-tree tool is available and we can use it
16901 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16903$as_echo "just compiled" >&6; }
e8b05380
PB
16904 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
16905 # We already found the complete path
172e41aa 16906 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16908$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
16909 elif test "x$target" = "x$host"; then
16910 # We can use an host tool
16911 AR_FOR_TARGET='$(AR)'
5213506e
RW
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16913$as_echo "host tool" >&6; }
2abefe3d
PB
16914 else
16915 # We need a cross tool
5213506e
RW
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16917$as_echo "pre-installed" >&6; }
2abefe3d
PB
16918 fi
16919fi
0b0dc272 16920
5213506e
RW
16921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
16922$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 16923if test "x${build}" != "x${host}" ; then
e8b05380
PB
16924 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
16925 # We already found the complete path
172e41aa 16926 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16928$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
16929 else
16930 # Canadian cross, just use what we found
5213506e
RW
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16932$as_echo "pre-installed" >&6; }
e8b05380 16933 fi
2abefe3d
PB
16934else
16935 ok=yes
16936 case " ${configdirs} " in
16937 *" gas "*) ;;
16938 *) ok=no ;;
16939 esac
1c710c3c 16940
2abefe3d
PB
16941 if test $ok = yes; then
16942 # An in-tree tool is available and we can use it
16943 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16945$as_echo "just compiled" >&6; }
e8b05380
PB
16946 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
16947 # We already found the complete path
172e41aa 16948 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16950$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
16951 elif test "x$target" = "x$host"; then
16952 # We can use an host tool
16953 AS_FOR_TARGET='$(AS)'
5213506e
RW
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16955$as_echo "host tool" >&6; }
2abefe3d
PB
16956 else
16957 # We need a cross tool
5213506e
RW
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16959$as_echo "pre-installed" >&6; }
2abefe3d
PB
16960 fi
16961fi
0b0dc272 16962
5213506e
RW
16963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
16964$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 16965if test "x${build}" != "x${host}" ; then
e8b05380
PB
16966 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
16967 # We already found the complete path
172e41aa 16968 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16970$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
16971 else
16972 # Canadian cross, just use what we found
5213506e
RW
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16974$as_echo "pre-installed" >&6; }
e8b05380 16975 fi
2abefe3d
PB
16976else
16977 ok=yes
16978 case " ${configdirs} " in
16979 *" gcc "*) ;;
16980 *) ok=no ;;
16981 esac
1c710c3c 16982
2abefe3d
PB
16983 if test $ok = yes; then
16984 # An in-tree tool is available and we can use it
16985 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16987$as_echo "just compiled" >&6; }
e8b05380
PB
16988 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
16989 # We already found the complete path
172e41aa 16990 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16992$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
16993 elif test "x$target" = "x$host"; then
16994 # We can use an host tool
16995 CC_FOR_TARGET='$(CC)'
5213506e
RW
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16997$as_echo "host tool" >&6; }
2abefe3d
PB
16998 else
16999 # We need a cross tool
5213506e
RW
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17001$as_echo "pre-installed" >&6; }
2abefe3d
PB
17002 fi
17003fi
0b0dc272 17004
5213506e
RW
17005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17006$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 17007if test "x${build}" != "x${host}" ; then
e8b05380
PB
17008 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17009 # We already found the complete path
172e41aa 17010 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17012$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17013 else
17014 # Canadian cross, just use what we found
5213506e
RW
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17016$as_echo "pre-installed" >&6; }
e8b05380 17017 fi
2abefe3d
PB
17018else
17019 ok=yes
17020 case " ${configdirs} " in
17021 *" gcc "*) ;;
17022 *) ok=no ;;
17023 esac
17024 case ,${enable_languages}, in
17025 *,c++,*) ;;
17026 *) ok=no ;;
17027 esac
17028 if test $ok = yes; then
17029 # An in-tree tool is available and we can use it
2077db1b 17030 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
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17032$as_echo "just compiled" >&6; }
e8b05380
PB
17033 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17034 # We already found the complete path
172e41aa 17035 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17037$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17038 elif test "x$target" = "x$host"; then
17039 # We can use an host tool
17040 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17042$as_echo "host tool" >&6; }
2abefe3d
PB
17043 else
17044 # We need a cross tool
5213506e
RW
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17046$as_echo "pre-installed" >&6; }
2abefe3d
PB
17047 fi
17048fi
0b0dc272 17049
5213506e
RW
17050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17051$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 17052if test "x${build}" != "x${host}" ; then
e8b05380
PB
17053 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17054 # We already found the complete path
172e41aa 17055 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17057$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17058 else
17059 # Canadian cross, just use what we found
5213506e
RW
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17061$as_echo "pre-installed" >&6; }
e8b05380 17062 fi
2abefe3d
PB
17063else
17064 ok=yes
17065 case " ${configdirs} " in
17066 *" gcc "*) ;;
17067 *) ok=no ;;
17068 esac
17069 case ,${enable_languages}, in
17070 *,c++,*) ;;
17071 *) ok=no ;;
17072 esac
17073 if test $ok = yes; then
17074 # An in-tree tool is available and we can use it
2077db1b 17075 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
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17077$as_echo "just compiled" >&6; }
e8b05380
PB
17078 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17079 # We already found the complete path
172e41aa 17080 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17082$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17083 elif test "x$target" = "x$host"; then
17084 # We can use an host tool
17085 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17087$as_echo "host tool" >&6; }
2abefe3d
PB
17088 else
17089 # We need a cross tool
5213506e
RW
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17091$as_echo "pre-installed" >&6; }
2abefe3d
PB
17092 fi
17093fi
0b0dc272 17094
5213506e
RW
17095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17096$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 17097if test "x${build}" != "x${host}" ; then
e8b05380
PB
17098 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17099 # We already found the complete path
172e41aa 17100 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17102$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17103 else
17104 # Canadian cross, just use what we found
5213506e
RW
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17106$as_echo "pre-installed" >&6; }
e8b05380 17107 fi
2abefe3d
PB
17108else
17109 ok=yes
17110 case " ${configdirs} " in
17111 *" binutils "*) ;;
17112 *) ok=no ;;
17113 esac
1c710c3c 17114
2abefe3d
PB
17115 if test $ok = yes; then
17116 # An in-tree tool is available and we can use it
17117 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17119$as_echo "just compiled" >&6; }
e8b05380
PB
17120 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17121 # We already found the complete path
172e41aa 17122 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17124$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17125 elif test "x$target" = "x$host"; then
17126 # We can use an host tool
17127 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17129$as_echo "host tool" >&6; }
2abefe3d
PB
17130 else
17131 # We need a cross tool
5213506e
RW
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17133$as_echo "pre-installed" >&6; }
2abefe3d
PB
17134 fi
17135fi
0b0dc272 17136
10abab41
IS
17137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17138$as_echo_n "checking where to find the target dsymutil... " >&6; }
17139if test "x${build}" != "x${host}" ; then
17140 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17141 # We already found the complete path
17142 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17144$as_echo "pre-installed in $ac_dir" >&6; }
17145 else
17146 # Canadian cross, just use what we found
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17148$as_echo "pre-installed" >&6; }
17149 fi
17150else
17151 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17152 # We already found the complete path
17153 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17155$as_echo "pre-installed in $ac_dir" >&6; }
17156 elif test "x$target" = "x$host"; then
17157 # We can use an host tool
17158 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17160$as_echo "host tool" >&6; }
17161 else
17162 # We need a cross tool
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17164$as_echo "pre-installed" >&6; }
17165 fi
17166fi
17167
5213506e
RW
17168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17169$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 17170if test "x${build}" != "x${host}" ; then
e8b05380
PB
17171 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17172 # We already found the complete path
172e41aa 17173 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17175$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17176 else
17177 # Canadian cross, just use what we found
5213506e
RW
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17179$as_echo "pre-installed" >&6; }
e8b05380 17180 fi
2abefe3d
PB
17181else
17182 ok=yes
17183 case " ${configdirs} " in
17184 *" gcc "*) ;;
17185 *) ok=no ;;
17186 esac
1c710c3c 17187
2abefe3d
PB
17188 if test $ok = yes; then
17189 # An in-tree tool is available and we can use it
17190 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17192$as_echo "just compiled" >&6; }
e8b05380
PB
17193 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17194 # We already found the complete path
172e41aa 17195 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17197$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17198 elif test "x$target" = "x$host"; then
17199 # We can use an host tool
17200 GCC_FOR_TARGET='$()'
5213506e
RW
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17202$as_echo "host tool" >&6; }
2abefe3d
PB
17203 else
17204 # We need a cross tool
5213506e
RW
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17206$as_echo "pre-installed" >&6; }
2abefe3d
PB
17207 fi
17208fi
0b0dc272 17209
5213506e
RW
17210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17211$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 17212if test "x${build}" != "x${host}" ; then
e8b05380
PB
17213 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17214 # We already found the complete path
172e41aa 17215 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17217$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17218 else
17219 # Canadian cross, just use what we found
5213506e
RW
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17221$as_echo "pre-installed" >&6; }
e8b05380 17222 fi
2abefe3d
PB
17223else
17224 ok=yes
17225 case " ${configdirs} " in
17226 *" gcc "*) ;;
17227 *) ok=no ;;
17228 esac
17229 case ,${enable_languages}, in
17230 *,fortran,*) ;;
17231 *) ok=no ;;
17232 esac
17233 if test $ok = yes; then
17234 # An in-tree tool is available and we can use it
17235 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17237$as_echo "just compiled" >&6; }
e8b05380
PB
17238 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17239 # We already found the complete path
172e41aa 17240 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17242$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17243 elif test "x$target" = "x$host"; then
17244 # We can use an host tool
17245 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17247$as_echo "host tool" >&6; }
2abefe3d
PB
17248 else
17249 # We need a cross tool
5213506e
RW
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17251$as_echo "pre-installed" >&6; }
2abefe3d
PB
17252 fi
17253fi
0b0dc272 17254
632e2a07
ILT
17255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17256$as_echo_n "checking where to find the target gccgo... " >&6; }
17257if test "x${build}" != "x${host}" ; then
17258 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17259 # We already found the complete path
17260 ac_dir=`dirname $GOC_FOR_TARGET`
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17262$as_echo "pre-installed in $ac_dir" >&6; }
17263 else
17264 # Canadian cross, just use what we found
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17266$as_echo "pre-installed" >&6; }
17267 fi
17268else
17269 ok=yes
17270 case " ${configdirs} " in
17271 *" gcc "*) ;;
17272 *) ok=no ;;
17273 esac
17274 case ,${enable_languages}, in
17275 *,go,*) ;;
17276 *) ok=no ;;
17277 esac
17278 if test $ok = yes; then
17279 # An in-tree tool is available and we can use it
17280 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17282$as_echo "just compiled" >&6; }
17283 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17284 # We already found the complete path
17285 ac_dir=`dirname $GOC_FOR_TARGET`
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17287$as_echo "pre-installed in $ac_dir" >&6; }
17288 elif test "x$target" = "x$host"; then
17289 # We can use an host tool
17290 GOC_FOR_TARGET='$(GOC)'
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17292$as_echo "host tool" >&6; }
17293 else
17294 # We need a cross tool
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17296$as_echo "pre-installed" >&6; }
17297 fi
17298fi
17299
b4c522fa
IB
17300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17301$as_echo_n "checking where to find the target gdc... " >&6; }
17302if test "x${build}" != "x${host}" ; then
17303 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17304 # We already found the complete path
17305 ac_dir=`dirname $GDC_FOR_TARGET`
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17307$as_echo "pre-installed in $ac_dir" >&6; }
17308 else
17309 # Canadian cross, just use what we found
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17311$as_echo "pre-installed" >&6; }
17312 fi
17313else
17314 ok=yes
17315 case " ${configdirs} " in
17316 *" gcc "*) ;;
17317 *) ok=no ;;
17318 esac
17319 case ,${enable_languages}, in
17320 *,d,*) ;;
17321 *) ok=no ;;
17322 esac
17323 if test $ok = yes; then
17324 # An in-tree tool is available and we can use it
17325 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17327$as_echo "just compiled" >&6; }
17328 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17329 # We already found the complete path
17330 ac_dir=`dirname $GDC_FOR_TARGET`
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17332$as_echo "pre-installed in $ac_dir" >&6; }
17333 elif test "x$target" = "x$host"; then
17334 # We can use an host tool
17335 GDC_FOR_TARGET='$(GDC)'
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17337$as_echo "host tool" >&6; }
17338 else
17339 # We need a cross tool
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17341$as_echo "pre-installed" >&6; }
17342 fi
17343fi
17344
5213506e
RW
17345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17346$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 17347if test "x${build}" != "x${host}" ; then
e8b05380
PB
17348 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17349 # We already found the complete path
172e41aa 17350 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17352$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17353 else
17354 # Canadian cross, just use what we found
5213506e
RW
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17356$as_echo "pre-installed" >&6; }
e8b05380 17357 fi
2abefe3d
PB
17358else
17359 ok=yes
17360 case " ${configdirs} " in
17361 *" ld "*) ;;
17362 *) ok=no ;;
17363 esac
1c710c3c 17364
2abefe3d
PB
17365 if test $ok = yes; then
17366 # An in-tree tool is available and we can use it
17367 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17369$as_echo "just compiled" >&6; }
e8b05380
PB
17370 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17371 # We already found the complete path
172e41aa 17372 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17374$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17375 elif test "x$target" = "x$host"; then
17376 # We can use an host tool
17377 LD_FOR_TARGET='$(LD)'
5213506e
RW
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17379$as_echo "host tool" >&6; }
2abefe3d
PB
17380 else
17381 # We need a cross tool
5213506e
RW
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17383$as_echo "pre-installed" >&6; }
2abefe3d
PB
17384 fi
17385fi
0b0dc272 17386
5213506e
RW
17387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17388$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 17389if test "x${build}" != "x${host}" ; then
e8b05380
PB
17390 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17391 # We already found the complete path
172e41aa 17392 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17394$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17395 else
17396 # Canadian cross, just use what we found
5213506e
RW
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17398$as_echo "pre-installed" >&6; }
e8b05380 17399 fi
2abefe3d 17400else
e8b05380
PB
17401 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17402 # We already found the complete path
172e41aa 17403 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17405$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 17406 elif test "x$target" = "x$host"; then
2abefe3d
PB
17407 # We can use an host tool
17408 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17410$as_echo "host tool" >&6; }
2abefe3d
PB
17411 else
17412 # We need a cross tool
5213506e
RW
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17414$as_echo "pre-installed" >&6; }
2abefe3d
PB
17415 fi
17416fi
0b0dc272 17417
5213506e
RW
17418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17419$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 17420if test "x${build}" != "x${host}" ; then
e8b05380
PB
17421 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17422 # We already found the complete path
172e41aa 17423 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17425$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17426 else
17427 # Canadian cross, just use what we found
5213506e
RW
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17429$as_echo "pre-installed" >&6; }
e8b05380 17430 fi
2abefe3d
PB
17431else
17432 ok=yes
17433 case " ${configdirs} " in
17434 *" binutils "*) ;;
17435 *) ok=no ;;
17436 esac
1c710c3c 17437
2abefe3d
PB
17438 if test $ok = yes; then
17439 # An in-tree tool is available and we can use it
17440 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17442$as_echo "just compiled" >&6; }
e8b05380
PB
17443 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17444 # We already found the complete path
172e41aa 17445 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17447$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17448 elif test "x$target" = "x$host"; then
17449 # We can use an host tool
17450 NM_FOR_TARGET='$(NM)'
5213506e
RW
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17452$as_echo "host tool" >&6; }
2abefe3d
PB
17453 else
17454 # We need a cross tool
5213506e
RW
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17456$as_echo "pre-installed" >&6; }
2abefe3d
PB
17457 fi
17458fi
0b0dc272 17459
9bccfdf5
AP
17460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17461$as_echo_n "checking where to find the target objcopy... " >&6; }
17462if test "x${build}" != "x${host}" ; then
17463 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17464 # We already found the complete path
17465 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17467$as_echo "pre-installed in $ac_dir" >&6; }
17468 else
17469 # Canadian cross, just use what we found
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17471$as_echo "pre-installed" >&6; }
17472 fi
17473else
17474 ok=yes
17475 case " ${configdirs} " in
17476 *" binutils "*) ;;
17477 *) ok=no ;;
17478 esac
17479
17480 if test $ok = yes; then
17481 # An in-tree tool is available and we can use it
17482 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17484$as_echo "just compiled" >&6; }
17485 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17486 # We already found the complete path
17487 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17489$as_echo "pre-installed in $ac_dir" >&6; }
17490 elif test "x$target" = "x$host"; then
17491 # We can use an host tool
ec8fd1c0 17492 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17494$as_echo "host tool" >&6; }
17495 else
17496 # We need a cross tool
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17498$as_echo "pre-installed" >&6; }
17499 fi
17500fi
17501
5213506e
RW
17502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17503$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 17504if test "x${build}" != "x${host}" ; then
e8b05380
PB
17505 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17506 # We already found the complete path
172e41aa 17507 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17509$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17510 else
17511 # Canadian cross, just use what we found
5213506e
RW
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17513$as_echo "pre-installed" >&6; }
e8b05380 17514 fi
2abefe3d
PB
17515else
17516 ok=yes
17517 case " ${configdirs} " in
17518 *" binutils "*) ;;
17519 *) ok=no ;;
17520 esac
1c710c3c 17521
2abefe3d
PB
17522 if test $ok = yes; then
17523 # An in-tree tool is available and we can use it
17524 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17526$as_echo "just compiled" >&6; }
e8b05380
PB
17527 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17528 # We already found the complete path
172e41aa 17529 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17531$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17532 elif test "x$target" = "x$host"; then
17533 # We can use an host tool
17534 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17536$as_echo "host tool" >&6; }
2abefe3d
PB
17537 else
17538 # We need a cross tool
5213506e
RW
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17540$as_echo "pre-installed" >&6; }
2abefe3d
PB
17541 fi
17542fi
0b0dc272 17543
e4a9a572
IS
17544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17545$as_echo_n "checking where to find the target otool... " >&6; }
17546if test "x${build}" != "x${host}" ; then
17547 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17548 # We already found the complete path
17549 ac_dir=`dirname $OTOOL_FOR_TARGET`
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17551$as_echo "pre-installed in $ac_dir" >&6; }
17552 else
17553 # Canadian cross, just use what we found
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17555$as_echo "pre-installed" >&6; }
17556 fi
17557else
17558 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17559 # We already found the complete path
17560 ac_dir=`dirname $OTOOL_FOR_TARGET`
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17562$as_echo "pre-installed in $ac_dir" >&6; }
17563 elif test "x$target" = "x$host"; then
17564 # We can use an host tool
17565 OTOOL_FOR_TARGET='$(OTOOL)'
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17567$as_echo "host tool" >&6; }
17568 else
17569 # We need a cross tool
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17571$as_echo "pre-installed" >&6; }
17572 fi
17573fi
17574
5213506e
RW
17575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17576$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 17577if test "x${build}" != "x${host}" ; then
e8b05380
PB
17578 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17579 # We already found the complete path
172e41aa 17580 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17582$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17583 else
17584 # Canadian cross, just use what we found
5213506e
RW
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17586$as_echo "pre-installed" >&6; }
e8b05380 17587 fi
2abefe3d
PB
17588else
17589 ok=yes
17590 case " ${configdirs} " in
17591 *" binutils "*) ;;
17592 *) ok=no ;;
17593 esac
1c710c3c 17594
2abefe3d
PB
17595 if test $ok = yes; then
17596 # An in-tree tool is available and we can use it
17597 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17599$as_echo "just compiled" >&6; }
e8b05380
PB
17600 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17601 # We already found the complete path
172e41aa 17602 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17604$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17605 elif test "x$target" = "x$host"; then
17606 # We can use an host tool
17607 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17609$as_echo "host tool" >&6; }
2abefe3d
PB
17610 else
17611 # We need a cross tool
5213506e
RW
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17613$as_echo "pre-installed" >&6; }
2abefe3d
PB
17614 fi
17615fi
0b0dc272 17616
e7a82751
RM
17617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17618$as_echo_n "checking where to find the target readelf... " >&6; }
17619if test "x${build}" != "x${host}" ; then
17620 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17621 # We already found the complete path
17622 ac_dir=`dirname $READELF_FOR_TARGET`
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17624$as_echo "pre-installed in $ac_dir" >&6; }
17625 else
17626 # Canadian cross, just use what we found
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17628$as_echo "pre-installed" >&6; }
17629 fi
17630else
17631 ok=yes
17632 case " ${configdirs} " in
17633 *" binutils "*) ;;
17634 *) ok=no ;;
17635 esac
17636
17637 if test $ok = yes; then
17638 # An in-tree tool is available and we can use it
17639 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17641$as_echo "just compiled" >&6; }
17642 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17643 # We already found the complete path
17644 ac_dir=`dirname $READELF_FOR_TARGET`
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17646$as_echo "pre-installed in $ac_dir" >&6; }
17647 elif test "x$target" = "x$host"; then
17648 # We can use an host tool
17649 READELF_FOR_TARGET='$(READELF)'
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17651$as_echo "host tool" >&6; }
17652 else
17653 # We need a cross tool
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17655$as_echo "pre-installed" >&6; }
17656 fi
17657fi
17658
5213506e
RW
17659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
17660$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 17661if test "x${build}" != "x${host}" ; then
e8b05380
PB
17662 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17663 # We already found the complete path
172e41aa 17664 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17666$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17667 else
17668 # Canadian cross, just use what we found
5213506e
RW
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17670$as_echo "pre-installed" >&6; }
e8b05380 17671 fi
2abefe3d
PB
17672else
17673 ok=yes
17674 case " ${configdirs} " in
17675 *" binutils "*) ;;
17676 *) ok=no ;;
17677 esac
1c710c3c 17678
2abefe3d
PB
17679 if test $ok = yes; then
17680 # An in-tree tool is available and we can use it
455c8f48 17681 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17683$as_echo "just compiled" >&6; }
e8b05380
PB
17684 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17685 # We already found the complete path
172e41aa 17686 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17688$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17689 elif test "x$target" = "x$host"; then
17690 # We can use an host tool
17691 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17693$as_echo "host tool" >&6; }
2abefe3d
PB
17694 else
17695 # We need a cross tool
5213506e
RW
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17697$as_echo "pre-installed" >&6; }
2abefe3d
PB
17698 fi
17699fi
0b0dc272 17700
5213506e
RW
17701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
17702$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 17703if test "x${build}" != "x${host}" ; then
e8b05380
PB
17704 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17705 # We already found the complete path
172e41aa 17706 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17708$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17709 else
17710 # Canadian cross, just use what we found
5213506e
RW
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17712$as_echo "pre-installed" >&6; }
e8b05380 17713 fi
2abefe3d
PB
17714else
17715 ok=yes
17716 case " ${configdirs} " in
17717 *" binutils "*) ;;
17718 *) ok=no ;;
17719 esac
1c710c3c 17720
2abefe3d
PB
17721 if test $ok = yes; then
17722 # An in-tree tool is available and we can use it
17723 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17725$as_echo "just compiled" >&6; }
e8b05380
PB
17726 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17727 # We already found the complete path
172e41aa 17728 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17730$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17731 elif test "x$target" = "x$host"; then
17732 # We can use an host tool
17733 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17735$as_echo "host tool" >&6; }
2abefe3d
PB
17736 else
17737 # We need a cross tool
5213506e
RW
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17739$as_echo "pre-installed" >&6; }
2abefe3d 17740 fi
671aa708 17741fi
be912515 17742
5213506e
RW
17743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
17744$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
17745if test "x${build}" != "x${host}" ; then
17746 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17747 # We already found the complete path
17748 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17750$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
17751 else
17752 # Canadian cross, just use what we found
5213506e
RW
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17754$as_echo "pre-installed" >&6; }
901119ae
KT
17755 fi
17756else
17757 ok=yes
17758 case " ${configdirs} " in
17759 *" binutils "*) ;;
17760 *) ok=no ;;
17761 esac
17762
17763 if test $ok = yes; then
17764 # An in-tree tool is available and we can use it
17765 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17767$as_echo "just compiled" >&6; }
901119ae
KT
17768 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17769 # We already found the complete path
17770 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17772$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
17773 elif test "x$target" = "x$host"; then
17774 # We can use an host tool
17775 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17777$as_echo "host tool" >&6; }
901119ae
KT
17778 else
17779 # We need a cross tool
5213506e
RW
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17781$as_echo "pre-installed" >&6; }
901119ae
KT
17782 fi
17783fi
17784
be912515
NN
17785
17786
2abefe3d 17787
0b0dc272 17788
671aa708
NN
17789# Certain tools may need extra flags.
17790AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
17791RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
17792NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
17793
2abefe3d
PB
17794# When building target libraries, except in a Canadian cross, we use
17795# the same toolchain as the compiler we just built.
17796COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
17797COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
17798COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
17799if test $host = $build; then
17800 case " $configdirs " in
17801 *" gcc "*)
17802 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
17803 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
17804 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
17805 ;;
17806 esac
17807fi
17808
17809
17810
17811
17812
5213506e
RW
17813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17814$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17815# Check whether --enable-maintainer-mode was given.
17816if test "${enable_maintainer_mode+set}" = set; then :
17817 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
17818else
17819 USE_MAINTAINER_MODE=no
5213506e
RW
17820fi
17821
17822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17823$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
17824
17825
17826if test "$USE_MAINTAINER_MODE" = yes; then
17827 MAINTAINER_MODE_TRUE=
17828 MAINTAINER_MODE_FALSE='#'
17829else
17830 MAINTAINER_MODE_TRUE='#'
17831 MAINTAINER_MODE_FALSE=
1c710c3c 17832fi
ee03dc5e
AO
17833MAINT=$MAINTAINER_MODE_TRUE
17834
2805b53a
NN
17835# ---------------------
17836# GCC bootstrap support
17837# ---------------------
17838
17839# Stage specific cflags for build.
17840stage1_cflags="-g"
17841case $build in
17842 vax-*-*)
17843 case ${GCC} in
17844 yes) stage1_cflags="-g -Wa,-J" ;;
17845 *) stage1_cflags="-g -J" ;;
17846 esac ;;
2805b53a
NN
17847esac
17848
0b50988a 17849
2805b53a 17850
8efea775 17851# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
17852# Check whether --enable-stage1-checking was given.
17853if test "${enable_stage1_checking+set}" = set; then :
17854 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 17855else
e643dc23 17856 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
17857 # For --disable-checking or implicit --enable-checking=release, avoid
17858 # setting --enable-checking=gc in the default stage1 checking for LTO
17859 # bootstraps. See PR62077.
c10b5ea0
JJ
17860 case $BUILD_CONFIG in
17861 *lto*)
7db11a5a
JJ
17862 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
17863 *)
17864 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 17865 esac
7db11a5a
JJ
17866 if test "x$enable_checking" = x && \
17867 test -d ${srcdir}/gcc && \
17868 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 17869 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 17870 fi
8efea775 17871else
e643dc23 17872 stage1_checking=--enable-checking=$enable_checking,types
8efea775 17873fi
5213506e 17874fi
8efea775
PB
17875
17876
2aeb72e9 17877
5213506e
RW
17878# Enable -Werror in bootstrap stage2 and later.
17879# Check whether --enable-werror was given.
17880if test "${enable_werror+set}" = set; then :
17881 enableval=$enable_werror;
09a9c095
NN
17882case ${enable_werror} in
17883 yes) stage2_werror_flag="--enable-werror-always" ;;
17884 *) stage2_werror_flag="" ;;
2805b53a
NN
17885esac
17886
afd88efc
ML
17887else
17888
01c712cb
ML
17889if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
17890 case $BUILD_CONFIG in
17891 bootstrap-debug)
17892 stage2_werror_flag="--enable-werror-always" ;;
17893 "")
17894 stage2_werror_flag="--enable-werror-always" ;;
17895 esac
17896fi
17897
afd88efc
ML
17898fi
17899
17900
01c712cb 17901
2805b53a 17902
f2689b09
SE
17903# Specify what files to not compare during bootstrap.
17904
17905compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
17906case "$target" in
17907 hppa*64*-*-hpux*) ;;
4f943869
MK
17908 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
17909 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
f2689b09
SE
17910esac
17911
17912
5213506e
RW
17913ac_config_files="$ac_config_files Makefile"
17914
1c710c3c 17915cat >confcache <<\_ACEOF
671aa708
NN
17916# This file is a shell script that caches the results of configure
17917# tests run on this system so they can be shared between configure
1c710c3c
DJ
17918# scripts and configure runs, see configure's option --config-cache.
17919# It is not useful on other systems. If it contains results you don't
17920# want to keep, you may remove or edit it.
671aa708 17921#
1c710c3c
DJ
17922# config.status only pays attention to the cache file if you give it
17923# the --recheck option to rerun configure.
671aa708 17924#
1c710c3c
DJ
17925# `ac_cv_env_foo' variables (set or unset) will be overridden when
17926# loading this file, other *unset* `ac_cv_foo' will be assigned the
17927# following values.
17928
17929_ACEOF
17930
671aa708
NN
17931# The following way of writing the cache mishandles newlines in values,
17932# but we know of no workaround that is simple, portable, and efficient.
5213506e 17933# So, we kill variables containing newlines.
671aa708
NN
17934# Ultrix sh set writes to stderr and can't be redirected directly,
17935# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
17936(
17937 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17938 eval ac_val=\$$ac_var
17939 case $ac_val in #(
17940 *${as_nl}*)
17941 case $ac_var in #(
17942 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17943$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17944 esac
17945 case $ac_var in #(
17946 _ | IFS | as_nl) ;; #(
17947 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17948 *) { eval $ac_var=; unset $ac_var;} ;;
17949 esac ;;
17950 esac
17951 done
17952
1c710c3c 17953 (set) 2>&1 |
5213506e
RW
17954 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17955 *${as_nl}ac_space=\ *)
17956 # `set' does not quote correctly, so add quotes: double-quote
17957 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
17958 sed -n \
17959 "s/'/'\\\\''/g;
17960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 17961 ;; #(
1c710c3c
DJ
17962 *)
17963 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 17964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 17965 ;;
5213506e
RW
17966 esac |
17967 sort
17968) |
1c710c3c 17969 sed '
5213506e 17970 /^ac_cv_env_/b end
1c710c3c 17971 t clear
5213506e 17972 :clear
1c710c3c
DJ
17973 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17974 t end
5213506e
RW
17975 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17976 :end' >>confcache
17977if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17978 if test -w "$cache_file"; then
22e05272 17979 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17981$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
17982 if test ! -f "$cache_file" || test -h "$cache_file"; then
17983 cat confcache >"$cache_file"
17984 else
17985 case $cache_file in #(
17986 */* | ?:*)
17987 mv -f confcache "$cache_file"$$ &&
17988 mv -f "$cache_file"$$ "$cache_file" ;; #(
17989 *)
17990 mv -f confcache "$cache_file" ;;
17991 esac
17992 fi
17993 fi
671aa708 17994 else
5213506e
RW
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17996$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 17997 fi
4977bab6 17998fi
671aa708 17999rm -f confcache
79c06341 18000
671aa708
NN
18001test "x$prefix" = xNONE && prefix=$ac_default_prefix
18002# Let make expand exec_prefix.
18003test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 18004
671aa708
NN
18005# Transform confdefs.h into DEFS.
18006# Protect against shell expansion while executing Makefile rules.
18007# Protect against Makefile macro expansion.
1c710c3c
DJ
18008#
18009# If the first sed substitution is executed (which looks for macros that
5213506e 18010# take arguments), then branch to the quote section. Otherwise,
1c710c3c 18011# look for a macro that doesn't take arguments.
5213506e
RW
18012ac_script='
18013:mline
18014/\\$/{
18015 N
18016 s,\\\n,,
18017 b mline
18018}
1c710c3c 18019t clear
5213506e
RW
18020:clear
18021s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18022t quote
5213506e 18023s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18024t quote
5213506e
RW
18025b any
18026:quote
18027s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18028s/\[/\\&/g
18029s/\]/\\&/g
18030s/\$/$$/g
18031H
18032:any
18033${
18034 g
18035 s/^\n//
18036 s/\n/ /g
18037 p
18038}
18039'
18040DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
18041
18042
18043ac_libobjs=
18044ac_ltlibobjs=
22e05272 18045U=
1c710c3c
DJ
18046for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18047 # 1. Remove the extension, and $U if already installed.
5213506e
RW
18048 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18049 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18050 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18051 # will be set to the directory where LIBOBJS objects are built.
18052 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18053 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
18054done
18055LIBOBJS=$ac_libobjs
fb0103e5 18056
1c710c3c 18057LTLIBOBJS=$ac_ltlibobjs
0b0dc272 18058
af71363e 18059
1c710c3c 18060
22e05272 18061: "${CONFIG_STATUS=./config.status}"
5213506e 18062ac_write_fail=0
1c710c3c
DJ
18063ac_clean_files_save=$ac_clean_files
18064ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
18065{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18066$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18067as_write_fail=0
18068cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
18069#! $SHELL
18070# Generated by $as_me.
671aa708 18071# Run this file to recreate the current configuration.
671aa708 18072# Compiler output produced by configure, useful for debugging
1c710c3c 18073# configure, is in config.log if it exists.
0b0dc272 18074
1c710c3c
DJ
18075debug=false
18076ac_cs_recheck=false
18077ac_cs_silent=false
1c710c3c 18078
5213506e
RW
18079SHELL=\${CONFIG_SHELL-$SHELL}
18080export SHELL
18081_ASEOF
18082cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18083## -------------------- ##
18084## M4sh Initialization. ##
18085## -------------------- ##
18086
18087# Be more Bourne compatible
18088DUALCASE=1; export DUALCASE # for MKS sh
18089if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18090 emulate sh
18091 NULLCMD=:
5213506e 18092 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
18093 # is contrary to our usage. Disable this feature.
18094 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
18095 setopt NO_GLOB_SUBST
18096else
18097 case `(set -o) 2>/dev/null` in #(
18098 *posix*) :
18099 set -o posix ;; #(
18100 *) :
18101 ;;
18102esac
1c710c3c 18103fi
1c710c3c 18104
5213506e
RW
18105
18106as_nl='
18107'
18108export as_nl
18109# Printing a long string crashes Solaris 7 /usr/bin/printf.
18110as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18111as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18112as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18113# Prefer a ksh shell builtin over an external printf program on Solaris,
18114# but without wasting forks for bash or zsh.
18115if test -z "$BASH_VERSION$ZSH_VERSION" \
18116 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18117 as_echo='print -r --'
18118 as_echo_n='print -rn --'
18119elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18120 as_echo='printf %s\n'
18121 as_echo_n='printf %s'
18122else
18123 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18124 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18125 as_echo_n='/usr/ucb/echo -n'
18126 else
18127 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18128 as_echo_n_body='eval
18129 arg=$1;
18130 case $arg in #(
18131 *"$as_nl"*)
18132 expr "X$arg" : "X\\(.*\\)$as_nl";
18133 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18134 esac;
18135 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18136 '
18137 export as_echo_n_body
18138 as_echo_n='sh -c $as_echo_n_body as_echo'
18139 fi
18140 export as_echo_body
18141 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
18142fi
18143
5213506e
RW
18144# The user is always right.
18145if test "${PATH_SEPARATOR+set}" != set; then
18146 PATH_SEPARATOR=:
18147 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18148 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18149 PATH_SEPARATOR=';'
18150 }
18151fi
18152
18153
18154# IFS
18155# We need space, tab and new line, in precisely that order. Quoting is
18156# there to prevent editors from complaining about space-tab.
18157# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18158# splitting by setting IFS to empty value.)
18159IFS=" "" $as_nl"
18160
18161# Find who we are. Look in the path if we contain no directory separator.
22e05272 18162as_myself=
5213506e
RW
18163case $0 in #((
18164 *[\\/]* ) as_myself=$0 ;;
18165 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18166for as_dir in $PATH
18167do
18168 IFS=$as_save_IFS
18169 test -z "$as_dir" && as_dir=.
18170 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18171 done
18172IFS=$as_save_IFS
18173
18174 ;;
18175esac
18176# We did not find ourselves, most probably we were run as `sh COMMAND'
18177# in which case we are not to be found in the path.
18178if test "x$as_myself" = x; then
18179 as_myself=$0
18180fi
18181if test ! -f "$as_myself"; then
18182 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18183 exit 1
18184fi
1c710c3c 18185
5213506e
RW
18186# Unset variables that we do not need and which cause bugs (e.g. in
18187# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18188# suppresses any "Segmentation fault" message there. '((' could
18189# trigger a bug in pdksh 5.2.14.
18190for as_var in BASH_ENV ENV MAIL MAILPATH
18191do eval test x\${$as_var+set} = xset \
18192 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18193done
1c710c3c
DJ
18194PS1='$ '
18195PS2='> '
18196PS4='+ '
18197
18198# NLS nuisances.
5213506e
RW
18199LC_ALL=C
18200export LC_ALL
18201LANGUAGE=C
18202export LANGUAGE
18203
18204# CDPATH.
18205(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18206
18207
22e05272
JM
18208# as_fn_error STATUS ERROR [LINENO LOG_FD]
18209# ----------------------------------------
5213506e
RW
18210# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18211# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 18212# script with STATUS, using 1 if that was 0.
5213506e
RW
18213as_fn_error ()
18214{
22e05272
JM
18215 as_status=$1; test $as_status -eq 0 && as_status=1
18216 if test "$4"; then
18217 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18218 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 18219 fi
22e05272 18220 $as_echo "$as_me: error: $2" >&2
5213506e
RW
18221 as_fn_exit $as_status
18222} # as_fn_error
18223
18224
18225# as_fn_set_status STATUS
18226# -----------------------
18227# Set $? to STATUS, without forking.
18228as_fn_set_status ()
18229{
18230 return $1
18231} # as_fn_set_status
18232
18233# as_fn_exit STATUS
18234# -----------------
18235# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18236as_fn_exit ()
18237{
18238 set +e
18239 as_fn_set_status $1
18240 exit $1
18241} # as_fn_exit
18242
18243# as_fn_unset VAR
18244# ---------------
18245# Portably unset VAR.
18246as_fn_unset ()
18247{
18248 { eval $1=; unset $1;}
18249}
18250as_unset=as_fn_unset
18251# as_fn_append VAR VALUE
18252# ----------------------
18253# Append the text in VALUE to the end of the definition contained in VAR. Take
18254# advantage of any shell optimizations that allow amortized linear growth over
18255# repeated appends, instead of the typical quadratic growth present in naive
18256# implementations.
18257if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18258 eval 'as_fn_append ()
18259 {
18260 eval $1+=\$2
18261 }'
18262else
18263 as_fn_append ()
18264 {
18265 eval $1=\$$1\$2
18266 }
18267fi # as_fn_append
18268
18269# as_fn_arith ARG...
18270# ------------------
18271# Perform arithmetic evaluation on the ARGs, and store the result in the
18272# global $as_val. Take advantage of shells that can avoid forks. The arguments
18273# must be portable across $(()) and expr.
18274if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18275 eval 'as_fn_arith ()
18276 {
18277 as_val=$(( $* ))
18278 }'
18279else
18280 as_fn_arith ()
18281 {
18282 as_val=`expr "$@" || test $? -eq 1`
18283 }
18284fi # as_fn_arith
18285
1c710c3c 18286
5213506e
RW
18287if expr a : '\(a\)' >/dev/null 2>&1 &&
18288 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
18289 as_expr=expr
18290else
18291 as_expr=false
18292fi
18293
5213506e 18294if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
18295 as_basename=basename
18296else
18297 as_basename=false
18298fi
18299
5213506e
RW
18300if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18301 as_dirname=dirname
18302else
18303 as_dirname=false
18304fi
1c710c3c 18305
5213506e 18306as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
18307$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18308 X"$0" : 'X\(//\)$' \| \
5213506e
RW
18309 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18310$as_echo X/"$0" |
18311 sed '/^.*\/\([^/][^/]*\)\/*$/{
18312 s//\1/
18313 q
18314 }
18315 /^X\/\(\/\/\)$/{
18316 s//\1/
18317 q
18318 }
18319 /^X\/\(\/\).*/{
18320 s//\1/
18321 q
18322 }
18323 s/.*/./; q'`
2aeb72e9 18324
2aeb72e9
DD
18325# Avoid depending upon Character Ranges.
18326as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18327as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18328as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18329as_cr_digits='0123456789'
18330as_cr_alnum=$as_cr_Letters$as_cr_digits
18331
5213506e
RW
18332ECHO_C= ECHO_N= ECHO_T=
18333case `echo -n x` in #(((((
18334-n*)
18335 case `echo 'xy\c'` in
18336 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18337 xy) ECHO_C='\c';;
18338 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18339 ECHO_T=' ';;
18340 esac;;
18341*)
18342 ECHO_N='-n';;
1c710c3c
DJ
18343esac
18344
5213506e
RW
18345rm -f conf$$ conf$$.exe conf$$.file
18346if test -d conf$$.dir; then
18347 rm -f conf$$.dir/conf$$.file
1c710c3c 18348else
5213506e
RW
18349 rm -f conf$$.dir
18350 mkdir conf$$.dir 2>/dev/null
1c710c3c 18351fi
5213506e
RW
18352if (echo >conf$$.file) 2>/dev/null; then
18353 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 18354 as_ln_s='ln -s'
5213506e
RW
18355 # ... but there are two gotchas:
18356 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18357 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 18358 # In both cases, we have to default to `cp -pR'.
5213506e 18359 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 18360 as_ln_s='cp -pR'
5213506e
RW
18361 elif ln conf$$.file conf$$ 2>/dev/null; then
18362 as_ln_s=ln
18363 else
22e05272 18364 as_ln_s='cp -pR'
2aeb72e9 18365 fi
1c710c3c 18366else
22e05272 18367 as_ln_s='cp -pR'
1c710c3c 18368fi
5213506e
RW
18369rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18370rmdir conf$$.dir 2>/dev/null
18371
18372
18373# as_fn_mkdir_p
18374# -------------
18375# Create "$as_dir" as a directory, including parents if necessary.
18376as_fn_mkdir_p ()
18377{
18378
18379 case $as_dir in #(
18380 -*) as_dir=./$as_dir;;
18381 esac
18382 test -d "$as_dir" || eval $as_mkdir_p || {
18383 as_dirs=
18384 while :; do
18385 case $as_dir in #(
18386 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18387 *) as_qdir=$as_dir;;
18388 esac
18389 as_dirs="'$as_qdir' $as_dirs"
18390 as_dir=`$as_dirname -- "$as_dir" ||
18391$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18392 X"$as_dir" : 'X\(//\)[^/]' \| \
18393 X"$as_dir" : 'X\(//\)$' \| \
18394 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18395$as_echo X"$as_dir" |
18396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18397 s//\1/
18398 q
18399 }
18400 /^X\(\/\/\)[^/].*/{
18401 s//\1/
18402 q
18403 }
18404 /^X\(\/\/\)$/{
18405 s//\1/
18406 q
18407 }
18408 /^X\(\/\).*/{
18409 s//\1/
18410 q
18411 }
18412 s/.*/./; q'`
18413 test -d "$as_dir" && break
18414 done
18415 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 18416 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 18417
1c710c3c 18418
5213506e 18419} # as_fn_mkdir_p
1c710c3c 18420if mkdir -p . 2>/dev/null; then
5213506e 18421 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
18422else
18423 test -d ./-p && rmdir ./-p
18424 as_mkdir_p=false
18425fi
18426
22e05272
JM
18427
18428# as_fn_executable_p FILE
18429# -----------------------
18430# Test if FILE is an executable regular file.
18431as_fn_executable_p ()
18432{
18433 test -f "$1" && test -x "$1"
18434} # as_fn_executable_p
18435as_test_x='test -x'
18436as_executable_p=as_fn_executable_p
1c710c3c
DJ
18437
18438# Sed expression to map a string onto a valid CPP name.
18439as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18440
18441# Sed expression to map a string onto a valid variable name.
18442as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18443
18444
1c710c3c 18445exec 6>&1
5213506e
RW
18446## ----------------------------------- ##
18447## Main body of $CONFIG_STATUS script. ##
18448## ----------------------------------- ##
18449_ASEOF
18450test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18451
18452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18453# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 18454# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
18455# values after options handling.
18456ac_log="
1c710c3c 18457This file was extended by $as_me, which was
22e05272 18458generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
18459
18460 CONFIG_FILES = $CONFIG_FILES
18461 CONFIG_HEADERS = $CONFIG_HEADERS
18462 CONFIG_LINKS = $CONFIG_LINKS
18463 CONFIG_COMMANDS = $CONFIG_COMMANDS
18464 $ $0 $@
18465
5213506e
RW
18466on `(hostname || uname -n) 2>/dev/null | sed 1q`
18467"
18468
1c710c3c
DJ
18469_ACEOF
18470
5213506e
RW
18471case $ac_config_files in *"
18472"*) set x $ac_config_files; shift; ac_config_files=$*;;
18473esac
1c710c3c 18474
2aeb72e9 18475
2aeb72e9 18476
5213506e
RW
18477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18478# Files that config.status was made for.
18479config_files="$ac_config_files"
1c710c3c 18480
5213506e 18481_ACEOF
2aeb72e9 18482
5213506e 18483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 18484ac_cs_usage="\
5213506e
RW
18485\`$as_me' instantiates files and other configuration actions
18486from templates according to the current configuration. Unless the files
18487and actions are specified as TAGs, all are instantiated by default.
1c710c3c 18488
5213506e 18489Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
18490
18491 -h, --help print this help, then exit
5213506e 18492 -V, --version print version number and configuration settings, then exit
22e05272 18493 --config print configuration, then exit
5213506e
RW
18494 -q, --quiet, --silent
18495 do not print progress messages
1c710c3c
DJ
18496 -d, --debug don't remove temporary files
18497 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
18498 --file=FILE[:TEMPLATE]
18499 instantiate the configuration file FILE
1c710c3c
DJ
18500
18501Configuration files:
18502$config_files
18503
5213506e 18504Report bugs to the package provider."
2aeb72e9 18505
5213506e
RW
18506_ACEOF
18507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 18508ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
18509ac_cs_version="\\
18510config.status
22e05272
JM
18511configured by $0, generated by GNU Autoconf 2.69,
18512 with options \\"\$ac_cs_config\\"
1c710c3c 18513
22e05272 18514Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
18515This config.status script is free software; the Free Software Foundation
18516gives unlimited permission to copy, distribute and modify it."
5213506e
RW
18517
18518ac_pwd='$ac_pwd'
18519srcdir='$srcdir'
18520INSTALL='$INSTALL'
87264276 18521AWK='$AWK'
5213506e 18522test -n "\$AWK" || AWK=awk
1c710c3c
DJ
18523_ACEOF
18524
5213506e
RW
18525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18526# The default lists apply if the user does not specify any file.
1c710c3c
DJ
18527ac_need_defaults=:
18528while test $# != 0
a4b9e93e 18529do
1c710c3c 18530 case $1 in
22e05272 18531 --*=?*)
5213506e
RW
18532 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18533 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
18534 ac_shift=:
18535 ;;
22e05272
JM
18536 --*=)
18537 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18538 ac_optarg=
18539 ac_shift=:
18540 ;;
5213506e 18541 *)
1c710c3c
DJ
18542 ac_option=$1
18543 ac_optarg=$2
18544 ac_shift=shift
18545 ;;
1c710c3c
DJ
18546 esac
18547
18548 case $ac_option in
18549 # Handling of the options.
671aa708 18550 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 18551 ac_cs_recheck=: ;;
5213506e
RW
18552 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18553 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
18554 --config | --confi | --conf | --con | --co | --c )
18555 $as_echo "$ac_cs_config"; exit ;;
5213506e 18556 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
18557 debug=: ;;
18558 --file | --fil | --fi | --f )
18559 $ac_shift
5213506e
RW
18560 case $ac_optarg in
18561 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 18562 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
18563 esac
18564 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 18565 ac_need_defaults=false;;
5213506e
RW
18566 --he | --h | --help | --hel | -h )
18567 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
18568 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18569 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18570 ac_cs_silent=: ;;
18571
18572 # This is an error.
22e05272 18573 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 18574Try \`$0 --help' for more information." ;;
1c710c3c 18575
5213506e
RW
18576 *) as_fn_append ac_config_targets " $1"
18577 ac_need_defaults=false ;;
1c710c3c 18578
0b0dc272 18579 esac
1c710c3c 18580 shift
0b0dc272
AM
18581done
18582
1c710c3c 18583ac_configure_extra_args=
0b0dc272 18584
1c710c3c
DJ
18585if $ac_cs_silent; then
18586 exec 6>/dev/null
18587 ac_configure_extra_args="$ac_configure_extra_args --silent"
18588fi
0b0dc272 18589
1c710c3c 18590_ACEOF
5213506e 18591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 18592if \$ac_cs_recheck; then
22e05272 18593 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
18594 shift
18595 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18596 CONFIG_SHELL='$SHELL'
18597 export CONFIG_SHELL
18598 exec "\$@"
1c710c3c
DJ
18599fi
18600
18601_ACEOF
5213506e
RW
18602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18603exec 5>>config.log
18604{
18605 echo
18606 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18607## Running $as_me. ##
18608_ASBOX
18609 $as_echo "$ac_log"
18610} >&5
1c710c3c 18611
5213506e
RW
18612_ACEOF
18613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
18614#
18615# INIT-COMMANDS
18616#
18617extrasub_build="$extrasub_build"
18618 extrasub_host="$extrasub_host"
18619 extrasub_target="$extrasub_target"
18620
5213506e 18621_ACEOF
1c710c3c 18622
5213506e 18623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 18624
5213506e 18625# Handling of arguments.
1c710c3c
DJ
18626for ac_config_target in $ac_config_targets
18627do
5213506e
RW
18628 case $ac_config_target in
18629 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18630
22e05272 18631 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
18632 esac
18633done
18634
5213506e 18635
1c710c3c
DJ
18636# If the user did not use the arguments to specify the items to instantiate,
18637# then the envvar interface is used. Set only those that are not.
18638# We use the long form for the default assignment because of an extremely
18639# bizarre bug on SunOS 4.1.3.
18640if $ac_need_defaults; then
18641 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18642fi
18643
18644# Have a temporary directory for convenience. Make it in the build tree
5213506e 18645# simply because there is no reason against having it here, and in addition,
1c710c3c 18646# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
18647# Hook for its removal unless debugging.
18648# Note that there is a small window in which the directory will not be cleaned:
18649# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
18650$debug ||
18651{
22e05272 18652 tmp= ac_tmp=
5213506e 18653 trap 'exit_status=$?
22e05272
JM
18654 : "${ac_tmp:=$tmp}"
18655 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
18656' 0
18657 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 18658}
1c710c3c
DJ
18659# Create a (secure) tmp directory for tmp files.
18660
18661{
5213506e 18662 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 18663 test -d "$tmp"
1c710c3c
DJ
18664} ||
18665{
5213506e
RW
18666 tmp=./conf$$-$RANDOM
18667 (umask 077 && mkdir "$tmp")
22e05272
JM
18668} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18669ac_tmp=$tmp
5213506e
RW
18670
18671# Set up the scripts for CONFIG_FILES section.
18672# No need to generate them if there are no CONFIG_FILES.
18673# This happens for instance with `./config.status config.h'.
18674if test -n "$CONFIG_FILES"; then
18675
18676if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18677 ac_cs_awk_getline=:
18678 ac_cs_awk_pipe_init=
18679 ac_cs_awk_read_file='
18680 while ((getline aline < (F[key])) > 0)
18681 print(aline)
18682 close(F[key])'
18683 ac_cs_awk_pipe_fini=
18684else
18685 ac_cs_awk_getline=false
18686 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18687 ac_cs_awk_read_file='
18688 print "|#_!!_#|"
18689 print "cat " F[key] " &&"
18690 '$ac_cs_awk_pipe_init
18691 # The final `:' finishes the AND list.
18692 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18693fi
18694ac_cr=`echo X | tr X '\015'`
18695# On cygwin, bash can eat \r inside `` if the user requested igncr.
18696# But we know of no other shell where ac_cr would be empty at this
18697# point, so we can use a bashism as a fallback.
18698if test "x$ac_cr" = x; then
18699 eval ac_cr=\$\'\\r\'
18700fi
18701ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18702if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 18703 ac_cs_awk_cr='\\r'
5213506e
RW
18704else
18705 ac_cs_awk_cr=$ac_cr
18706fi
18707
22e05272 18708echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
18709_ACEOF
18710
18711# Create commands to substitute file output variables.
1c710c3c 18712{
5213506e 18713 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 18714 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
18715 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18716 echo "_ACAWK" &&
18717 echo "_ACEOF"
18718} >conf$$files.sh &&
18719. ./conf$$files.sh ||
22e05272 18720 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 18721rm -f conf$$files.sh
1c710c3c 18722
5213506e
RW
18723{
18724 echo "cat >conf$$subs.awk <<_ACEOF" &&
18725 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18726 echo "_ACEOF"
18727} >conf$$subs.sh ||
22e05272
JM
18728 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18729ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
18730ac_delim='%!_!# '
18731for ac_last_try in false false false false false :; do
18732 . ./conf$$subs.sh ||
22e05272 18733 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
18734
18735 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18736 if test $ac_delim_n = $ac_delim_num; then
18737 break
18738 elif $ac_last_try; then
22e05272 18739 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
18740 else
18741 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18742 fi
18743done
18744rm -f conf$$subs.sh
18745
18746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 18747cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 18748_ACEOF
5213506e
RW
18749sed -n '
18750h
18751s/^/S["/; s/!.*/"]=/
18752p
18753g
18754s/^[^!]*!//
18755:repl
18756t repl
18757s/'"$ac_delim"'$//
18758t delim
18759:nl
18760h
22e05272 18761s/\(.\{148\}\)..*/\1/
5213506e
RW
18762t more1
18763s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18764p
18765n
18766b repl
18767:more1
18768s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18769p
18770g
18771s/.\{148\}//
18772t nl
18773:delim
18774h
22e05272 18775s/\(.\{148\}\)..*/\1/
5213506e
RW
18776t more2
18777s/["\\]/\\&/g; s/^/"/; s/$/"/
18778p
18779b
18780:more2
18781s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18782p
18783g
18784s/.\{148\}//
18785t delim
18786' <conf$$subs.awk | sed '
18787/^[^""]/{
18788 N
18789 s/\n//
18790}
18791' >>$CONFIG_STATUS || ac_write_fail=1
18792rm -f conf$$subs.awk
18793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18794_ACAWK
22e05272 18795cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
18796 for (key in S) S_is_set[key] = 1
18797 FS = "\a"
18798 \$ac_cs_awk_pipe_init
18799}
18800{
18801 line = $ 0
18802 nfields = split(line, field, "@")
18803 substed = 0
18804 len = length(field[1])
18805 for (i = 2; i < nfields; i++) {
18806 key = field[i]
18807 keylen = length(key)
18808 if (S_is_set[key]) {
18809 value = S[key]
18810 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18811 len += length(value) + length(field[++i])
18812 substed = 1
18813 } else
18814 len += 1 + keylen
18815 }
18816 if (nfields == 3 && !substed) {
18817 key = field[2]
18818 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18819 \$ac_cs_awk_read_file
18820 next
18821 }
18822 }
18823 print line
18824}
18825\$ac_cs_awk_pipe_fini
18826_ACAWK
18827_ACEOF
18828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18829if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18830 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18831else
18832 cat
22e05272
JM
18833fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18834 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
18835_ACEOF
18836
22e05272
JM
18837# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18838# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
18839# trailing colons and then remove the whole line if VPATH becomes empty
18840# (actually we leave an empty line to preserve line numbers).
18841if test "x$srcdir" = x.; then
22e05272
JM
18842 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18843h
18844s///
18845s/^/:/
18846s/[ ]*$/:/
18847s/:\$(srcdir):/:/g
18848s/:\${srcdir}:/:/g
18849s/:@srcdir@:/:/g
18850s/^:*//
5213506e 18851s/:*$//
22e05272
JM
18852x
18853s/\(=[ ]*\).*/\1/
18854G
18855s/\n//
5213506e
RW
18856s/^[^=]*=[ ]*$//
18857}'
18858fi
2aeb72e9 18859
5213506e
RW
18860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18861fi # test -n "$CONFIG_FILES"
2aeb72e9 18862
1c710c3c 18863
5213506e
RW
18864eval set X " :F $CONFIG_FILES "
18865shift
18866for ac_tag
18867do
18868 case $ac_tag in
18869 :[FHLC]) ac_mode=$ac_tag; continue;;
18870 esac
18871 case $ac_mode$ac_tag in
18872 :[FHL]*:*);;
22e05272 18873 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
18874 :[FH]-) ac_tag=-:-;;
18875 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18876 esac
18877 ac_save_IFS=$IFS
18878 IFS=:
18879 set x $ac_tag
18880 IFS=$ac_save_IFS
18881 shift
18882 ac_file=$1
18883 shift
79c06341 18884
5213506e
RW
18885 case $ac_mode in
18886 :L) ac_source=$1;;
18887 :[FH])
18888 ac_file_inputs=
18889 for ac_f
18890 do
18891 case $ac_f in
22e05272 18892 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
18893 *) # Look for the file first in the build tree, then in the source tree
18894 # (if the path is not absolute). The absolute path cannot be DOS-style,
18895 # because $ac_f cannot contain `:'.
18896 test -f "$ac_f" ||
18897 case $ac_f in
18898 [\\/$]*) false;;
18899 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18900 esac ||
22e05272 18901 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
18902 esac
18903 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18904 as_fn_append ac_file_inputs " '$ac_f'"
18905 done
1c710c3c 18906
5213506e
RW
18907 # Let's still pretend it is `configure' which instantiates (i.e., don't
18908 # use $as_me), people would be surprised to read:
18909 # /* config.h. Generated by config.status. */
18910 configure_input='Generated from '`
18911 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18912 `' by configure.'
18913 if test x"$ac_file" != x-; then
18914 configure_input="$ac_file. $configure_input"
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18916$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 18917 fi
5213506e
RW
18918 # Neutralize special characters interpreted by sed in replacement strings.
18919 case $configure_input in #(
18920 *\&* | *\|* | *\\* )
18921 ac_sed_conf_input=`$as_echo "$configure_input" |
18922 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18923 *) ac_sed_conf_input=$configure_input;;
18924 esac
11a67599 18925
5213506e 18926 case $ac_tag in
22e05272
JM
18927 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18928 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
18929 esac
18930 ;;
11a67599
ZW
18931 esac
18932
5213506e 18933 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
18934$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18935 X"$ac_file" : 'X\(//\)[^/]' \| \
18936 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
18937 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18938$as_echo X"$ac_file" |
18939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18940 s//\1/
18941 q
18942 }
18943 /^X\(\/\/\)[^/].*/{
18944 s//\1/
18945 q
18946 }
18947 /^X\(\/\/\)$/{
18948 s//\1/
18949 q
18950 }
18951 /^X\(\/\).*/{
18952 s//\1/
18953 q
18954 }
18955 s/.*/./; q'`
18956 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 18957 ac_builddir=.
0b0dc272 18958
5213506e
RW
18959case "$ac_dir" in
18960.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18961*)
18962 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18963 # A ".." for each directory in $ac_dir_suffix.
18964 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18965 case $ac_top_builddir_sub in
18966 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18967 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18968 esac ;;
18969esac
18970ac_abs_top_builddir=$ac_pwd
18971ac_abs_builddir=$ac_pwd$ac_dir_suffix
18972# for backward compatibility:
18973ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
18974
18975case $srcdir in
5213506e 18976 .) # We are building in place.
1c710c3c 18977 ac_srcdir=.
5213506e
RW
18978 ac_top_srcdir=$ac_top_builddir_sub
18979 ac_abs_top_srcdir=$ac_pwd ;;
18980 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 18981 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
18982 ac_top_srcdir=$srcdir
18983 ac_abs_top_srcdir=$srcdir ;;
18984 *) # Relative name.
18985 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18986 ac_top_srcdir=$ac_top_build_prefix$srcdir
18987 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 18988esac
5213506e 18989ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 18990
0b0dc272 18991
5213506e
RW
18992 case $ac_mode in
18993 :F)
18994 #
18995 # CONFIG_FILE
18996 #
1c710c3c
DJ
18997
18998 case $INSTALL in
18999 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 19000 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 19001 esac
5213506e 19002_ACEOF
11a67599 19003
5213506e
RW
19004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19005# If the template does not know about datarootdir, expand it.
19006# FIXME: This hack should be removed a few years after 2.60.
19007ac_datarootdir_hack=; ac_datarootdir_seen=
19008ac_sed_dataroot='
19009/datarootdir/ {
19010 p
19011 q
19012}
19013/@datadir@/p
19014/@docdir@/p
19015/@infodir@/p
19016/@localedir@/p
19017/@mandir@/p'
19018case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19019*datarootdir*) ac_datarootdir_seen=yes;;
19020*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19022$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 19023_ACEOF
5213506e
RW
19024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19025 ac_datarootdir_hack='
19026 s&@datadir@&$datadir&g
19027 s&@docdir@&$docdir&g
19028 s&@infodir@&$infodir&g
19029 s&@localedir@&$localedir&g
19030 s&@mandir@&$mandir&g
19031 s&\\\${datarootdir}&$datarootdir&g' ;;
19032esac
19033_ACEOF
19034
19035# Neutralize VPATH when `$srcdir' = `.'.
19036# Shell code in configure.ac might set extrasub.
19037# FIXME: do we really want to maintain this feature?
19038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19039ac_sed_extra="$ac_vpsub
1c710c3c
DJ
19040$extrasub
19041_ACEOF
5213506e 19042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
19043:t
19044/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
19045s|@configure_input@|$ac_sed_conf_input|;t t
19046s&@top_builddir@&$ac_top_builddir_sub&;t t
19047s&@top_build_prefix@&$ac_top_build_prefix&;t t
19048s&@srcdir@&$ac_srcdir&;t t
19049s&@abs_srcdir@&$ac_abs_srcdir&;t t
19050s&@top_srcdir@&$ac_top_srcdir&;t t
19051s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19052s&@builddir@&$ac_builddir&;t t
19053s&@abs_builddir@&$ac_abs_builddir&;t t
19054s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19055s&@INSTALL@&$ac_INSTALL&;t t
19056$ac_datarootdir_hack
19057"
19058eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19059if $ac_cs_awk_getline; then
22e05272 19060 $AWK -f "$ac_tmp/subs.awk"
5213506e 19061else
22e05272
JM
19062 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19063fi \
19064 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
19065
19066test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
19067 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19068 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19069 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 19070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19071which seems to be undefined. Please make sure it is defined" >&5
5213506e 19072$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19073which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 19074
22e05272 19075 rm -f "$ac_tmp/stdin"
5213506e 19076 case $ac_file in
22e05272
JM
19077 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19078 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 19079 esac \
22e05272 19080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 19081 ;;
11a67599 19082
11a67599 19083
79c06341 19084
5213506e
RW
19085 esac
19086
3e54529c
RW
19087
19088 case $ac_file$ac_mode in
19089 "Makefile":F) sed "$extrasub_build" Makefile |
19090 sed "$extrasub_host" |
19091 sed "$extrasub_target" > mf$$
19092 mv -f mf$$ Makefile ;;
19093
19094 esac
5213506e
RW
19095done # for ac_tag
19096
19097
19098as_fn_exit 0
1c710c3c 19099_ACEOF
1c710c3c
DJ
19100ac_clean_files=$ac_clean_files_save
19101
5213506e 19102test $ac_write_fail = 0 ||
22e05272 19103 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 19104
1c710c3c
DJ
19105
19106# configure is writing to config.log, and then calls config.status.
19107# config.status does its own redirection, appending to config.log.
19108# Unfortunately, on DOS this fails, as config.log is still kept open
19109# by configure, so config.status won't be able to write to it; its
19110# output is simply discarded. So we exec the FD to /dev/null,
19111# effectively closing config.log, so it can be properly (re)opened and
19112# appended to by config.status. When coming back to configure, we
19113# need to make the FD available again.
19114if test "$no_create" != yes; then
19115 ac_cs_success=:
19116 ac_config_status_args=
19117 test "$silent" = yes &&
19118 ac_config_status_args="$ac_config_status_args --quiet"
19119 exec 5>/dev/null
19120 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19121 exec 5>>config.log
19122 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19123 # would make configure fail if this is the last instruction.
22e05272 19124 $ac_cs_success || as_fn_exit 1
5213506e
RW
19125fi
19126if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19128$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 19129fi
79c06341 19130