PR ld/20828: Work around RISC-V failures
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
c6b750e1
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
8e957354
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
c6b750e1 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
c6b750e1 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
c6b750e1 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
c6b750e1 263
81ecdfbb
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
c6b750e1 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
c6b750e1 410
c6b750e1
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
c6b750e1 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
c6b750e1 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
c6b750e1 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 436 t loop
81ecdfbb 437 s/-\n.*//
c6b750e1 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
c6b750e1
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
c6b750e1
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
c6b750e1
DJ
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
c6b750e1 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
c6b750e1 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
c6b750e1 483 fi
c6b750e1
DJ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
c6b750e1
DJ
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
a0da8069 528
c6b750e1
DJ
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
c6b750e1
DJ
534#
535# Initializations.
536#
a0da8069 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
c6b750e1 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
c6b750e1
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
c6b750e1
DJ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
c6b750e1
DJ
553
554ac_unique_file="move-if-change"
81ecdfbb
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
82033c9b 559host_shared
81ecdfbb
RW
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
b121d7d4 574READELF_FOR_TARGET
81ecdfbb
RW
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
6b91c541 577OBJCOPY_FOR_TARGET
81ecdfbb
RW
578NM_FOR_TARGET
579LIPO_FOR_TARGET
580LD_FOR_TARGET
581DLLTOOL_FOR_TARGET
582AS_FOR_TARGET
583AR_FOR_TARGET
e552509b 584GOC_FOR_TARGET
81ecdfbb
RW
585GFORTRAN_FOR_TARGET
586GCJ_FOR_TARGET
587GCC_FOR_TARGET
588CXX_FOR_TARGET
589CC_FOR_TARGET
b121d7d4 590READELF
81ecdfbb
RW
591OBJDUMP
592OBJCOPY
593WINDMC
594WINDRES
595STRIP
596RANLIB
597NM
598LIPO
599LD
600DLLTOOL
601AS
602AR
603RUNTEST
604EXPECT
605MAKEINFO
606FLEX
607LEX
608M4
609BISON
610YACC
81ecdfbb
RW
611WINDRES_FOR_BUILD
612WINDMC_FOR_BUILD
613RANLIB_FOR_BUILD
614NM_FOR_BUILD
615LD_FOR_BUILD
616LDFLAGS_FOR_BUILD
e552509b 617GOC_FOR_BUILD
81ecdfbb
RW
618GFORTRAN_FOR_BUILD
619GCJ_FOR_BUILD
620DLLTOOL_FOR_BUILD
621CXX_FOR_BUILD
622CXXFLAGS_FOR_BUILD
623CFLAGS_FOR_BUILD
624CC_FOR_BUILD
625AS_FOR_BUILD
626AR_FOR_BUILD
911e63d0 627target_configdirs
81ecdfbb 628configdirs
81ecdfbb 629build_configdirs
81ecdfbb
RW
630INSTALL_GDB_TK
631GDB_TK
632CONFIGURE_GDB_TK
633build_tooldir
634tooldir
635GCC_SHLIB_SUBDIR
636RPATH_ENVVAR
4074d5f2
RW
637target_configargs
638host_configargs
639build_configargs
96655cc4 640BUILD_CONFIG
91c1f14c 641LDFLAGS_FOR_TARGET
81ecdfbb
RW
642CXXFLAGS_FOR_TARGET
643CFLAGS_FOR_TARGET
644DEBUG_PREFIX_CFLAGS_FOR_TARGET
645SYSROOT_CFLAGS_FOR_TARGET
e81d5d05 646extra_host_zlib_configure_flags
700d40ca 647extra_host_libiberty_configure_flags
1b6c0831
L
648stage1_languages
649extra_linker_plugin_flags
650extra_linker_plugin_configure_flags
7ec59b9e 651islinc
1b6c0831 652isllibs
52cf9762 653islver
81ecdfbb 654poststage1_ldflags
143754cd 655poststage1_libs
81ecdfbb 656stage1_ldflags
b3676d82 657stage1_libs
7ec59b9e 658extra_isl_gmp_configure_flags
81ecdfbb
RW
659extra_mpc_mpfr_configure_flags
660extra_mpc_gmp_configure_flags
661extra_mpfr_configure_flags
662gmpinc
663gmplibs
664do_compare
665GNATMAKE
666GNATBIND
667ac_ct_CXX
668CXXFLAGS
669CXX
670OBJEXT
671EXEEXT
672ac_ct_CC
673CPPFLAGS
674LDFLAGS
675CFLAGS
676CC
ffdd6afc 677EXTRA_CONFIGARGS_LIBJAVA
1b6c0831 678extra_liboffloadmic_configure_flags
81ecdfbb
RW
679target_subdir
680host_subdir
681build_subdir
682build_libsubdir
8e957354
PB
683AWK
684SED
81ecdfbb
RW
685LN_S
686LN
687INSTALL_DATA
688INSTALL_SCRIPT
689INSTALL_PROGRAM
690target_os
691target_vendor
692target_cpu
693target
694host_os
695host_vendor
696host_cpu
697host
698target_noncanonical
699host_noncanonical
700build_noncanonical
701build_os
702build_vendor
703build_cpu
704build
705TOPLEVEL_CONFIGURE_ARGUMENTS
706target_alias
707host_alias
708build_alias
709LIBS
710ECHO_T
711ECHO_N
712ECHO_C
713DEFS
714mandir
715localedir
716libdir
717psdir
718pdfdir
719dvidir
720htmldir
721infodir
722docdir
723oldincludedir
724includedir
725localstatedir
726sharedstatedir
727sysconfdir
728datadir
729datarootdir
730libexecdir
731sbindir
732bindir
733program_transform_name
734prefix
735exec_prefix
736PACKAGE_URL
737PACKAGE_BUGREPORT
738PACKAGE_STRING
739PACKAGE_VERSION
740PACKAGE_TARNAME
741PACKAGE_NAME
742PATH_SEPARATOR
743SHELL'
744ac_subst_files='serialization_dependencies
745host_makefile_frag
746target_makefile_frag
747alphaieee_frag
748ospace_frag'
749ac_user_opts='
750enable_option_checking
751with_build_libsubdir
cf39cfc5 752with_system_zlib
1b6c0831
L
753enable_as_accelerator_for
754enable_offload_targets
81ecdfbb 755enable_gold
c7791212 756enable_ld
edeefb67 757enable_compressed_debug_sections
89a1e9c3
PB
758enable_libquadmath
759enable_libquadmath_support
81ecdfbb
RW
760enable_libada
761enable_libssp
f66a9a70 762enable_libstdcxx
1b6c0831 763enable_liboffloadmic
ffdd6afc
ILT
764enable_static_libjava
765enable_bootstrap
81ecdfbb
RW
766with_mpc
767with_mpc_include
768with_mpc_lib
769with_mpfr_dir
770with_mpfr
771with_mpfr_include
772with_mpfr_lib
773with_gmp_dir
774with_gmp
775with_gmp_include
776with_gmp_lib
81ecdfbb 777with_stage1_libs
b3676d82 778with_stage1_ldflags
81ecdfbb 779with_boot_libs
143754cd 780with_boot_ldflags
7ec59b9e
L
781with_isl
782with_isl_include
783with_isl_lib
784enable_isl_version_check
700d40ca 785enable_lto
1b6c0831
L
786enable_linker_plugin_configure_flags
787enable_linker_plugin_flags
81ecdfbb
RW
788enable_stage1_languages
789enable_objc_gc
790with_build_sysroot
791with_debug_prefix_map
96655cc4 792with_build_config
730af8ee 793enable_vtable_verify
81ecdfbb
RW
794enable_serial_configure
795with_build_time_tools
796enable_maintainer_mode
797enable_stage1_checking
798enable_werror
82033c9b 799enable_host_shared
81ecdfbb
RW
800'
801 ac_precious_vars='build_alias
802host_alias
803target_alias
804CC
805CFLAGS
806LDFLAGS
807LIBS
808CPPFLAGS
809CXX
810CXXFLAGS
811CCC
4074d5f2
RW
812build_configargs
813host_configargs
814target_configargs
81ecdfbb
RW
815AR
816AS
817DLLTOOL
818LD
819LIPO
820NM
821RANLIB
822STRIP
823WINDRES
824WINDMC
825OBJCOPY
826OBJDUMP
b121d7d4 827READELF
81ecdfbb
RW
828CC_FOR_TARGET
829CXX_FOR_TARGET
830GCC_FOR_TARGET
831GCJ_FOR_TARGET
832GFORTRAN_FOR_TARGET
e552509b 833GOC_FOR_TARGET
81ecdfbb
RW
834AR_FOR_TARGET
835AS_FOR_TARGET
836DLLTOOL_FOR_TARGET
837LD_FOR_TARGET
838LIPO_FOR_TARGET
839NM_FOR_TARGET
6b91c541 840OBJCOPY_FOR_TARGET
81ecdfbb
RW
841OBJDUMP_FOR_TARGET
842RANLIB_FOR_TARGET
b121d7d4 843READELF_FOR_TARGET
81ecdfbb
RW
844STRIP_FOR_TARGET
845WINDRES_FOR_TARGET
846WINDMC_FOR_TARGET'
847
a0da8069
NN
848
849# Initialize some variables set by options.
c6b750e1
DJ
850ac_init_help=
851ac_init_version=false
81ecdfbb
RW
852ac_unrecognized_opts=
853ac_unrecognized_sep=
a0da8069
NN
854# The variables have the same names as the options, with
855# dashes changed to underlines.
c6b750e1 856cache_file=/dev/null
a0da8069 857exec_prefix=NONE
a0da8069 858no_create=
a0da8069
NN
859no_recursion=
860prefix=NONE
861program_prefix=NONE
862program_suffix=NONE
863program_transform_name=s,x,x,
864silent=
865site=
866srcdir=
a0da8069
NN
867verbose=
868x_includes=NONE
869x_libraries=NONE
c6b750e1
DJ
870
871# Installation directory options.
872# These are left unexpanded so users can "make install exec_prefix=/foo"
873# and all the variables that are supposed to be based on exec_prefix
874# by default will actually change.
875# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 876# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
877bindir='${exec_prefix}/bin'
878sbindir='${exec_prefix}/sbin'
879libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
880datarootdir='${prefix}/share'
881datadir='${datarootdir}'
a0da8069
NN
882sysconfdir='${prefix}/etc'
883sharedstatedir='${prefix}/com'
884localstatedir='${prefix}/var'
a0da8069
NN
885includedir='${prefix}/include'
886oldincludedir='/usr/include'
81ecdfbb
RW
887docdir='${datarootdir}/doc/${PACKAGE}'
888infodir='${datarootdir}/info'
889htmldir='${docdir}'
890dvidir='${docdir}'
891pdfdir='${docdir}'
892psdir='${docdir}'
893libdir='${exec_prefix}/lib'
894localedir='${datarootdir}/locale'
895mandir='${datarootdir}/man'
252b5132 896
a0da8069 897ac_prev=
81ecdfbb 898ac_dashdash=
a0da8069
NN
899for ac_option
900do
a0da8069
NN
901 # If the previous option needs an argument, assign it.
902 if test -n "$ac_prev"; then
81ecdfbb 903 eval $ac_prev=\$ac_option
a0da8069
NN
904 ac_prev=
905 continue
906 fi
252b5132 907
81ecdfbb
RW
908 case $ac_option in
909 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 *) ac_optarg=yes ;;
911 esac
a0da8069
NN
912
913 # Accept the important Cygnus configure options, so we can diagnose typos.
914
81ecdfbb
RW
915 case $ac_dashdash$ac_option in
916 --)
917 ac_dashdash=yes ;;
a0da8069
NN
918
919 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 ac_prev=bindir ;;
921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 922 bindir=$ac_optarg ;;
a0da8069
NN
923
924 -build | --build | --buil | --bui | --bu)
c6b750e1 925 ac_prev=build_alias ;;
a0da8069 926 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 927 build_alias=$ac_optarg ;;
a0da8069
NN
928
929 -cache-file | --cache-file | --cache-fil | --cache-fi \
930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931 ac_prev=cache_file ;;
932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
934 cache_file=$ac_optarg ;;
935
936 --config-cache | -C)
937 cache_file=config.cache ;;
a0da8069 938
81ecdfbb 939 -datadir | --datadir | --datadi | --datad)
a0da8069 940 ac_prev=datadir ;;
81ecdfbb 941 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 942 datadir=$ac_optarg ;;
a0da8069 943
81ecdfbb
RW
944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945 | --dataroo | --dataro | --datar)
946 ac_prev=datarootdir ;;
947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949 datarootdir=$ac_optarg ;;
950
a0da8069 951 -disable-* | --disable-*)
81ecdfbb 952 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 953 # Reject names that are not valid shell variable names.
81ecdfbb
RW
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960"enable_$ac_useropt"
961"*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=no ;;
966
967 -docdir | --docdir | --docdi | --doc | --do)
968 ac_prev=docdir ;;
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 docdir=$ac_optarg ;;
971
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 ac_prev=dvidir ;;
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 dvidir=$ac_optarg ;;
a0da8069
NN
976
977 -enable-* | --enable-*)
81ecdfbb 978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 979 # Reject names that are not valid shell variable names.
81ecdfbb
RW
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
985 *"
986"enable_$ac_useropt"
987"*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
a0da8069 990 esac
81ecdfbb 991 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
992
993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995 | --exec | --exe | --ex)
996 ac_prev=exec_prefix ;;
997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999 | --exec=* | --exe=* | --ex=*)
c6b750e1 1000 exec_prefix=$ac_optarg ;;
a0da8069
NN
1001
1002 -gas | --gas | --ga | --g)
1003 # Obsolete; use --with-gas.
1004 with_gas=yes ;;
1005
c6b750e1
DJ
1006 -help | --help | --hel | --he | -h)
1007 ac_init_help=long ;;
1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009 ac_init_help=recursive ;;
1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011 ac_init_help=short ;;
a0da8069
NN
1012
1013 -host | --host | --hos | --ho)
c6b750e1 1014 ac_prev=host_alias ;;
a0da8069 1015 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1016 host_alias=$ac_optarg ;;
a0da8069 1017
81ecdfbb
RW
1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019 ac_prev=htmldir ;;
1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 | --ht=*)
1022 htmldir=$ac_optarg ;;
1023
a0da8069
NN
1024 -includedir | --includedir | --includedi | --included | --include \
1025 | --includ | --inclu | --incl | --inc)
1026 ac_prev=includedir ;;
1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1029 includedir=$ac_optarg ;;
a0da8069
NN
1030
1031 -infodir | --infodir | --infodi | --infod | --info | --inf)
1032 ac_prev=infodir ;;
1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1034 infodir=$ac_optarg ;;
a0da8069
NN
1035
1036 -libdir | --libdir | --libdi | --libd)
1037 ac_prev=libdir ;;
1038 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1039 libdir=$ac_optarg ;;
a0da8069
NN
1040
1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042 | --libexe | --libex | --libe)
1043 ac_prev=libexecdir ;;
1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1046 libexecdir=$ac_optarg ;;
a0da8069 1047
81ecdfbb
RW
1048 -localedir | --localedir | --localedi | --localed | --locale)
1049 ac_prev=localedir ;;
1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051 localedir=$ac_optarg ;;
1052
a0da8069 1053 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1054 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1055 ac_prev=localstatedir ;;
1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1058 localstatedir=$ac_optarg ;;
a0da8069
NN
1059
1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061 ac_prev=mandir ;;
1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1063 mandir=$ac_optarg ;;
a0da8069
NN
1064
1065 -nfp | --nfp | --nf)
1066 # Obsolete; use --without-fp.
1067 with_fp=no ;;
1068
1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1070 | --no-cr | --no-c | -n)
a0da8069
NN
1071 no_create=yes ;;
1072
1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 no_recursion=yes ;;
1076
1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079 | --oldin | --oldi | --old | --ol | --o)
1080 ac_prev=oldincludedir ;;
1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1084 oldincludedir=$ac_optarg ;;
a0da8069
NN
1085
1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087 ac_prev=prefix ;;
1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1089 prefix=$ac_optarg ;;
a0da8069
NN
1090
1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092 | --program-pre | --program-pr | --program-p)
1093 ac_prev=program_prefix ;;
1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1096 program_prefix=$ac_optarg ;;
a0da8069
NN
1097
1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099 | --program-suf | --program-su | --program-s)
1100 ac_prev=program_suffix ;;
1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1103 program_suffix=$ac_optarg ;;
a0da8069
NN
1104
1105 -program-transform-name | --program-transform-name \
1106 | --program-transform-nam | --program-transform-na \
1107 | --program-transform-n | --program-transform- \
1108 | --program-transform | --program-transfor \
1109 | --program-transfo | --program-transf \
1110 | --program-trans | --program-tran \
1111 | --progr-tra | --program-tr | --program-t)
1112 ac_prev=program_transform_name ;;
1113 -program-transform-name=* | --program-transform-name=* \
1114 | --program-transform-nam=* | --program-transform-na=* \
1115 | --program-transform-n=* | --program-transform-=* \
1116 | --program-transform=* | --program-transfor=* \
1117 | --program-transfo=* | --program-transf=* \
1118 | --program-trans=* | --program-tran=* \
1119 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1120 program_transform_name=$ac_optarg ;;
a0da8069 1121
81ecdfbb
RW
1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123 ac_prev=pdfdir ;;
1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125 pdfdir=$ac_optarg ;;
1126
1127 -psdir | --psdir | --psdi | --psd | --ps)
1128 ac_prev=psdir ;;
1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 psdir=$ac_optarg ;;
1131
a0da8069
NN
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 silent=yes ;;
1135
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
c6b750e1 1140 sbindir=$ac_optarg ;;
a0da8069
NN
1141
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
c6b750e1 1151 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1152
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
c6b750e1 1156 site=$ac_optarg ;;
a0da8069
NN
1157
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1161 srcdir=$ac_optarg ;;
a0da8069
NN
1162
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1168 sysconfdir=$ac_optarg ;;
a0da8069
NN
1169
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1171 ac_prev=target_alias ;;
a0da8069 1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1173 target_alias=$ac_optarg ;;
a0da8069
NN
1174
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1177
c6b750e1
DJ
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
a0da8069
NN
1180
1181 -with-* | --with-*)
81ecdfbb 1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1183 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190"with_$ac_useropt"
1191"*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
a0da8069 1194 esac
81ecdfbb 1195 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1196
1197 -without-* | --without-*)
81ecdfbb 1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1199 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206"with_$ac_useropt"
1207"*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=no ;;
a0da8069
NN
1212
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1216
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1222 x_includes=$ac_optarg ;;
a0da8069
NN
1223
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1229 x_libraries=$ac_optarg ;;
a0da8069 1230
81ecdfbb
RW
1231 -*) as_fn_error "unrecognized option: \`$ac_option'
1232Try \`$0 --help' for more information."
a0da8069
NN
1233 ;;
1234
c6b750e1
DJ
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
1240 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1241 esac
1242 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1243 export $ac_envvar ;;
1244
a0da8069 1245 *)
c6b750e1 1246 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1247 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1249 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1250 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1251 ;;
1252
1253 esac
1254done
1255
1256if test -n "$ac_prev"; then
c6b750e1 1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1258 as_fn_error "missing argument to $ac_option"
a0da8069 1259fi
a0da8069 1260
81ecdfbb
RW
1261if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1266 esac
81ecdfbb 1267fi
a0da8069 1268
81ecdfbb
RW
1269# Check all directory arguments for consistency.
1270for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
a0da8069 1274do
81ecdfbb
RW
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
c6b750e1 1283 case $ac_val in
81ecdfbb
RW
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1286 esac
81ecdfbb 1287 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1288done
1289
c6b750e1
DJ
1290# There might be people who depend on the old broken behavior: `$host'
1291# used to hold the argument of --host etc.
1292# FIXME: To remove some day.
1293build=$build_alias
1294host=$host_alias
1295target=$target_alias
376a0e54 1296
c6b750e1
DJ
1297# FIXME: To remove some day.
1298if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
81ecdfbb 1301 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1304 cross_compiling=yes
1305 fi
1306fi
1307
1308ac_tool_prefix=
1309test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
1311test "$silent" = yes && exec 6>/dev/null
a0da8069 1312
a0da8069 1313
81ecdfbb
RW
1314ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315ac_ls_di=`ls -di .` &&
1316ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 as_fn_error "working directory cannot be determined"
1318test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 as_fn_error "pwd does not report name of working directory"
1320
1321
a0da8069
NN
1322# Find the source files, if location was not specified.
1323if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
81ecdfbb
RW
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$as_myself" ||
1327$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331$as_echo X"$as_myself" |
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\).*/{
1345 s//\1/
1346 q
1347 }
1348 s/.*/./; q'`
a0da8069 1349 srcdir=$ac_confdir
81ecdfbb 1350 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1351 srcdir=..
1352 fi
1353else
1354 ac_srcdir_defaulted=no
1355fi
81ecdfbb
RW
1356if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1359fi
1360ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361ac_abs_confdir=`(
1362 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1363 pwd)`
1364# When building in place, set srcdir=.
1365if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 srcdir=.
1367fi
1368# Remove unnecessary trailing slashes from srcdir.
1369# Double slashes in file names in object file debugging info
1370# mess up M-x gdb in Emacs.
1371case $srcdir in
1372*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373esac
6d0cd39e
AM
1374case $srcdir in
1375 *" "*)
1376 as_fn_error "path to source, $srcdir, contains spaces"
1377 ;;
1378esac
9cc8ae67
PB
1379ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1380
81ecdfbb
RW
1381for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386done
c6b750e1
DJ
1387
1388#
1389# Report the --help message.
1390#
1391if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395\`configure' configures this package to adapt to many kinds of systems.
1396
1397Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400VAR=VALUE. See below for descriptions of some of the useful variables.
1401
1402Defaults for the options are specified in brackets.
1403
1404Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414
c6b750e1
DJ
1415Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1417 [$ac_default_prefix]
c6b750e1 1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1419 [PREFIX]
c6b750e1
DJ
1420
1421By default, \`make install' will install all the files in
1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424for instance \`--prefix=\$HOME'.
1425
1426For better control, use the options below.
1427
1428Fine tuning of the installation directories:
81ecdfbb
RW
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1448_ACEOF
1449
1450 cat <<\_ACEOF
1451
1452Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456
1457System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 --target=TARGET configure for building compilers for TARGET [HOST]
1461_ACEOF
a0da8069 1462fi
a0da8069 1463
c6b750e1
DJ
1464if test -n "$ac_init_help"; then
1465
1466 cat <<\_ACEOF
1467
1468Optional Features:
81ecdfbb 1469 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1b6c0831
L
1472 --enable-as-accelerator-for=ARG
1473 build as offload target compiler. Specify offload
1474 host triple by ARG
1475 --enable-offload-targets=LIST
1476 enable offloading to devices from comma-separated
1477 LIST of TARGET[=DIR]. Use optional path to find
1478 offload target compiler during the build
c7791212 1479 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1480 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
6c3bc0f8 1481 --enable-compressed-debug-sections={all,gas,gold,ld,none}
edeefb67
L
1482 Enable compressed debug sections for gas, gold or ld
1483 by default
89a1e9c3
PB
1484 --disable-libquadmath do not build libquadmath directory
1485 --disable-libquadmath-support
1486 disable libquadmath support for Fortran
521ec477
DD
1487 --enable-libada build libada directory
1488 --enable-libssp build libssp directory
f66a9a70 1489 --disable-libstdcxx do not build libstdc++-v3 directory
1b6c0831
L
1490 --enable-liboffloadmic=ARG
1491 build liboffloadmic [ARG={no,host,target}]
ffdd6afc
ILT
1492 --enable-static-libjava[=ARG]
1493 build static libjava [default=no]
1494 --enable-bootstrap enable bootstrapping [yes if native build]
7ec59b9e 1495 --disable-isl-version-check
4849dfd8 1496 disable check for isl version
700d40ca 1497 --enable-lto enable link time optimization support
1b6c0831
L
1498 --enable-linker-plugin-configure-flags=FLAGS
1499 additional flags for configuring linker plugins
1500 [none]
1501 --enable-linker-plugin-flags=FLAGS
1502 additional flags for configuring and building linker
1503 plugins [none]
7837304f
AS
1504 --enable-stage1-languages[=all]
1505 choose additional languages to build during stage1.
1506 Mostly useful for compiler development
1507 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1508 Objective-C runtime
ce6c656d 1509 --enable-vtable-verify Enable vtable verification feature
521ec477 1510 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1511 force sequential configuration of sub-packages for
1512 the host, target or build machine, or all
1513 sub-packages
1514 --enable-maintainer-mode
1515 enable make rules and dependencies not useful (and
1516 sometimes confusing) to the casual installer
1517 --enable-stage1-checking[=all]
1518 choose additional checking for stage1 of the
1519 compiler
c6b750e1 1520 --enable-werror enable -Werror in bootstrap stage2 and later
82033c9b 1521 --enable-host-shared build host code as shared libraries
c6b750e1
DJ
1522
1523Optional Packages:
1524 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1525 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1526 --with-build-libsubdir=DIR Directory where to find libraries for build system
cf39cfc5 1527 --with-system-zlib use installed libz
7837304f
AS
1528 --with-mpc=PATH specify prefix directory for installed MPC package.
1529 Equivalent to --with-mpc-include=PATH/include plus
1530 --with-mpc-lib=PATH/lib
1531 --with-mpc-include=PATH specify directory for installed MPC include files
1532 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1533 --with-mpfr-dir=PATH this option has been REMOVED
1534 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1535 Equivalent to --with-mpfr-include=PATH/include plus
1536 --with-mpfr-lib=PATH/lib
c6b750e1 1537 --with-mpfr-include=PATH
521ec477
DD
1538 specify directory for installed MPFR include files
1539 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1540 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1541 --with-gmp=PATH specify prefix directory for the installed GMP
1542 package. Equivalent to
1543 --with-gmp-include=PATH/include plus
1544 --with-gmp-lib=PATH/lib
521ec477
DD
1545 --with-gmp-include=PATH specify directory for installed GMP include files
1546 --with-gmp-lib=PATH specify directory for the installed GMP library
b3676d82 1547 --with-stage1-libs=LIBS libraries for stage1
7837304f
AS
1548 --with-stage1-ldflags=FLAGS
1549 linker flags for stage1
7837304f
AS
1550 --with-boot-libs=LIBS libraries for stage2 and later
1551 --with-boot-ldflags=FLAGS
1552 linker flags for stage2 and later
4849dfd8 1553 --with-isl=PATH Specify prefix directory for the installed isl
7837304f 1554 package. Equivalent to
7ec59b9e
L
1555 --with-isl-include=PATH/include plus
1556 --with-isl-lib=PATH/lib
4849dfd8
NC
1557 --with-isl-include=PATH Specify directory for installed isl include files
1558 --with-isl-lib=PATH Specify the directory for the installed isl library
521ec477 1559 --with-build-sysroot=SYSROOT
c6b750e1 1560 use sysroot as the system root during the build
8a6ee3ab 1561 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1562 map A to B, C to D ... in debug information
1563 --with-build-config='NAME NAME2...'
1564 use config/NAME.mk build configuration
521ec477 1565 --with-build-time-tools=PATH
c6b750e1 1566 use given path to find target tools during the build
c6b750e1
DJ
1567
1568Some influential environment variables:
1569 CC C compiler command
1570 CFLAGS C compiler flags
1571 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1572 nonstandard directory <lib dir>
81ecdfbb
RW
1573 LIBS libraries to pass to the linker, e.g. -l<library>
1574 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1575 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1576 CXX C++ compiler command
1577 CXXFLAGS C++ compiler flags
4074d5f2
RW
1578 build_configargs
1579 additional configure arguments for build directories
1580 host_configargs
1581 additional configure arguments for host directories
1582 target_configargs
1583 additional configure arguments for target directories
9a819804
AO
1584 AR AR for the host
1585 AS AS for the host
1586 DLLTOOL DLLTOOL for the host
1587 LD LD for the host
1588 LIPO LIPO for the host
1589 NM NM for the host
1590 RANLIB RANLIB for the host
1591 STRIP STRIP for the host
1592 WINDRES WINDRES for the host
0c24b341 1593 WINDMC WINDMC for the host
9a819804
AO
1594 OBJCOPY OBJCOPY for the host
1595 OBJDUMP OBJDUMP for the host
b121d7d4 1596 READELF READELF for the host
9a819804
AO
1597 CC_FOR_TARGET
1598 CC for the target
1599 CXX_FOR_TARGET
1600 CXX for the target
1601 GCC_FOR_TARGET
1602 GCC for the target
1603 GCJ_FOR_TARGET
1604 GCJ for the target
1605 GFORTRAN_FOR_TARGET
1606 GFORTRAN for the target
e552509b
ILT
1607 GOC_FOR_TARGET
1608 GOC for the target
9a819804
AO
1609 AR_FOR_TARGET
1610 AR for the target
1611 AS_FOR_TARGET
1612 AS for the target
1613 DLLTOOL_FOR_TARGET
1614 DLLTOOL for the target
1615 LD_FOR_TARGET
1616 LD for the target
1617 LIPO_FOR_TARGET
1618 LIPO for the target
1619 NM_FOR_TARGET
1620 NM for the target
6b91c541
AP
1621 OBJCOPY_FOR_TARGET
1622 OBJCOPY for the target
9a819804
AO
1623 OBJDUMP_FOR_TARGET
1624 OBJDUMP for the target
1625 RANLIB_FOR_TARGET
1626 RANLIB for the target
b121d7d4
DD
1627 READELF_FOR_TARGET
1628 READELF for the target
9a819804
AO
1629 STRIP_FOR_TARGET
1630 STRIP for the target
1631 WINDRES_FOR_TARGET
1632 WINDRES for the target
0c24b341
NC
1633 WINDMC_FOR_TARGET
1634 WINDMC for the target
c6b750e1
DJ
1635
1636Use these variables to override the choices made by `configure' or to help
1637it to find libraries and programs with nonstandard names/locations.
1638
81ecdfbb 1639Report bugs to the package provider.
c6b750e1 1640_ACEOF
81ecdfbb 1641ac_status=$?
c6b750e1
DJ
1642fi
1643
1644if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
c6b750e1 1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 continue
c6b750e1
DJ
1650 ac_builddir=.
1651
81ecdfbb
RW
1652case "$ac_dir" in
1653.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654*)
1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 esac ;;
1662esac
1663ac_abs_top_builddir=$ac_pwd
1664ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665# for backward compatibility:
1666ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1667
1668case $srcdir in
81ecdfbb 1669 .) # We are building in place.
c6b750e1 1670 ac_srcdir=.
81ecdfbb
RW
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1674 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1677 *) # Relative name.
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1681esac
81ecdfbb
RW
1682ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1692 else
81ecdfbb
RW
1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694 fi || ac_status=$?
1695 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1696 done
1697fi
1698
81ecdfbb 1699test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1700if $ac_init_version; then
1701 cat <<\_ACEOF
81ecdfbb
RW
1702configure
1703generated by GNU Autoconf 2.64
c6b750e1 1704
81ecdfbb 1705Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1706This configure script is free software; the Free Software Foundation
1707gives unlimited permission to copy, distribute and modify it.
1708_ACEOF
81ecdfbb 1709 exit
c6b750e1 1710fi
81ecdfbb
RW
1711
1712## ------------------------ ##
1713## Autoconf initialization. ##
1714## ------------------------ ##
1715
1716# ac_fn_c_try_compile LINENO
1717# --------------------------
1718# Try to compile conftest.$ac_ext, and return whether this succeeded.
1719ac_fn_c_try_compile ()
1720{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext
1723 if { { ac_try="$ac_compile"
1724case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_compile") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1736 fi
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest.$ac_objext; then :
1742 ac_retval=0
1743else
1744 $as_echo "$as_me: failed program was:" >&5
1745sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=1
1748fi
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750 return $ac_retval
1751
1752} # ac_fn_c_try_compile
1753
1754# ac_fn_cxx_try_compile LINENO
1755# ----------------------------
1756# Try to compile conftest.$ac_ext, and return whether this succeeded.
1757ac_fn_cxx_try_compile ()
1758{
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rm -f conftest.$ac_objext
1761 if { { ac_try="$ac_compile"
1762case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_compile") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1774 fi
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && {
1777 test -z "$ac_cxx_werror_flag" ||
1778 test ! -s conftest.err
1779 } && test -s conftest.$ac_objext; then :
1780 ac_retval=0
1781else
1782 $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=1
1786fi
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788 return $ac_retval
1789
1790} # ac_fn_cxx_try_compile
1791
b3676d82
EB
1792# ac_fn_cxx_try_link LINENO
1793# -------------------------
1794# Try to link conftest.$ac_ext, and return whether this succeeded.
1795ac_fn_cxx_try_link ()
1796{
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext conftest$ac_exeext
1799 if { { ac_try="$ac_link"
1800case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_cxx_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest$ac_exeext && {
1818 test "$cross_compiling" = yes ||
1819 $as_test_x conftest$ac_exeext
1820 }; then :
1821 ac_retval=0
1822else
1823 $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827fi
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 return $ac_retval
1835
1836} # ac_fn_cxx_try_link
1837
81ecdfbb
RW
1838# ac_fn_c_try_link LINENO
1839# -----------------------
1840# Try to link conftest.$ac_ext, and return whether this succeeded.
1841ac_fn_c_try_link ()
1842{
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 rm -f conftest.$ac_objext conftest$ac_exeext
1845 if { { ac_try="$ac_link"
1846case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849esac
1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851$as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_link") 2>conftest.err
1853 ac_status=$?
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1858 fi
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_c_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest$ac_exeext && {
1864 test "$cross_compiling" = yes ||
1865 $as_test_x conftest$ac_exeext
1866 }; then :
1867 ac_retval=0
1868else
1869 $as_echo "$as_me: failed program was:" >&5
1870sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=1
1873fi
1874 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876 # interfere with the next link command; also delete a directory that is
1877 # left behind by Apple's compiler. We do this before executing the actions.
1878 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 return $ac_retval
1881
1882} # ac_fn_c_try_link
1883cat >config.log <<_ACEOF
c6b750e1
DJ
1884This file contains any messages produced by compilers while
1885running configure, to aid debugging if configure makes a mistake.
1886
1887It was created by $as_me, which was
81ecdfbb 1888generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1889
1890 $ $0 $@
1891
1892_ACEOF
81ecdfbb 1893exec 5>>config.log
c6b750e1
DJ
1894{
1895cat <<_ASUNAME
1896## --------- ##
1897## Platform. ##
1898## --------- ##
1899
1900hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1901uname -m = `(uname -m) 2>/dev/null || echo unknown`
1902uname -r = `(uname -r) 2>/dev/null || echo unknown`
1903uname -s = `(uname -s) 2>/dev/null || echo unknown`
1904uname -v = `(uname -v) 2>/dev/null || echo unknown`
1905
1906/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1907/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1908
1909/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1910/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1911/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1912/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1913/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1914/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1915/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1916
1917_ASUNAME
1918
1919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920for as_dir in $PATH
1921do
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1924 $as_echo "PATH: $as_dir"
1925 done
1926IFS=$as_save_IFS
c6b750e1
DJ
1927
1928} >&5
1929
1930cat >&5 <<_ACEOF
1931
1932
1933## ----------- ##
1934## Core tests. ##
1935## ----------- ##
1936
1937_ACEOF
1938
1939
1940# Keep a trace of the command line.
1941# Strip out --no-create and --no-recursion so they do not pile up.
1942# Strip out --silent because we don't want to record it for future runs.
1943# Also quote any args containing shell meta-characters.
1944# Make two passes to allow for proper duplicate-argument suppression.
1945ac_configure_args=
1946ac_configure_args0=
1947ac_configure_args1=
c6b750e1
DJ
1948ac_must_keep_next=false
1949for ac_pass in 1 2
1950do
1951 for ac_arg
1952 do
1953 case $ac_arg in
1954 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1956 | -silent | --silent | --silen | --sile | --sil)
1957 continue ;;
81ecdfbb
RW
1958 *\'*)
1959 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1960 esac
1961 case $ac_pass in
81ecdfbb 1962 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1963 2)
81ecdfbb 1964 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1965 if test $ac_must_keep_next = true; then
1966 ac_must_keep_next=false # Got value, back to normal.
1967 else
1968 case $ac_arg in
1969 *=* | --config-cache | -C | -disable-* | --disable-* \
1970 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1971 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1972 | -with-* | --with-* | -without-* | --without-* | --x)
1973 case "$ac_configure_args0 " in
1974 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1975 esac
1976 ;;
1977 -* ) ac_must_keep_next=true ;;
1978 esac
1979 fi
81ecdfbb 1980 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1981 ;;
1982 esac
1983 done
1984done
81ecdfbb
RW
1985{ ac_configure_args0=; unset ac_configure_args0;}
1986{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1987
1988# When interrupted or exit'd, cleanup temporary files, and complete
1989# config.log. We remove comments because anyway the quotes in there
1990# would cause problems or look ugly.
81ecdfbb
RW
1991# WARNING: Use '\'' to represent an apostrophe within the trap.
1992# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1993trap 'exit_status=$?
1994 # Save into config.log some information that might help in debugging.
1995 {
1996 echo
1997
1998 cat <<\_ASBOX
1999## ---------------- ##
2000## Cache variables. ##
2001## ---------------- ##
2002_ASBOX
2003 echo
2004 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2005(
2006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2007 eval ac_val=\$$ac_var
2008 case $ac_val in #(
2009 *${as_nl}*)
2010 case $ac_var in #(
2011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2012$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2013 esac
2014 case $ac_var in #(
2015 _ | IFS | as_nl) ;; #(
2016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2017 *) { eval $ac_var=; unset $ac_var;} ;;
2018 esac ;;
2019 esac
2020 done
c6b750e1 2021 (set) 2>&1 |
81ecdfbb
RW
2022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2023 *${as_nl}ac_space=\ *)
c6b750e1 2024 sed -n \
81ecdfbb
RW
2025 "s/'\''/'\''\\\\'\'''\''/g;
2026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2027 ;; #(
c6b750e1 2028 *)
81ecdfbb 2029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2030 ;;
81ecdfbb
RW
2031 esac |
2032 sort
2033)
c6b750e1
DJ
2034 echo
2035
2036 cat <<\_ASBOX
2037## ----------------- ##
2038## Output variables. ##
2039## ----------------- ##
2040_ASBOX
2041 echo
2042 for ac_var in $ac_subst_vars
2043 do
81ecdfbb
RW
2044 eval ac_val=\$$ac_var
2045 case $ac_val in
2046 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2047 esac
2048 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2049 done | sort
2050 echo
2051
2052 if test -n "$ac_subst_files"; then
2053 cat <<\_ASBOX
81ecdfbb
RW
2054## ------------------- ##
2055## File substitutions. ##
2056## ------------------- ##
c6b750e1
DJ
2057_ASBOX
2058 echo
2059 for ac_var in $ac_subst_files
2060 do
81ecdfbb
RW
2061 eval ac_val=\$$ac_var
2062 case $ac_val in
2063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064 esac
2065 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2066 done | sort
2067 echo
2068 fi
2069
2070 if test -s confdefs.h; then
2071 cat <<\_ASBOX
2072## ----------- ##
2073## confdefs.h. ##
2074## ----------- ##
2075_ASBOX
2076 echo
81ecdfbb 2077 cat confdefs.h
c6b750e1
DJ
2078 echo
2079 fi
2080 test "$ac_signal" != 0 &&
81ecdfbb
RW
2081 $as_echo "$as_me: caught signal $ac_signal"
2082 $as_echo "$as_me: exit $exit_status"
c6b750e1 2083 } >&5
81ecdfbb
RW
2084 rm -f core *.core core.conftest.* &&
2085 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2086 exit $exit_status
81ecdfbb 2087' 0
c6b750e1 2088for ac_signal in 1 2 13 15; do
81ecdfbb 2089 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2090done
2091ac_signal=0
2092
2093# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2094rm -f -r conftest* confdefs.h
2095
2096$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2097
2098# Predefined preprocessor variables.
2099
2100cat >>confdefs.h <<_ACEOF
2101#define PACKAGE_NAME "$PACKAGE_NAME"
2102_ACEOF
2103
c6b750e1
DJ
2104cat >>confdefs.h <<_ACEOF
2105#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2106_ACEOF
2107
c6b750e1
DJ
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_VERSION "$PACKAGE_VERSION"
2110_ACEOF
2111
c6b750e1
DJ
2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_STRING "$PACKAGE_STRING"
2114_ACEOF
2115
c6b750e1
DJ
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2118_ACEOF
2119
81ecdfbb
RW
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_URL "$PACKAGE_URL"
2122_ACEOF
2123
c6b750e1
DJ
2124
2125# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2126# Prefer an explicitly selected file to automatically selected ones.
2127ac_site_file1=NONE
2128ac_site_file2=NONE
2129if test -n "$CONFIG_SITE"; then
2130 ac_site_file1=$CONFIG_SITE
2131elif test "x$prefix" != xNONE; then
2132 ac_site_file1=$prefix/share/config.site
2133 ac_site_file2=$prefix/etc/config.site
2134else
2135 ac_site_file1=$ac_default_prefix/share/config.site
2136 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2137fi
81ecdfbb
RW
2138for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2139do
2140 test "x$ac_site_file" = xNONE && continue
a0da8069 2141 if test -r "$ac_site_file"; then
81ecdfbb
RW
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2143$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2144 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2145 . "$ac_site_file"
2146 fi
2147done
2148
2149if test -r "$cache_file"; then
c6b750e1
DJ
2150 # Some versions of bash will fail to source /dev/null (special
2151 # files actually), so we avoid doing that.
2152 if test -f "$cache_file"; then
81ecdfbb
RW
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2154$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2155 case $cache_file in
81ecdfbb
RW
2156 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2157 *) . "./$cache_file";;
c6b750e1
DJ
2158 esac
2159 fi
a0da8069 2160else
81ecdfbb
RW
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2162$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2163 >$cache_file
2164fi
2165
2166# Check that the precious variables saved in the cache have kept the same
2167# value.
2168ac_cache_corrupted=false
81ecdfbb 2169for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2171 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2172 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2173 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2174 case $ac_old_set,$ac_new_set in
2175 set,)
81ecdfbb
RW
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2177$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2178 ac_cache_corrupted=: ;;
2179 ,set)
81ecdfbb
RW
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2181$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2182 ac_cache_corrupted=: ;;
2183 ,);;
2184 *)
2185 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2186 # differences in whitespace do not lead to failure.
2187 ac_old_val_w=`echo x $ac_old_val`
2188 ac_new_val_w=`echo x $ac_new_val`
2189 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2191$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2192 ac_cache_corrupted=:
2193 else
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2195$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2196 eval $ac_var=\$ac_old_val
2197 fi
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2199$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2201$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2202 fi;;
2203 esac
2204 # Pass precious variables to config.status.
2205 if test "$ac_new_set" = set; then
2206 case $ac_new_val in
81ecdfbb 2207 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2208 *) ac_arg=$ac_var=$ac_new_val ;;
2209 esac
2210 case " $ac_configure_args " in
2211 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2212 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2213 esac
2214 fi
2215done
2216if $ac_cache_corrupted; then
81ecdfbb
RW
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2220$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2221 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2222fi
81ecdfbb
RW
2223## -------------------- ##
2224## Main body of script. ##
2225## -------------------- ##
a0da8069
NN
2226
2227ac_ext=c
a0da8069 2228ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232
2233
2234
2235
c6b750e1
DJ
2236
2237
34a0f3cf 2238
c6b750e1 2239
5b553f7e
RW
2240
2241progname=$0
2242# if PWD already has a value, it is probably wrong.
2243if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2244
2245# Export original configure arguments for use by sub-configures.
2246# Quote arguments with shell meta charatcers.
2247TOPLEVEL_CONFIGURE_ARGUMENTS=
2248set -- "$progname" "$@"
2249for ac_arg
2250do
2251 case "$ac_arg" in
2252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2254 # if the argument is of the form -foo=baz, quote the baz part only
2255 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2256 *) ;;
2257 esac
2258 # Add the quoted argument to the list.
2259 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2260done
2261if test "$silent" = yes; then
2262 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2263fi
2264# Remove the initial space we just introduced and, as these will be
2265# expanded by make, quote '$'.
2266TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2267
c6b750e1
DJ
2268
2269# Find the build, host, and target systems.
a0da8069 2270ac_aux_dir=
81ecdfbb
RW
2271for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2272 for ac_t in install-sh install.sh shtool; do
2273 if test -f "$ac_dir/$ac_t"; then
2274 ac_aux_dir=$ac_dir
2275 ac_install_sh="$ac_aux_dir/$ac_t -c"
2276 break 2
2277 fi
2278 done
a0da8069
NN
2279done
2280if test -z "$ac_aux_dir"; then
81ecdfbb 2281 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2282fi
81ecdfbb
RW
2283
2284# These three variables are undocumented and unsupported,
2285# and are intended to be withdrawn in a future Autoconf release.
2286# They can cause serious problems if a builder's source tree is in a directory
2287# whose full name contains unusual characters.
2288ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2289ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2290ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2291
a0da8069 2292
c6b750e1 2293# Make sure we can run config.sub.
81ecdfbb
RW
2294$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2295 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2296
2297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2298$as_echo_n "checking build system type... " >&6; }
2299if test "${ac_cv_build+set}" = set; then :
2300 $as_echo_n "(cached) " >&6
2301else
2302 ac_build_alias=$build_alias
2303test "x$ac_build_alias" = x &&
2304 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2305test "x$ac_build_alias" = x &&
2306 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2307ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2308 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2309
2310fi
2311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2312$as_echo "$ac_cv_build" >&6; }
2313case $ac_cv_build in
2314*-*-*) ;;
2315*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2316esac
c6b750e1 2317build=$ac_cv_build
81ecdfbb
RW
2318ac_save_IFS=$IFS; IFS='-'
2319set x $ac_cv_build
2320shift
2321build_cpu=$1
2322build_vendor=$2
2323shift; shift
2324# Remember, the first character of IFS is used to create $*,
2325# except with old shells:
2326build_os=$*
2327IFS=$ac_save_IFS
2328case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2329
a0da8069 2330
c6b750e1
DJ
2331 case ${build_alias} in
2332 "") build_noncanonical=${build} ;;
2333 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2334esac
2335
2336
cac3d6c4 2337
c6b750e1
DJ
2338 case ${host_alias} in
2339 "") host_noncanonical=${build_noncanonical} ;;
2340 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2341esac
2342
cac3d6c4 2343
c6b750e1
DJ
2344
2345 case ${target_alias} in
2346 "") target_noncanonical=${host_noncanonical} ;;
2347 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2348esac
2349
cac3d6c4 2350
c6b750e1
DJ
2351
2352
2353test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2354 test "$program_prefix$program_suffix$program_transform_name" = \
2355 NONENONEs,x,x, &&
c6b750e1 2356 program_transform_name=s,y,y,
cac3d6c4 2357
81ecdfbb
RW
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2359$as_echo_n "checking host system type... " >&6; }
2360if test "${ac_cv_host+set}" = set; then :
2361 $as_echo_n "(cached) " >&6
cac3d6c4 2362else
81ecdfbb
RW
2363 if test "x$host_alias" = x; then
2364 ac_cv_host=$ac_cv_build
2365else
2366 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2367 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2368fi
c6b750e1
DJ
2369
2370fi
81ecdfbb
RW
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2372$as_echo "$ac_cv_host" >&6; }
2373case $ac_cv_host in
2374*-*-*) ;;
2375*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2376esac
c6b750e1 2377host=$ac_cv_host
81ecdfbb
RW
2378ac_save_IFS=$IFS; IFS='-'
2379set x $ac_cv_host
2380shift
2381host_cpu=$1
2382host_vendor=$2
2383shift; shift
2384# Remember, the first character of IFS is used to create $*,
2385# except with old shells:
2386host_os=$*
2387IFS=$ac_save_IFS
2388case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2389
2390
81ecdfbb
RW
2391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2392$as_echo_n "checking target system type... " >&6; }
2393if test "${ac_cv_target+set}" = set; then :
2394 $as_echo_n "(cached) " >&6
c6b750e1 2395else
81ecdfbb
RW
2396 if test "x$target_alias" = x; then
2397 ac_cv_target=$ac_cv_host
2398else
2399 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2400 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2401fi
c6b750e1 2402
cac3d6c4 2403fi
81ecdfbb
RW
2404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2405$as_echo "$ac_cv_target" >&6; }
2406case $ac_cv_target in
2407*-*-*) ;;
2408*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2409esac
c6b750e1 2410target=$ac_cv_target
81ecdfbb
RW
2411ac_save_IFS=$IFS; IFS='-'
2412set x $ac_cv_target
2413shift
2414target_cpu=$1
2415target_vendor=$2
2416shift; shift
2417# Remember, the first character of IFS is used to create $*,
2418# except with old shells:
2419target_os=$*
2420IFS=$ac_save_IFS
2421case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2422
2423
2424# The aliases save the names the user supplied, while $host etc.
2425# will get canonicalized.
2426test -n "$target_alias" &&
2427 test "$program_prefix$program_suffix$program_transform_name" = \
2428 NONENONEs,x,x, &&
2429 program_prefix=${target_alias}-
81ecdfbb 2430
a0da8069 2431test "$program_prefix" != NONE &&
81ecdfbb 2432 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2433# Use a double $ so make ignores it.
2434test "$program_suffix" != NONE &&
81ecdfbb
RW
2435 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2436# Double any \ or $.
c6b750e1 2437# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2438ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2439program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2440
a0da8069
NN
2441
2442
e5c3f801
NN
2443# Get 'install' or 'install-sh' and its variants.
2444# Find a good install program. We prefer a C program (faster),
2445# so one script is as good as another. But avoid the broken or
2446# incompatible versions:
2447# SysV /etc/install, /usr/sbin/install
2448# SunOS /usr/etc/install
2449# IRIX /sbin/install
2450# AIX /bin/install
c6b750e1 2451# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2452# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2455# OS/2's system install, which has a completely different semantic
e5c3f801 2456# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2457# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2459$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2460if test -z "$INSTALL"; then
81ecdfbb
RW
2461if test "${ac_cv_path_install+set}" = set; then :
2462 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2463else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2469 # Account for people who put trailing slashes in PATH elements.
2470case $as_dir/ in #((
2471 ./ | .// | /[cC]/* | \
c6b750e1 2472 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2473 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2474 /usr/ucb/* ) ;;
2475 *)
2476 # OSF1 and SCO ODT 3.0 have their own names for install.
2477 # Don't use installbsd from OSF since it installs stuff as root
2478 # by default.
2479 for ac_prog in ginstall scoinst install; do
2480 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2481 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2482 if test $ac_prog = install &&
c6b750e1 2483 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2484 # AIX install. It has an incompatible calling convention.
2485 :
c6b750e1
DJ
2486 elif test $ac_prog = install &&
2487 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # program-specific install script used by HP pwplus--don't use.
2489 :
e5c3f801 2490 else
58c85be7
RW
2491 rm -rf conftest.one conftest.two conftest.dir
2492 echo one > conftest.one
2493 echo two > conftest.two
2494 mkdir conftest.dir
2495 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2496 test -s conftest.one && test -s conftest.two &&
2497 test -s conftest.dir/conftest.one &&
2498 test -s conftest.dir/conftest.two
2499 then
2500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2501 break 3
2502 fi
e5c3f801
NN
2503 fi
2504 fi
2505 done
c6b750e1
DJ
2506 done
2507 ;;
2508esac
81ecdfbb
RW
2509
2510 done
2511IFS=$as_save_IFS
c6b750e1 2512
58c85be7 2513rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2514
2515fi
2516 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2517 INSTALL=$ac_cv_path_install
e5c3f801 2518 else
58c85be7
RW
2519 # As a last resort, use the slow shell script. Don't cache a
2520 # value for INSTALL within a source directory, because that will
e5c3f801 2521 # break other packages using the cache if that directory is
58c85be7 2522 # removed, or if the value is a relative name.
c6b750e1 2523 INSTALL=$ac_install_sh
e5c3f801
NN
2524 fi
2525fi
81ecdfbb
RW
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2527$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2528
2529# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2530# It thinks the first close brace ends the variable substitution.
2531test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2532
c6b750e1 2533test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2534
2535test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2536
81ecdfbb
RW
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2538$as_echo_n "checking whether ln works... " >&6; }
2539if test "${acx_cv_prog_LN+set}" = set; then :
2540 $as_echo_n "(cached) " >&6
656fdd47
PB
2541else
2542 rm -f conftestdata_t
2543echo >conftestdata_f
2544if ln conftestdata_f conftestdata_t 2>/dev/null
2545then
2546 acx_cv_prog_LN=ln
2547else
2548 acx_cv_prog_LN=no
2549fi
2550rm -f conftestdata_f conftestdata_t
2551
2552fi
2553if test $acx_cv_prog_LN = no; then
2554 LN="cp"
81ecdfbb
RW
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2556$as_echo "no, using $LN" >&6; }
656fdd47
PB
2557else
2558 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2560$as_echo "yes" >&6; }
656fdd47
PB
2561fi
2562
81ecdfbb
RW
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2564$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2565LN_S=$as_ln_s
2566if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2568$as_echo "yes" >&6; }
cac3d6c4 2569else
81ecdfbb
RW
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2571$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2572fi
2573
8e957354
PB
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2575$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2576if test "${ac_cv_path_SED+set}" = set; then :
2577 $as_echo_n "(cached) " >&6
2578else
2579 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2580 for ac_i in 1 2 3 4 5 6 7; do
2581 ac_script="$ac_script$as_nl$ac_script"
2582 done
2583 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2584 { ac_script=; unset ac_script;}
2585 if test -z "$SED"; then
2586 ac_path_SED_found=false
2587 # Loop through the user's path and test for each of PROGNAME-LIST
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_prog in sed gsed; do
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2596 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2597# Check for GNU ac_path_SED and select it if it is found.
2598 # Check for GNU $ac_path_SED
2599case `"$ac_path_SED" --version 2>&1` in
2600*GNU*)
2601 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2602*)
2603 ac_count=0
2604 $as_echo_n 0123456789 >"conftest.in"
2605 while :
2606 do
2607 cat "conftest.in" "conftest.in" >"conftest.tmp"
2608 mv "conftest.tmp" "conftest.in"
2609 cp "conftest.in" "conftest.nl"
2610 $as_echo '' >> "conftest.nl"
2611 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2613 as_fn_arith $ac_count + 1 && ac_count=$as_val
2614 if test $ac_count -gt ${ac_path_SED_max-0}; then
2615 # Best one so far, save it but keep looking for a better one
2616 ac_cv_path_SED="$ac_path_SED"
2617 ac_path_SED_max=$ac_count
2618 fi
2619 # 10*(2^10) chars as input seems more than enough
2620 test $ac_count -gt 10 && break
2621 done
2622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2623esac
2624
2625 $ac_path_SED_found && break 3
2626 done
2627 done
2628 done
2629IFS=$as_save_IFS
2630 if test -z "$ac_cv_path_SED"; then
2631 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2632 fi
2633else
2634 ac_cv_path_SED=$SED
2635fi
2636
2637fi
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2639$as_echo "$ac_cv_path_SED" >&6; }
2640 SED="$ac_cv_path_SED"
2641 rm -f conftest.sed
2642
2643for ac_prog in gawk mawk nawk awk
2644do
2645 # Extract the first word of "$ac_prog", so it can be a program name with args.
2646set dummy $ac_prog; ac_word=$2
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648$as_echo_n "checking for $ac_word... " >&6; }
2649if test "${ac_cv_prog_AWK+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
2651else
2652 if test -n "$AWK"; then
2653 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662 ac_cv_prog_AWK="$ac_prog"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2665 fi
2666done
2667 done
2668IFS=$as_save_IFS
2669
2670fi
2671fi
2672AWK=$ac_cv_prog_AWK
2673if test -n "$AWK"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2675$as_echo "$AWK" >&6; }
2676else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678$as_echo "no" >&6; }
2679fi
2680
2681
2682 test -n "$AWK" && break
2683done
2684
e5c3f801 2685
0fdbe983
DJ
2686srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2687
2688# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2689# a relative path.
2690if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2691 INSTALL="${srcpwd}/install-sh -c"
2692fi
2693
a0da8069
NN
2694# Set srcdir to "." if that's what it is.
2695# This is important for multilib support.
2696pwd=`${PWDCMD-pwd}`
a0da8069
NN
2697if test "${pwd}" = "${srcpwd}" ; then
2698 srcdir=.
252b5132
RH
2699fi
2700
a0da8069 2701topsrcdir=$srcpwd
252b5132 2702
a0da8069 2703extra_host_args=
afefada0 2704
a0da8069
NN
2705### To add a new directory to the tree, first choose whether it is a target
2706### or a host dependent tool. Then put it into the appropriate list
2707### (library or tools, host or target), doing a dependency sort.
252b5132 2708
c6b750e1 2709# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2710# configdirs, or target_configdirs; see the serialization section below.
252b5132 2711
c6b750e1
DJ
2712# Dependency sorting is only needed when *configuration* must be done in
2713# a particular order. In all cases a dependency should be specified in
a0da8069 2714# the Makefile, whether or not it's implicitly specified here.
252b5132 2715
a0da8069
NN
2716# Double entries in build_configdirs, configdirs, or target_configdirs may
2717# cause circular dependencies and break everything horribly.
252b5132 2718
6a9cf61e
PB
2719# these library is used by various programs built for the build
2720# environment
2721#
1b6c0831 2722build_libs="build-libiberty build-libcpp"
6a9cf61e
PB
2723
2724# these tools are built for the build environment
a90ef4bf 2725build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2726
a0da8069 2727# these libraries are used by various programs built for the host environment
1b6c0831
L
2728#f
2729host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
a0da8069 2730
a0da8069
NN
2731# these tools are built for the host environment
2732# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2733# know that we are building the simulator.
2734# binutils, gas and ld appear in that order because it makes sense to run
2735# "make check" in that particular order.
e6de499b 2736# If --enable-gold is used, "gold" may replace "ld".
1b6c0831 2737host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
a0da8069
NN
2738
2739# libgcj represents the runtime libraries only used by gcj.
2740libgcj="target-libffi \
a0da8069 2741 target-zlib \
a0da8069
NN
2742 target-libjava"
2743
2744# these libraries are built for the target environment, and are built after
2745# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2746# Note that libiberty is not a target library.
b1299c4e 2747target_libraries="target-libgcc \
2bf680c4 2748 target-libbacktrace \
a0da8069
NN
2749 target-libgloss \
2750 target-newlib \
cff87f51 2751 target-libgomp \
522e3d71 2752 target-libcilkrts \
1b6c0831 2753 target-liboffloadmic \
7ec59b9e 2754 target-libatomic \
d32e2926 2755 target-libitm \
b9459e83 2756 target-libstdc++-v3 \
5286fdef 2757 target-libsanitizer \
95e43135 2758 target-libvtv \
1b6c0831 2759 target-libmpx \
bb780410 2760 target-libssp \
e552509b 2761 target-libquadmath \
4b1cb4fe 2762 target-libgfortran \
4f0ef2d8 2763 target-boehm-gc \
83326456 2764 ${libgcj} \
a2592b1b 2765 target-libobjc \
e552509b
ILT
2766 target-libada \
2767 target-libgo"
a0da8069 2768
9c14acb8
NN
2769# these tools are built using the target libraries, and are intended to
2770# run only in the target environment
a0da8069 2771#
9c14acb8 2772# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2773# list belongs in this list.
a0da8069 2774#
a90ef4bf 2775target_tools="target-rda"
252b5132 2776
a0da8069 2777################################################################################
252b5132 2778
a0da8069
NN
2779## All tools belong in one of the four categories, and are assigned above
2780## We assign ${configdirs} this way to remove all embedded newlines. This
2781## is important because configure will choke if they ever get through.
2782## ${configdirs} is directories we build using the host tools.
2783## ${target_configdirs} is directories we build using the target tools.
a0da8069 2784configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2785target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2786build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2787
9cc8ae67
PB
2788
2789
a0da8069 2790################################################################################
252b5132 2791
a0da8069 2792srcname="gnu development package"
252b5132 2793
a0da8069
NN
2794# This gets set non-empty for some net releases of packages.
2795appdirs=""
252b5132 2796
a0da8069
NN
2797# Define is_cross_compiler to save on calls to 'test'.
2798is_cross_compiler=
2799if test x"${host}" = x"${target}" ; then
2800 is_cross_compiler=no
252b5132 2801else
a0da8069 2802 is_cross_compiler=yes
c6b750e1 2803fi
252b5132 2804
9175bfc0 2805# Find the build and target subdir names.
dd12c3a8 2806
66a79c16
DJ
2807# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2808# have matching libraries, they should use host libraries: Makefile.tpl
2809# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2810# However, they still use the build modules, because the corresponding
2811# host modules (e.g. bison) are only built for the host when bootstrap
2812# finishes. So:
2813# - build_subdir is where we find build modules, and never changes.
2814# - build_libsubdir is where we find build libraries, and can be overridden.
2815
2816# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2817build_subdir="build-${build_noncanonical}"
c6b750e1 2818
81ecdfbb
RW
2819# Check whether --with-build-libsubdir was given.
2820if test "${with_build_libsubdir+set}" = set; then :
2821 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2822else
2823 build_libsubdir="$build_subdir"
81ecdfbb
RW
2824fi
2825
b00612cc
PB
2826# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2827if ( test $srcdir = . && test -d gcc ) \
2828 || test -d $srcdir/../host-${host_noncanonical}; then
2829 host_subdir="host-${host_noncanonical}"
2830else
2831 host_subdir=.
2832fi
dd12c3a8
NN
2833# No prefix.
2834target_subdir=${target_noncanonical}
c6b750e1 2835
2fd0b40b
RW
2836# Be sure to cover against remnants of an in-tree build.
2837if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2838 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2839Use a pristine source tree when building in a separate tree" "$LINENO" 5
2840fi
252b5132 2841
a0da8069
NN
2842# Skipdirs are removed silently.
2843skipdirs=
2844# Noconfigdirs are removed loudly.
2845noconfigdirs=""
252b5132 2846
a0da8069
NN
2847use_gnu_ld=
2848# Make sure we don't let GNU ld be added if we didn't want it.
2849if test x$with_gnu_ld = xno ; then
2850 use_gnu_ld=no
93f9b408 2851 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2852fi
2853
a0da8069
NN
2854use_gnu_as=
2855# Make sure we don't let GNU as be added if we didn't want it.
2856if test x$with_gnu_as = xno ; then
2857 use_gnu_as=no
2858 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2859fi
2860
700d40ca 2861use_included_zlib=
cf39cfc5
L
2862
2863# Check whether --with-system-zlib was given.
2864if test "${with_system_zlib+set}" = set; then :
2865 withval=$with_system_zlib;
2866fi
2867
700d40ca
ILT
2868# Make sure we don't let ZLIB be added if we didn't want it.
2869if test x$with_system_zlib = xyes ; then
2870 use_included_zlib=no
2871 noconfigdirs="$noconfigdirs zlib"
2872fi
2873
c6b750e1 2874# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2875# it's not even worth trying to configure, much less build, that tool.
252b5132 2876
a0da8069
NN
2877case ${with_x} in
2878 yes | "") ;; # the default value for this tree is that X11 is available
2879 no)
675c6968 2880 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2881 # We won't be able to build gdbtk without X.
c6b750e1 2882 enable_gdbtk=no
a0da8069
NN
2883 ;;
2884 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2885esac
252b5132 2886
0377a422 2887# Some are only suitable for cross toolchains.
a0da8069
NN
2888# Remove these if host=target.
2889cross_only="target-libgloss target-newlib target-opcodes"
2890
2891case $is_cross_compiler in
2892 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2893esac
252b5132 2894
a0da8069
NN
2895# If both --with-headers and --with-libs are specified, default to
2896# --without-newlib.
32be62b5
RS
2897if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2898 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2899 if test x"${with_newlib}" = x ; then
2900 with_newlib=no
2901 fi
252b5132
RH
2902fi
2903
a0da8069
NN
2904# Recognize --with-newlib/--without-newlib.
2905case ${with_newlib} in
2906 no) skipdirs="${skipdirs} target-newlib" ;;
2907 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2908esac
252b5132 2909
1b6c0831
L
2910# Check whether --enable-as-accelerator-for was given.
2911if test "${enable_as_accelerator_for+set}" = set; then :
2912 enableval=$enable_as_accelerator_for;
2913fi
2914
2915
2916# Check whether --enable-offload-targets was given.
2917if test "${enable_offload_targets+set}" = set; then :
2918 enableval=$enable_offload_targets;
2919 if test x"$enable_offload_targets" = x; then
2920 as_fn_error "no offload targets specified" "$LINENO" 5
2921 fi
2922
2923else
2924 enable_offload_targets=
2925fi
2926
2927
c7791212
NC
2928# Handle --enable-gold, --enable-ld.
2929# --disable-gold [--enable-ld]
2930# Build only ld. Default option.
d3b50760
L
2931# --enable-gold [--enable-ld]
2932# Build both gold and ld. Install gold as "ld.gold", install ld
2933# as "ld.bfd" and "ld".
2934# --enable-gold=default [--enable-ld]
c7791212
NC
2935# Build both gold and ld. Install gold as "ld.gold" and "ld",
2936# install ld as "ld.bfd".
2937# --enable-gold[=default] --disable-ld
2938# Build only gold, which is then installed as both "ld.gold" and "ld".
2939# --enable-gold --enable-ld=default
d3b50760
L
2940# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2941# and ld.bfd).
c7791212
NC
2942# In other words, ld is default
2943# --enable-gold=default --enable-ld=default
2944# Error.
2945
2946default_ld=
81ecdfbb
RW
2947# Check whether --enable-gold was given.
2948if test "${enable_gold+set}" = set; then :
2949 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2950else
2951 ENABLE_GOLD=no
81ecdfbb
RW
2952fi
2953
c7791212
NC
2954case "${ENABLE_GOLD}" in
2955 yes|default)
e6de499b
NC
2956 # Check for ELF target.
2957 is_elf=no
2958 case "${target}" in
2959 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 2960 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 2961 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
d5451cd4 2962 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-fuchsia*)
e6de499b
NC
2963 case "${target}" in
2964 *-*-linux*aout* | *-*-linux*oldld*)
2965 ;;
2966 *)
2967 is_elf=yes
2968 ;;
2969 esac
2970 esac
2971
2972 if test "$is_elf" = "yes"; then
2973 # Check for target supported by gold.
93f9b408 2974 case "${target}" in
6d26190c 2975 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
ea016470 2976 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
c7791212
NC
2977 configdirs="$configdirs gold"
2978 if test x${ENABLE_GOLD} = xdefault; then
2979 default_ld=gold
2980 fi
e6de499b 2981 ENABLE_GOLD=yes
93f9b408
ILT
2982 ;;
2983 esac
e6de499b
NC
2984 fi
2985 ;;
2986 no)
2987 ;;
2988 *)
2989 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2990 ;;
c7791212
NC
2991esac
2992
2993# Check whether --enable-ld was given.
2994if test "${enable_ld+set}" = set; then :
2995 enableval=$enable_ld; ENABLE_LD=$enableval
2996else
2997 ENABLE_LD=yes
2998fi
2999
3000
3001case "${ENABLE_LD}" in
3002 default)
d3b50760 3003 if test x${default_ld} != x; then
c7791212
NC
3004 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3005 fi
3006 ;;
3007 yes)
3008 ;;
3009 no)
3010 if test x${ENABLE_GOLD} != xyes; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3012$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3013 fi
3014 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3015 ;;
3016 *)
3017 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3018 ;;
3019esac
93f9b408 3020
edeefb67
L
3021# PR gas/19109
3022# Decide the default method for compressing debug sections.
3023# Provide a configure time option to override our default.
3024# Check whether --enable-compressed_debug_sections was given.
3025if test "${enable_compressed_debug_sections+set}" = set; then :
3026 enableval=$enable_compressed_debug_sections;
3027 if test x"$enable_compressed_debug_sections" = xyes; then
3028 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3029 fi
3030
3031else
3032 enable_compressed_debug_sections=
3033fi
3034
3035
a0da8069 3036# Configure extra directories which are host specific
252b5132 3037
a0da8069
NN
3038case "${host}" in
3039 *-cygwin*)
3040 configdirs="$configdirs libtermcap" ;;
3041esac
252b5132 3042
59f7ec45
HPN
3043# A target can indicate whether a language isn't supported for some reason.
3044# Only spaces may be used in this macro; not newlines or tabs.
3045unsupported_languages=
3046
c6b750e1 3047# Remove more programs from consideration, based on the host or
a0da8069
NN
3048# target this usually means that a port of the program doesn't
3049# exist yet.
252b5132 3050
a0da8069 3051case "${host}" in
3516a403 3052 i[3456789]86-*-msdosdjgpp*)
6a608608 3053 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3054 ;;
a0da8069 3055esac
252b5132 3056
4b1cb4fe 3057
89a1e9c3
PB
3058# Check whether --enable-libquadmath was given.
3059if test "${enable_libquadmath+set}" = set; then :
3060 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3061else
3062 ENABLE_LIBQUADMATH=yes
3063fi
3064
3065if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3066 noconfigdirs="$noconfigdirs target-libquadmath"
3067fi
3068
3069
3070# Check whether --enable-libquadmath-support was given.
3071if test "${enable_libquadmath_support+set}" = set; then :
3072 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3073else
3074 ENABLE_LIBQUADMATH_SUPPORT=yes
3075fi
3076
3077enable_libquadmath_support=
3078if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3079 enable_libquadmath_support=no
3080fi
3081
3082
81ecdfbb
RW
3083# Check whether --enable-libada was given.
3084if test "${enable_libada+set}" = set; then :
3085 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3086else
3087 ENABLE_LIBADA=yes
81ecdfbb
RW
3088fi
3089
a2592b1b 3090if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3091 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3092fi
3093
81ecdfbb
RW
3094# Check whether --enable-libssp was given.
3095if test "${enable_libssp+set}" = set; then :
3096 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3097else
3098 ENABLE_LIBSSP=yes
81ecdfbb
RW
3099fi
3100
5f128533 3101
f66a9a70
L
3102# Check whether --enable-libstdcxx was given.
3103if test "${enable_libstdcxx+set}" = set; then :
3104 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3105else
3106 ENABLE_LIBSTDCXX=default
3107fi
3108
3109if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1b6c0831
L
3110 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3111fi
3112
3113# If this is accelerator compiler and its target is intelmic we enable
3114# target liboffloadmic by default. If this is compiler with offloading
3115# for intelmic we enable host liboffloadmic by default. Otherwise
3116# liboffloadmic is disabled by default.
3117# Check whether --enable-liboffloadmic was given.
3118if test "${enable_liboffloadmic+set}" = set; then :
3119 enableval=$enable_liboffloadmic; case "$enableval" in
3120 no | host | target)
3121 enable_liboffloadmic=$enableval ;;
3122 *)
3123 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3124esac
3125else
3126 if test x"$enable_as_accelerator_for" != x; then
3127 case "${target}" in
3128 *-intelmic-* | *-intelmicemul-*)
3129 enable_liboffloadmic=target
3130 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3131 ;;
3132 *)
3133 enable_liboffloadmic=no
3134 ;;
3135 esac
3136else
3137 case "${enable_offload_targets}" in
3138 *-intelmic-* | *-intelmicemul-*)
3139 enable_liboffloadmic=host
3140 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3141 ;;
3142 *)
3143 enable_liboffloadmic=no
3144 ;;
3145 esac
3146fi
f66a9a70
L
3147fi
3148
1b6c0831
L
3149
3150
a0da8069
NN
3151# Save it here so that, even in case of --enable-libgcj, if the Java
3152# front-end isn't enabled, we still get libgcj disabled.
3153libgcj_saved=$libgcj
3154case $enable_libgcj in
3155yes)
3156 # If we reset it here, it won't get added to noconfigdirs in the
3157 # target-specific build rules, so it will be forcibly enabled
3158 # (unless the Java language itself isn't enabled).
3159 libgcj=
3160 ;;
3161no)
3162 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
3163 # Don't disable libffi, though, other languages use it.
3164 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
33d23ee8
ILT
3165 # Clear libgcj_saved so that even if java is enabled libffi won't be
3166 # built.
3167 libgcj_saved=
a0da8069
NN
3168 ;;
3169esac
252b5132 3170
ffdd6afc
ILT
3171# Check whether --enable-static-libjava was given.
3172if test "${enable_static_libjava+set}" = set; then :
3173 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3174else
3175 ENABLE_STATIC_LIBJAVA=no
3176fi
3177
3178enable_static_libjava=
3179if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3180 enable_static_libjava=yes
3181fi
3182
3183if test x$enable_static_libjava != xyes ; then
3184 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3185fi
3186
4b1cb4fe 3187
68996839 3188# Enable libgomp by default on hosted POSIX systems, and a few others.
a6df5a19 3189if test x$enable_libgomp = x ; then
b3ded179 3190 case "${target}" in
29383458 3191 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3192 ;;
5b806d27 3193 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3194 ;;
2479f722 3195 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3196 ;;
3197 *-*-darwin* | *-*-aix*)
3198 ;;
68996839
NC
3199 nvptx*-*-*)
3200 ;;
b3ded179
PB
3201 *)
3202 noconfigdirs="$noconfigdirs target-libgomp"
3203 ;;
3204 esac
a6df5a19 3205fi
b3ded179 3206
7ec59b9e
L
3207# Disable libatomic on unsupported systems.
3208if test -d ${srcdir}/libatomic; then
3209 if test x$enable_libatomic = x; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3211$as_echo_n "checking for libatomic support... " >&6; }
3212 if (srcdir=${srcdir}/libatomic; \
3213 . ${srcdir}/configure.tgt; \
3214 test -n "$UNSUPPORTED")
3215 then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217$as_echo "no" >&6; }
3218 noconfigdirs="$noconfigdirs target-libatomic"
3219 else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3221$as_echo "yes" >&6; }
3222 fi
3223 fi
3224fi
3225
522e3d71 3226# Disable libcilkrts on unsupported systems.
3227if test -d ${srcdir}/libcilkrts; then
3228 if test x$enable_libcilkrts = x; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3230$as_echo_n "checking for libcilkrts support... " >&6; }
3231 if (srcdir=${srcdir}/libcilkrts; \
3232 . ${srcdir}/configure.tgt; \
3233 test -n "$UNSUPPORTED")
3234 then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236$as_echo "no" >&6; }
3237 noconfigdirs="$noconfigdirs target-libcilkrts"
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240$as_echo "yes" >&6; }
3241 fi
3242 fi
3243fi
3244
1b6c0831
L
3245# Disable liboffloadmic on unsupported systems.
3246if test -d ${srcdir}/liboffloadmic; then
3247 if test x$enable_liboffloadmic != xno; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3249$as_echo_n "checking for liboffloadmic support... " >&6; }
3250 if (srcdir=${srcdir}/liboffloadmic; \
3251 . ${srcdir}/configure.tgt; \
3252 test -n "$UNSUPPORTED")
3253 then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255$as_echo "no" >&6; }
3256 noconfigdirs="$noconfigdirs target-liboffloadmic"
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259$as_echo "yes" >&6; }
3260 fi
3261 fi
3262fi
3263
d32e2926
RH
3264# Disable libitm on unsupported systems.
3265if test -d ${srcdir}/libitm; then
3266 if test x$enable_libitm = x; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3268$as_echo_n "checking for libitm support... " >&6; }
3269 if (srcdir=${srcdir}/libitm; \
3270 . ${srcdir}/configure.tgt; \
3271 test -n "$UNSUPPORTED")
3272 then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274$as_echo "no" >&6; }
3275 noconfigdirs="$noconfigdirs target-libitm"
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3278$as_echo "yes" >&6; }
3279 fi
3280 fi
3281fi
3282
5286fdef
L
3283# Disable libsanitizer on unsupported systems.
3284if test -d ${srcdir}/libsanitizer; then
3285 if test x$enable_libsanitizer = x; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3287$as_echo_n "checking for libsanitizer support... " >&6; }
3288 if (srcdir=${srcdir}/libsanitizer; \
3289 . ${srcdir}/configure.tgt; \
3290 test -n "$UNSUPPORTED")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293$as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libsanitizer"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297$as_echo "yes" >&6; }
3298 fi
3299 fi
3300fi
3301
95e43135
JBG
3302# Disable libvtv on unsupported systems.
3303if test -d ${srcdir}/libvtv; then
3304 if test x$enable_libvtv = x; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3306$as_echo_n "checking for libvtv support... " >&6; }
3307 if (srcdir=${srcdir}/libvtv; \
3308 . ${srcdir}/configure.tgt; \
3309 test "$VTV_SUPPORTED" != "yes")
3310 then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312$as_echo "no" >&6; }
3313 noconfigdirs="$noconfigdirs target-libvtv"
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316$as_echo "yes" >&6; }
3317 fi
3318 fi
3319fi
3320
1b6c0831
L
3321
3322# Enable libmpx on supported systems by request.
3323if test -d ${srcdir}/libmpx; then
4849dfd8 3324 if test x$enable_libmpx = x; then
1b6c0831
L
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3326$as_echo_n "checking for libmpx support... " >&6; }
3327 if (srcdir=${srcdir}/libmpx; \
3328 . ${srcdir}/configure.tgt; \
3329 test "$LIBMPX_SUPPORTED" != "yes")
3330 then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332$as_echo "no" >&6; }
3333 noconfigdirs="$noconfigdirs target-libmpx"
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336$as_echo "yes" >&6; }
3337 fi
1b6c0831
L
3338 fi
3339fi
3340
3341
3342
1488e230
DE
3343# Disable libquadmath for some systems.
3344case "${target}" in
5286fdef
L
3345 avr-*-*)
3346 noconfigdirs="$noconfigdirs target-libquadmath"
3347 ;;
1488e230
DE
3348 # libquadmath is unused on AIX and libquadmath build process use of
3349 # LD_LIBRARY_PATH can break AIX bootstrap.
3350 powerpc-*-aix* | rs6000-*-aix*)
3351 noconfigdirs="$noconfigdirs target-libquadmath"
3352 ;;
3353esac
3354
065a5627
JM
3355# Disable libssp for some systems.
3356case "${target}" in
3357 avr-*-*)
c5f5c3c2 3358 # No hosted I/O support.
065a5627
JM
3359 noconfigdirs="$noconfigdirs target-libssp"
3360 ;;
3361 powerpc-*-aix* | rs6000-*-aix*)
3362 noconfigdirs="$noconfigdirs target-libssp"
3363 ;;
99c513f6 3364 rl78-*-*)
202e2356
NC
3365 # libssp uses a misaligned load to trigger a fault, but the RL78
3366 # doesn't fault for those - instead, it gives a build-time error
3367 # for explicit misaligned loads.
99c513f6
DD
3368 noconfigdirs="$noconfigdirs target-libssp"
3369 ;;
1b6c0831
L
3370 visium-*-*)
3371 # No hosted I/O support.
3372 noconfigdirs="$noconfigdirs target-libssp"
3373 ;;
065a5627
JM
3374esac
3375
065a5627 3376# Disable libstdc++-v3 for some systems.
f66a9a70
L
3377# Allow user to override this if they pass --enable-libstdc++-v3
3378if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3379 case "${target}" in
3380 *-*-vxworks*)
3381 # VxWorks uses the Dinkumware C++ library.
3382 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3383 ;;
3384 arm*-wince-pe*)
3385 # the C++ libraries don't build on top of CE's C libraries
3386 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3387 ;;
3388 avr-*-*)
3389 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3390 ;;
969b1713
L
3391 ft32-*-*)
3392 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3393 ;;
f66a9a70
L
3394 esac
3395fi
065a5627
JM
3396
3397# Disable Fortran for some systems.
3398case "${target}" in
3399 mmix-*-*)
3400 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3401 unsupported_languages="$unsupported_languages fortran"
3402 ;;
3403esac
3404
0827f9a6 3405# Disable Java if libffi is not supported.
9863d716 3406case "${target}" in
e7d5abf1
JBG
3407 aarch64-*-*)
3408 ;;
0827f9a6
JM
3409 alpha*-*-*)
3410 ;;
3411 arm*-*-*)
3412 ;;
3413 cris-*-*)
3414 ;;
3415 frv-*-*)
3416 ;;
3417 hppa*-*-linux*)
3418 ;;
3419 hppa*-*-hpux*)
3420 ;;
3421 i?86-*-*)
3422 ;;
3423 ia64*-*-*)
3424 ;;
3425 m32r*-*-*)
3426 ;;
3427 m68k-*-*)
3428 ;;
2479f722 3429 mips*-*-rtems*)
0827f9a6
JM
3430 ;;
3431 mips*-*-linux*)
3432 ;;
3433 powerpc*-*-linux*)
3434 ;;
3435 powerpc-*-darwin*)
3436 ;;
3437 powerpc-*-aix* | rs6000-*-aix*)
3438 ;;
3439 powerpc-*-freebsd*)
3440 ;;
3441 powerpc64-*-freebsd*)
3442 ;;
3443 powerpc*-*-rtems*)
9863d716 3444 ;;
0827f9a6
JM
3445 s390-*-* | s390x-*-*)
3446 ;;
3447 sh-*-* | sh[34]*-*-*)
3448 ;;
3449 sh64-*-* | sh5*-*-*)
3450 ;;
3451 sparc*-*-*)
3452 ;;
3453 x86_64-*-*)
3454 ;;
3455 *-*-*)
3456 unsupported_languages="$unsupported_languages java"
3457 ;;
3458esac
3459
3460# Disable Java, libgcj or related libraries for some systems.
3461case "${target}" in
9863d716
JM
3462 powerpc-*-darwin*)
3463 ;;
3464 i[3456789]86-*-darwin*)
3465 ;;
3466 x86_64-*-darwin[912]*)
3467 ;;
3468 *-*-darwin*)
3469 noconfigdirs="$noconfigdirs ${libgcj}"
3470 ;;
9863d716
JM
3471 *-*-netware*)
3472 noconfigdirs="$noconfigdirs ${libgcj}"
3473 ;;
3474 *-*-rtems*)
3475 noconfigdirs="$noconfigdirs ${libgcj}"
3476 ;;
3477 *-*-tpf*)
3478 noconfigdirs="$noconfigdirs ${libgcj}"
3479 ;;
3480 *-*-uclinux*)
3481 noconfigdirs="$noconfigdirs ${libgcj}"
3482 ;;
3483 *-*-vxworks*)
3484 noconfigdirs="$noconfigdirs ${libgcj}"
3485 ;;
9863d716
JM
3486 alpha*-*-*vms*)
3487 noconfigdirs="$noconfigdirs ${libgcj}"
3488 ;;
1b6c0831
L
3489 arm*-*-freebsd*)
3490 noconfigdirs="$noconfigdirs ${libgcj}"
3491 ;;
0827f9a6 3492 arm-wince-pe)
9863d716
JM
3493 noconfigdirs="$noconfigdirs ${libgcj}"
3494 ;;
9863d716
JM
3495 arm*-*-symbianelf*)
3496 noconfigdirs="$noconfigdirs ${libgcj}"
3497 ;;
9863d716 3498 bfin-*-*)
9863d716
JM
3499 noconfigdirs="$noconfigdirs target-boehm-gc"
3500 ;;
9863d716
JM
3501 cris-*-* | crisv32-*-*)
3502 unsupported_languages="$unsupported_languages java"
3503 case "${target}" in
3504 *-*-linux*)
3505 ;;
3506 *) # See PR46792 regarding target-libffi.
3507 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3508 esac
3509 ;;
9863d716
JM
3510 hppa*64*-*-linux*)
3511 # In this case, it's because the hppa64-linux target is for
3512 # the kernel only at this point and has no libc, and thus no
3513 # headers, crt*.o, etc., all of which are needed by these.
82ae827f 3514 unsupported_languages="$unsupported_languages java"
9863d716 3515 ;;
82ae827f 3516 hppa*64*-*-hpux*)
9863d716
JM
3517 noconfigdirs="$noconfigdirs ${libgcj}"
3518 ;;
3519 hppa*-hp-hpux11*)
3520 ;;
82ae827f 3521 hppa*-*-hpux*)
9863d716
JM
3522 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3523 # build on HP-UX 10.20.
3524 noconfigdirs="$noconfigdirs ${libgcj}"
3525 ;;
9863d716
JM
3526 ia64*-*-*vms*)
3527 noconfigdirs="$noconfigdirs ${libgcj}"
3528 ;;
9863d716
JM
3529 i[3456789]86-w64-mingw*)
3530 noconfigdirs="$noconfigdirs ${libgcj}"
3531 ;;
3532 i[3456789]86-*-mingw*)
3533 noconfigdirs="$noconfigdirs ${libgcj}"
3534 ;;
3535 x86_64-*-mingw*)
3536 noconfigdirs="$noconfigdirs ${libgcj}"
3537 ;;
9863d716
JM
3538 mmix-*-*)
3539 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
9863d716
JM
3540 ;;
3541 powerpc-*-aix*)
3542 # copied from rs6000-*-* entry
3543 noconfigdirs="$noconfigdirs ${libgcj}"
3544 ;;
9863d716
JM
3545 rs6000-*-aix*)
3546 noconfigdirs="$noconfigdirs ${libgcj}"
3547 ;;
3f8107ab
AM
3548 ft32-*-*)
3549 noconfigdirs="$noconfigdirs ${libgcj}"
3550 ;;
9863d716
JM
3551 *-*-lynxos*)
3552 noconfigdirs="$noconfigdirs ${libgcj}"
3553 ;;
9863d716
JM
3554esac
3555
1b6c0831
L
3556# Disable the go frontend on systems where it is known to not work. Please keep
3557# this in sync with contrib/config-list.mk.
3558case "${target}" in
3559*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3560 unsupported_languages="$unsupported_languages go"
3561 ;;
3562esac
3563
a413f71a
ILT
3564# Disable libgo for some systems where it is known to not work.
3565# For testing, you can easily override this with --enable-libgo.
3566if test x$enable_libgo = x; then
3567 case "${target}" in
3568 *-*-darwin*)
3569 # PR 46986
3570 noconfigdirs="$noconfigdirs target-libgo"
3571 ;;
3572 *-*-cygwin* | *-*-mingw*)
3573 noconfigdirs="$noconfigdirs target-libgo"
3574 ;;
3575 *-*-aix*)
3576 noconfigdirs="$noconfigdirs target-libgo"
3577 ;;
3578 esac
3579fi
3580
691bb5a1
DD
3581# Default libgloss CPU subdirectory.
3582libgloss_dir="$target_cpu"
4b1cb4fe 3583
ff46fb8f
JM
3584case "${target}" in
3585 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3586 libgloss_dir=wince
3587 ;;
f1dd87fc
YZ
3588 aarch64*-*-* )
3589 libgloss_dir=aarch64
3590 ;;
ff46fb8f
JM
3591 arm*-*-*)
3592 libgloss_dir=arm
3593 ;;
3594 cris-*-* | crisv32-*-*)
3595 libgloss_dir=cris
3596 ;;
3597 hppa*-*-*)
3598 libgloss_dir=pa
3599 ;;
3600 i[3456789]86-*-*)
3601 libgloss_dir=i386
3602 ;;
3603 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3604 libgloss_dir=m68hc11
3605 ;;
3606 m68*-*-* | fido-*-*)
3607 libgloss_dir=m68k
3608 ;;
3609 mips*-*-*)
3610 libgloss_dir=mips
3611 ;;
3612 powerpc*-*-*)
3613 libgloss_dir=rs6000
3614 ;;
3615 sparc*-*-*)
3616 libgloss_dir=sparc
3617 ;;
3618esac
3619
c7e4b184 3620# Disable newlib and libgloss for various target OSes.
a0da8069 3621case "${target}" in
c7e4b184
JM
3622 alpha*-dec-osf*)
3623 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3624 ;;
3625 i[3456789]86-*-linux*)
3626 # This section makes it possible to build newlib natively on linux.
3627 # If we are using a cross compiler then don't configure newlib.
3628 if test x${is_cross_compiler} != xno ; then
3629 noconfigdirs="$noconfigdirs target-newlib"
3630 fi
3631 noconfigdirs="$noconfigdirs target-libgloss"
3632 # If we are not using a cross compiler, do configure newlib.
3633 # Note however, that newlib will only be configured in this situation
3634 # if the --with-newlib option has been given, because otherwise
3635 # 'target-newlib' will appear in skipdirs.
3636 ;;
3637 i[3456789]86-*-rdos*)
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639 ;;
3640 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3642 ;;
3643 sparc-*-sunos4*)
3644 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3645 ;;
3646 *-*-aix*)
3647 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3648 ;;
3649 *-*-beos*)
3650 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651 ;;
a0da8069 3652 *-*-chorusos)
b2f14e4a 3653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3654 ;;
c7e4b184
JM
3655 *-*-dragonfly*)
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3657 ;;
3658 *-*-freebsd*)
3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3660 ;;
3661 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3662 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3663 ;;
3664 *-*-lynxos*)
3665 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3666 ;;
3667 *-*-mingw*)
3668 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3669 ;;
3670 *-*-netbsd*)
3671 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3672 ;;
3673 *-*-netware*)
3674 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3675 ;;
3676 *-*-tpf*)
3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3678 ;;
3679 *-*-uclinux*)
3680 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3681 ;;
3682 *-*-vxworks*)
3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3684 ;;
3685esac
3686
3687case "${target}" in
3688 *-*-chorusos)
3689 ;;
f075eb5e
TG
3690 aarch64-*-darwin*)
3691 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3692 noconfigdirs="$noconfigdirs sim target-rda"
3693 ;;
3694 arm-*-darwin*)
3695 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3696 noconfigdirs="$noconfigdirs sim target-rda"
3697 ;;
24741ab2 3698 powerpc-*-darwin*)
9d39db92 3699 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3700 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3701 ;;
85bd1942
TG
3702 i[3456789]86-*-darwin*)
3703 noconfigdirs="$noconfigdirs ld gprof"
3704 noconfigdirs="$noconfigdirs sim target-rda"
3705 ;;
e8a5fa9c 3706 x86_64-*-darwin[912]*)
652dec25
TG
3707 noconfigdirs="$noconfigdirs ld gas gprof"
3708 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3709 ;;
04d1ab34 3710 *-*-darwin*)
d320aacb 3711 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3712 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3713 ;;
5b806d27 3714 *-*-dragonfly*)
5b806d27 3715 ;;
de0b4a87 3716 *-*-freebsd*)
4b1cb4fe
DD
3717 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3718 && test -f /usr/local/include/gmp.h; then
3719 with_gmp=/usr/local
3720 fi
4b1cb4fe 3721 ;;
f8a495c8
NC
3722 *-*-kaos*)
3723 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3724 noconfigdirs="$noconfigdirs target-libgloss"
3725 ;;
a0da8069 3726 *-*-netbsd*)
a0da8069 3727 ;;
2a3124ca 3728 *-*-netware*)
a0da8069
NN
3729 ;;
3730 *-*-rtems*)
9863d716 3731 noconfigdirs="$noconfigdirs target-libgloss"
f8797b5a
JB
3732 # this is not caught below because this stanza matches earlier
3733 case $target in
3734 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3735 esac
a0da8069 3736 ;;
1587117a
EC
3737 # The tpf target doesn't support gdb yet.
3738 *-*-tpf*)
c7e4b184 3739 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3740 ;;
c1968181 3741 *-*-uclinux*)
c7e4b184 3742 noconfigdirs="$noconfigdirs target-rda"
c1968181 3743 ;;
a0da8069 3744 *-*-vxworks*)
a0da8069
NN
3745 ;;
3746 alpha*-dec-osf*)
3747 # ld works, but does not support shared libraries.
a0da8069 3748 # gas doesn't generate exception information.
c7e4b184 3749 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3750 ;;
3751 alpha*-*-*vms*)
9863d716 3752 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3753 ;;
a0da8069
NN
3754 alpha*-*-*)
3755 # newlib is not 64 bit ready
9863d716 3756 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3757 ;;
a0da8069 3758 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3759 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3760 ;;
f4cfb980 3761 arc-*-*|arceb-*-*)
782cb41f 3762 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3763 ;;
a0da8069 3764 arm-*-pe*)
9863d716 3765 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3766 ;;
a0da8069 3767 arm-*-riscix*)
b2f14e4a 3768 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3769 ;;
8e71395b
L
3770 avr-*-rtems*)
3771 ;;
3772 avr-*-*)
3773 if test x${with_avrlibc} != xno; then
3774 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3775 fi
3776 ;;
a0da8069 3777 c4x-*-* | tic4x-*-*)
b2f14e4a 3778 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3779 ;;
b2f14e4a
JM
3780 tic54x-*-*)
3781 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3782 ;;
a0da8069 3783 d10v-*-*)
b2f14e4a 3784 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3785 ;;
3786 d30v-*-*)
b2f14e4a 3787 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3788 ;;
3789 fr30-*-elf*)
9863d716 3790 noconfigdirs="$noconfigdirs gdb"
a0da8069 3791 ;;
3f8107ab
AM
3792 ft32-*-*)
3793 noconfigdirs="$noconfigdirs target-rda gprof"
3794 ;;
20135e4c 3795 moxie-*-*)
10b8fe5e 3796 noconfigdirs="$noconfigdirs"
20135e4c 3797 ;;
a0da8069 3798 h8300*-*-*)
9863d716 3799 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3800 ;;
3801 h8500-*-*)
b2f14e4a 3802 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3803 ;;
caeba88f 3804 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3805 ;;
5569a85f
JDA
3806 hppa*64*-*-hpux*)
3807 noconfigdirs="$noconfigdirs gdb"
3808 ;;
3809 hppa*-*-hpux11*)
3810 noconfigdirs="$noconfigdirs gdb ld"
3811 ;;
93cc359e 3812 hppa*64*-*-linux*)
a0da8069 3813 ;;
f0ff0f90 3814 hppa*-*-linux*)
5dcac624 3815 ;;
a0da8069 3816 hppa*-*-*elf* | \
a0da8069
NN
3817 hppa*-*-lites* | \
3818 hppa*-*-openbsd* | \
3819 hppa*64*-*-*)
4f0ef2d8 3820 ;;
691bb5a1 3821 hppa*-*-pro*)
691bb5a1 3822 ;;
a0da8069 3823 hppa*-*-*)
9863d716 3824 noconfigdirs="$noconfigdirs ld"
a0da8069 3825 ;;
b07c2aad 3826 i960-*-*)
b2f14e4a 3827 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3828 ;;
a0da8069
NN
3829 ia64*-*-elf*)
3830 # No gdb support yet.
0377a422 3831 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3832 ;;
3833 ia64*-**-hpux*)
92c9a463 3834 # No ld support yet.
5569a85f 3835 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
a0da8069 3836 ;;
19e99079 3837 ia64*-*-*vms*)
7ec59b9e
L
3838 # No ld support yet.
3839 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3840 ;;
1f53ca9a 3841 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3842 ;;
3843 i[3456789]86-*-mingw*)
45055374 3844 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3845 ;;
a0da8069
NN
3846 *-*-cygwin*)
3847 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3848 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3849 # always build newlib if winsup directory is present.
45055374 3850 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3851 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3852 elif test -d "$srcdir/newlib"; then
45055374 3853 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3854 fi
c6b750e1 3855 ;;
ec11bdc6 3856 i[3456789]86-*-pe)
782cb41f 3857 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3858 ;;
ec11bdc6 3859 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3860 # The linker does not yet know about weak symbols in COFF,
3861 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3862 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3863 ;;
ec11bdc6 3864 i[3456789]86-*-sco*)
b2f14e4a 3865 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3866 ;;
cff32a7c 3867 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3868 noconfigdirs="$noconfigdirs target-libgloss"
3869 ;;
ec11bdc6 3870 i[3456789]86-*-sysv4*)
b2f14e4a 3871 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3872 ;;
ec11bdc6 3873 i[3456789]86-*-beos*)
c7e4b184 3874 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3875 ;;
b59bea8a 3876 i[3456789]86-*-rdos*)
c7e4b184 3877 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3878 ;;
a0da8069 3879 mmix-*-*)
9863d716 3880 noconfigdirs="$noconfigdirs gdb"
a0da8069 3881 ;;
4970f871 3882 mt-*-*)
cdb9b172
AH
3883 noconfigdirs="$noconfigdirs sim"
3884 ;;
a0da8069
NN
3885 powerpc-*-aix*)
3886 # copied from rs6000-*-* entry
c7e4b184 3887 noconfigdirs="$noconfigdirs gprof"
a0da8069 3888 ;;
93cc359e 3889 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3890 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3891 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3892 # always build newlib.
3893 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3894 ;;
3895 # This is temporary until we can link against shared libraries
3896 powerpcle-*-solaris*)
b2f14e4a 3897 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3898 ;;
3899 powerpc-*-beos*)
c7e4b184 3900 noconfigdirs="$noconfigdirs gdb"
a0da8069 3901 ;;
a0da8069 3902 rs6000-*-lynxos*)
c7e4b184 3903 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3904 ;;
3905 rs6000-*-aix*)
c7e4b184 3906 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3907 ;;
3908 rs6000-*-*)
9863d716 3909 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3910 ;;
3911 m68k-apollo-*)
b2f14e4a 3912 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3913 ;;
25a07265 3914 microblaze*)
9863d716 3915 noconfigdirs="$noconfigdirs gprof"
25a07265 3916 ;;
a9d58c06 3917 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
3918 if test x$with_newlib = xyes; then
3919 noconfigdirs="$noconfigdirs gprof"
3920 fi
5bd8be13 3921 ;;
a0da8069 3922 mips*-*-irix5*)
b2f14e4a 3923 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3924 ;;
3925 mips*-*-irix6*)
9863d716 3926 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3927 ;;
a0da8069 3928 mips*-*-bsd*)
e8044f35 3929 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3930 ;;
a0da8069 3931 mips*-*-linux*)
a0da8069 3932 ;;
e8044f35
RS
3933 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3934 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3935 noconfigdirs="$noconfigdirs ld gas gprof"
3936 ;;
a0da8069 3937 mips*-*-*)
9863d716 3938 noconfigdirs="$noconfigdirs gprof"
a0da8069 3939 ;;
1b6c0831 3940 nvptx*-*-*)
1b6c0831
L
3941 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3942 ;;
cfbc1a6c
JS
3943 or1k*-*-*)
3944 noconfigdirs="$noconfigdirs gdb"
3945 ;;
dbf85af7 3946 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3947 case "${target}" in
3948 sh*-*-elf)
9863d716 3949 ;;
e8a5fa9c 3950 *)
9863d716 3951 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3952 esac
a0da8069 3953 ;;
a0da8069 3954 sparc-*-sunos4*)
c7e4b184 3955 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3956 use_gnu_ld=no
3957 fi
3958 ;;
619a3713 3959 tic6x-*-*)
40ae9136 3960 noconfigdirs="$noconfigdirs sim"
619a3713 3961 ;;
9abdce70 3962 tilegx*-*-*)
eb4b2452
NC
3963 noconfigdirs="$noconfigdirs sim"
3964 ;;
9abdce70
WL
3965 tilepro*-*-*)
3966 noconfigdirs="$noconfigdirs gdb sim"
3967 ;;
a0da8069 3968 v810-*-*)
b2f14e4a 3969 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3970 ;;
3971 vax-*-*)
9863d716 3972 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3973 ;;
a0da8069 3974esac
252b5132 3975
a0da8069
NN
3976# If we aren't building newlib, then don't build libgloss, since libgloss
3977# depends upon some newlib header files.
3978case "${noconfigdirs}" in
3979 *target-libgloss*) ;;
3980 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3981esac
3982
a0da8069 3983# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3984host_makefile_frag=/dev/null
3985if test -d ${srcdir}/config ; then
3986case "${host}" in
ec11bdc6 3987 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3988 host_makefile_frag="config/mh-djgpp"
3989 ;;
3990 *-cygwin*)
e33b51a6 3991
81ecdfbb
RW
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3993$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3994echo a >cygwin-cat-check
1f53ca9a 3995if test `cat cygwin-cat-check` = a ; then
8ade07e9 3996 rm cygwin-cat-check
81ecdfbb
RW
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3998$as_echo "yes" >&6; }
e33b51a6 3999else
8ade07e9 4000 rm cygwin-cat-check
81ecdfbb
RW
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002$as_echo "no" >&6; }
4003 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
4004 Please either mount the build directory in binary mode or run the following
4005 commands before running any configure script:
4006set -o igncr
4007export SHELLOPTS
81ecdfbb 4008 " "$LINENO" 5
e33b51a6 4009fi
e33b51a6 4010
a0da8069
NN
4011 host_makefile_frag="config/mh-cygwin"
4012 ;;
8a1599ab 4013 *-mingw*)
84e7906e 4014 host_makefile_frag="config/mh-mingw"
2d1e8239 4015 ;;
ce6c656d
L
4016 alpha*-linux*)
4017 host_makefile_frag="config/mh-alpha-linux"
4018 ;;
da888c87 4019 hppa*-hp-hpux10*)
da888c87 4020 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 4021 ;;
3516a403 4022 hppa*-hp-hpux*)
da888c87
PB
4023 host_makefile_frag="config/mh-pa"
4024 ;;
4025 hppa*-*)
4026 host_makefile_frag="config/mh-pa"
4027 ;;
e552509b
ILT
4028 *-*-darwin*)
4029 host_makefile_frag="config/mh-darwin"
0df3d27f 4030 ;;
f6d183c0
PB
4031 powerpc-*-aix*)
4032 host_makefile_frag="config/mh-ppc-aix"
4033 ;;
4034 rs6000-*-aix*)
4035 host_makefile_frag="config/mh-ppc-aix"
4036 ;;
a0da8069
NN
4037esac
4038fi
4039
9e07f89d 4040if test "${build}" != "${host}" ; then
1576798e
PB
4041 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4042 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 4043 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
4044 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4045 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4046 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 4047 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
4048 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4049 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4050 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4051 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4052 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4053 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4054else
4055 AR_FOR_BUILD="\$(AR)"
4056 AS_FOR_BUILD="\$(AS)"
512b7dfb 4057 CC_FOR_BUILD="\$(CC)"
1576798e
PB
4058 CXX_FOR_BUILD="\$(CXX)"
4059 GCJ_FOR_BUILD="\$(GCJ)"
4060 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 4061 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
4062 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4063 LD_FOR_BUILD="\$(LD)"
4064 NM_FOR_BUILD="\$(NM)"
4065 RANLIB_FOR_BUILD="\$(RANLIB)"
4066 WINDRES_FOR_BUILD="\$(WINDRES)"
4067 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
4068fi
4069
4070ac_ext=c
c6b750e1
DJ
4071ac_cpp='$CPP $CPPFLAGS'
4072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075if test -n "$ac_tool_prefix"; then
4076 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4077set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079$as_echo_n "checking for $ac_word... " >&6; }
4080if test "${ac_cv_prog_CC+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4082else
4083 if test -n "$CC"; then
4084 ac_cv_prog_CC="$CC" # Let the user override the test.
4085else
4086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087for as_dir in $PATH
4088do
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4093 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4095 break 2
4096 fi
4097done
81ecdfbb
RW
4098 done
4099IFS=$as_save_IFS
c6b750e1
DJ
4100
4101fi
4102fi
4103CC=$ac_cv_prog_CC
4104if test -n "$CC"; then
81ecdfbb
RW
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4106$as_echo "$CC" >&6; }
c6b750e1 4107else
81ecdfbb
RW
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109$as_echo "no" >&6; }
c6b750e1
DJ
4110fi
4111
81ecdfbb 4112
c6b750e1
DJ
4113fi
4114if test -z "$ac_cv_prog_CC"; then
4115 ac_ct_CC=$CC
6a9cf61e 4116 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4117set dummy gcc; ac_word=$2
81ecdfbb
RW
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119$as_echo_n "checking for $ac_word... " >&6; }
4120if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4121 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4122else
4123 if test -n "$ac_ct_CC"; then
4124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4125else
4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4133 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4135 break 2
4136 fi
4137done
81ecdfbb
RW
4138 done
4139IFS=$as_save_IFS
c6b750e1
DJ
4140
4141fi
4142fi
4143ac_ct_CC=$ac_cv_prog_ac_ct_CC
4144if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4146$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4147else
81ecdfbb
RW
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149$as_echo "no" >&6; }
c6b750e1
DJ
4150fi
4151
81ecdfbb
RW
4152 if test "x$ac_ct_CC" = x; then
4153 CC=""
4154 else
4155 case $cross_compiling:$ac_tool_warned in
4156yes:)
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4159ac_tool_warned=yes ;;
4160esac
4161 CC=$ac_ct_CC
4162 fi
c6b750e1
DJ
4163else
4164 CC="$ac_cv_prog_CC"
4165fi
4166
4167if test -z "$CC"; then
81ecdfbb
RW
4168 if test -n "$ac_tool_prefix"; then
4169 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4170set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172$as_echo_n "checking for $ac_word... " >&6; }
4173if test "${ac_cv_prog_CC+set}" = set; then :
4174 $as_echo_n "(cached) " >&6
9e07f89d
NN
4175else
4176 if test -n "$CC"; then
4177 ac_cv_prog_CC="$CC" # Let the user override the test.
4178else
c6b750e1
DJ
4179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180for as_dir in $PATH
4181do
4182 IFS=$as_save_IFS
4183 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4186 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4188 break 2
4189 fi
4190done
81ecdfbb
RW
4191 done
4192IFS=$as_save_IFS
c6b750e1 4193
9e07f89d
NN
4194fi
4195fi
c6b750e1 4196CC=$ac_cv_prog_CC
9e07f89d 4197if test -n "$CC"; then
81ecdfbb
RW
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4199$as_echo "$CC" >&6; }
c6b750e1 4200else
81ecdfbb
RW
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202$as_echo "no" >&6; }
c6b750e1
DJ
4203fi
4204
c6b750e1 4205
81ecdfbb 4206 fi
c6b750e1 4207fi
9e07f89d
NN
4208if test -z "$CC"; then
4209 # Extract the first word of "cc", so it can be a program name with args.
4210set dummy cc; ac_word=$2
81ecdfbb
RW
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212$as_echo_n "checking for $ac_word... " >&6; }
4213if test "${ac_cv_prog_CC+set}" = set; then :
4214 $as_echo_n "(cached) " >&6
9e07f89d
NN
4215else
4216 if test -n "$CC"; then
4217 ac_cv_prog_CC="$CC" # Let the user override the test.
4218else
9e07f89d 4219 ac_prog_rejected=no
c6b750e1
DJ
4220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
4227 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4228 ac_prog_rejected=yes
4229 continue
4230 fi
4231 ac_cv_prog_CC="cc"
81ecdfbb 4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4233 break 2
4234 fi
4235done
81ecdfbb
RW
4236 done
4237IFS=$as_save_IFS
c6b750e1 4238
9e07f89d
NN
4239if test $ac_prog_rejected = yes; then
4240 # We found a bogon in the path, so make sure we never use it.
4241 set dummy $ac_cv_prog_CC
4242 shift
c6b750e1 4243 if test $# != 0; then
9e07f89d
NN
4244 # We chose a different compiler from the bogus one.
4245 # However, it has the same basename, so the bogon will be chosen
4246 # first if we set CC to just the basename; use the full file name.
4247 shift
c6b750e1 4248 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4249 fi
4250fi
4251fi
4252fi
c6b750e1 4253CC=$ac_cv_prog_CC
9e07f89d 4254if test -n "$CC"; then
81ecdfbb
RW
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4256$as_echo "$CC" >&6; }
9e07f89d 4257else
81ecdfbb
RW
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259$as_echo "no" >&6; }
9e07f89d
NN
4260fi
4261
81ecdfbb 4262
c6b750e1
DJ
4263fi
4264if test -z "$CC"; then
4265 if test -n "$ac_tool_prefix"; then
81ecdfbb 4266 for ac_prog in cl.exe
c6b750e1
DJ
4267 do
4268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4269set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271$as_echo_n "checking for $ac_word... " >&6; }
4272if test "${ac_cv_prog_CC+set}" = set; then :
4273 $as_echo_n "(cached) " >&6
9e07f89d
NN
4274else
4275 if test -n "$CC"; then
4276 ac_cv_prog_CC="$CC" # Let the user override the test.
4277else
c6b750e1
DJ
4278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH
4280do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4285 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4287 break 2
376a0e54 4288 fi
c6b750e1 4289done
81ecdfbb
RW
4290 done
4291IFS=$as_save_IFS
cac3d6c4 4292
c6b750e1
DJ
4293fi
4294fi
4295CC=$ac_cv_prog_CC
4296if test -n "$CC"; then
81ecdfbb
RW
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4298$as_echo "$CC" >&6; }
cac3d6c4 4299else
81ecdfbb
RW
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301$as_echo "no" >&6; }
9e07f89d 4302fi
cac3d6c4 4303
81ecdfbb 4304
c6b750e1
DJ
4305 test -n "$CC" && break
4306 done
cac3d6c4 4307fi
c6b750e1
DJ
4308if test -z "$CC"; then
4309 ac_ct_CC=$CC
81ecdfbb 4310 for ac_prog in cl.exe
c6b750e1
DJ
4311do
4312 # Extract the first word of "$ac_prog", so it can be a program name with args.
4313set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315$as_echo_n "checking for $ac_word... " >&6; }
4316if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4317 $as_echo_n "(cached) " >&6
cac3d6c4 4318else
c6b750e1
DJ
4319 if test -n "$ac_ct_CC"; then
4320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4321else
c6b750e1
DJ
4322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323for as_dir in $PATH
4324do
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4329 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4331 break 2
4332 fi
4333done
81ecdfbb
RW
4334 done
4335IFS=$as_save_IFS
c6b750e1 4336
cac3d6c4
CM
4337fi
4338fi
c6b750e1
DJ
4339ac_ct_CC=$ac_cv_prog_ac_ct_CC
4340if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4342$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4343else
81ecdfbb
RW
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345$as_echo "no" >&6; }
cac3d6c4 4346fi
376a0e54 4347
81ecdfbb 4348
c6b750e1
DJ
4349 test -n "$ac_ct_CC" && break
4350done
4351
81ecdfbb
RW
4352 if test "x$ac_ct_CC" = x; then
4353 CC=""
4354 else
4355 case $cross_compiling:$ac_tool_warned in
4356yes:)
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4359ac_tool_warned=yes ;;
4360esac
4361 CC=$ac_ct_CC
4362 fi
c6b750e1
DJ
4363fi
4364
4365fi
4366
4367
81ecdfbb
RW
4368test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4370as_fn_error "no acceptable C compiler found in \$PATH
4371See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4372
4373# Provide some information about the compiler.
81ecdfbb
RW
4374$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4375set X $ac_compile
4376ac_compiler=$2
4377for ac_option in --version -v -V -qversion; do
4378 { { ac_try="$ac_compiler $ac_option >&5"
4379case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382esac
4383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384$as_echo "$ac_try_echo"; } >&5
4385 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4386 ac_status=$?
81ecdfbb
RW
4387 if test -s conftest.err; then
4388 sed '10a\
4389... rest of stderr output deleted ...
4390 10q' conftest.err >conftest.er1
4391 cat conftest.er1 >&5
4392 rm -f conftest.er1 conftest.err
4393 fi
4394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395 test $ac_status = 0; }
4396done
c6b750e1 4397
81ecdfbb 4398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4399/* end confdefs.h. */
4400
4401int
4402main ()
4403{
4404
4405 ;
4406 return 0;
4407}
4408_ACEOF
4409ac_clean_files_save=$ac_clean_files
81ecdfbb 4410ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4411# Try to create an executable without -o first, disregard a.out.
4412# It will help us diagnose broken compilers, and finding out an intuition
4413# of exeext.
81ecdfbb
RW
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4415$as_echo_n "checking for C compiler default output file name... " >&6; }
4416ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4417
4418# The possible output files:
4419ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4420
4421ac_rmfiles=
4422for ac_file in $ac_files
4423do
4424 case $ac_file in
4425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4426 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4427 esac
4428done
4429rm -f $ac_rmfiles
4430
4431if { { ac_try="$ac_link_default"
4432case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435esac
4436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437$as_echo "$ac_try_echo"; } >&5
4438 (eval "$ac_link_default") 2>&5
c6b750e1 4439 ac_status=$?
81ecdfbb
RW
4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; }; then :
4442 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4443# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4444# in a Makefile. We should not override ac_cv_exeext if it was cached,
4445# so that the user can short-circuit this test for compilers unknown to
4446# Autoconf.
4447for ac_file in $ac_files ''
c6b750e1
DJ
4448do
4449 test -f "$ac_file" || continue
4450 case $ac_file in
81ecdfbb 4451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4452 ;;
4453 [ab].out )
4454 # We found the default executable, but exeext='' is most
4455 # certainly right.
4456 break;;
4457 *.* )
81ecdfbb
RW
4458 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4459 then :; else
4460 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4461 fi
4462 # We set ac_cv_exeext here because the later test for it is not
4463 # safe: cross compilers may not add the suffix if given an `-o'
4464 # argument, so we may need to know it at that point already.
4465 # Even if this section looks crufty: it has the advantage of
4466 # actually working.
c6b750e1
DJ
4467 break;;
4468 * )
4469 break;;
4470 esac
4471done
81ecdfbb
RW
4472test "$ac_cv_exeext" = no && ac_cv_exeext=
4473
c6b750e1 4474else
81ecdfbb
RW
4475 ac_file=''
4476fi
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4478$as_echo "$ac_file" >&6; }
4479if test -z "$ac_file"; then :
4480 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4481sed 's/^/| /' conftest.$ac_ext >&5
4482
81ecdfbb
RW
4483{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4485{ as_fn_set_status 77
4486as_fn_error "C compiler cannot create executables
4487See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4488fi
c6b750e1 4489ac_exeext=$ac_cv_exeext
c6b750e1 4490
81ecdfbb 4491# Check that the compiler produces executables we can run. If not, either
c6b750e1 4492# the compiler is broken, or we cross compile.
81ecdfbb
RW
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4494$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4495# If not cross compiling, check that we can run a simple program.
4496if test "$cross_compiling" != yes; then
4497 if { ac_try='./$ac_file'
81ecdfbb
RW
4498 { { case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501esac
4502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503$as_echo "$ac_try_echo"; } >&5
4504 (eval "$ac_try") 2>&5
c6b750e1 4505 ac_status=$?
81ecdfbb
RW
4506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4507 test $ac_status = 0; }; }; then
c6b750e1
DJ
4508 cross_compiling=no
4509 else
4510 if test "$cross_compiling" = maybe; then
4511 cross_compiling=yes
4512 else
81ecdfbb
RW
4513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4515as_fn_error "cannot run C compiled programs.
c6b750e1 4516If you meant to cross compile, use \`--host'.
81ecdfbb 4517See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4518 fi
4519 fi
4520fi
81ecdfbb
RW
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4522$as_echo "yes" >&6; }
c6b750e1 4523
81ecdfbb 4524rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4525ac_clean_files=$ac_clean_files_save
81ecdfbb 4526# Check that the compiler produces executables we can run. If not, either
c6b750e1 4527# the compiler is broken, or we cross compile.
81ecdfbb
RW
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4529$as_echo_n "checking whether we are cross compiling... " >&6; }
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4531$as_echo "$cross_compiling" >&6; }
4532
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4534$as_echo_n "checking for suffix of executables... " >&6; }
4535if { { ac_try="$ac_link"
4536case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539esac
4540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4541$as_echo "$ac_try_echo"; } >&5
4542 (eval "$ac_link") 2>&5
c6b750e1 4543 ac_status=$?
81ecdfbb
RW
4544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4545 test $ac_status = 0; }; then :
c6b750e1
DJ
4546 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4547# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4548# work properly (i.e., refer to `conftest.exe'), while it won't with
4549# `rm'.
4550for ac_file in conftest.exe conftest conftest.*; do
4551 test -f "$ac_file" || continue
4552 case $ac_file in
81ecdfbb 4553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4554 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4555 break;;
4556 * ) break;;
4557 esac
4558done
4559else
81ecdfbb
RW
4560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4562as_fn_error "cannot compute suffix of executables: cannot compile and link
4563See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4564fi
c6b750e1 4565rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4567$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4568
4569rm -f conftest.$ac_ext
4570EXEEXT=$ac_cv_exeext
4571ac_exeext=$EXEEXT
81ecdfbb
RW
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4573$as_echo_n "checking for suffix of object files... " >&6; }
4574if test "${ac_cv_objext+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
c6b750e1 4576else
81ecdfbb 4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4578/* end confdefs.h. */
4579
4580int
4581main ()
4582{
4583
4584 ;
4585 return 0;
4586}
4587_ACEOF
4588rm -f conftest.o conftest.obj
81ecdfbb
RW
4589if { { ac_try="$ac_compile"
4590case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593esac
4594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4595$as_echo "$ac_try_echo"; } >&5
4596 (eval "$ac_compile") 2>&5
c6b750e1 4597 ac_status=$?
81ecdfbb
RW
4598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4599 test $ac_status = 0; }; then :
4600 for ac_file in conftest.o conftest.obj conftest.*; do
4601 test -f "$ac_file" || continue;
c6b750e1 4602 case $ac_file in
81ecdfbb 4603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4604 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4605 break;;
4606 esac
4607done
cac3d6c4 4608else
81ecdfbb 4609 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4610sed 's/^/| /' conftest.$ac_ext >&5
4611
81ecdfbb
RW
4612{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4614as_fn_error "cannot compute suffix of object files: cannot compile
4615See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4616fi
c6b750e1
DJ
4617rm -f conftest.$ac_cv_objext conftest.$ac_ext
4618fi
81ecdfbb
RW
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4620$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4621OBJEXT=$ac_cv_objext
4622ac_objext=$OBJEXT
81ecdfbb
RW
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4624$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4625if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
c6b750e1 4627else
81ecdfbb 4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4629/* end confdefs.h. */
4630
4631int
4632main ()
4633{
4634#ifndef __GNUC__
4635 choke me
4636#endif
4637
4638 ;
4639 return 0;
4640}
4641_ACEOF
81ecdfbb 4642if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4643 ac_compiler_gnu=yes
4644else
81ecdfbb 4645 ac_compiler_gnu=no
c6b750e1 4646fi
81ecdfbb 4647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4648ac_cv_c_compiler_gnu=$ac_compiler_gnu
4649
4650fi
81ecdfbb
RW
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4652$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4653if test $ac_compiler_gnu = yes; then
4654 GCC=yes
4655else
4656 GCC=
4657fi
c6b750e1
DJ
4658ac_test_CFLAGS=${CFLAGS+set}
4659ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4661$as_echo_n "checking whether $CC accepts -g... " >&6; }
4662if test "${ac_cv_prog_cc_g+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4664else
4665 ac_save_c_werror_flag=$ac_c_werror_flag
4666 ac_c_werror_flag=yes
4667 ac_cv_prog_cc_g=no
4668 CFLAGS="-g"
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4670/* end confdefs.h. */
4671
4672int
4673main ()
4674{
4675
4676 ;
4677 return 0;
4678}
4679_ACEOF
81ecdfbb 4680if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4681 ac_cv_prog_cc_g=yes
4682else
81ecdfbb
RW
4683 CFLAGS=""
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685/* end confdefs.h. */
4686
4687int
4688main ()
4689{
4690
4691 ;
4692 return 0;
4693}
4694_ACEOF
4695if ac_fn_c_try_compile "$LINENO"; then :
4696
4697else
4698 ac_c_werror_flag=$ac_save_c_werror_flag
4699 CFLAGS="-g"
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701/* end confdefs.h. */
cac3d6c4 4702
81ecdfbb
RW
4703int
4704main ()
4705{
4706
4707 ;
4708 return 0;
4709}
4710_ACEOF
4711if ac_fn_c_try_compile "$LINENO"; then :
4712 ac_cv_prog_cc_g=yes
4713fi
4714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4715fi
81ecdfbb 4716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4717fi
81ecdfbb
RW
4718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 ac_c_werror_flag=$ac_save_c_werror_flag
4720fi
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4722$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4723if test "$ac_test_CFLAGS" = set; then
c6b750e1 4724 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4725elif test $ac_cv_prog_cc_g = yes; then
4726 if test "$GCC" = yes; then
4727 CFLAGS="-g -O2"
4728 else
4729 CFLAGS="-g"
4730 fi
4731else
4732 if test "$GCC" = yes; then
4733 CFLAGS="-O2"
4734 else
4735 CFLAGS=
4736 fi
4737fi
81ecdfbb
RW
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4739$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4740if test "${ac_cv_prog_cc_c89+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
c6b750e1 4742else
81ecdfbb 4743 ac_cv_prog_cc_c89=no
c6b750e1 4744ac_save_CC=$CC
81ecdfbb 4745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4746/* end confdefs.h. */
4747#include <stdarg.h>
4748#include <stdio.h>
4749#include <sys/types.h>
4750#include <sys/stat.h>
4751/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4752struct buf { int x; };
4753FILE * (*rcsopen) (struct buf *, struct stat *, int);
4754static char *e (p, i)
4755 char **p;
4756 int i;
4757{
4758 return p[i];
4759}
4760static char *f (char * (*g) (char **, int), char **p, ...)
4761{
4762 char *s;
4763 va_list v;
4764 va_start (v,p);
4765 s = g (p, va_arg (v,int));
4766 va_end (v);
4767 return s;
4768}
4769
4770/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4771 function prototypes and stuff, but not '\xHH' hex character constants.
4772 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4773 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4774 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4775 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4776 that's true only with -std. */
c6b750e1
DJ
4777int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4778
81ecdfbb
RW
4779/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4780 inside strings and character constants. */
4781#define FOO(x) 'x'
4782int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4783
c6b750e1
DJ
4784int test (int i, double x);
4785struct s1 {int (*f) (int a);};
4786struct s2 {int (*f) (double a);};
4787int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4788int argc;
4789char **argv;
4790int
4791main ()
4792{
4793return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4794 ;
4795 return 0;
4796}
4797_ACEOF
81ecdfbb
RW
4798for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4799 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4800do
4801 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4802 if ac_fn_c_try_compile "$LINENO"; then :
4803 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4804fi
81ecdfbb
RW
4805rm -f core conftest.err conftest.$ac_objext
4806 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4807done
81ecdfbb 4808rm -f conftest.$ac_ext
c6b750e1
DJ
4809CC=$ac_save_CC
4810
4811fi
81ecdfbb
RW
4812# AC_CACHE_VAL
4813case "x$ac_cv_prog_cc_c89" in
4814 x)
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4816$as_echo "none needed" >&6; } ;;
4817 xno)
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4819$as_echo "unsupported" >&6; } ;;
c6b750e1 4820 *)
81ecdfbb
RW
4821 CC="$CC $ac_cv_prog_cc_c89"
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4823$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4824esac
81ecdfbb 4825if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4826
c6b750e1
DJ
4827fi
4828
c6b750e1
DJ
4829ac_ext=c
4830ac_cpp='$CPP $CPPFLAGS'
4831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4834
81ecdfbb 4835ac_ext=cpp
18f6b6ee
PB
4836ac_cpp='$CXXCPP $CPPFLAGS'
4837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4840if test -z "$CXX"; then
4841 if test -n "$CCC"; then
4842 CXX=$CCC
4843 else
4844 if test -n "$ac_tool_prefix"; then
4845 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4846 do
4847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4848set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850$as_echo_n "checking for $ac_word... " >&6; }
4851if test "${ac_cv_prog_CXX+set}" = set; then :
4852 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4853else
4854 if test -n "$CXX"; then
4855 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4856else
4857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH
4859do
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4864 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4866 break 2
4867 fi
4868done
81ecdfbb
RW
4869 done
4870IFS=$as_save_IFS
512b7dfb 4871
18f6b6ee
PB
4872fi
4873fi
4874CXX=$ac_cv_prog_CXX
4875if test -n "$CXX"; then
81ecdfbb
RW
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4877$as_echo "$CXX" >&6; }
18f6b6ee 4878else
81ecdfbb
RW
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880$as_echo "no" >&6; }
18f6b6ee
PB
4881fi
4882
81ecdfbb 4883
18f6b6ee
PB
4884 test -n "$CXX" && break
4885 done
4886fi
4887if test -z "$CXX"; then
4888 ac_ct_CXX=$CXX
81ecdfbb 4889 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4890do
4891 # Extract the first word of "$ac_prog", so it can be a program name with args.
4892set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894$as_echo_n "checking for $ac_word... " >&6; }
4895if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4897else
4898 if test -n "$ac_ct_CXX"; then
4899 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4900else
4901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4908 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4910 break 2
512b7dfb 4911 fi
18f6b6ee 4912done
81ecdfbb
RW
4913 done
4914IFS=$as_save_IFS
512b7dfb 4915
18f6b6ee
PB
4916fi
4917fi
4918ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4919if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4921$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4922else
81ecdfbb
RW
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924$as_echo "no" >&6; }
18f6b6ee
PB
4925fi
4926
81ecdfbb 4927
18f6b6ee
PB
4928 test -n "$ac_ct_CXX" && break
4929done
18f6b6ee 4930
81ecdfbb
RW
4931 if test "x$ac_ct_CXX" = x; then
4932 CXX="g++"
4933 else
4934 case $cross_compiling:$ac_tool_warned in
4935yes:)
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4938ac_tool_warned=yes ;;
4939esac
4940 CXX=$ac_ct_CXX
4941 fi
18f6b6ee
PB
4942fi
4943
81ecdfbb
RW
4944 fi
4945fi
18f6b6ee 4946# Provide some information about the compiler.
81ecdfbb
RW
4947$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4948set X $ac_compile
4949ac_compiler=$2
4950for ac_option in --version -v -V -qversion; do
4951 { { ac_try="$ac_compiler $ac_option >&5"
4952case "(($ac_try" in
4953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954 *) ac_try_echo=$ac_try;;
4955esac
4956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4957$as_echo "$ac_try_echo"; } >&5
4958 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4959 ac_status=$?
81ecdfbb
RW
4960 if test -s conftest.err; then
4961 sed '10a\
4962... rest of stderr output deleted ...
4963 10q' conftest.err >conftest.er1
4964 cat conftest.er1 >&5
4965 rm -f conftest.er1 conftest.err
4966 fi
4967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4968 test $ac_status = 0; }
4969done
18f6b6ee 4970
81ecdfbb
RW
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4972$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4973if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
18f6b6ee 4975else
81ecdfbb 4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4977/* end confdefs.h. */
4978
4979int
4980main ()
4981{
4982#ifndef __GNUC__
4983 choke me
4984#endif
4985
4986 ;
4987 return 0;
4988}
4989_ACEOF
81ecdfbb 4990if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4991 ac_compiler_gnu=yes
4992else
81ecdfbb 4993 ac_compiler_gnu=no
18f6b6ee 4994fi
81ecdfbb 4995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4996ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4997
4998fi
81ecdfbb
RW
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5000$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5001if test $ac_compiler_gnu = yes; then
5002 GXX=yes
5003else
5004 GXX=
5005fi
18f6b6ee
PB
5006ac_test_CXXFLAGS=${CXXFLAGS+set}
5007ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5009$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5010if test "${ac_cv_prog_cxx_g+set}" = set; then :
5011 $as_echo_n "(cached) " >&6
5012else
5013 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5014 ac_cxx_werror_flag=yes
5015 ac_cv_prog_cxx_g=no
5016 CXXFLAGS="-g"
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
5018/* end confdefs.h. */
5019
5020int
5021main ()
5022{
5023
5024 ;
5025 return 0;
5026}
5027_ACEOF
81ecdfbb 5028if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5029 ac_cv_prog_cxx_g=yes
5030else
81ecdfbb
RW
5031 CXXFLAGS=""
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5033/* end confdefs.h. */
81ecdfbb 5034
18f6b6ee
PB
5035int
5036main ()
5037{
81ecdfbb 5038
18f6b6ee
PB
5039 ;
5040 return 0;
5041}
5042_ACEOF
81ecdfbb 5043if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 5044
81ecdfbb
RW
5045else
5046 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5047 CXXFLAGS="-g"
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5049/* end confdefs.h. */
81ecdfbb 5050
18f6b6ee
PB
5051int
5052main ()
5053{
81ecdfbb 5054
18f6b6ee
PB
5055 ;
5056 return 0;
5057}
5058_ACEOF
81ecdfbb
RW
5059if ac_fn_cxx_try_compile "$LINENO"; then :
5060 ac_cv_prog_cxx_g=yes
18f6b6ee 5061fi
81ecdfbb
RW
5062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5063fi
5064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065fi
5066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5068fi
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5070$as_echo "$ac_cv_prog_cxx_g" >&6; }
5071if test "$ac_test_CXXFLAGS" = set; then
5072 CXXFLAGS=$ac_save_CXXFLAGS
5073elif test $ac_cv_prog_cxx_g = yes; then
5074 if test "$GXX" = yes; then
5075 CXXFLAGS="-g -O2"
5076 else
5077 CXXFLAGS="-g"
5078 fi
5079else
5080 if test "$GXX" = yes; then
5081 CXXFLAGS="-O2"
5082 else
5083 CXXFLAGS=
5084 fi
18f6b6ee 5085fi
18f6b6ee
PB
5086ac_ext=c
5087ac_cpp='$CPP $CPPFLAGS'
5088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091
5092
5093# We must set the default linker to the linker used by gcc for the correct
5094# operation of libtool. If LD is not defined and we are using gcc, try to
5095# set the LD default to the ld used by gcc.
5096if test -z "$LD"; then
5097 if test "$GCC" = yes; then
5098 case $build in
5099 *-*-mingw*)
5100 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5101 *)
5102 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5103 esac
5104 case $gcc_prog_ld in
5105 # Accept absolute paths.
5106 [\\/]* | [A-Za-z]:[\\/]*)
5107 LD="$gcc_prog_ld" ;;
5108 esac
5109 fi
512b7dfb
PB
5110fi
5111
b3676d82
EB
5112# Check whether -static-libstdc++ -static-libgcc is supported.
5113have_static_libs=no
5114if test "$GCC" = yes; then
5115 saved_LDFLAGS="$LDFLAGS"
5116
5117 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5119$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5120 ac_ext=cpp
5121ac_cpp='$CXXCPP $CPPFLAGS'
5122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5125
5126
5127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h. */
a882be68
EB
5129
5130#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5131#error -static-libstdc++ not implemented
5132#endif
b3676d82
EB
5133int main() {}
5134_ACEOF
5135if ac_fn_cxx_try_link "$LINENO"; then :
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5137$as_echo "yes" >&6; }; have_static_libs=yes
5138else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140$as_echo "no" >&6; }
5141fi
5142rm -f core conftest.err conftest.$ac_objext \
5143 conftest$ac_exeext conftest.$ac_ext
5144 ac_ext=c
5145ac_cpp='$CPP $CPPFLAGS'
5146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148ac_compiler_gnu=$ac_cv_c_compiler_gnu
5149
5150
5151 LDFLAGS="$saved_LDFLAGS"
5152fi
5153
512b7dfb
PB
5154
5155
5156
c6b750e1 5157if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5158 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5159set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161$as_echo_n "checking for $ac_word... " >&6; }
5162if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
9e07f89d 5164else
512b7dfb
PB
5165 if test -n "$GNATBIND"; then
5166 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5167else
c6b750e1
DJ
5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169for as_dir in $PATH
5170do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5175 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5177 break 2
5178 fi
5179done
81ecdfbb
RW
5180 done
5181IFS=$as_save_IFS
c6b750e1 5182
9e07f89d
NN
5183fi
5184fi
512b7dfb
PB
5185GNATBIND=$ac_cv_prog_GNATBIND
5186if test -n "$GNATBIND"; then
81ecdfbb
RW
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5188$as_echo "$GNATBIND" >&6; }
9e07f89d 5189else
81ecdfbb
RW
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191$as_echo "no" >&6; }
9e07f89d
NN
5192fi
5193
81ecdfbb 5194
c6b750e1 5195fi
512b7dfb
PB
5196if test -z "$ac_cv_prog_GNATBIND"; then
5197 ac_ct_GNATBIND=$GNATBIND
5198 # Extract the first word of "gnatbind", so it can be a program name with args.
5199set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201$as_echo_n "checking for $ac_word... " >&6; }
5202if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
9e07f89d 5204else
512b7dfb
PB
5205 if test -n "$ac_ct_GNATBIND"; then
5206 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5207else
c6b750e1
DJ
5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5215 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5217 break 2
5218 fi
5219done
81ecdfbb
RW
5220 done
5221IFS=$as_save_IFS
c6b750e1 5222
9e07f89d
NN
5223fi
5224fi
512b7dfb
PB
5225ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5226if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5228$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5229else
81ecdfbb
RW
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231$as_echo "no" >&6; }
9e07f89d
NN
5232fi
5233
81ecdfbb
RW
5234 if test "x$ac_ct_GNATBIND" = x; then
5235 GNATBIND="no"
5236 else
5237 case $cross_compiling:$ac_tool_warned in
5238yes:)
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5241ac_tool_warned=yes ;;
5242esac
5243 GNATBIND=$ac_ct_GNATBIND
5244 fi
24ff9987 5245else
512b7dfb 5246 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5247fi
5248
7df2cd5d 5249if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5250 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5251set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253$as_echo_n "checking for $ac_word... " >&6; }
5254if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
7df2cd5d 5256else
512b7dfb
PB
5257 if test -n "$GNATMAKE"; then
5258 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5259else
5260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261for as_dir in $PATH
5262do
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5267 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5269 break 2
5270 fi
5271done
81ecdfbb
RW
5272 done
5273IFS=$as_save_IFS
7df2cd5d
PB
5274
5275fi
5276fi
512b7dfb
PB
5277GNATMAKE=$ac_cv_prog_GNATMAKE
5278if test -n "$GNATMAKE"; then
81ecdfbb
RW
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5280$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5281else
81ecdfbb
RW
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283$as_echo "no" >&6; }
7df2cd5d
PB
5284fi
5285
81ecdfbb 5286
7df2cd5d 5287fi
512b7dfb
PB
5288if test -z "$ac_cv_prog_GNATMAKE"; then
5289 ac_ct_GNATMAKE=$GNATMAKE
5290 # Extract the first word of "gnatmake", so it can be a program name with args.
5291set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293$as_echo_n "checking for $ac_word... " >&6; }
5294if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5295 $as_echo_n "(cached) " >&6
7df2cd5d 5296else
512b7dfb
PB
5297 if test -n "$ac_ct_GNATMAKE"; then
5298 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5299else
5300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301for as_dir in $PATH
5302do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5307 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5309 break 2
5310 fi
5311done
81ecdfbb
RW
5312 done
5313IFS=$as_save_IFS
7df2cd5d 5314
7df2cd5d
PB
5315fi
5316fi
512b7dfb
PB
5317ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5318if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5320$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5321else
81ecdfbb
RW
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323$as_echo "no" >&6; }
7df2cd5d
PB
5324fi
5325
81ecdfbb
RW
5326 if test "x$ac_ct_GNATMAKE" = x; then
5327 GNATMAKE="no"
5328 else
5329 case $cross_compiling:$ac_tool_warned in
5330yes:)
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5333ac_tool_warned=yes ;;
5334esac
5335 GNATMAKE=$ac_ct_GNATMAKE
5336 fi
7df2cd5d 5337else
512b7dfb 5338 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5339fi
5340
81ecdfbb
RW
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5342$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5343if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
9e07f89d
NN
5345else
5346 cat >conftest.adb <<EOF
5347procedure conftest is begin null; end conftest;
5348EOF
5349acx_cv_cc_gcc_supports_ada=no
5350# There is a bug in old released versions of GCC which causes the
5351# driver to exit successfully when the appropriate language module
5352# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5353# Therefore we must check for the error message as well as an
5354# unsuccessful exit.
b8908782
DD
5355# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5356# given a .adb file, but produce no object file. So we must check
5357# if an object file was really produced to guard against this.
9e07f89d 5358errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5359if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5360 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5361fi
5362rm -f conftest.*
5363fi
81ecdfbb
RW
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5365$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5366
64b986c0 5367if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5368 have_gnat=yes
5369else
5370 have_gnat=no
5371fi
5372
81ecdfbb
RW
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5374$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5375if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5376 $as_echo_n "(cached) " >&6
b8908782
DD
5377else
5378 echo abfoo >t1
5379 echo cdfoo >t2
da17fe9d 5380 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5381 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5382 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5383 :
5384 else
5385 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5386 fi
5387 fi
b8908782
DD
5388 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5389 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5390 :
b8908782
DD
5391 else
5392 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5393 fi
5394 fi
5395 rm t1 t2
5396
5397fi
81ecdfbb
RW
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5399$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5400do_compare="$gcc_cv_prog_cmp_skip"
5401
5402
9e07f89d 5403
ffdd6afc
ILT
5404# Check whether --enable-bootstrap was given.
5405if test "${enable_bootstrap+set}" = set; then :
5406 enableval=$enable_bootstrap;
5407else
5408 enable_bootstrap=default
5409fi
5410
5411
5412# Issue errors and warnings for invalid/strange bootstrap combinations.
5413if test -r $srcdir/gcc/configure; then
5414 have_compiler=yes
5415else
5416 have_compiler=no
5417fi
5418
5419case "$have_compiler:$host:$target:$enable_bootstrap" in
5420 *:*:*:no) ;;
5421
5422 # Default behavior. Enable bootstrap if we have a compiler
5423 # and we are in a native configuration.
5424 yes:$build:$build:default)
5425 enable_bootstrap=yes ;;
5426
5427 *:*:*:default)
5428 enable_bootstrap=no ;;
5429
5430 # We have a compiler and we are in a native configuration, bootstrap is ok
5431 yes:$build:$build:yes)
5432 ;;
5433
5434 # Other configurations, but we have a compiler. Assume the user knows
5435 # what he's doing.
5436 yes:*:*:yes)
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5438$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5439 ;;
5440
5441 # No compiler: if they passed --enable-bootstrap explicitly, fail
5442 no:*:*:yes)
5443 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5444
5445 # Fail if wrong command line
5446 *)
5447 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5448 ;;
5449esac
5450
ce6c656d
L
5451# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5452# C++98 compiler can still start the bootstrap.
5453if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5454 CXX="$CXX -std=gnu++98"
5455fi
5456
d5f2ee2e
KG
5457# Used for setting $lt_cv_objdir
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5459$as_echo_n "checking for objdir... " >&6; }
5460if test "${lt_cv_objdir+set}" = set; then :
5461 $as_echo_n "(cached) " >&6
5462else
5463 rm -f .libs 2>/dev/null
5464mkdir .libs 2>/dev/null
5465if test -d .libs; then
5466 lt_cv_objdir=.libs
5467else
5468 # MS-DOS does not allow filenames that begin with a dot.
5469 lt_cv_objdir=_libs
5470fi
5471rmdir .libs 2>/dev/null
5472fi
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5474$as_echo "$lt_cv_objdir" >&6; }
5475objdir=$lt_cv_objdir
5476
5477
5478
5479
5480
5481cat >>confdefs.h <<_ACEOF
5482#define LT_OBJDIR "$lt_cv_objdir/"
5483_ACEOF
5484
5485
5486
e8a5fa9c 5487# Check for GMP, MPFR and MPC
d9b76ff9 5488gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5489gmpinc=
4b900473 5490have_gmp=no
e8a5fa9c
RW
5491
5492# Specify a location for mpc
5493# check for this first so it ends up on the link line before mpfr.
5494
81ecdfbb
RW
5495# Check whether --with-mpc was given.
5496if test "${with_mpc+set}" = set; then :
5497 withval=$with_mpc;
5498fi
e8a5fa9c 5499
e8a5fa9c 5500
e552509b 5501# Check whether --with-mpc-include was given.
81ecdfbb
RW
5502if test "${with_mpc_include+set}" = set; then :
5503 withval=$with_mpc_include;
5504fi
e8a5fa9c 5505
e8a5fa9c 5506
e552509b 5507# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5508if test "${with_mpc_lib+set}" = set; then :
5509 withval=$with_mpc_lib;
5510fi
e8a5fa9c 5511
e8a5fa9c
RW
5512
5513if test "x$with_mpc" != x; then
d9b76ff9
KG
5514 gmplibs="-L$with_mpc/lib $gmplibs"
5515 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5516fi
5517if test "x$with_mpc_include" != x; then
d9b76ff9 5518 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5519fi
5520if test "x$with_mpc_lib" != x; then
d9b76ff9 5521 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5522fi
5523if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5524 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5525 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5526 # Do not test the mpc version. Assume that it is sufficient, since
5527 # it is in the source tree, and the library has not been built yet
5528 # but it would be included on the link line in the version check below
5529 # hence making the test fail.
d9b76ff9 5530 have_gmp=yes
e8a5fa9c 5531fi
4b900473 5532
11b04d1f
DD
5533# Specify a location for mpfr
5534# check for this first so it ends up on the link line before gmp.
c6b750e1 5535
81ecdfbb
RW
5536# Check whether --with-mpfr-dir was given.
5537if test "${with_mpfr_dir+set}" = set; then :
5538 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5539Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5540fi
5541
11b04d1f
DD
5542
5543
81ecdfbb
RW
5544# Check whether --with-mpfr was given.
5545if test "${with_mpfr+set}" = set; then :
5546 withval=$with_mpfr;
5547fi
c6b750e1 5548
11b04d1f 5549
e552509b 5550# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5551if test "${with_mpfr_include+set}" = set; then :
5552 withval=$with_mpfr_include;
5553fi
c6b750e1 5554
8a0d8a5c 5555
e552509b 5556# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5557if test "${with_mpfr_lib+set}" = set; then :
5558 withval=$with_mpfr_lib;
5559fi
8a0d8a5c 5560
11b04d1f
DD
5561
5562if test "x$with_mpfr" != x; then
5563 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5564 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5565fi
8a0d8a5c 5566if test "x$with_mpfr_include" != x; then
d9b76ff9 5567 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5568fi
5569if test "x$with_mpfr_lib" != x; then
5570 gmplibs="-L$with_mpfr_lib $gmplibs"
5571fi
4b900473 5572if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21
NC
5573 # MPFR v3.1.0 moved the sources into a src sub-directory.
5574 if test -d ${srcdir}/mpfr/src; then
5575 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5576 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5577 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5578 else
5579 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5580 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5581 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5582 fi
4b900473
PB
5583 # Do not test the mpfr version. Assume that it is sufficient, since
5584 # it is in the source tree, and the library has not been built yet
5585 # but it would be included on the link line in the version check below
5586 # hence making the test fail.
5587 have_gmp=yes
5588fi
11b04d1f 5589
4b1cb4fe 5590# Specify a location for gmp
c6b750e1 5591
81ecdfbb
RW
5592# Check whether --with-gmp-dir was given.
5593if test "${with_gmp_dir+set}" = set; then :
5594 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5595Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5596fi
5597
4b1cb4fe
DD
5598
5599
81ecdfbb
RW
5600# Check whether --with-gmp was given.
5601if test "${with_gmp+set}" = set; then :
5602 withval=$with_gmp;
5603fi
c6b750e1 5604
4b1cb4fe 5605
e552509b 5606# Check whether --with-gmp-include was given.
81ecdfbb
RW
5607if test "${with_gmp_include+set}" = set; then :
5608 withval=$with_gmp_include;
5609fi
c6b750e1 5610
8a0d8a5c 5611
e552509b 5612# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5613if test "${with_gmp_lib+set}" = set; then :
5614 withval=$with_gmp_lib;
5615fi
8a0d8a5c
PB
5616
5617
4b1cb4fe 5618
11b04d1f
DD
5619if test "x$with_gmp" != x; then
5620 gmplibs="-L$with_gmp/lib $gmplibs"
5621 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5622fi
8a0d8a5c
PB
5623if test "x$with_gmp_include" != x; then
5624 gmpinc="-I$with_gmp_include $gmpinc"
5625fi
5626if test "x$with_gmp_lib" != x; then
5627 gmplibs="-L$with_gmp_lib $gmplibs"
5628fi
4b900473 5629if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5630 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5631 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5632 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5633 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5634 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5635 # Do not test the gmp version. Assume that it is sufficient, since
5636 # it is in the source tree, and the library has not been built yet
5637 # but it would be included on the link line in the version check below
5638 # hence making the test fail.
5639 have_gmp=yes
5640fi
4b1cb4fe 5641
ceb92e78 5642if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5643 have_gmp=yes
5644 saved_CFLAGS="$CFLAGS"
5645 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5646 # Check for the recommended and required versions of GMP.
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5648$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5649
5650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5651/* end confdefs.h. */
5652#include "gmp.h"
5653int
5654main ()
5655{
5656
5657 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5658 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5659 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5660 choke me
5661 #endif
5662
5663 ;
5664 return 0;
5665}
5666_ACEOF
5667if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5669/* end confdefs.h. */
a6b5846e 5670#include <gmp.h>
c6b750e1
DJ
5671int
5672main ()
5673{
4b1cb4fe 5674
a6b5846e
KG
5675 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5676 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5677 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5678 choke me
5679 #endif
c6b750e1
DJ
5680
5681 ;
5682 return 0;
5683}
5684_ACEOF
81ecdfbb
RW
5685if ac_fn_c_try_compile "$LINENO"; then :
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5687$as_echo "yes" >&6; }
a6b5846e
KG
5688else
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5690$as_echo "buggy but acceptable" >&6; }
5691fi
5692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5693else
81ecdfbb
RW
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5696fi
81ecdfbb 5697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5698
e8a5fa9c 5699 # If we have GMP, check the MPFR version.
4b900473 5700 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5701 # Check for the recommended and required versions of MPFR.
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5703$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5705/* end confdefs.h. */
9b134994 5706#include <gmp.h>
4b900473 5707 #include <mpfr.h>
c6b750e1
DJ
5708int
5709main ()
5710{
9b134994 5711
7ec59b9e 5712 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5713 choke me
5714 #endif
c6b750e1
DJ
5715
5716 ;
5717 return 0;
5718}
5719_ACEOF
81ecdfbb
RW
5720if ac_fn_c_try_compile "$LINENO"; then :
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5722/* end confdefs.h. */
4b1cb4fe 5723#include <gmp.h>
4b900473 5724 #include <mpfr.h>
c6b750e1
DJ
5725int
5726main ()
5727{
9dbaa842 5728
a6b5846e 5729 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5730 choke me
5731 #endif
e8a5fa9c
RW
5732
5733 ;
5734 return 0;
5735}
5736_ACEOF
81ecdfbb
RW
5737if ac_fn_c_try_compile "$LINENO"; then :
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5739$as_echo "yes" >&6; }
e8a5fa9c 5740else
81ecdfbb
RW
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5742$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5743fi
81ecdfbb 5744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5745else
81ecdfbb
RW
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5748fi
81ecdfbb 5749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5750 fi
5751
5752 # Check for the MPC header version.
d9b76ff9 5753 if test x"$have_gmp" = xyes ; then
a6b5846e 5754 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5756$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5758/* end confdefs.h. */
5759#include <mpc.h>
5760int
5761main ()
5762{
5763
a6b5846e
KG
5764 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5765 choke me
5766 #endif
5767
5768 ;
5769 return 0;
5770}
5771_ACEOF
5772if ac_fn_c_try_compile "$LINENO"; then :
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774/* end confdefs.h. */
5775#include <mpc.h>
5776int
5777main ()
5778{
5779
5780 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5781 choke me
5782 #endif
5783
5784 ;
5785 return 0;
5786}
5787_ACEOF
81ecdfbb
RW
5788if ac_fn_c_try_compile "$LINENO"; then :
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5790$as_echo "yes" >&6; }
a6b5846e
KG
5791else
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5793$as_echo "buggy but acceptable" >&6; }
5794fi
5795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5796else
81ecdfbb 5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5798$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5799fi
81ecdfbb 5800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5801 fi
5802
5803 # Now check the MPFR library.
5804 if test x"$have_gmp" = xyes; then
5805 saved_LIBS="$LIBS"
5806 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5808$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5810/* end confdefs.h. */
d9b76ff9 5811#include <mpc.h>
e8a5fa9c
RW
5812int
5813main ()
5814{
5815
5816 mpfr_t n;
5817 mpfr_t x;
d9b76ff9 5818 mpc_t c;
e8a5fa9c
RW
5819 int t;
5820 mpfr_init (n);
5821 mpfr_init (x);
5822 mpfr_atan2 (n, n, x, GMP_RNDN);
5823 mpfr_erfc (n, x, GMP_RNDN);
5824 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5825 mpfr_clear(n);
5826 mpfr_clear(x);
5827 mpc_init2 (c, 53);
5828 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5829 mpc_cosh (c, c, MPC_RNDNN);
5830 mpc_pow (c, c, c, MPC_RNDNN);
5831 mpc_acosh (c, c, MPC_RNDNN);
5832 mpc_clear (c);
c6b750e1
DJ
5833
5834 ;
5835 return 0;
5836}
5837_ACEOF
81ecdfbb
RW
5838if ac_fn_c_try_link "$LINENO"; then :
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5840$as_echo "yes" >&6; }
c6b750e1 5841else
81ecdfbb
RW
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5844fi
81ecdfbb
RW
5845rm -f core conftest.err conftest.$ac_objext \
5846 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5847 LIBS="$saved_LIBS"
5848 fi
5849
4b900473 5850 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5851
a6b5846e
KG
5852# The library versions listed in the error message below should match
5853# the HARD-minimums enforced above.
4b900473 5854 if test x$have_gmp != xyes; then
7ec59b9e 5855 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5856Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5857their locations. Source code for these libraries can be found at
5858their respective hosting sites as well as at
5859ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5860http://gcc.gnu.org/install/prerequisites.html for additional info. If
5861you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5862make sure that you have installed both the libraries and the header
5863files. They may be located in separate packages." "$LINENO" 5
4b900473 5864 fi
9dbaa842
DD
5865fi
5866
e8a5fa9c
RW
5867# Flags needed for both GMP, MPFR and/or MPC.
5868
5869
5870
4b1cb4fe
DD
5871
5872
5873
7ec59b9e 5874
b3676d82 5875# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 5876
b3676d82
EB
5877# Check whether --with-stage1-libs was given.
5878if test "${with_stage1_libs+set}" = set; then :
5879 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5880 stage1_libs=
e8a5fa9c 5881 else
b3676d82 5882 stage1_libs=$withval
e8a5fa9c
RW
5883 fi
5884else
68996839 5885 stage1_libs=
81ecdfbb
RW
5886fi
5887
e8a5fa9c
RW
5888
5889
b3676d82 5890# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 5891
b3676d82
EB
5892# Check whether --with-stage1-ldflags was given.
5893if test "${with_stage1_ldflags+set}" = set; then :
5894 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5895 stage1_ldflags=
e8a5fa9c 5896 else
b3676d82 5897 stage1_ldflags=$withval
e8a5fa9c
RW
5898 fi
5899else
b3676d82
EB
5900 stage1_ldflags=
5901 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5902 # if supported. But if the user explicitly specified the libraries to use,
5903 # trust that they are doing what they want.
5904 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5905 stage1_ldflags="-static-libstdc++ -static-libgcc"
5906 fi
81ecdfbb
RW
5907fi
5908
e8a5fa9c
RW
5909
5910
68996839 5911# Libraries to use for stage2 and later builds.
e8a5fa9c 5912
81ecdfbb
RW
5913# Check whether --with-boot-libs was given.
5914if test "${with_boot_libs+set}" = set; then :
5915 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5916 poststage1_libs=
5917 else
5918 poststage1_libs=$withval
5919 fi
5920else
68996839 5921 poststage1_libs=
81ecdfbb
RW
5922fi
5923
e8a5fa9c
RW
5924
5925
143754cd
NC
5926# Linker flags to use for stage2 and later builds.
5927
5928# Check whether --with-boot-ldflags was given.
5929if test "${with_boot_ldflags+set}" = set; then :
5930 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5931 poststage1_ldflags=
5932 else
5933 poststage1_ldflags=$withval
5934 fi
5935else
5936 poststage1_ldflags=
4f11b223
ILT
5937 # In stages 2 and 3, default to linking libstdc++ and libgcc
5938 # statically. But if the user explicitly specified the libraries to
5939 # use, trust that they are doing what they want.
5940 if test "$poststage1_libs" = ""; then
143754cd
NC
5941 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5942 fi
5943fi
5944
5945
5946
4849dfd8 5947# GCC GRAPHITE dependency isl.
1b6c0831 5948# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
5949
5950
7ec59b9e
L
5951# Check whether --with-isl was given.
5952if test "${with_isl+set}" = set; then :
5953 withval=$with_isl;
81ecdfbb 5954fi
e28c595f 5955
e28c595f 5956
1b6c0831 5957# Treat --without-isl as a request to disable
8e71395b 5958# GRAPHITE support and skip all following checks.
1b6c0831 5959if test "x$with_isl" != "xno"; then
4849dfd8 5960 # Check for isl
8e71395b
L
5961
5962
7ec59b9e
L
5963# Check whether --with-isl-include was given.
5964if test "${with_isl_include+set}" = set; then :
5965 withval=$with_isl_include;
81ecdfbb
RW
5966fi
5967
e28c595f 5968
7ec59b9e
L
5969# Check whether --with-isl-lib was given.
5970if test "${with_isl_lib+set}" = set; then :
5971 withval=$with_isl_lib;
81ecdfbb 5972fi
e28c595f 5973
e28c595f 5974
7ec59b9e
L
5975 # Check whether --enable-isl-version-check was given.
5976if test "${enable_isl_version_check+set}" = set; then :
5977 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5978else
5979 ENABLE_ISL_CHECK=yes
b123da99
SP
5980fi
5981
5982
7ec59b9e
L
5983 # Initialize isllibs and islinc.
5984 case $with_isl in
5985 no)
5986 isllibs=
5987 islinc=
5988 ;;
5989 "" | yes)
5990 ;;
5991 *)
5992 isllibs="-L$with_isl/lib"
5993 islinc="-I$with_isl/include"
5994 ;;
5995 esac
5996 if test "x${with_isl_include}" != x ; then
5997 islinc="-I$with_isl_include"
5998 fi
5999 if test "x${with_isl_lib}" != x; then
6000 isllibs="-L$with_isl_lib"
6001 fi
6002 if test "x${islinc}" = x && test "x${isllibs}" = x \
6003 && test -d ${srcdir}/isl; then
6004 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6005 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6006 ENABLE_ISL_CHECK=no
4849dfd8
NC
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6008$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
7ec59b9e 6009 fi
b123da99 6010
1b6c0831 6011 isllibs="${isllibs} -lisl"
b123da99 6012
e28c595f 6013
b3fc79f8
JBG
6014
6015 if test "${ENABLE_ISL_CHECK}" = yes ; then
6016 _isl_saved_CFLAGS=$CFLAGS
6017 _isl_saved_LDFLAGS=$LDFLAGS
6018 _isl_saved_LIBS=$LIBS
6019
6020 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
4849dfd8
NC
6021 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6022 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
b3fc79f8 6023
52cf9762
NC
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
6025$as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
1b6c0831 6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 6027/* end confdefs.h. */
4849dfd8 6028#include <isl/ctx.h>
b3fc79f8
JBG
6029int
6030main ()
6031{
4849dfd8 6032isl_ctx_get_max_operations (isl_ctx_alloc ());
b3fc79f8
JBG
6033 ;
6034 return 0;
6035}
6036_ACEOF
1b6c0831 6037if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
6038 gcc_cv_isl=yes
6039else
6040 gcc_cv_isl=no
6041fi
1b6c0831
L
6042rm -f core conftest.err conftest.$ac_objext \
6043 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6045$as_echo "$gcc_cv_isl" >&6; }
6046
4849dfd8 6047 if test "${gcc_cv_isl}" = no ; then
52cf9762
NC
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
6049$as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
6050 fi
6051
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
6053$as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055/* end confdefs.h. */
6056#include <isl/schedule.h>
6057int
6058main ()
6059{
6060isl_options_set_schedule_serialize_sccs (NULL, 0);
6061 ;
6062 return 0;
6063}
6064_ACEOF
6065if ac_fn_c_try_link "$LINENO"; then :
6066 ac_has_isl_options_set_schedule_serialize_sccs=yes
6067else
6068 ac_has_isl_options_set_schedule_serialize_sccs=no
6069fi
6070rm -f core conftest.err conftest.$ac_objext \
6071 conftest$ac_exeext conftest.$ac_ext
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
6073$as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
6074
6075 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
6076 islver="0.15"
6077
4849dfd8
NC
6078 fi
6079
b3fc79f8
JBG
6080 CFLAGS=$_isl_saved_CFLAGS
6081 LDFLAGS=$_isl_saved_LDFLAGS
6082 LIBS=$_isl_saved_LIBS
6083 fi
6084
6085
e28c595f 6086
e28c595f 6087
7ec59b9e
L
6088
6089
7ec59b9e
L
6090 if test "x${with_isl}" = xno; then
6091 graphite_requested=no
6092 elif test "x${with_isl}" != x \
6093 || test "x${with_isl_include}" != x \
6094 || test "x${with_isl_lib}" != x ; then
6095 graphite_requested=yes
6096 else
6097 graphite_requested=no
b123da99 6098 fi
e28c595f 6099
e28c595f
JM
6100
6101
7ec59b9e
L
6102 if test "${gcc_cv_isl}" = no ; then
6103 isllibs=
6104 islinc=
6105 fi
e28c595f 6106
7ec59b9e
L
6107 if test "${graphite_requested}" = yes \
6108 && test "x${isllibs}" = x \
6109 && test "x${islinc}" = x ; then
e28c595f 6110
4849dfd8 6111 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
7ec59b9e 6112 fi
e552509b 6113
e28c595f 6114
e552509b
ILT
6115fi
6116
4849dfd8 6117# If the isl check failed, disable builds of in-tree variant of isl
8e71395b 6118if test "x$with_isl" = xno ||
8e71395b 6119 test "x$gcc_cv_isl" = xno; then
1b6c0831 6120 noconfigdirs="$noconfigdirs isl"
8e71395b 6121 islinc=
7ec59b9e
L
6122fi
6123
8e71395b
L
6124
6125
6126
700d40ca
ILT
6127# Check for LTO support.
6128# Check whether --enable-lto was given.
6129if test "${enable_lto+set}" = set; then :
6130 enableval=$enable_lto; enable_lto=$enableval
6131else
6132 enable_lto=yes; default_enable_lto=yes
6133fi
6134
6135
143754cd 6136
e49e5c92
DK
6137
6138
6139target_elf=no
6140case $target in
6141 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6142 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
6143 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6144 nvptx-*-none)
e49e5c92
DK
6145 target_elf=no
6146 ;;
6147 *)
6148 target_elf=yes
6149 ;;
6150esac
6151
6152if test $target_elf = yes; then :
74cea91b
DK
6153 # ELF platforms build the lto-plugin always.
6154 build_lto_plugin=yes
e49e5c92 6155
e49e5c92
DK
6156else
6157 if test x"$default_enable_lto" = x"yes" ; then
29821356 6158 case $target in
52cf9762 6159 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
74cea91b 6160 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6161 *) enable_lto=no ;;
6162 esac
e49e5c92 6163 else
29821356
RW
6164 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6165 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6166 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6167 # warn during gcc/ subconfigure; unless you're bootstrapping with
6168 # -flto it won't be needed until after installation anyway.
6169 case $target in
52cf9762 6170 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
e49e5c92
DK
6171 *) if test x"$enable_lto" = x"yes"; then
6172 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6173 fi
6174 ;;
6175 esac
6176 fi
a8eb3f0a 6177 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6178 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6179 case $target in
74cea91b 6180 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6181 *) ;;
6182 esac
74cea91b 6183
e49e5c92
DK
6184fi
6185
700d40ca 6186
1b6c0831
L
6187# Check whether --enable-linker-plugin-configure-flags was given.
6188if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6189 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6190else
6191 extra_linker_plugin_configure_flags=
6192fi
6193
6194
6195# Check whether --enable-linker-plugin-flags was given.
6196if test "${enable_linker_plugin_flags+set}" = set; then :
6197 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6198else
6199 extra_linker_plugin_flags=
6200fi
6201
6202
6203
e28c595f 6204
7ec59b9e 6205# By default, C and C++ are the only stage 1 languages.
9b134994 6206stage1_languages=,c,
1d39f329 6207
e8a5fa9c 6208# Target libraries that we bootstrap.
2aa2364a 6209bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6210
9e07f89d
NN
6211# Figure out what language subdirectories are present.
6212# Look if the user specified --enable-languages="..."; if not, use
6213# the environment variable $LANGUAGES if defined. $LANGUAGES might
6214# go away some day.
6215# NB: embedded tabs in this IF block -- do not untabify
6216if test -d ${srcdir}/gcc; then
6217 if test x"${enable_languages+set}" != xset; then
6218 if test x"${LANGUAGES+set}" = xset; then
6219 enable_languages="${LANGUAGES}"
136bb21f 6220 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9e07f89d
NN
6221 else
6222 enable_languages=all
6223 fi
6224 else
6225 if test x"${enable_languages}" = x ||
6226 test x"${enable_languages}" = xyes;
6227 then
136bb21f 6228 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9e07f89d
NN
6229 exit 1
6230 fi
6231 fi
6232 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6233
096f7d00
DE
6234 # 'f95' is the old name for the 'fortran' language. We issue a warning
6235 # and make the substitution.
6236 case ,${enable_languages}, in
6237 *,f95,*)
136bb21f 6238 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
096f7d00
DE
6239 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6240 ;;
6241 esac
6242
7ec59b9e
L
6243 # If bootstrapping, C++ must be enabled.
6244 case ",$enable_languages,:$enable_bootstrap" in
6245 *,c++,*:*) ;;
6246 *:yes)
ffdd6afc
ILT
6247 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6248 enable_languages="${enable_languages},c++"
6249 else
7ec59b9e 6250 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6251 fi
6252 ;;
6253 esac
6254
9e07f89d
NN
6255 # First scan to see if an enabled language requires some other language.
6256 # We assume that a given config-lang.in will list all the language
6257 # front ends it requires, even if some are required indirectly.
6258 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6259 case ${lang_frag} in
6260 ..) ;;
6261 # The odd quoting in the next line works around
6262 # an apparent bug in bash 1.12 on linux.
6263 ${srcdir}/gcc/[*]/config-lang.in) ;;
6264 *)
e552509b
ILT
6265 # From the config-lang.in, get $language, $lang_requires, and
6266 # $lang_requires_boot_languages.
9e07f89d
NN
6267 language=
6268 lang_requires=
e552509b 6269 lang_requires_boot_languages=
9e07f89d 6270 . ${lang_frag}
e552509b 6271 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6272 case ,${enable_languages}, in
6273 *,$other,*) ;;
6274 *,all,*) ;;
6275 *,$language,*)
6276 echo " \`$other' language required by \`$language'; enabling" 1>&2
6277 enable_languages="${enable_languages},${other}"
6278 ;;
6279 esac
6280 done
e552509b
ILT
6281 for other in ${lang_requires_boot_languages} ; do
6282 if test "$other" != "c"; then
6283 case ,${enable_stage1_languages}, in
6284 *,$other,*) ;;
6285 *,all,*) ;;
6286 *)
6287 case ,${enable_languages}, in
6288 *,$language,*)
6289 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6290 enable_stage1_languages="$enable_stage1_languages,${other}"
6291 ;;
6292 esac
6293 ;;
6294 esac
6295 fi
6296 done
9e07f89d
NN
6297 ;;
6298 esac
6299 done
6300
9b134994 6301 new_enable_languages=,c,
700d40ca
ILT
6302
6303 # If LTO is enabled, add the LTO front end.
700d40ca 6304 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6305 case ,${enable_languages}, in
6306 *,lto,*) ;;
6307 *) enable_languages="${enable_languages},lto" ;;
6308 esac
a8eb3f0a 6309 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 6310 configdirs="$configdirs lto-plugin"
700d40ca
ILT
6311 fi
6312 fi
6313
1b6c0831
L
6314 # If we're building an offloading compiler, add the LTO front end.
6315 if test x"$enable_as_accelerator_for" != x ; then
6316 case ,${enable_languages}, in
6317 *,lto,*) ;;
6318 *) enable_languages="${enable_languages},lto" ;;
6319 esac
6320 fi
700d40ca 6321
9e07f89d 6322 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6323 potential_languages=,c,
9e07f89d 6324
9e1a94f4
ILT
6325 enabled_target_libs=
6326 disabled_target_libs=
6327
9e07f89d
NN
6328 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6329 case ${lang_frag} in
6330 ..) ;;
6331 # The odd quoting in the next line works around
6332 # an apparent bug in bash 1.12 on linux.
6333 ${srcdir}/gcc/[*]/config-lang.in) ;;
6334 *)
c6b750e1 6335 # From the config-lang.in, get $language, $target_libs,
1d39f329 6336 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6337 language=
6338 target_libs=
6339 lang_dirs=
64ce424c 6340 subdir_requires=
9b134994
PB
6341 boot_language=no
6342 build_by_default=yes
9e07f89d 6343 . ${lang_frag}
9b134994
PB
6344 if test x${language} = x; then
6345 echo "${lang_frag} doesn't set \$language." 1>&2
6346 exit 1
6347 fi
6348
ffdd6afc 6349 if test "$language" = "c++"; then
7ec59b9e 6350 boot_language=yes
e8a5fa9c
RW
6351 fi
6352
8e71395b 6353 add_this_lang=no
9b134994
PB
6354 case ,${enable_languages}, in
6355 *,${language},*)
7ec59b9e
L
6356 # Language was explicitly selected; include it
6357 # unless it is C, which is enabled by default.
6358 if test "$language" != "c"; then
6359 add_this_lang=yes
6360 fi
9e07f89d 6361 ;;
9b134994
PB
6362 *,all,*)
6363 # 'all' was selected, select it if it is a default language
8e71395b
L
6364 if test "$language" != "c"; then
6365 add_this_lang=${build_by_default}
6366 fi
9e07f89d
NN
6367 ;;
6368 esac
4b1cb4fe 6369
64ce424c 6370 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6371 for i in $subdir_requires; do
3d3adb43 6372 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6373 case ,${enable_languages}, in
6374 *,${language},*)
6375 # Specifically requested language; tell them.
81ecdfbb 6376 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6377 ;;
6378 *)
6379 # Silently disable.
9b134994 6380 add_this_lang=unsupported
64ce424c
PB
6381 ;;
6382 esac
6383 done
6384
9b134994
PB
6385 # Disable Ada if no preexisting GNAT is available.
6386 case ,${enable_languages},:${language}:${have_gnat} in
6387 *,${language},*:ada:no)
6388 # Specifically requested language; tell them.
81ecdfbb 6389 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6390 ;;
6391 *:ada:no)
6392 # Silently disable.
6393 add_this_lang=unsupported
6394 ;;
6395 esac
6396
59f7ec45
HPN
6397 # Disable a language that is unsupported by the target.
6398 case " $unsupported_languages " in
6399 *" $language "*)
9b134994 6400 add_this_lang=unsupported
59f7ec45
HPN
6401 ;;
6402 esac
6403
4b1cb4fe 6404 case $add_this_lang in
9b134994 6405 unsupported)
9e07f89d 6406 # Remove language-dependent dirs.
9e1a94f4
ILT
6407 disabled_target_libs="$disabled_target_libs $target_libs"
6408 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6409 ;;
9b134994
PB
6410 no)
6411 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6412 disabled_target_libs="$disabled_target_libs $target_libs"
6413 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6414 potential_languages="${potential_languages}${language},"
6415 ;;
6416 yes)
6417 new_enable_languages="${new_enable_languages}${language},"
6418 potential_languages="${potential_languages}${language},"
1d39f329 6419 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6420 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6421 case "${boot_language}:,$enable_stage1_languages," in
6422 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6423 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6424 case ",$stage1_languages," in
6425 *,$language,* | ,yes, | ,all,) ;;
6426 *) stage1_languages="${stage1_languages}${language}," ;;
6427 esac
e8a5fa9c
RW
6428 # We need to bootstrap any supporting libraries.
6429 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6430 ;;
6431 esac
6432 ;;
9e07f89d
NN
6433 esac
6434 ;;
6435 esac
6436 done
6437
9e1a94f4
ILT
6438 # Add target libraries which are only needed for disabled languages
6439 # to noconfigdirs.
6440 if test -n "$disabled_target_libs"; then
6441 for dir in $disabled_target_libs; do
6442 case " $enabled_target_libs " in
6443 *" ${dir} "*) ;;
6444 *) noconfigdirs="$noconfigdirs $dir" ;;
6445 esac
6446 done
6447 fi
6448
81ecdfbb
RW
6449 # Check whether --enable-stage1-languages was given.
6450if test "${enable_stage1_languages+set}" = set; then :
6451 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6452 ,no,|,,)
6453 # Set it to something that will have no effect in the loop below
6454 enable_stage1_languages=c ;;
6455 ,yes,)
6456 enable_stage1_languages=`echo $new_enable_languages | \
6457 sed -e "s/^,//" -e "s/,$//" ` ;;
6458 *,all,*)
6459 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6460 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6461 esac
6462
6463 # Add "good" languages from enable_stage1_languages to stage1_languages,
6464 # while "bad" languages go in missing_languages. Leave no duplicates.
6465 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6466 case $potential_languages in
6467 *,$i,*)
6468 case $stage1_languages in
6469 *,$i,*) ;;
6470 *) stage1_languages="$stage1_languages$i," ;;
6471 esac ;;
6472 *)
6473 case $missing_languages in
6474 *,$i,*) ;;
6475 *) missing_languages="$missing_languages$i," ;;
6476 esac ;;
6477 esac
6478 done
81ecdfbb
RW
6479fi
6480
9b134994
PB
6481
6482 # Remove leading/trailing commas that were added for simplicity
6483 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6484 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6485 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6486 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6487
9e07f89d 6488 if test "x$missing_languages" != x; then
81ecdfbb 6489 as_fn_error "
27258dd4 6490The following requested languages could not be built: ${missing_languages}
81ecdfbb 6491Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6492 fi
9e07f89d
NN
6493 if test "x$new_enable_languages" != "x$enable_languages"; then
6494 echo The following languages will be built: ${new_enable_languages}
9b134994 6495 enable_languages="$new_enable_languages"
9e07f89d 6496 fi
9b134994 6497
c6b750e1 6498
81ec575a 6499 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6500fi
6501
a6df5a19
PB
6502# Handle --disable-<component> generically.
6503for dir in $configdirs $build_configdirs $target_configdirs ; do
6504 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6505 varname=`echo $dirname | sed -e s/+/_/g`
6506 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6507 noconfigdirs="$noconfigdirs $dir"
6508 fi
6509done
6510
4f0ef2d8 6511# Check for Boehm's garbage collector
81ecdfbb
RW
6512# Check whether --enable-objc-gc was given.
6513if test "${enable_objc_gc+set}" = set; then :
6514 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6515 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6516 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6517 ;;
6518esac
81ecdfbb
RW
6519fi
6520
4f0ef2d8
CD
6521
6522# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6523case ,${enable_languages},:${enable_objc_gc} in
6524 *,objc,*:yes)
4f0ef2d8
CD
6525 # Keep target-boehm-gc if requested for Objective-C.
6526 ;;
4f0ef2d8 6527 *)
d42c4017
DA
6528 # Otherwise remove target-boehm-gc depending on target-libjava.
6529 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6530 noconfigdirs="$noconfigdirs target-boehm-gc"
6531 fi
4f0ef2d8
CD
6532 ;;
6533esac
6534
1b6c0831 6535# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
7ec59b9e 6536case ,${enable_languages}, in
1b6c0831
L
6537 *,c++,*)
6538 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6539 case "${noconfigdirs}" in
6540 *target-libstdc++-v3*)
6541 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6542 ;;
6543 *) ;;
6544 esac
6545 ;;
7ec59b9e 6546 *)
1b6c0831 6547 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6548 ;;
6549esac
6550
caeba88f
AL
6551# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6552# $build_configdirs and $target_configdirs.
9e07f89d
NN
6553# If we have the source for $noconfigdirs entries, add them to $notsupp.
6554
6555notsupp=""
6556for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6557 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6558 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6559 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6560 if test -r $srcdir/$dirname/configure ; then
6561 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6562 true
6563 else
6564 notsupp="$notsupp $dir"
6565 fi
6566 fi
6567 fi
caeba88f
AL
6568 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6569 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6570 if test -r $srcdir/$dirname/configure ; then
6571 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6572 true
6573 else
6574 notsupp="$notsupp $dir"
6575 fi
6576 fi
6577 fi
9e07f89d
NN
6578 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6579 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6580 if test -r $srcdir/$dirname/configure ; then
6581 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6582 true
6583 else
6584 notsupp="$notsupp $dir"
6585 fi
6586 fi
6587 fi
6588done
6589
9e07f89d
NN
6590# Quietly strip out all directories which aren't configurable in this tree.
6591# This relies on all configurable subdirectories being autoconfiscated, which
6592# is now the case.
6a9cf61e
PB
6593build_configdirs_all="$build_configdirs"
6594build_configdirs=
6595for i in ${build_configdirs_all} ; do
c6b750e1 6596 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6597 if test -f ${srcdir}/$j/configure ; then
6598 build_configdirs="${build_configdirs} $i"
6599 fi
6600done
6601
9e07f89d
NN
6602configdirs_all="$configdirs"
6603configdirs=
6604for i in ${configdirs_all} ; do
6605 if test -f ${srcdir}/$i/configure ; then
6606 configdirs="${configdirs} $i"
6607 fi
6608done
6a9cf61e 6609
9e07f89d
NN
6610target_configdirs_all="$target_configdirs"
6611target_configdirs=
6612for i in ${target_configdirs_all} ; do
c6b750e1 6613 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6614 if test -f ${srcdir}/$j/configure ; then
6615 target_configdirs="${target_configdirs} $i"
6616 fi
6617done
6618
091021fa
L
6619# Exclude target-zlib if target-libjava isn't built.
6620case ${target_configdirs} in
6621*target-libjava*)
6622 ;;
6623*)
6624 target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6625 ;;
6626esac
6627
1b6c0831
L
6628# libiberty-linker-plugin is special: it doesn't have its own source directory,
6629# so we have to add it after the preceding checks.
6630if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6631then
6632 case " $configdirs " in
6633 *" libiberty "*)
6634 # If we can build libiberty, we can also build libiberty-linker-plugin.
6635 configdirs="$configdirs libiberty-linker-plugin"
6636 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6637 --with-libiberty=../libiberty-linker-plugin";;
6638 *)
6639 as_fn_error "libiberty missing" "$LINENO" 5;;
6640 esac
6641fi
6642
6643# Sometimes we have special requirements for the host libiberty.
6644extra_host_libiberty_configure_flags=
e81d5d05 6645extra_host_zlib_configure_flags=
1b6c0831
L
6646case " $configdirs " in
6647 *" lto-plugin "* | *" libcc1 "*)
6648 # When these are to be built as shared libraries, the same applies to
6649 # libiberty.
6650 extra_host_libiberty_configure_flags=--enable-shared
6651 ;;
e81d5d05
L
6652 *" bfd "*)
6653 # When bfd is to be built as a shared library, the same applies to
6654 # zlib.
6655 if test "$enable_shared" = "yes"; then
6656 extra_host_zlib_configure_flags=--enable-host-shared
6657 fi
6658 ;;
1b6c0831
L
6659esac
6660
6661
e81d5d05 6662
9e07f89d
NN
6663# Produce a warning message for the subdirs we can't configure.
6664# This isn't especially interesting in the Cygnus tree, but in the individual
6665# FSF releases, it's important to let people know when their machine isn't
6666# supported by the one or two programs in a package.
6667
6668if test -n "${notsupp}" && test -z "${norecursion}" ; then
6669 # If $appdirs is non-empty, at least one of those directories must still
6670 # be configured, or we error out. (E.g., if the gas release supports a
6671 # specified target in some subdirs but not the gas subdir, we shouldn't
6672 # pretend that all is well.)
6673 if test -n "$appdirs" ; then
6674 for dir in $appdirs ; do
6675 if test -r $dir/Makefile.in ; then
6676 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6677 appdirs=""
6678 break
6679 fi
6a9cf61e 6680 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6681 appdirs=""
6682 break
6683 fi
6684 fi
6685 done
6686 if test -n "$appdirs" ; then
6687 echo "*** This configuration is not supported by this package." 1>&2
6688 exit 1
6689 fi
6690 fi
6691 # Okay, some application will build, or we don't care to check. Still
6692 # notify of subdirs not getting built.
6693 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6694 echo " ${notsupp}" 1>&2
6695 echo " (Any other directories should still work fine.)" 1>&2
6696fi
6697
6698case "$host" in
6699 *msdosdjgpp*)
6700 enable_gdbtk=no ;;
6701esac
6702
18f6b6ee
PB
6703# To find our prefix, in gcc_cv_tool_prefix.
6704
6705# The user is always right.
6706if test "${PATH_SEPARATOR+set}" != set; then
6707 echo "#! /bin/sh" >conf$$.sh
6708 echo "exit 0" >>conf$$.sh
6709 chmod +x conf$$.sh
6710 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6711 PATH_SEPARATOR=';'
6712 else
6713 PATH_SEPARATOR=:
6714 fi
6715 rm -f conf$$.sh
6716fi
6717
6718
6719
6720if test "x$exec_prefix" = xNONE; then
6721 if test "x$prefix" = xNONE; then
6722 gcc_cv_tool_prefix=$ac_default_prefix
6723 else
6724 gcc_cv_tool_prefix=$prefix
6725 fi
6726else
6727 gcc_cv_tool_prefix=$exec_prefix
6728fi
6729
6730# If there is no compiler in the tree, use the PATH only. In any
6731# case, if there is no compiler in the tree nobody should use
6732# AS_FOR_TARGET and LD_FOR_TARGET.
6733if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6734 gcc_version=`cat $srcdir/gcc/BASE-VER`
6735 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6736 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6737 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6738 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6739 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6740 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6741else
6742 gcc_cv_tool_dirs=
6743fi
6744
6745if test x$build = x$target && test -n "$md_exec_prefix"; then
6746 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6747fi
6748
6749
6750
9e07f89d
NN
6751copy_dirs=
6752
c6b750e1 6753
81ecdfbb
RW
6754# Check whether --with-build-sysroot was given.
6755if test "${with_build_sysroot+set}" = set; then :
6756 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6757 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6758 fi
6759else
6760 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6761fi
a19b6204
MM
6762
6763
8a6ee3ab 6764
81ecdfbb
RW
6765
6766# Check whether --with-debug-prefix-map was given.
6767if test "${with_debug_prefix_map+set}" = set; then :
6768 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6769 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6770 for debug_map in $withval; do
6771 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6772 done
6773 fi
6774else
6775 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6776fi
6777
8a6ee3ab
JM
6778
6779
7f6ef0c0
PB
6780# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6781# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6782# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6783# We want to ensure that TARGET libraries (which we know are built with
6784# gcc) are built with "-O2 -g", so include those options when setting
6785# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6786if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6787 if test "x${is_cross_compiler}" = xyes; then
6788 CFLAGS_FOR_TARGET="-g -O2"
6789 else
6790 CFLAGS_FOR_TARGET=$CFLAGS
6791 case " $CFLAGS " in
6792 *" -O2 "*) ;;
6793 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6794 esac
6795 case " $CFLAGS " in
6796 *" -g "* | *" -g3 "*) ;;
6797 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6798 esac
6799 fi
7f6ef0c0
PB
6800fi
6801
6802
6803if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6804 if test "x${is_cross_compiler}" = xyes; then
6805 CXXFLAGS_FOR_TARGET="-g -O2"
6806 else
6807 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6808 case " $CXXFLAGS " in
6809 *" -O2 "*) ;;
6810 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6811 esac
6812 case " $CXXFLAGS " in
6813 *" -g "* | *" -g3 "*) ;;
6814 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6815 esac
6816 fi
7f6ef0c0
PB
6817fi
6818
6819
91c1f14c
DK
6820
6821
9e07f89d
NN
6822# Handle --with-headers=XXX. If the value is not "yes", the contents of
6823# the named directory are copied to $(tooldir)/sys-include.
6824if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6825 if test x${is_cross_compiler} = xno ; then
6826 echo 1>&2 '***' --with-headers is only supported when cross compiling
6827 exit 1
6828 fi
6829 if test x"${with_headers}" != xyes ; then
18f6b6ee 6830 x=${gcc_cv_tool_prefix}
c6b750e1 6831 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6832 fi
6833fi
6834
6835# Handle --with-libs=XXX. If the value is not "yes", the contents of
6836# the name directories are copied to $(tooldir)/lib. Multiple directories
6837# are permitted.
6838if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6839 if test x${is_cross_compiler} = xno ; then
6840 echo 1>&2 '***' --with-libs is only supported when cross compiling
6841 exit 1
6842 fi
6843 if test x"${with_libs}" != xyes ; then
6844 # Copy the libraries in reverse order, so that files in the first named
6845 # library override files in subsequent libraries.
18f6b6ee 6846 x=${gcc_cv_tool_prefix}
9e07f89d 6847 for l in ${with_libs}; do
c6b750e1 6848 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6849 done
6850 fi
6851fi
6852
700d40ca 6853# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6854#
6855# This is done by determining whether or not the appropriate directory
6856# is available, and by checking whether or not specific configurations
6857# have requested that this magic not happen.
c6b750e1
DJ
6858#
6859# The command line options always override the explicit settings in
136bb21f 6860# configure.ac, and the settings in configure.ac override this magic.
2429c060 6861#
c6b750e1 6862# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6863# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6864# --without-gnu-ld options for the configure script. Similarly, if
6865# the default is to use the included zlib and you don't want to do that,
6866# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6867
6868if test x${use_gnu_as} = x &&
6869 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6870 with_gnu_as=yes
6871 extra_host_args="$extra_host_args --with-gnu-as"
6872fi
6873
6874if test x${use_gnu_ld} = x &&
93f9b408 6875 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6876 with_gnu_ld=yes
6877 extra_host_args="$extra_host_args --with-gnu-ld"
6878fi
6879
700d40ca
ILT
6880if test x${use_included_zlib} = x &&
6881 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6882 :
6883else
6884 with_system_zlib=yes
6885 extra_host_args="$extra_host_args --with-system-zlib"
6886fi
6887
2429c060
PB
6888# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6889# can detect this case.
6890
6891if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6892 with_newlib=yes
6893 extra_host_args="$extra_host_args --with-newlib"
6894fi
6895
9e07f89d
NN
6896# Handle ${copy_dirs}
6897set fnord ${copy_dirs}
6898shift
6899while test $# != 0 ; do
6900 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6901 :
6902 else
6903 echo Copying $1 to $2
6904
6905 # Use the install script to create the directory and all required
6906 # parent directories.
6907 if test -d $2 ; then
6908 :
6909 else
6910 echo >config.temp
6911 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6912 fi
6913
6914 # Copy the directory, assuming we have tar.
6915 # FIXME: Should we use B in the second tar? Not all systems support it.
6916 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6917
6918 # It is the responsibility of the user to correctly adjust all
6919 # symlinks. If somebody can figure out how to handle them correctly
6920 # here, feel free to add the code.
6921
6922 echo $1 > $2/COPIED
6923 fi
6924 shift; shift
6925done
6926
2429c060
PB
6927# Determine a target-dependent exec_prefix that the installed
6928# gcc will search in. Keep this list sorted by triplet, with
6929# the *-*-osname triplets last.
6930md_exec_prefix=
6931case "${target}" in
521ec477 6932 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6933 md_exec_prefix=/dev/env/DJDIR/bin
6934 ;;
2429c060 6935 *-*-hpux* | \
2429c060 6936 *-*-nto-qnx* | \
1f111696 6937 *-*-solaris2*)
2429c060
PB
6938 md_exec_prefix=/usr/ccs/bin
6939 ;;
6940esac
6941
a0da8069
NN
6942extra_arflags_for_target=
6943extra_nmflags_for_target=
6944extra_ranlibflags_for_target=
6945target_makefile_frag=/dev/null
6946case "${target}" in
77d7106f
AM
6947 spu-*-*)
6948 target_makefile_frag="config/mt-spu"
6949 ;;
a9d58c06 6950 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
6951 target_makefile_frag="config/mt-sde"
6952 ;;
f3b1e08e
RS
6953 mipsisa*-*-elfoabi*)
6954 target_makefile_frag="config/mt-mips-elfoabi"
6955 ;;
e7c8859c
RS
6956 mips*-*-*linux* | mips*-*-gnu*)
6957 target_makefile_frag="config/mt-mips-gnu"
6958 ;;
d9e042ac
SL
6959 nios2-*-elf*)
6960 target_makefile_frag="config/mt-nios2-elf"
6961 ;;
29383458 6962 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6963 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6964 ;;
6965 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6966 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6967 # commands to handle both 32-bit and 64-bit objects. These flags are
6968 # harmless if we're using GNU nm or ar.
6969 extra_arflags_for_target=" -X32_64"
6970 extra_nmflags_for_target=" -B -X32_64"
6971 ;;
a0da8069
NN
6972esac
6973
6974alphaieee_frag=/dev/null
6975case $target in
6976 alpha*-*-*)
6977 # This just makes sure to use the -mieee option to build target libs.
6978 # This should probably be set individually by each library.
6979 alphaieee_frag="config/mt-alphaieee"
6980 ;;
6981esac
6982
6983# If --enable-target-optspace always use -Os instead of -O2 to build
6984# the target libraries, similarly if it is not specified, use -Os
6985# on selected platforms.
6986ospace_frag=/dev/null
6987case "${enable_target_optspace}:${target}" in
6988 yes:*)
6989 ospace_frag="config/mt-ospace"
6990 ;;
6991 :d30v-*)
6992 ospace_frag="config/mt-d30v"
6993 ;;
16beab3d 6994 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
a0da8069
NN
6995 ospace_frag="config/mt-ospace"
6996 ;;
6997 no:* | :*)
6998 ;;
6999 *)
7000 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7001 ;;
7002esac
7003
a0da8069
NN
7004# Some systems (e.g., one of the i386-aix systems the gas testers are
7005# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 7006tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
7007build_tooldir=${tooldir}
7008
a0da8069
NN
7009# Create a .gdbinit file which runs the one in srcdir
7010# and tells GDB to look there for source files.
7011
7012if test -r ${srcdir}/.gdbinit ; then
7013 case ${srcdir} in
7014 .) ;;
7015 *) cat > ./.gdbinit <<EOF
7016# ${NO_EDIT}
7017dir ${srcdir}
7018dir .
7019source ${srcdir}/.gdbinit
7020EOF
7021 ;;
7022 esac
7023fi
7024
a0da8069
NN
7025# Make sure that the compiler is able to generate an executable. If it
7026# can't, we are probably in trouble. We don't care whether we can run the
7027# executable--we might be using a cross compiler--we only care whether it
7028# can be created. At this point the main configure script has set CC.
7029we_are_ok=no
7030echo "int main () { return 0; }" > conftest.c
7031${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7032if test $? = 0 ; then
7033 if test -s conftest || test -s conftest.exe ; then
7034 we_are_ok=yes
7035 fi
c6b750e1 7036fi
a0da8069
NN
7037case $we_are_ok in
7038 no)
7039 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7040 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7041 rm -f conftest*
7042 exit 1
7043 ;;
7044esac
7045rm -f conftest*
7046
3bbd2f8f 7047# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7048case "${host}" in
7049 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 7050 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7051 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7052 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7053esac
7054
3bbd2f8f 7055# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7056# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7057# built executables to PATH.
3bbd2f8f
AL
7058if test "$RPATH_ENVVAR" = PATH; then
7059 GCC_SHLIB_SUBDIR=/shlib
7060else
7061 GCC_SHLIB_SUBDIR=
7062fi
7063
730af8ee 7064# Adjust the toplevel makefile according to whether bootstrap was selected.
7065case $enable_bootstrap in
7066 yes)
7067 bootstrap_suffix=bootstrap
7068 BUILD_CONFIG=bootstrap-debug
7069 ;;
7070 no)
7071 bootstrap_suffix=no-bootstrap
7072 BUILD_CONFIG=
7073 ;;
7074esac
7075
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7077$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7078
7079
7080# Check whether --with-build-config was given.
7081if test "${with_build_config+set}" = set; then :
7082 withval=$with_build_config; case $with_build_config in
7083 yes) with_build_config= ;;
7084 no) with_build_config= BUILD_CONFIG= ;;
7085 esac
7086fi
7087
7088
7089if test "x${with_build_config}" != x; then
7090 BUILD_CONFIG=$with_build_config
7091else
7092 case $BUILD_CONFIG in
7093 bootstrap-debug)
7094 if echo "int f (void) { return 0; }" > conftest.c &&
7095 ${CC} -c conftest.c &&
7096 mv conftest.o conftest.o.g0 &&
7097 ${CC} -c -g conftest.c &&
7098 mv conftest.o conftest.o.g &&
7099 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7100 :
7101 else
7102 BUILD_CONFIG=
7103 fi
7104 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7105 ;;
7106 esac
7107fi
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7109$as_echo "$BUILD_CONFIG" >&6; }
7110
7111
7112# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7114$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7115# Check whether --enable-vtable-verify was given.
7116if test "${enable_vtable_verify+set}" = set; then :
7117 enableval=$enable_vtable_verify; case "$enableval" in
7118 yes) enable_vtable_verify=yes ;;
7119 no) enable_vtable_verify=no ;;
7120 *) enable_vtable_verify=no;;
7121 esac
7122else
7123 enable_vtable_verify=no
7124fi
7125
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7127$as_echo "$enable_vtable_verify" >&6; }
7128
a0da8069
NN
7129# Record target_configdirs and the configure arguments for target and
7130# build configuration in Makefile.
7131target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7132build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7133bootstrap_fixincludes=no
a0da8069 7134
2aa2364a
JR
7135# If we are building libgomp, bootstrap it.
7136if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7137 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7138fi
7139
730af8ee 7140# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7141# or bootstrap-ubsan, bootstrap it.
7142if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7143 case "$BUILD_CONFIG" in
7144 *bootstrap-asan* | *bootstrap-ubsan* )
7145 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7146 bootstrap_fixincludes=yes
730af8ee 7147 ;;
7148 esac
5eb08693
L
7149fi
7150
730af8ee 7151# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7152if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7153 test "$enable_vtable_verify" != no; then
95e43135
JBG
7154 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7155fi
7156
1b6c0831
L
7157# If we are building libmpx, bootstrap it.
7158if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7159 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7160fi
7161
a0da8069
NN
7162# Determine whether gdb needs tk/tcl or not.
7163# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7164# and in that case we want gdb to be built without tk. Ugh!
7165# In fact I believe gdb is the *only* package directly dependent on tk,
7166# so we should be able to put the 'maybe's in unconditionally and
7167# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7168# 100% sure that that's safe though.
c180f501 7169
675c6968 7170gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7171case "$enable_gdbtk" in
7172 no)
7173 GDB_TK="" ;;
c180f501
AC
7174 yes)
7175 GDB_TK="${gdb_tk}" ;;
a0da8069 7176 *)
c180f501
AC
7177 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7178 # distro. Eventually someone will fix this and move Insight, nee
7179 # gdbtk to a separate directory.
7180 if test -d ${srcdir}/gdb/gdbtk ; then
7181 GDB_TK="${gdb_tk}"
7182 else
7183 GDB_TK=""
7184 fi
7185 ;;
a0da8069 7186esac
907be67c
DJ
7187CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7188INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7189
6bd3dfaa 7190# Strip out unwanted targets.
dd12c3a8
NN
7191
7192# While at that, we remove Makefiles if we were started for recursive
7193# configuration, so that the top-level Makefile reconfigures them,
7194# like we used to do when configure itself was recursive.
dd12c3a8 7195
06a51eac
RW
7196# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7197# but now we're fixing up the Makefile ourselves with the additional
7198# commands passed to AC_CONFIG_FILES. Use separate variables
7199# extrasub-{build,host,target} not because there is any reason to split
7200# the substitutions up that way, but only to remain below the limit of
7201# 99 commands in a script, for HP-UX sed.
7202# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7203
16b1ad29
RW
7204case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7205 yes:yes:*\ gold\ *:*,c++,*) ;;
7206 yes:yes:*\ gold\ *:*)
7207 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7208 ;;
7209esac
7210
06a51eac 7211extrasub_build=
6a9cf61e 7212for module in ${build_configdirs} ; do
498d4a71
CF
7213 if test -z "${no_recursion}" \
7214 && test -f ${build_subdir}/${module}/Makefile; then
7215 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7216 rm -f ${build_subdir}/${module}/Makefile
7217 fi
06a51eac 7218 extrasub_build="$extrasub_build
498d4a71
CF
7219/^@if build-$module\$/d
7220/^@endif build-$module\$/d
7221/^@if build-$module-$bootstrap_suffix\$/d
7222/^@endif build-$module-$bootstrap_suffix\$/d"
7223done
06a51eac 7224extrasub_host=
498d4a71 7225for module in ${configdirs} ; do
80911fe1 7226 if test -z "${no_recursion}"; then
8cf39b1b 7227 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7228 if test -f ${file}; then
7229 echo 1>&2 "*** removing ${file} to force reconfigure"
7230 rm -f ${file}
7231 fi
7232 done
498d4a71 7233 fi
201f096f 7234 case ${module},${bootstrap_fixincludes} in
7235 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7236 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7237 esac
06a51eac 7238 extrasub_host="$extrasub_host
498d4a71
CF
7239/^@if $module\$/d
7240/^@endif $module\$/d
201f096f 7241/^@if $module-$host_bootstrap_suffix\$/d
7242/^@endif $module-$host_bootstrap_suffix\$/d"
498d4a71 7243done
06a51eac 7244extrasub_target=
498d4a71
CF
7245for module in ${target_configdirs} ; do
7246 if test -z "${no_recursion}" \
7247 && test -f ${target_subdir}/${module}/Makefile; then
7248 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7249 rm -f ${target_subdir}/${module}/Makefile
7250 fi
e8a5fa9c
RW
7251
7252 # We only bootstrap target libraries listed in bootstrap_target_libs.
7253 case $bootstrap_target_libs in
7254 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7255 *) target_bootstrap_suffix=no-bootstrap ;;
7256 esac
7257
06a51eac 7258 extrasub_target="$extrasub_target
498d4a71
CF
7259/^@if target-$module\$/d
7260/^@endif target-$module\$/d
e8a5fa9c
RW
7261/^@if target-$module-$target_bootstrap_suffix\$/d
7262/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7263done
7264
06a51eac
RW
7265# Do the final fixup along with target modules.
7266extrasub_target="$extrasub_target
6bd3dfaa 7267/^@if /,/^@endif /d"
a0da8069
NN
7268
7269# Create the serialization dependencies. This uses a temporary file.
7270
81ecdfbb
RW
7271# Check whether --enable-serial-configure was given.
7272if test "${enable_serial_configure+set}" = set; then :
7273 enableval=$enable_serial_configure;
7274fi
e6bfb94a
AO
7275
7276
1047cb91
DD
7277case ${enable_serial_configure} in
7278 yes)
7279 enable_serial_build_configure=yes
7280 enable_serial_host_configure=yes
7281 enable_serial_target_configure=yes
7282 ;;
7283esac
7284
a0da8069
NN
7285# These force 'configure's to be done one at a time, to avoid problems
7286# with contention over a shared config.cache.
7287rm -f serdep.tmp
e6bfb94a 7288echo '# serdep.tmp' > serdep.tmp
a0da8069 7289olditem=
1047cb91 7290test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7291for item in ${build_configdirs} ; do
7292 case ${olditem} in
7293 "") ;;
e6bfb94a 7294 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7295 esac
7296 olditem=${item}
7297done
7298olditem=
1047cb91 7299test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7300for item in ${configdirs} ; do
7301 case ${olditem} in
7302 "") ;;
e6bfb94a 7303 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7304 esac
7305 olditem=${item}
7306done
7307olditem=
1047cb91 7308test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7309for item in ${target_configdirs} ; do
7310 case ${olditem} in
7311 "") ;;
e6bfb94a 7312 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7313 esac
7314 olditem=${item}
7315done
7316serialization_dependencies=serdep.tmp
7317
7318
e6bfb94a 7319# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7320# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7321# might not want to pass down to subconfigures. The exception being
7322# --cache-file=/dev/null, which is used to turn off the use of cache
7323# files altogether, and which should be passed on to subconfigures.
7324# Also strip program-prefix, program-suffix, and program-transform-name,
7325# so that we can pass down a consistent program-transform-name.
c6b750e1 7326baseargs=
65b4571a 7327tbaseargs=
c6b750e1
DJ
7328keep_next=no
7329skip_next=no
7330eval "set -- $ac_configure_args"
18f6b6ee
PB
7331for ac_arg
7332do
c6b750e1
DJ
7333 if test X"$skip_next" = X"yes"; then
7334 skip_next=no
7335 continue
7336 fi
7337 if test X"$keep_next" = X"yes"; then
7338 case $ac_arg in
7339 *\'*)
7340 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7341 esac
7342 baseargs="$baseargs '$ac_arg'"
65b4571a 7343 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7344 keep_next=no
7345 continue
7346 fi
7347
7348 # Handle separated arguments. Based on the logic generated by
7349 # autoconf 2.59.
7350 case $ac_arg in
7351 *=* | --config-cache | -C | -disable-* | --disable-* \
7352 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7353 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7354 | -with-* | --with-* | -without-* | --without-* | --x)
7355 separate_arg=no
7356 ;;
7357 -*)
7358 separate_arg=yes
7359 ;;
7360 *)
7361 separate_arg=no
7362 ;;
7363 esac
7364
65b4571a
AO
7365 skip_targ=no
7366 case $ac_arg in
7367
7368 --with-* | --without-*)
7369 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7370
7371 case $libopt in
7372 *[-_]include)
7373 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7374 ;;
7375 *[-_]lib)
7376 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7377 ;;
7378 *)
7379 lib=$libopt
7380 ;;
7381 esac
7382
7383
7384 case $lib in
1b6c0831 7385 mpc | mpfr | gmp | isl)
65b4571a
AO
7386 # If we're processing --with-$lib, --with-$lib-include or
7387 # --with-$lib-lib, for one of the libs above, and target is
7388 # different from host, don't pass the current argument to any
7389 # target library's configure.
7390 if test x$is_cross_compiler = xyes; then
7391 skip_targ=yes
7392 fi
7393 ;;
7394 esac
7395 ;;
7396 esac
7397
c6b750e1 7398 case "$ac_arg" in
30167e0a
NC
7399 --cache-file=/dev/null | \
7400 -cache-file=/dev/null )
7401 # Handled here to avoid the test to skip args below.
7402 baseargs="$baseargs '$ac_arg'"
65b4571a 7403 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7404 # Assert: $separate_arg should always be no.
7405 keep_next=$separate_arg
7406 ;;
c6b750e1
DJ
7407 --no*)
7408 continue
7409 ;;
7410 --c* | \
7411 --sr* | \
7412 --ho* | \
7413 --bu* | \
7414 --t* | \
7415 --program-* | \
7416 -cache_file* | \
7417 -srcdir* | \
7418 -host* | \
7419 -build* | \
7420 -target* | \
7421 -program-prefix* | \
7422 -program-suffix* | \
7423 -program-transform-name* )
7424 skip_next=$separate_arg
7425 continue
7426 ;;
7427 -*)
7428 # An option. Add it.
7429 case $ac_arg in
7430 *\'*)
7431 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7432 esac
7433 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7434 if test X"$skip_targ" = Xno; then
7435 tbaseargs="$tbaseargs '$ac_arg'"
7436 fi
c6b750e1
DJ
7437 keep_next=$separate_arg
7438 ;;
7439 *)
7440 # Either a variable assignment, or a nonopt (triplet). Don't
7441 # pass it down; let the Makefile handle this.
7442 continue
7443 ;;
7444 esac
7445done
7446# Remove the initial space we just introduced and, as these will be
7447# expanded by make, quote '$'.
7448baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7449
f27d4f92
DJ
7450# Add in --program-transform-name, after --program-prefix and
7451# --program-suffix have been applied to it. Autoconf has already
7452# doubled dollar signs and backslashes in program_transform_name; we want
7453# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7454# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7455# Also, because we want to override the logic in subdir configure scripts to
7456# choose program_transform_name, replace any s,x,x, with s,y,y,.
7457sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7458${program_transform_name}
7459EOF_SED
7460gcc_transform_name=`cat conftestsed.out`
7461rm -f conftestsed.out
7462baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7463tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7464if test "$silent" = yes; then
7465 baseargs="$baseargs --silent"
65b4571a 7466 tbaseargs="$tbaseargs --silent"
2444379b 7467fi
34a0f3cf 7468baseargs="$baseargs --disable-option-checking"
65b4571a 7469tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7470
4074d5f2
RW
7471# Record and document user additions to sub configure arguments.
7472
7473
7474
7475
a0da8069
NN
7476# For the build-side libraries, we just need to pretend we're native,
7477# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
7478# desired. We can't even use the same cache file for all build-side
7479# libraries, as they're compiled differently; some with C, some with
7480# C++ or with different feature-enabling options.
7481build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
a0da8069
NN
7482
7483# For host modules, accept cache file option, or specification as blank.
7484case "${cache_file}" in
7485"") # empty
7486 cache_file_option="" ;;
7487/* | [A-Za-z]:[\\/]* ) # absolute path
7488 cache_file_option="--cache-file=${cache_file}" ;;
7489*) # relative path
7490 cache_file_option="--cache-file=../${cache_file}" ;;
7491esac
7492
82252c06
NN
7493# Host dirs don't like to share a cache file either, horribly enough.
7494# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7495host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7496
65b4571a 7497target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7498
7499# Passing a --with-cross-host argument lets the target libraries know
7500# whether they are being built with a cross-compiler or being built
7501# native. However, it would be better to use other mechanisms to make the
7502# sorts of decisions they want to make on this basis. Please consider
7503# this option to be deprecated. FIXME.
7504if test x${is_cross_compiler} = xyes ; then
c6b750e1 7505 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7506fi
7507
afc0578d 7508# Special user-friendly check for native x86_64-linux build, if
7509# multilib is not explicitly enabled.
7510case "$target:$have_compiler:$host:$target:$enable_multilib" in
7511 x86_64-*linux*:yes:$build:$build:)
ce6c656d 7512 # Make sure we have a development environment that handles 32-bit
afc0578d 7513 dev64=no
7514 echo "int main () { return 0; }" > conftest.c
7515 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7516 if test $? = 0 ; then
7517 if test -s conftest || test -s conftest.exe ; then
7518 dev64=yes
7519 fi
7520 fi
7521 rm -f conftest*
7522 if test x${dev64} != xyes ; then
ce6c656d 7523 as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
afc0578d 7524 fi
7525 ;;
7526esac
7527
938d2b74
RW
7528# Default to --enable-multilib.
7529if test x${enable_multilib} = x ; then
a0da8069 7530 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7531fi
a0da8069
NN
7532
7533# Pass --with-newlib if appropriate. Note that target_configdirs has
7534# changed from the earlier setting of with_newlib.
7535if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7536 target_configargs="--with-newlib ${target_configargs}"
7537fi
7538
95036d20
NN
7539# Different target subdirs use different values of certain variables
7540# (notably CXX). Worse, multilibs use *lots* of different values.
7541# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7542# it doesn't automatically accept command-line overrides of them.
7543# This means it's not safe for target subdirs to share a cache file,
7544# which is disgusting, but there you have it. Hopefully this can be
7545# fixed in future. It's still worthwhile to use a cache file for each
7546# directory. I think.
7547
ae380b45
MS
7548# Pass the appropriate --build, --host, --target and --cache-file arguments.
7549# We need to pass --target, as newer autoconf's requires consistency
7550# for target_alias and gcc doesn't manage it consistently.
4b900473 7551target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7552
a0da8069
NN
7553FLAGS_FOR_TARGET=
7554case " $target_configdirs " in
7555 *" newlib "*)
7556 case " $target_configargs " in
7557 *" --with-newlib "*)
7558 case "$target" in
1f53ca9a 7559 *-cygwin*)
6d94c122 7560 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7561 ;;
a0da8069
NN
7562 esac
7563
7564 # If we're not building GCC, don't discard standard headers.
7565 if test -d ${srcdir}/gcc; then
7566 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7567
7568 if test "${build}" != "${host}"; then
7569 # On Canadian crosses, CC_FOR_TARGET will have already been set
7570 # by `configure', so we won't have an opportunity to add -Bgcc/
7571 # to it. This is right: we don't want to search that directory
7572 # for binaries, but we want the header files in there, so add
7573 # them explicitly.
e552509b 7574 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7575
7576 # Someone might think of using the pre-installed headers on
7577 # Canadian crosses, in case the installed compiler is not fully
7578 # compatible with the compiler being built. In this case, it
7579 # would be better to flag an error than risking having
7580 # incompatible object files being constructed. We can't
7581 # guarantee that an error will be flagged, but let's hope the
7582 # compiler will do it, when presented with incompatible header
7583 # files.
7584 fi
7585 fi
7586
7587 case "${target}-${is_cross_compiler}" in
ec11bdc6 7588 i[3456789]86-*-linux*-no)
a0da8069
NN
7589 # Here host == target, so we don't need to build gcc,
7590 # so we don't want to discard standard headers.
7591 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7592 ;;
7593 *)
7594 # If we're building newlib, use its generic headers last, but search
7595 # for any libc-related directories first (so make it the last -B
7596 # switch).
7597 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
7598
7599 # If we're building libgloss, find the startup file, simulator library
7600 # and linker script.
7601 case " $target_configdirs " in
7602 *" libgloss "*)
7603 # Look for startup file, simulator library and maybe linker script.
7604 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7605 # Look for libnosys.a in case the target needs it.
7606 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7607 # Most targets have the linker script in the source directory.
7608 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7609 ;;
7610 esac
a0da8069
NN
7611 ;;
7612 esac
7613 ;;
7614 esac
7615 ;;
7616esac
1f53ca9a 7617
45055374 7618case "$target" in
1f53ca9a
AO
7619 x86_64-*mingw* | *-w64-mingw*)
7620 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7621 # however, use a symlink named 'mingw' in ${prefix} .
7622 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7623 ;;
7624 *-mingw*)
7625 # MinGW can't be handled as Cygwin above since it does not use newlib.
7626 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'
7627 ;;
45055374 7628esac
a0da8069 7629
5fbad20a
DD
7630# Allow the user to override the flags for
7631# our build compiler if desired.
c66487f8
NC
7632if test x"${build}" = x"${host}" ; then
7633 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7634 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7635 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7636fi
5fbad20a 7637
a0da8069
NN
7638# On Canadian crosses, we'll be searching the right directories for
7639# the previously-installed cross compiler, so don't bother to add
7640# flags for directories within the install tree of the compiler
7641# being built; programs in there won't even run.
7642if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7643 # Search for pre-installed headers if nothing else fits.
bba45b8b 7644 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
7645fi
7646
7647if test "x${use_gnu_ld}" = x &&
7648 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7649 # Arrange for us to find uninstalled linker scripts.
b00612cc 7650 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7651fi
7652
a481dbb7
DD
7653# Search for other target-specific linker scripts and such.
7654case "${target}" in
4e206d7e
DB
7655 mep*)
7656 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7657 ;;
7658esac
7659
a0da8069 7660# Makefile fragments.
3e707e94
PB
7661for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7662do
7663 eval fragval=\$$frag
7664 if test $fragval != /dev/null; then
7665 eval $frag=${srcdir}/$fragval
7666 fi
7667done
a0da8069
NN
7668
7669
7670
7671
7672
7673# Miscellanea: directories, flags, etc.
7674
7675
7676
7677
7678
7679
7680
3bbd2f8f 7681
6a9cf61e 7682# Build module lists & subconfigure args.
a0da8069
NN
7683
7684
7685
be01d343
PB
7686# Host module lists & subconfigure args.
7687
7688
7689
911e63d0 7690
be01d343
PB
7691# Target module lists & subconfigure args.
7692
7693
7694
7695# Build tools.
7696
7697
7698
1576798e
PB
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
be01d343
PB
7713# Generate default definitions for YACC, M4, LEX and other programs that run
7714# on the build machine. These are used if the Makefile can't locate these
7715# programs in objdir.
7716MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7717
7718for ac_prog in 'bison -y' byacc yacc
7719do
c6b750e1 7720 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7721set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723$as_echo_n "checking for $ac_word... " >&6; }
7724if test "${ac_cv_prog_YACC+set}" = set; then :
7725 $as_echo_n "(cached) " >&6
be01d343
PB
7726else
7727 if test -n "$YACC"; then
7728 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7729else
c6b750e1
DJ
7730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731for as_dir in $PATH
7732do
7733 IFS=$as_save_IFS
7734 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7737 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7739 break 2
7740 fi
7741done
81ecdfbb
RW
7742 done
7743IFS=$as_save_IFS
c6b750e1 7744
be01d343
PB
7745fi
7746fi
c6b750e1 7747YACC=$ac_cv_prog_YACC
be01d343 7748if test -n "$YACC"; then
81ecdfbb
RW
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7750$as_echo "$YACC" >&6; }
be01d343 7751else
81ecdfbb
RW
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753$as_echo "no" >&6; }
be01d343
PB
7754fi
7755
81ecdfbb 7756
c6b750e1 7757 test -n "$YACC" && break
be01d343
PB
7758done
7759test -n "$YACC" || YACC="$MISSING bison -y"
7760
7761case " $build_configdirs " in
7762 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7763esac
7764
7765for ac_prog in bison
7766do
c6b750e1 7767 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7768set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770$as_echo_n "checking for $ac_word... " >&6; }
7771if test "${ac_cv_prog_BISON+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
be01d343
PB
7773else
7774 if test -n "$BISON"; then
7775 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7776else
c6b750e1
DJ
7777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7784 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7786 break 2
7787 fi
7788done
81ecdfbb
RW
7789 done
7790IFS=$as_save_IFS
c6b750e1 7791
be01d343
PB
7792fi
7793fi
c6b750e1 7794BISON=$ac_cv_prog_BISON
be01d343 7795if test -n "$BISON"; then
81ecdfbb
RW
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7797$as_echo "$BISON" >&6; }
be01d343 7798else
81ecdfbb
RW
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800$as_echo "no" >&6; }
be01d343
PB
7801fi
7802
81ecdfbb 7803
c6b750e1 7804 test -n "$BISON" && break
be01d343
PB
7805done
7806test -n "$BISON" || BISON="$MISSING bison"
7807
7808case " $build_configdirs " in
7809 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7810esac
7811
7812for ac_prog in gm4 gnum4 m4
7813do
c6b750e1 7814 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7815set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817$as_echo_n "checking for $ac_word... " >&6; }
7818if test "${ac_cv_prog_M4+set}" = set; then :
7819 $as_echo_n "(cached) " >&6
be01d343
PB
7820else
7821 if test -n "$M4"; then
7822 ac_cv_prog_M4="$M4" # Let the user override the test.
7823else
c6b750e1
DJ
7824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825for as_dir in $PATH
7826do
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7831 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7833 break 2
7834 fi
7835done
81ecdfbb
RW
7836 done
7837IFS=$as_save_IFS
c6b750e1 7838
be01d343
PB
7839fi
7840fi
c6b750e1 7841M4=$ac_cv_prog_M4
be01d343 7842if test -n "$M4"; then
81ecdfbb
RW
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7844$as_echo "$M4" >&6; }
be01d343 7845else
81ecdfbb
RW
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847$as_echo "no" >&6; }
be01d343
PB
7848fi
7849
81ecdfbb 7850
c6b750e1 7851 test -n "$M4" && break
be01d343
PB
7852done
7853test -n "$M4" || M4="$MISSING m4"
7854
7855case " $build_configdirs " in
7856 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7857esac
7858
7859for ac_prog in flex lex
7860do
c6b750e1 7861 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7862set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864$as_echo_n "checking for $ac_word... " >&6; }
7865if test "${ac_cv_prog_LEX+set}" = set; then :
7866 $as_echo_n "(cached) " >&6
be01d343
PB
7867else
7868 if test -n "$LEX"; then
7869 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7870else
c6b750e1
DJ
7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7878 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7880 break 2
7881 fi
7882done
81ecdfbb
RW
7883 done
7884IFS=$as_save_IFS
c6b750e1 7885
be01d343
PB
7886fi
7887fi
c6b750e1 7888LEX=$ac_cv_prog_LEX
be01d343 7889if test -n "$LEX"; then
81ecdfbb
RW
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7891$as_echo "$LEX" >&6; }
be01d343 7892else
81ecdfbb
RW
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894$as_echo "no" >&6; }
be01d343
PB
7895fi
7896
81ecdfbb 7897
c6b750e1 7898 test -n "$LEX" && break
be01d343
PB
7899done
7900test -n "$LEX" || LEX="$MISSING flex"
7901
7902case " $build_configdirs " in
7903 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7904 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7905esac
7906
7907for ac_prog in flex
7908do
c6b750e1 7909 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7910set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912$as_echo_n "checking for $ac_word... " >&6; }
7913if test "${ac_cv_prog_FLEX+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
be01d343
PB
7915else
7916 if test -n "$FLEX"; then
7917 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7918else
c6b750e1
DJ
7919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920for as_dir in $PATH
7921do
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7926 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7928 break 2
7929 fi
7930done
81ecdfbb
RW
7931 done
7932IFS=$as_save_IFS
c6b750e1 7933
be01d343
PB
7934fi
7935fi
c6b750e1 7936FLEX=$ac_cv_prog_FLEX
be01d343 7937if test -n "$FLEX"; then
81ecdfbb
RW
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7939$as_echo "$FLEX" >&6; }
be01d343 7940else
81ecdfbb
RW
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942$as_echo "no" >&6; }
be01d343
PB
7943fi
7944
81ecdfbb 7945
c6b750e1 7946 test -n "$FLEX" && break
be01d343
PB
7947done
7948test -n "$FLEX" || FLEX="$MISSING flex"
7949
7950case " $build_configdirs " in
7951 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7952esac
7953
7954for ac_prog in makeinfo
7955do
c6b750e1 7956 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7957set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959$as_echo_n "checking for $ac_word... " >&6; }
7960if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7961 $as_echo_n "(cached) " >&6
be01d343
PB
7962else
7963 if test -n "$MAKEINFO"; then
7964 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7965else
c6b750e1
DJ
7966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967for as_dir in $PATH
7968do
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7973 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7975 break 2
7976 fi
7977done
81ecdfbb
RW
7978 done
7979IFS=$as_save_IFS
c6b750e1 7980
be01d343
PB
7981fi
7982fi
c6b750e1 7983MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7984if test -n "$MAKEINFO"; then
81ecdfbb
RW
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7986$as_echo "$MAKEINFO" >&6; }
be01d343 7987else
81ecdfbb
RW
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989$as_echo "no" >&6; }
be01d343
PB
7990fi
7991
81ecdfbb 7992
c6b750e1 7993 test -n "$MAKEINFO" && break
be01d343
PB
7994done
7995test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7996
7997case " $build_configdirs " in
7998 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7999 *)
8000
10ad8ef3 8001 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
8002 # higher, else we use the "missing" dummy.
8003 if ${MAKEINFO} --version \
10ad8ef3 8004 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
8005 :
8006 else
8007 MAKEINFO="$MISSING makeinfo"
8008 fi
8009 ;;
8010
8011esac
a0da8069 8012
be01d343 8013# FIXME: expect and dejagnu may become build tools?
a0da8069 8014
be01d343
PB
8015for ac_prog in expect
8016do
c6b750e1 8017 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8018set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020$as_echo_n "checking for $ac_word... " >&6; }
8021if test "${ac_cv_prog_EXPECT+set}" = set; then :
8022 $as_echo_n "(cached) " >&6
be01d343
PB
8023else
8024 if test -n "$EXPECT"; then
8025 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8026else
c6b750e1
DJ
8027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028for as_dir in $PATH
8029do
8030 IFS=$as_save_IFS
8031 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8032 for ac_exec_ext in '' $ac_executable_extensions; do
8033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8034 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8036 break 2
8037 fi
8038done
81ecdfbb
RW
8039 done
8040IFS=$as_save_IFS
c6b750e1 8041
be01d343
PB
8042fi
8043fi
c6b750e1 8044EXPECT=$ac_cv_prog_EXPECT
be01d343 8045if test -n "$EXPECT"; then
81ecdfbb
RW
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8047$as_echo "$EXPECT" >&6; }
be01d343 8048else
81ecdfbb
RW
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050$as_echo "no" >&6; }
be01d343 8051fi
a0da8069 8052
81ecdfbb 8053
c6b750e1 8054 test -n "$EXPECT" && break
be01d343
PB
8055done
8056test -n "$EXPECT" || EXPECT="expect"
a0da8069 8057
be01d343
PB
8058case " $configdirs " in
8059 *" expect "*)
8060 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8061 ;;
8062esac
a0da8069 8063
be01d343
PB
8064for ac_prog in runtest
8065do
c6b750e1 8066 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8067set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069$as_echo_n "checking for $ac_word... " >&6; }
8070if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8071 $as_echo_n "(cached) " >&6
be01d343
PB
8072else
8073 if test -n "$RUNTEST"; then
8074 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8075else
c6b750e1
DJ
8076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077for as_dir in $PATH
8078do
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8083 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8085 break 2
8086 fi
8087done
81ecdfbb
RW
8088 done
8089IFS=$as_save_IFS
c6b750e1 8090
be01d343
PB
8091fi
8092fi
c6b750e1 8093RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8094if test -n "$RUNTEST"; then
81ecdfbb
RW
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8096$as_echo "$RUNTEST" >&6; }
be01d343 8097else
81ecdfbb
RW
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099$as_echo "no" >&6; }
be01d343 8100fi
a0da8069 8101
81ecdfbb 8102
c6b750e1 8103 test -n "$RUNTEST" && break
be01d343
PB
8104done
8105test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8106
be01d343
PB
8107case " $configdirs " in
8108 *" dejagnu "*)
6b89cc21 8109 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8110 ;;
8111esac
a0da8069
NN
8112
8113
a0da8069 8114# Host tools.
859789af
AC
8115ncn_tool_prefix=
8116test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8117ncn_target_tool_prefix=
8118test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8119
9a819804
AO
8120
8121
8122if test -n "$AR"; then
8123 ac_cv_prog_AR=$AR
8124elif test -n "$ac_cv_prog_AR"; then
8125 AR=$ac_cv_prog_AR
8126fi
8127
8128if test -n "$ac_cv_prog_AR"; then
8129 for ncn_progname in ar; do
8130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8131set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133$as_echo_n "checking for $ac_word... " >&6; }
8134if test "${ac_cv_prog_AR+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
9a819804
AO
8136else
8137 if test -n "$AR"; then
8138 ac_cv_prog_AR="$AR" # Let the user override the test.
8139else
8140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141for as_dir in $PATH
8142do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8147 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8149 break 2
8150 fi
8151done
81ecdfbb
RW
8152 done
8153IFS=$as_save_IFS
9a819804
AO
8154
8155fi
8156fi
8157AR=$ac_cv_prog_AR
8158if test -n "$AR"; then
81ecdfbb
RW
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8160$as_echo "$AR" >&6; }
9a819804 8161else
81ecdfbb
RW
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163$as_echo "no" >&6; }
9a819804
AO
8164fi
8165
81ecdfbb 8166
9a819804
AO
8167 done
8168fi
8169
8170for ncn_progname in ar; do
05cbd757
PB
8171 if test -n "$ncn_tool_prefix"; then
8172 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8173set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175$as_echo_n "checking for $ac_word... " >&6; }
8176if test "${ac_cv_prog_AR+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
859789af
AC
8178else
8179 if test -n "$AR"; then
8180 ac_cv_prog_AR="$AR" # Let the user override the test.
8181else
c6b750e1
DJ
8182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183for as_dir in $PATH
8184do
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8189 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8191 break 2
8192 fi
8193done
81ecdfbb
RW
8194 done
8195IFS=$as_save_IFS
c6b750e1 8196
859789af
AC
8197fi
8198fi
c6b750e1 8199AR=$ac_cv_prog_AR
859789af 8200if test -n "$AR"; then
81ecdfbb
RW
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8202$as_echo "$AR" >&6; }
859789af 8203else
81ecdfbb
RW
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205$as_echo "no" >&6; }
859789af
AC
8206fi
8207
81ecdfbb 8208
05cbd757
PB
8209 fi
8210 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8212set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214$as_echo_n "checking for $ac_word... " >&6; }
8215if test "${ac_cv_prog_AR+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
859789af 8217else
05cbd757
PB
8218 if test -n "$AR"; then
8219 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8220else
c6b750e1
DJ
8221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222for as_dir in $PATH
8223do
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8228 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8230 break 2
8231 fi
8232done
81ecdfbb
RW
8233 done
8234IFS=$as_save_IFS
c6b750e1 8235
859789af
AC
8236fi
8237fi
c6b750e1 8238AR=$ac_cv_prog_AR
05cbd757 8239if test -n "$AR"; then
81ecdfbb
RW
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8241$as_echo "$AR" >&6; }
859789af 8242else
81ecdfbb
RW
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244$as_echo "no" >&6; }
859789af 8245fi
c6b750e1 8246
81ecdfbb 8247
05cbd757
PB
8248 fi
8249 test -n "$ac_cv_prog_AR" && break
8250done
8251
8252if test -z "$ac_cv_prog_AR" ; then
8253 set dummy ar
8254 if test $build = $host ; then
8255 AR="$2"
859789af 8256 else
05cbd757 8257 AR="${ncn_tool_prefix}$2"
859789af 8258 fi
859789af
AC
8259fi
8260
9a819804
AO
8261
8262
8263if test -n "$AS"; then
8264 ac_cv_prog_AS=$AS
8265elif test -n "$ac_cv_prog_AS"; then
8266 AS=$ac_cv_prog_AS
8267fi
8268
8269if test -n "$ac_cv_prog_AS"; then
8270 for ncn_progname in as; do
8271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8272set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274$as_echo_n "checking for $ac_word... " >&6; }
8275if test "${ac_cv_prog_AS+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
9a819804
AO
8277else
8278 if test -n "$AS"; then
8279 ac_cv_prog_AS="$AS" # Let the user override the test.
8280else
8281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282for as_dir in $PATH
8283do
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8288 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8290 break 2
8291 fi
8292done
81ecdfbb
RW
8293 done
8294IFS=$as_save_IFS
9a819804
AO
8295
8296fi
8297fi
8298AS=$ac_cv_prog_AS
8299if test -n "$AS"; then
81ecdfbb
RW
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8301$as_echo "$AS" >&6; }
9a819804 8302else
81ecdfbb
RW
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304$as_echo "no" >&6; }
9a819804
AO
8305fi
8306
81ecdfbb 8307
9a819804
AO
8308 done
8309fi
8310
8311for ncn_progname in as; do
05cbd757
PB
8312 if test -n "$ncn_tool_prefix"; then
8313 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8314set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316$as_echo_n "checking for $ac_word... " >&6; }
8317if test "${ac_cv_prog_AS+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
859789af
AC
8319else
8320 if test -n "$AS"; then
8321 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8322else
8323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324for as_dir in $PATH
8325do
8326 IFS=$as_save_IFS
8327 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8330 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8332 break 2
8333 fi
8334done
81ecdfbb
RW
8335 done
8336IFS=$as_save_IFS
c6b750e1 8337
859789af
AC
8338fi
8339fi
c6b750e1 8340AS=$ac_cv_prog_AS
859789af 8341if test -n "$AS"; then
81ecdfbb
RW
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8343$as_echo "$AS" >&6; }
859789af 8344else
81ecdfbb
RW
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346$as_echo "no" >&6; }
859789af
AC
8347fi
8348
81ecdfbb 8349
05cbd757
PB
8350 fi
8351 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8353set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355$as_echo_n "checking for $ac_word... " >&6; }
8356if test "${ac_cv_prog_AS+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
859789af 8358else
05cbd757
PB
8359 if test -n "$AS"; then
8360 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8361else
c6b750e1
DJ
8362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363for as_dir in $PATH
8364do
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8369 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8371 break 2
8372 fi
8373done
81ecdfbb
RW
8374 done
8375IFS=$as_save_IFS
c6b750e1 8376
859789af
AC
8377fi
8378fi
c6b750e1 8379AS=$ac_cv_prog_AS
05cbd757 8380if test -n "$AS"; then
81ecdfbb
RW
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8382$as_echo "$AS" >&6; }
859789af 8383else
81ecdfbb
RW
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385$as_echo "no" >&6; }
859789af 8386fi
c6b750e1 8387
81ecdfbb 8388
05cbd757
PB
8389 fi
8390 test -n "$ac_cv_prog_AS" && break
8391done
8392
8393if test -z "$ac_cv_prog_AS" ; then
8394 set dummy as
8395 if test $build = $host ; then
8396 AS="$2"
859789af 8397 else
05cbd757 8398 AS="${ncn_tool_prefix}$2"
859789af 8399 fi
859789af
AC
8400fi
8401
9a819804
AO
8402
8403
8404if test -n "$DLLTOOL"; then
8405 ac_cv_prog_DLLTOOL=$DLLTOOL
8406elif test -n "$ac_cv_prog_DLLTOOL"; then
8407 DLLTOOL=$ac_cv_prog_DLLTOOL
8408fi
8409
8410if test -n "$ac_cv_prog_DLLTOOL"; then
8411 for ncn_progname in dlltool; do
8412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8413set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415$as_echo_n "checking for $ac_word... " >&6; }
8416if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8417 $as_echo_n "(cached) " >&6
9a819804
AO
8418else
8419 if test -n "$DLLTOOL"; then
8420 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8421else
8422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423for as_dir in $PATH
8424do
8425 IFS=$as_save_IFS
8426 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8429 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8431 break 2
8432 fi
8433done
81ecdfbb
RW
8434 done
8435IFS=$as_save_IFS
9a819804
AO
8436
8437fi
8438fi
8439DLLTOOL=$ac_cv_prog_DLLTOOL
8440if test -n "$DLLTOOL"; then
81ecdfbb
RW
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8442$as_echo "$DLLTOOL" >&6; }
9a819804 8443else
81ecdfbb
RW
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445$as_echo "no" >&6; }
9a819804
AO
8446fi
8447
81ecdfbb 8448
9a819804
AO
8449 done
8450fi
8451
8452for ncn_progname in dlltool; do
05cbd757
PB
8453 if test -n "$ncn_tool_prefix"; then
8454 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8455set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457$as_echo_n "checking for $ac_word... " >&6; }
8458if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
859789af
AC
8460else
8461 if test -n "$DLLTOOL"; then
8462 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8463else
c6b750e1
DJ
8464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465for as_dir in $PATH
8466do
8467 IFS=$as_save_IFS
8468 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8471 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8473 break 2
8474 fi
8475done
81ecdfbb
RW
8476 done
8477IFS=$as_save_IFS
c6b750e1 8478
859789af
AC
8479fi
8480fi
c6b750e1 8481DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8482if test -n "$DLLTOOL"; then
81ecdfbb
RW
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8484$as_echo "$DLLTOOL" >&6; }
859789af 8485else
81ecdfbb
RW
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487$as_echo "no" >&6; }
859789af
AC
8488fi
8489
81ecdfbb 8490
05cbd757
PB
8491 fi
8492 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8494set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496$as_echo_n "checking for $ac_word... " >&6; }
8497if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
859789af 8499else
05cbd757
PB
8500 if test -n "$DLLTOOL"; then
8501 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8502else
c6b750e1
DJ
8503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504for as_dir in $PATH
8505do
8506 IFS=$as_save_IFS
8507 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8510 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8512 break 2
8513 fi
8514done
81ecdfbb
RW
8515 done
8516IFS=$as_save_IFS
c6b750e1 8517
859789af
AC
8518fi
8519fi
c6b750e1 8520DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8521if test -n "$DLLTOOL"; then
81ecdfbb
RW
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8523$as_echo "$DLLTOOL" >&6; }
859789af 8524else
81ecdfbb
RW
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526$as_echo "no" >&6; }
859789af 8527fi
c6b750e1 8528
81ecdfbb 8529
05cbd757
PB
8530 fi
8531 test -n "$ac_cv_prog_DLLTOOL" && break
8532done
8533
8534if test -z "$ac_cv_prog_DLLTOOL" ; then
8535 set dummy dlltool
8536 if test $build = $host ; then
8537 DLLTOOL="$2"
859789af 8538 else
05cbd757 8539 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8540 fi
859789af
AC
8541fi
8542
9a819804
AO
8543
8544
8545if test -n "$LD"; then
8546 ac_cv_prog_LD=$LD
8547elif test -n "$ac_cv_prog_LD"; then
8548 LD=$ac_cv_prog_LD
8549fi
8550
8551if test -n "$ac_cv_prog_LD"; then
8552 for ncn_progname in ld; do
8553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8554set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556$as_echo_n "checking for $ac_word... " >&6; }
8557if test "${ac_cv_prog_LD+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
9a819804
AO
8559else
8560 if test -n "$LD"; then
8561 ac_cv_prog_LD="$LD" # Let the user override the test.
8562else
8563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564for as_dir in $PATH
8565do
8566 IFS=$as_save_IFS
8567 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8568 for ac_exec_ext in '' $ac_executable_extensions; do
8569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8570 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8572 break 2
8573 fi
8574done
81ecdfbb
RW
8575 done
8576IFS=$as_save_IFS
9a819804
AO
8577
8578fi
8579fi
8580LD=$ac_cv_prog_LD
8581if test -n "$LD"; then
81ecdfbb
RW
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8583$as_echo "$LD" >&6; }
9a819804 8584else
81ecdfbb
RW
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586$as_echo "no" >&6; }
9a819804
AO
8587fi
8588
81ecdfbb 8589
9a819804
AO
8590 done
8591fi
8592
8593for ncn_progname in ld; do
05cbd757
PB
8594 if test -n "$ncn_tool_prefix"; then
8595 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8596set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598$as_echo_n "checking for $ac_word... " >&6; }
8599if test "${ac_cv_prog_LD+set}" = set; then :
8600 $as_echo_n "(cached) " >&6
859789af
AC
8601else
8602 if test -n "$LD"; then
8603 ac_cv_prog_LD="$LD" # Let the user override the test.
8604else
c6b750e1
DJ
8605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606for as_dir in $PATH
8607do
8608 IFS=$as_save_IFS
8609 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8612 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8614 break 2
8615 fi
8616done
81ecdfbb
RW
8617 done
8618IFS=$as_save_IFS
c6b750e1 8619
859789af
AC
8620fi
8621fi
c6b750e1 8622LD=$ac_cv_prog_LD
859789af 8623if test -n "$LD"; then
81ecdfbb
RW
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8625$as_echo "$LD" >&6; }
859789af 8626else
81ecdfbb
RW
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628$as_echo "no" >&6; }
859789af
AC
8629fi
8630
81ecdfbb 8631
05cbd757
PB
8632 fi
8633 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8635set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637$as_echo_n "checking for $ac_word... " >&6; }
8638if test "${ac_cv_prog_LD+set}" = set; then :
8639 $as_echo_n "(cached) " >&6
859789af 8640else
05cbd757
PB
8641 if test -n "$LD"; then
8642 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8643else
c6b750e1
DJ
8644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645for as_dir in $PATH
8646do
8647 IFS=$as_save_IFS
8648 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8651 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8653 break 2
8654 fi
8655done
81ecdfbb
RW
8656 done
8657IFS=$as_save_IFS
c6b750e1 8658
859789af
AC
8659fi
8660fi
c6b750e1 8661LD=$ac_cv_prog_LD
05cbd757 8662if test -n "$LD"; then
81ecdfbb
RW
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8664$as_echo "$LD" >&6; }
859789af 8665else
81ecdfbb
RW
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667$as_echo "no" >&6; }
859789af 8668fi
c6b750e1 8669
81ecdfbb 8670
05cbd757
PB
8671 fi
8672 test -n "$ac_cv_prog_LD" && break
8673done
8674
8675if test -z "$ac_cv_prog_LD" ; then
8676 set dummy ld
8677 if test $build = $host ; then
8678 LD="$2"
859789af 8679 else
05cbd757 8680 LD="${ncn_tool_prefix}$2"
859789af 8681 fi
859789af
AC
8682fi
8683
9a819804
AO
8684
8685
8686if test -n "$LIPO"; then
8687 ac_cv_prog_LIPO=$LIPO
8688elif test -n "$ac_cv_prog_LIPO"; then
8689 LIPO=$ac_cv_prog_LIPO
8690fi
8691
8692if test -n "$ac_cv_prog_LIPO"; then
8693 for ncn_progname in lipo; do
8694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8695set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697$as_echo_n "checking for $ac_word... " >&6; }
8698if test "${ac_cv_prog_LIPO+set}" = set; then :
8699 $as_echo_n "(cached) " >&6
9a819804
AO
8700else
8701 if test -n "$LIPO"; then
8702 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8703else
8704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705for as_dir in $PATH
8706do
8707 IFS=$as_save_IFS
8708 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8711 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8713 break 2
8714 fi
8715done
81ecdfbb
RW
8716 done
8717IFS=$as_save_IFS
9a819804
AO
8718
8719fi
8720fi
8721LIPO=$ac_cv_prog_LIPO
8722if test -n "$LIPO"; then
81ecdfbb
RW
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8724$as_echo "$LIPO" >&6; }
9a819804 8725else
81ecdfbb
RW
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727$as_echo "no" >&6; }
9a819804
AO
8728fi
8729
81ecdfbb 8730
9a819804
AO
8731 done
8732fi
8733
8734for ncn_progname in lipo; do
be01d343
PB
8735 if test -n "$ncn_tool_prefix"; then
8736 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8737set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739$as_echo_n "checking for $ac_word... " >&6; }
8740if test "${ac_cv_prog_LIPO+set}" = set; then :
8741 $as_echo_n "(cached) " >&6
be01d343
PB
8742else
8743 if test -n "$LIPO"; then
8744 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8745else
c6b750e1
DJ
8746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747for as_dir in $PATH
8748do
8749 IFS=$as_save_IFS
8750 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8753 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8755 break 2
8756 fi
8757done
81ecdfbb
RW
8758 done
8759IFS=$as_save_IFS
c6b750e1 8760
be01d343
PB
8761fi
8762fi
c6b750e1 8763LIPO=$ac_cv_prog_LIPO
be01d343 8764if test -n "$LIPO"; then
81ecdfbb
RW
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8766$as_echo "$LIPO" >&6; }
be01d343 8767else
81ecdfbb
RW
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769$as_echo "no" >&6; }
be01d343
PB
8770fi
8771
81ecdfbb 8772
be01d343
PB
8773 fi
8774 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8776set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778$as_echo_n "checking for $ac_word... " >&6; }
8779if test "${ac_cv_prog_LIPO+set}" = set; then :
8780 $as_echo_n "(cached) " >&6
be01d343
PB
8781else
8782 if test -n "$LIPO"; then
8783 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8784else
c6b750e1
DJ
8785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786for as_dir in $PATH
8787do
8788 IFS=$as_save_IFS
8789 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8792 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8794 break 2
8795 fi
8796done
81ecdfbb
RW
8797 done
8798IFS=$as_save_IFS
c6b750e1 8799
be01d343
PB
8800fi
8801fi
c6b750e1 8802LIPO=$ac_cv_prog_LIPO
be01d343 8803if test -n "$LIPO"; then
81ecdfbb
RW
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8805$as_echo "$LIPO" >&6; }
be01d343 8806else
81ecdfbb
RW
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808$as_echo "no" >&6; }
be01d343 8809fi
c6b750e1 8810
81ecdfbb 8811
be01d343
PB
8812 fi
8813 test -n "$ac_cv_prog_LIPO" && break
8814done
8815
8816if test -z "$ac_cv_prog_LIPO" ; then
8817 set dummy lipo
8818 if test $build = $host ; then
8819 LIPO="$2"
8820 else
8821 LIPO="${ncn_tool_prefix}$2"
8822 fi
8823fi
8824
9a819804
AO
8825
8826
8827if test -n "$NM"; then
8828 ac_cv_prog_NM=$NM
8829elif test -n "$ac_cv_prog_NM"; then
8830 NM=$ac_cv_prog_NM
8831fi
8832
8833if test -n "$ac_cv_prog_NM"; then
8834 for ncn_progname in nm; do
8835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8836set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8838$as_echo_n "checking for $ac_word... " >&6; }
8839if test "${ac_cv_prog_NM+set}" = set; then :
8840 $as_echo_n "(cached) " >&6
859789af
AC
8841else
8842 if test -n "$NM"; then
8843 ac_cv_prog_NM="$NM" # Let the user override the test.
8844else
c6b750e1
DJ
8845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846for as_dir in $PATH
8847do
8848 IFS=$as_save_IFS
8849 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8850 for ac_exec_ext in '' $ac_executable_extensions; do
8851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8852 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8854 break 2
8855 fi
8856done
81ecdfbb
RW
8857 done
8858IFS=$as_save_IFS
c6b750e1 8859
859789af
AC
8860fi
8861fi
c6b750e1 8862NM=$ac_cv_prog_NM
859789af 8863if test -n "$NM"; then
81ecdfbb
RW
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8865$as_echo "$NM" >&6; }
859789af 8866else
81ecdfbb
RW
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868$as_echo "no" >&6; }
859789af
AC
8869fi
8870
81ecdfbb 8871
9a819804
AO
8872 done
8873fi
8874
8875for ncn_progname in nm; do
8876 if test -n "$ncn_tool_prefix"; then
8877 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8878set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880$as_echo_n "checking for $ac_word... " >&6; }
8881if test "${ac_cv_prog_NM+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
859789af 8883else
05cbd757
PB
8884 if test -n "$NM"; then
8885 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8886else
c6b750e1
DJ
8887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888for as_dir in $PATH
8889do
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8894 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8896 break 2
8897 fi
8898done
81ecdfbb
RW
8899 done
8900IFS=$as_save_IFS
c6b750e1 8901
859789af
AC
8902fi
8903fi
c6b750e1 8904NM=$ac_cv_prog_NM
05cbd757 8905if test -n "$NM"; then
81ecdfbb
RW
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8907$as_echo "$NM" >&6; }
859789af 8908else
81ecdfbb
RW
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910$as_echo "no" >&6; }
859789af 8911fi
c6b750e1 8912
81ecdfbb 8913
05cbd757 8914 fi
9a819804
AO
8915 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8917set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919$as_echo_n "checking for $ac_word... " >&6; }
8920if test "${ac_cv_prog_NM+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
9a819804
AO
8922else
8923 if test -n "$NM"; then
8924 ac_cv_prog_NM="$NM" # Let the user override the test.
8925else
8926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927for as_dir in $PATH
8928do
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8933 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8935 break 2
8936 fi
8937done
81ecdfbb
RW
8938 done
8939IFS=$as_save_IFS
9a819804
AO
8940
8941fi
8942fi
8943NM=$ac_cv_prog_NM
8944if test -n "$NM"; then
81ecdfbb
RW
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8946$as_echo "$NM" >&6; }
9a819804 8947else
81ecdfbb
RW
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949$as_echo "no" >&6; }
9a819804
AO
8950fi
8951
81ecdfbb 8952
9a819804
AO
8953 fi
8954 test -n "$ac_cv_prog_NM" && break
8955done
8956
8957if test -z "$ac_cv_prog_NM" ; then
8958 set dummy nm
8959 if test $build = $host ; then
8960 NM="$2"
8961 else
8962 NM="${ncn_tool_prefix}$2"
8963 fi
8964fi
8965
8966
8967
8968if test -n "$RANLIB"; then
8969 ac_cv_prog_RANLIB=$RANLIB
8970elif test -n "$ac_cv_prog_RANLIB"; then
8971 RANLIB=$ac_cv_prog_RANLIB
8972fi
8973
8974if test -n "$ac_cv_prog_RANLIB"; then
8975 for ncn_progname in ranlib; do
8976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8977set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979$as_echo_n "checking for $ac_word... " >&6; }
8980if test "${ac_cv_prog_RANLIB+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
9a819804
AO
8982else
8983 if test -n "$RANLIB"; then
8984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8985else
8986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987for as_dir in $PATH
8988do
8989 IFS=$as_save_IFS
8990 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8993 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8995 break 2
8996 fi
8997done
81ecdfbb
RW
8998 done
8999IFS=$as_save_IFS
9a819804
AO
9000
9001fi
9002fi
9003RANLIB=$ac_cv_prog_RANLIB
9004if test -n "$RANLIB"; then
81ecdfbb
RW
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9006$as_echo "$RANLIB" >&6; }
9a819804 9007else
81ecdfbb
RW
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009$as_echo "no" >&6; }
9a819804
AO
9010fi
9011
81ecdfbb 9012
9a819804
AO
9013 done
9014fi
859789af 9015
9a819804 9016for ncn_progname in ranlib; do
05cbd757
PB
9017 if test -n "$ncn_tool_prefix"; then
9018 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9019set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9021$as_echo_n "checking for $ac_word... " >&6; }
9022if test "${ac_cv_prog_RANLIB+set}" = set; then :
9023 $as_echo_n "(cached) " >&6
859789af
AC
9024else
9025 if test -n "$RANLIB"; then
9026 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9027else
c6b750e1
DJ
9028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9029for as_dir in $PATH
9030do
9031 IFS=$as_save_IFS
9032 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9033 for ac_exec_ext in '' $ac_executable_extensions; do
9034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9035 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9037 break 2
9038 fi
9039done
81ecdfbb
RW
9040 done
9041IFS=$as_save_IFS
c6b750e1 9042
859789af
AC
9043fi
9044fi
c6b750e1 9045RANLIB=$ac_cv_prog_RANLIB
859789af 9046if test -n "$RANLIB"; then
81ecdfbb
RW
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9048$as_echo "$RANLIB" >&6; }
859789af 9049else
81ecdfbb
RW
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051$as_echo "no" >&6; }
859789af
AC
9052fi
9053
81ecdfbb 9054
05cbd757
PB
9055 fi
9056 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9058set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9060$as_echo_n "checking for $ac_word... " >&6; }
9061if test "${ac_cv_prog_RANLIB+set}" = set; then :
9062 $as_echo_n "(cached) " >&6
859789af 9063else
05cbd757
PB
9064 if test -n "$RANLIB"; then
9065 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9066else
c6b750e1
DJ
9067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068for as_dir in $PATH
9069do
9070 IFS=$as_save_IFS
9071 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9072 for ac_exec_ext in '' $ac_executable_extensions; do
9073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9074 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9076 break 2
9077 fi
9078done
81ecdfbb
RW
9079 done
9080IFS=$as_save_IFS
c6b750e1 9081
859789af
AC
9082fi
9083fi
c6b750e1 9084RANLIB=$ac_cv_prog_RANLIB
05cbd757 9085if test -n "$RANLIB"; then
81ecdfbb
RW
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9087$as_echo "$RANLIB" >&6; }
859789af 9088else
81ecdfbb
RW
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090$as_echo "no" >&6; }
859789af 9091fi
c6b750e1 9092
81ecdfbb 9093
859789af 9094 fi
05cbd757
PB
9095 test -n "$ac_cv_prog_RANLIB" && break
9096done
9097
9098if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9099 RANLIB="true"
859789af
AC
9100fi
9101
9a819804
AO
9102
9103
9104if test -n "$STRIP"; then
9105 ac_cv_prog_STRIP=$STRIP
9106elif test -n "$ac_cv_prog_STRIP"; then
9107 STRIP=$ac_cv_prog_STRIP
9108fi
9109
9110if test -n "$ac_cv_prog_STRIP"; then
9111 for ncn_progname in strip; do
9112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9113set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9115$as_echo_n "checking for $ac_word... " >&6; }
9116if test "${ac_cv_prog_STRIP+set}" = set; then :
9117 $as_echo_n "(cached) " >&6
9a819804
AO
9118else
9119 if test -n "$STRIP"; then
9120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9121else
9122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123for as_dir in $PATH
9124do
9125 IFS=$as_save_IFS
9126 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9127 for ac_exec_ext in '' $ac_executable_extensions; do
9128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9129 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9131 break 2
9132 fi
9133done
81ecdfbb
RW
9134 done
9135IFS=$as_save_IFS
9a819804
AO
9136
9137fi
9138fi
9139STRIP=$ac_cv_prog_STRIP
9140if test -n "$STRIP"; then
81ecdfbb
RW
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9142$as_echo "$STRIP" >&6; }
9a819804 9143else
81ecdfbb
RW
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145$as_echo "no" >&6; }
9a819804
AO
9146fi
9147
81ecdfbb 9148
9a819804
AO
9149 done
9150fi
9151
9152for ncn_progname in strip; do
be01d343
PB
9153 if test -n "$ncn_tool_prefix"; then
9154 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9155set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9157$as_echo_n "checking for $ac_word... " >&6; }
9158if test "${ac_cv_prog_STRIP+set}" = set; then :
9159 $as_echo_n "(cached) " >&6
be01d343
PB
9160else
9161 if test -n "$STRIP"; then
9162 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9163else
c6b750e1
DJ
9164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165for as_dir in $PATH
9166do
9167 IFS=$as_save_IFS
9168 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9171 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9173 break 2
9174 fi
9175done
81ecdfbb
RW
9176 done
9177IFS=$as_save_IFS
c6b750e1 9178
be01d343
PB
9179fi
9180fi
c6b750e1 9181STRIP=$ac_cv_prog_STRIP
be01d343 9182if test -n "$STRIP"; then
81ecdfbb
RW
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9184$as_echo "$STRIP" >&6; }
be01d343 9185else
81ecdfbb
RW
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187$as_echo "no" >&6; }
be01d343
PB
9188fi
9189
81ecdfbb 9190
be01d343
PB
9191 fi
9192 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9194set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9196$as_echo_n "checking for $ac_word... " >&6; }
9197if test "${ac_cv_prog_STRIP+set}" = set; then :
9198 $as_echo_n "(cached) " >&6
be01d343
PB
9199else
9200 if test -n "$STRIP"; then
9201 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9202else
c6b750e1
DJ
9203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204for as_dir in $PATH
9205do
9206 IFS=$as_save_IFS
9207 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9208 for ac_exec_ext in '' $ac_executable_extensions; do
9209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9210 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9212 break 2
9213 fi
9214done
81ecdfbb
RW
9215 done
9216IFS=$as_save_IFS
c6b750e1 9217
be01d343
PB
9218fi
9219fi
c6b750e1 9220STRIP=$ac_cv_prog_STRIP
be01d343 9221if test -n "$STRIP"; then
81ecdfbb
RW
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9223$as_echo "$STRIP" >&6; }
be01d343 9224else
81ecdfbb
RW
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226$as_echo "no" >&6; }
be01d343 9227fi
c6b750e1 9228
81ecdfbb 9229
be01d343
PB
9230 fi
9231 test -n "$ac_cv_prog_STRIP" && break
9232done
9233
9234if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9235 STRIP="true"
be01d343
PB
9236fi
9237
9a819804
AO
9238
9239
9240if test -n "$WINDRES"; then
9241 ac_cv_prog_WINDRES=$WINDRES
9242elif test -n "$ac_cv_prog_WINDRES"; then
9243 WINDRES=$ac_cv_prog_WINDRES
9244fi
9245
9246if test -n "$ac_cv_prog_WINDRES"; then
9247 for ncn_progname in windres; do
9248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9249set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251$as_echo_n "checking for $ac_word... " >&6; }
9252if test "${ac_cv_prog_WINDRES+set}" = set; then :
9253 $as_echo_n "(cached) " >&6
9a819804
AO
9254else
9255 if test -n "$WINDRES"; then
9256 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9257else
9258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259for as_dir in $PATH
9260do
9261 IFS=$as_save_IFS
9262 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9263 for ac_exec_ext in '' $ac_executable_extensions; do
9264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9265 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9267 break 2
9268 fi
9269done
81ecdfbb
RW
9270 done
9271IFS=$as_save_IFS
9a819804
AO
9272
9273fi
9274fi
9275WINDRES=$ac_cv_prog_WINDRES
9276if test -n "$WINDRES"; then
81ecdfbb
RW
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9278$as_echo "$WINDRES" >&6; }
9a819804 9279else
81ecdfbb
RW
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281$as_echo "no" >&6; }
9a819804
AO
9282fi
9283
81ecdfbb 9284
9a819804
AO
9285 done
9286fi
9287
9288for ncn_progname in windres; do
05cbd757
PB
9289 if test -n "$ncn_tool_prefix"; then
9290 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9291set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9293$as_echo_n "checking for $ac_word... " >&6; }
9294if test "${ac_cv_prog_WINDRES+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
859789af
AC
9296else
9297 if test -n "$WINDRES"; then
9298 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9299else
c6b750e1
DJ
9300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9301for as_dir in $PATH
9302do
9303 IFS=$as_save_IFS
9304 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9305 for ac_exec_ext in '' $ac_executable_extensions; do
9306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9307 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9309 break 2
9310 fi
9311done
81ecdfbb
RW
9312 done
9313IFS=$as_save_IFS
c6b750e1 9314
859789af
AC
9315fi
9316fi
c6b750e1 9317WINDRES=$ac_cv_prog_WINDRES
859789af 9318if test -n "$WINDRES"; then
81ecdfbb
RW
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9320$as_echo "$WINDRES" >&6; }
859789af 9321else
81ecdfbb
RW
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323$as_echo "no" >&6; }
859789af
AC
9324fi
9325
81ecdfbb 9326
05cbd757
PB
9327 fi
9328 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9330set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332$as_echo_n "checking for $ac_word... " >&6; }
9333if test "${ac_cv_prog_WINDRES+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
859789af 9335else
05cbd757
PB
9336 if test -n "$WINDRES"; then
9337 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9338else
c6b750e1
DJ
9339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340for as_dir in $PATH
9341do
9342 IFS=$as_save_IFS
9343 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9346 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9348 break 2
9349 fi
9350done
81ecdfbb
RW
9351 done
9352IFS=$as_save_IFS
c6b750e1 9353
859789af
AC
9354fi
9355fi
c6b750e1 9356WINDRES=$ac_cv_prog_WINDRES
05cbd757 9357if test -n "$WINDRES"; then
81ecdfbb
RW
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9359$as_echo "$WINDRES" >&6; }
859789af 9360else
81ecdfbb
RW
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362$as_echo "no" >&6; }
859789af 9363fi
c6b750e1 9364
81ecdfbb 9365
05cbd757
PB
9366 fi
9367 test -n "$ac_cv_prog_WINDRES" && break
9368done
9369
9370if test -z "$ac_cv_prog_WINDRES" ; then
9371 set dummy windres
9372 if test $build = $host ; then
9373 WINDRES="$2"
859789af 9374 else
05cbd757 9375 WINDRES="${ncn_tool_prefix}$2"
859789af 9376 fi
859789af
AC
9377fi
9378
9a819804
AO
9379
9380
0c24b341
NC
9381if test -n "$WINDMC"; then
9382 ac_cv_prog_WINDMC=$WINDMC
9383elif test -n "$ac_cv_prog_WINDMC"; then
9384 WINDMC=$ac_cv_prog_WINDMC
9385fi
9386
9387if test -n "$ac_cv_prog_WINDMC"; then
9388 for ncn_progname in windmc; do
9389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9390set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9392$as_echo_n "checking for $ac_word... " >&6; }
9393if test "${ac_cv_prog_WINDMC+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
0c24b341
NC
9395else
9396 if test -n "$WINDMC"; then
9397 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9398else
9399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400for as_dir in $PATH
9401do
9402 IFS=$as_save_IFS
9403 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9404 for ac_exec_ext in '' $ac_executable_extensions; do
9405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9406 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9408 break 2
9409 fi
9410done
81ecdfbb
RW
9411 done
9412IFS=$as_save_IFS
0c24b341
NC
9413
9414fi
9415fi
9416WINDMC=$ac_cv_prog_WINDMC
9417if test -n "$WINDMC"; then
81ecdfbb
RW
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9419$as_echo "$WINDMC" >&6; }
0c24b341 9420else
81ecdfbb
RW
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9422$as_echo "no" >&6; }
0c24b341
NC
9423fi
9424
81ecdfbb 9425
0c24b341
NC
9426 done
9427fi
9428
9429for ncn_progname in windmc; do
9430 if test -n "$ncn_tool_prefix"; then
9431 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9432set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9434$as_echo_n "checking for $ac_word... " >&6; }
9435if test "${ac_cv_prog_WINDMC+set}" = set; then :
9436 $as_echo_n "(cached) " >&6
0c24b341
NC
9437else
9438 if test -n "$WINDMC"; then
9439 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9440else
9441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9442for as_dir in $PATH
9443do
9444 IFS=$as_save_IFS
9445 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9446 for ac_exec_ext in '' $ac_executable_extensions; do
9447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9448 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9450 break 2
9451 fi
9452done
81ecdfbb
RW
9453 done
9454IFS=$as_save_IFS
0c24b341
NC
9455
9456fi
9457fi
9458WINDMC=$ac_cv_prog_WINDMC
9459if test -n "$WINDMC"; then
81ecdfbb
RW
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9461$as_echo "$WINDMC" >&6; }
0c24b341 9462else
81ecdfbb
RW
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9464$as_echo "no" >&6; }
0c24b341
NC
9465fi
9466
81ecdfbb 9467
0c24b341
NC
9468 fi
9469 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9471set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473$as_echo_n "checking for $ac_word... " >&6; }
9474if test "${ac_cv_prog_WINDMC+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
0c24b341
NC
9476else
9477 if test -n "$WINDMC"; then
9478 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9479else
9480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481for as_dir in $PATH
9482do
9483 IFS=$as_save_IFS
9484 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9485 for ac_exec_ext in '' $ac_executable_extensions; do
9486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9487 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9489 break 2
9490 fi
9491done
81ecdfbb
RW
9492 done
9493IFS=$as_save_IFS
0c24b341
NC
9494
9495fi
9496fi
9497WINDMC=$ac_cv_prog_WINDMC
9498if test -n "$WINDMC"; then
81ecdfbb
RW
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9500$as_echo "$WINDMC" >&6; }
0c24b341 9501else
81ecdfbb
RW
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503$as_echo "no" >&6; }
0c24b341
NC
9504fi
9505
81ecdfbb 9506
0c24b341
NC
9507 fi
9508 test -n "$ac_cv_prog_WINDMC" && break
9509done
9510
9511if test -z "$ac_cv_prog_WINDMC" ; then
9512 set dummy windmc
9513 if test $build = $host ; then
9514 WINDMC="$2"
9515 else
9516 WINDMC="${ncn_tool_prefix}$2"
9517 fi
9518fi
9519
9520
9521
9a819804
AO
9522if test -n "$OBJCOPY"; then
9523 ac_cv_prog_OBJCOPY=$OBJCOPY
9524elif test -n "$ac_cv_prog_OBJCOPY"; then
9525 OBJCOPY=$ac_cv_prog_OBJCOPY
9526fi
9527
9528if test -n "$ac_cv_prog_OBJCOPY"; then
9529 for ncn_progname in objcopy; do
9530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9531set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533$as_echo_n "checking for $ac_word... " >&6; }
9534if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9535 $as_echo_n "(cached) " >&6
9a819804
AO
9536else
9537 if test -n "$OBJCOPY"; then
9538 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9539else
9540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541for as_dir in $PATH
9542do
9543 IFS=$as_save_IFS
9544 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9547 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9549 break 2
9550 fi
9551done
81ecdfbb
RW
9552 done
9553IFS=$as_save_IFS
9a819804
AO
9554
9555fi
9556fi
9557OBJCOPY=$ac_cv_prog_OBJCOPY
9558if test -n "$OBJCOPY"; then
81ecdfbb
RW
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9560$as_echo "$OBJCOPY" >&6; }
9a819804 9561else
81ecdfbb
RW
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563$as_echo "no" >&6; }
9a819804
AO
9564fi
9565
81ecdfbb 9566
9a819804
AO
9567 done
9568fi
9569
9570for ncn_progname in objcopy; do
05cbd757
PB
9571 if test -n "$ncn_tool_prefix"; then
9572 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9573set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575$as_echo_n "checking for $ac_word... " >&6; }
9576if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9577 $as_echo_n "(cached) " >&6
859789af
AC
9578else
9579 if test -n "$OBJCOPY"; then
9580 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9581else
c6b750e1
DJ
9582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583for as_dir in $PATH
9584do
9585 IFS=$as_save_IFS
9586 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9587 for ac_exec_ext in '' $ac_executable_extensions; do
9588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9589 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9591 break 2
9592 fi
9593done
81ecdfbb
RW
9594 done
9595IFS=$as_save_IFS
c6b750e1 9596
859789af
AC
9597fi
9598fi
c6b750e1 9599OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9600if test -n "$OBJCOPY"; then
81ecdfbb
RW
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9602$as_echo "$OBJCOPY" >&6; }
859789af 9603else
81ecdfbb
RW
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605$as_echo "no" >&6; }
859789af
AC
9606fi
9607
81ecdfbb 9608
05cbd757
PB
9609 fi
9610 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9612set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9614$as_echo_n "checking for $ac_word... " >&6; }
9615if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9616 $as_echo_n "(cached) " >&6
859789af 9617else
05cbd757
PB
9618 if test -n "$OBJCOPY"; then
9619 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9620else
c6b750e1
DJ
9621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9622for as_dir in $PATH
9623do
9624 IFS=$as_save_IFS
9625 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9626 for ac_exec_ext in '' $ac_executable_extensions; do
9627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9628 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9630 break 2
9631 fi
9632done
81ecdfbb
RW
9633 done
9634IFS=$as_save_IFS
c6b750e1 9635
859789af
AC
9636fi
9637fi
c6b750e1 9638OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9639if test -n "$OBJCOPY"; then
81ecdfbb
RW
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9641$as_echo "$OBJCOPY" >&6; }
859789af 9642else
81ecdfbb
RW
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644$as_echo "no" >&6; }
859789af 9645fi
c6b750e1 9646
81ecdfbb 9647
05cbd757
PB
9648 fi
9649 test -n "$ac_cv_prog_OBJCOPY" && break
9650done
9651
9652if test -z "$ac_cv_prog_OBJCOPY" ; then
9653 set dummy objcopy
9654 if test $build = $host ; then
9655 OBJCOPY="$2"
859789af 9656 else
05cbd757 9657 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9658 fi
859789af
AC
9659fi
9660
9a819804
AO
9661
9662
9663if test -n "$OBJDUMP"; then
9664 ac_cv_prog_OBJDUMP=$OBJDUMP
9665elif test -n "$ac_cv_prog_OBJDUMP"; then
9666 OBJDUMP=$ac_cv_prog_OBJDUMP
9667fi
9668
9669if test -n "$ac_cv_prog_OBJDUMP"; then
9670 for ncn_progname in objdump; do
9671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9672set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674$as_echo_n "checking for $ac_word... " >&6; }
9675if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9676 $as_echo_n "(cached) " >&6
9a819804
AO
9677else
9678 if test -n "$OBJDUMP"; then
9679 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9680else
9681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682for as_dir in $PATH
9683do
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9688 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9690 break 2
9691 fi
9692done
81ecdfbb
RW
9693 done
9694IFS=$as_save_IFS
9a819804
AO
9695
9696fi
9697fi
9698OBJDUMP=$ac_cv_prog_OBJDUMP
9699if test -n "$OBJDUMP"; then
81ecdfbb
RW
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9701$as_echo "$OBJDUMP" >&6; }
9a819804 9702else
81ecdfbb
RW
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704$as_echo "no" >&6; }
9a819804
AO
9705fi
9706
81ecdfbb 9707
9a819804
AO
9708 done
9709fi
9710
9711for ncn_progname in objdump; do
05cbd757
PB
9712 if test -n "$ncn_tool_prefix"; then
9713 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9714set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9716$as_echo_n "checking for $ac_word... " >&6; }
9717if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
859789af
AC
9719else
9720 if test -n "$OBJDUMP"; then
9721 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9722else
c6b750e1
DJ
9723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724for as_dir in $PATH
9725do
9726 IFS=$as_save_IFS
9727 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9730 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9732 break 2
9733 fi
9734done
81ecdfbb
RW
9735 done
9736IFS=$as_save_IFS
c6b750e1 9737
859789af
AC
9738fi
9739fi
c6b750e1 9740OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9741if test -n "$OBJDUMP"; then
81ecdfbb
RW
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9743$as_echo "$OBJDUMP" >&6; }
859789af 9744else
81ecdfbb
RW
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746$as_echo "no" >&6; }
859789af
AC
9747fi
9748
81ecdfbb 9749
05cbd757
PB
9750 fi
9751 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9753set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9755$as_echo_n "checking for $ac_word... " >&6; }
9756if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9757 $as_echo_n "(cached) " >&6
859789af 9758else
05cbd757
PB
9759 if test -n "$OBJDUMP"; then
9760 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9761else
c6b750e1
DJ
9762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763for as_dir in $PATH
9764do
9765 IFS=$as_save_IFS
9766 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9769 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9771 break 2
9772 fi
9773done
81ecdfbb
RW
9774 done
9775IFS=$as_save_IFS
c6b750e1 9776
859789af
AC
9777fi
9778fi
c6b750e1 9779OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9780if test -n "$OBJDUMP"; then
81ecdfbb
RW
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9782$as_echo "$OBJDUMP" >&6; }
859789af 9783else
81ecdfbb
RW
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785$as_echo "no" >&6; }
859789af 9786fi
c6b750e1 9787
81ecdfbb 9788
05cbd757
PB
9789 fi
9790 test -n "$ac_cv_prog_OBJDUMP" && break
9791done
9792
9793if test -z "$ac_cv_prog_OBJDUMP" ; then
9794 set dummy objdump
9795 if test $build = $host ; then
9796 OBJDUMP="$2"
859789af 9797 else
05cbd757 9798 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9799 fi
859789af
AC
9800fi
9801
a0da8069
NN
9802
9803
b121d7d4
DD
9804if test -n "$READELF"; then
9805 ac_cv_prog_READELF=$READELF
9806elif test -n "$ac_cv_prog_READELF"; then
9807 READELF=$ac_cv_prog_READELF
9808fi
9809
9810if test -n "$ac_cv_prog_READELF"; then
9811 for ncn_progname in readelf; do
9812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9813set dummy ${ncn_progname}; ac_word=$2
9814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815$as_echo_n "checking for $ac_word... " >&6; }
9816if test "${ac_cv_prog_READELF+set}" = set; then :
9817 $as_echo_n "(cached) " >&6
9818else
9819 if test -n "$READELF"; then
9820 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9821else
9822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823for as_dir in $PATH
9824do
9825 IFS=$as_save_IFS
9826 test -z "$as_dir" && as_dir=.
9827 for ac_exec_ext in '' $ac_executable_extensions; do
9828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9829 ac_cv_prog_READELF="${ncn_progname}"
9830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9831 break 2
9832 fi
9833done
9834 done
9835IFS=$as_save_IFS
9836
9837fi
9838fi
9839READELF=$ac_cv_prog_READELF
9840if test -n "$READELF"; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9842$as_echo "$READELF" >&6; }
9843else
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845$as_echo "no" >&6; }
9846fi
9847
9848
9849 done
9850fi
9851
9852for ncn_progname in readelf; do
9853 if test -n "$ncn_tool_prefix"; then
9854 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9855set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857$as_echo_n "checking for $ac_word... " >&6; }
9858if test "${ac_cv_prog_READELF+set}" = set; then :
9859 $as_echo_n "(cached) " >&6
9860else
9861 if test -n "$READELF"; then
9862 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9863else
9864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865for as_dir in $PATH
9866do
9867 IFS=$as_save_IFS
9868 test -z "$as_dir" && as_dir=.
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9871 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9873 break 2
9874 fi
9875done
9876 done
9877IFS=$as_save_IFS
9878
9879fi
9880fi
9881READELF=$ac_cv_prog_READELF
9882if test -n "$READELF"; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9884$as_echo "$READELF" >&6; }
9885else
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887$as_echo "no" >&6; }
9888fi
9889
9890
9891 fi
9892 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9894set dummy ${ncn_progname}; ac_word=$2
9895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9896$as_echo_n "checking for $ac_word... " >&6; }
9897if test "${ac_cv_prog_READELF+set}" = set; then :
9898 $as_echo_n "(cached) " >&6
9899else
9900 if test -n "$READELF"; then
9901 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9902else
9903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904for as_dir in $PATH
9905do
9906 IFS=$as_save_IFS
9907 test -z "$as_dir" && as_dir=.
9908 for ac_exec_ext in '' $ac_executable_extensions; do
9909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9910 ac_cv_prog_READELF="${ncn_progname}"
9911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9912 break 2
9913 fi
9914done
9915 done
9916IFS=$as_save_IFS
9917
9918fi
9919fi
9920READELF=$ac_cv_prog_READELF
9921if test -n "$READELF"; then
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9923$as_echo "$READELF" >&6; }
9924else
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926$as_echo "no" >&6; }
9927fi
9928
9929
9930 fi
9931 test -n "$ac_cv_prog_READELF" && break
9932done
9933
9934if test -z "$ac_cv_prog_READELF" ; then
9935 set dummy readelf
9936 if test $build = $host ; then
9937 READELF="$2"
9938 else
9939 READELF="${ncn_tool_prefix}$2"
9940 fi
9941fi
9942
9943
9944
a0da8069
NN
9945
9946
9947
be01d343 9948# Target tools.
c6b750e1 9949
81ecdfbb
RW
9950# Check whether --with-build-time-tools was given.
9951if test "${with_build_time_tools+set}" = set; then :
9952 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9953 x/*) ;;
9954 *)
9955 with_build_time_tools=
81ecdfbb
RW
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9957$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9958 ;;
9959 esac
859789af 9960else
2429c060 9961 with_build_time_tools=
81ecdfbb
RW
9962fi
9963
859789af 9964
9a819804
AO
9965
9966
9967if test -n "$CC_FOR_TARGET"; then
9968 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9969elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9970 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9971fi
9972
9973if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9974 for ncn_progname in cc gcc; do
9975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9976set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978$as_echo_n "checking for $ac_word... " >&6; }
9979if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9980 $as_echo_n "(cached) " >&6
9a819804
AO
9981else
9982 if test -n "$CC_FOR_TARGET"; then
9983 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9984else
9985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986for as_dir in $PATH
9987do
9988 IFS=$as_save_IFS
9989 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9992 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9994 break 2
9995 fi
9996done
81ecdfbb
RW
9997 done
9998IFS=$as_save_IFS
9a819804
AO
9999
10000fi
10001fi
10002CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10003if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10005$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 10006else
81ecdfbb
RW
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008$as_echo "no" >&6; }
9a819804
AO
10009fi
10010
81ecdfbb 10011
9a819804
AO
10012 done
10013fi
10014
10015if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10016 for ncn_progname in cc gcc; do
81ecdfbb
RW
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10018$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10019 if test -x $with_build_time_tools/${ncn_progname}; then
10020 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10022$as_echo "yes" >&6; }
cac3d6c4 10023 break
2429c060 10024 else
81ecdfbb
RW
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026$as_echo "no" >&6; }
cac3d6c4
CM
10027 fi
10028 done
55db4b87
PB
10029fi
10030
2429c060
PB
10031if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10032 for ncn_progname in cc gcc; do
10033 if test -n "$ncn_target_tool_prefix"; then
10034 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10035set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10037$as_echo_n "checking for $ac_word... " >&6; }
10038if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10039 $as_echo_n "(cached) " >&6
55db4b87
PB
10040else
10041 if test -n "$CC_FOR_TARGET"; then
10042 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10043else
c6b750e1
DJ
10044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045for as_dir in $PATH
10046do
10047 IFS=$as_save_IFS
10048 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10049 for ac_exec_ext in '' $ac_executable_extensions; do
10050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10051 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10053 break 2
10054 fi
10055done
81ecdfbb
RW
10056 done
10057IFS=$as_save_IFS
c6b750e1 10058
55db4b87
PB
10059fi
10060fi
c6b750e1 10061CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10062if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10064$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10065else
81ecdfbb
RW
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067$as_echo "no" >&6; }
55db4b87
PB
10068fi
10069
81ecdfbb 10070
2429c060
PB
10071 fi
10072 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10074set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076$as_echo_n "checking for $ac_word... " >&6; }
10077if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10078 $as_echo_n "(cached) " >&6
55db4b87 10079else
05cbd757
PB
10080 if test -n "$CC_FOR_TARGET"; then
10081 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10082else
c6b750e1
DJ
10083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in $PATH
10085do
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10090 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10092 break 2
10093 fi
10094done
81ecdfbb
RW
10095 done
10096IFS=$as_save_IFS
c6b750e1 10097
55db4b87
PB
10098fi
10099fi
c6b750e1 10100CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10101if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10103$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10104else
81ecdfbb
RW
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106$as_echo "no" >&6; }
55db4b87 10107fi
c6b750e1 10108
81ecdfbb 10109
2429c060
PB
10110 fi
10111 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10112 done
10113fi
c6b750e1 10114
05cbd757
PB
10115if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10116 set dummy cc gcc
10117 if test $build = $target ; then
10118 CC_FOR_TARGET="$2"
55db4b87 10119 else
05cbd757 10120 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10121 fi
d3f5afc4
MS
10122else
10123 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10124fi
10125
9a819804
AO
10126
10127
10128if test -n "$CXX_FOR_TARGET"; then
10129 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10130elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10131 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10132fi
10133
10134if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10135 for ncn_progname in c++ g++ cxx gxx; do
10136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10137set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139$as_echo_n "checking for $ac_word... " >&6; }
10140if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10141 $as_echo_n "(cached) " >&6
9a819804
AO
10142else
10143 if test -n "$CXX_FOR_TARGET"; then
10144 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10145else
10146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147for as_dir in $PATH
10148do
10149 IFS=$as_save_IFS
10150 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10151 for ac_exec_ext in '' $ac_executable_extensions; do
10152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10153 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10155 break 2
10156 fi
10157done
81ecdfbb
RW
10158 done
10159IFS=$as_save_IFS
9a819804
AO
10160
10161fi
10162fi
10163CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10164if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10166$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10167else
81ecdfbb
RW
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169$as_echo "no" >&6; }
9a819804
AO
10170fi
10171
81ecdfbb 10172
9a819804
AO
10173 done
10174fi
10175
10176if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10177 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10179$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10180 if test -x $with_build_time_tools/${ncn_progname}; then
10181 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10183$as_echo "yes" >&6; }
2429c060
PB
10184 break
10185 else
81ecdfbb
RW
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10187$as_echo "no" >&6; }
2429c060
PB
10188 fi
10189 done
10190fi
10191
10192if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10193 for ncn_progname in c++ g++ cxx gxx; do
10194 if test -n "$ncn_target_tool_prefix"; then
10195 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10196set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10198$as_echo_n "checking for $ac_word... " >&6; }
10199if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10200 $as_echo_n "(cached) " >&6
55db4b87
PB
10201else
10202 if test -n "$CXX_FOR_TARGET"; then
10203 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10204else
c6b750e1
DJ
10205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10206for as_dir in $PATH
10207do
10208 IFS=$as_save_IFS
10209 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10210 for ac_exec_ext in '' $ac_executable_extensions; do
10211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10212 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10214 break 2
10215 fi
10216done
81ecdfbb
RW
10217 done
10218IFS=$as_save_IFS
c6b750e1 10219
55db4b87
PB
10220fi
10221fi
c6b750e1 10222CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10223if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10225$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10226else
81ecdfbb
RW
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10228$as_echo "no" >&6; }
55db4b87
PB
10229fi
10230
81ecdfbb 10231
2429c060
PB
10232 fi
10233 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10235set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237$as_echo_n "checking for $ac_word... " >&6; }
10238if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10239 $as_echo_n "(cached) " >&6
55db4b87 10240else
05cbd757
PB
10241 if test -n "$CXX_FOR_TARGET"; then
10242 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10243else
c6b750e1
DJ
10244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245for as_dir in $PATH
10246do
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10251 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10253 break 2
10254 fi
10255done
81ecdfbb
RW
10256 done
10257IFS=$as_save_IFS
c6b750e1 10258
55db4b87
PB
10259fi
10260fi
c6b750e1 10261CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10262if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10264$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10265else
81ecdfbb
RW
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267$as_echo "no" >&6; }
55db4b87 10268fi
c6b750e1 10269
81ecdfbb 10270
2429c060
PB
10271 fi
10272 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10273 done
10274fi
c6b750e1 10275
05cbd757
PB
10276if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10277 set dummy c++ g++ cxx gxx
10278 if test $build = $target ; then
10279 CXX_FOR_TARGET="$2"
55db4b87 10280 else
05cbd757 10281 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10282 fi
d3f5afc4
MS
10283else
10284 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10285fi
10286
9a819804
AO
10287
10288
10289if test -n "$GCC_FOR_TARGET"; then
10290 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10291elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10292 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10293fi
10294
10295if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10296 for ncn_progname in gcc; do
10297 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10298set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10300$as_echo_n "checking for $ac_word... " >&6; }
10301if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10302 $as_echo_n "(cached) " >&6
9a819804
AO
10303else
10304 if test -n "$GCC_FOR_TARGET"; then
10305 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10306else
10307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10308for as_dir in $PATH
10309do
10310 IFS=$as_save_IFS
10311 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10312 for ac_exec_ext in '' $ac_executable_extensions; do
10313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10314 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10316 break 2
10317 fi
10318done
81ecdfbb
RW
10319 done
10320IFS=$as_save_IFS
9a819804
AO
10321
10322fi
10323fi
10324GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10325if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10327$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10328else
81ecdfbb
RW
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10330$as_echo "no" >&6; }
9a819804
AO
10331fi
10332
81ecdfbb 10333
9a819804
AO
10334 done
10335fi
10336
10337if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10338 for ncn_progname in gcc; do
81ecdfbb
RW
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10340$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10341 if test -x $with_build_time_tools/${ncn_progname}; then
10342 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10344$as_echo "yes" >&6; }
2429c060
PB
10345 break
10346 else
81ecdfbb
RW
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10348$as_echo "no" >&6; }
2429c060
PB
10349 fi
10350 done
10351fi
10352
10353if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10354 for ncn_progname in gcc; do
10355 if test -n "$ncn_target_tool_prefix"; then
10356 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10357set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10359$as_echo_n "checking for $ac_word... " >&6; }
10360if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10361 $as_echo_n "(cached) " >&6
859789af 10362else
2429c060
PB
10363 if test -n "$GCC_FOR_TARGET"; then
10364 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10365else
c6b750e1
DJ
10366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10367for as_dir in $PATH
10368do
10369 IFS=$as_save_IFS
10370 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10371 for ac_exec_ext in '' $ac_executable_extensions; do
10372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10373 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10375 break 2
10376 fi
10377done
81ecdfbb
RW
10378 done
10379IFS=$as_save_IFS
c6b750e1 10380
55db4b87
PB
10381fi
10382fi
c6b750e1 10383GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10384if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10386$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10387else
81ecdfbb
RW
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10389$as_echo "no" >&6; }
55db4b87
PB
10390fi
10391
81ecdfbb 10392
2429c060
PB
10393 fi
10394 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10396set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10398$as_echo_n "checking for $ac_word... " >&6; }
10399if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10400 $as_echo_n "(cached) " >&6
55db4b87 10401else
05cbd757
PB
10402 if test -n "$GCC_FOR_TARGET"; then
10403 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10404else
c6b750e1
DJ
10405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406for as_dir in $PATH
10407do
10408 IFS=$as_save_IFS
10409 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10412 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10414 break 2
10415 fi
10416done
81ecdfbb
RW
10417 done
10418IFS=$as_save_IFS
c6b750e1 10419
55db4b87
PB
10420fi
10421fi
c6b750e1 10422GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10423if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10425$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10426else
81ecdfbb
RW
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428$as_echo "no" >&6; }
55db4b87 10429fi
c6b750e1 10430
81ecdfbb 10431
2429c060
PB
10432 fi
10433 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10434 done
10435fi
c6b750e1 10436
05cbd757
PB
10437if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10438 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10439else
10440 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10441fi
10442
9a819804
AO
10443
10444
10445if test -n "$GCJ_FOR_TARGET"; then
10446 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10447elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10448 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10449fi
10450
10451if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10452 for ncn_progname in gcj; do
10453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10454set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10456$as_echo_n "checking for $ac_word... " >&6; }
10457if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10458 $as_echo_n "(cached) " >&6
9a819804
AO
10459else
10460 if test -n "$GCJ_FOR_TARGET"; then
10461 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10462else
10463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10464for as_dir in $PATH
10465do
10466 IFS=$as_save_IFS
10467 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10468 for ac_exec_ext in '' $ac_executable_extensions; do
10469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10470 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10472 break 2
10473 fi
10474done
81ecdfbb
RW
10475 done
10476IFS=$as_save_IFS
9a819804
AO
10477
10478fi
10479fi
10480GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10481if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10483$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10484else
81ecdfbb
RW
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486$as_echo "no" >&6; }
9a819804
AO
10487fi
10488
81ecdfbb 10489
9a819804
AO
10490 done
10491fi
10492
10493if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10494 for ncn_progname in gcj; do
81ecdfbb
RW
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10496$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10497 if test -x $with_build_time_tools/${ncn_progname}; then
10498 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10500$as_echo "yes" >&6; }
2429c060
PB
10501 break
10502 else
81ecdfbb
RW
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504$as_echo "no" >&6; }
2429c060
PB
10505 fi
10506 done
10507fi
10508
10509if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10510 for ncn_progname in gcj; do
10511 if test -n "$ncn_target_tool_prefix"; then
10512 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10513set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515$as_echo_n "checking for $ac_word... " >&6; }
10516if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10517 $as_echo_n "(cached) " >&6
55db4b87
PB
10518else
10519 if test -n "$GCJ_FOR_TARGET"; then
10520 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10521else
c6b750e1
DJ
10522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10523for as_dir in $PATH
10524do
10525 IFS=$as_save_IFS
10526 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10527 for ac_exec_ext in '' $ac_executable_extensions; do
10528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10529 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10531 break 2
10532 fi
10533done
81ecdfbb
RW
10534 done
10535IFS=$as_save_IFS
c6b750e1 10536
55db4b87
PB
10537fi
10538fi
9a819804
AO
10539GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10540if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10542$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10543else
81ecdfbb
RW
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545$as_echo "no" >&6; }
9a819804
AO
10546fi
10547
81ecdfbb 10548
9a819804
AO
10549 fi
10550 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10552set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10554$as_echo_n "checking for $ac_word... " >&6; }
10555if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10556 $as_echo_n "(cached) " >&6
9a819804
AO
10557else
10558 if test -n "$GCJ_FOR_TARGET"; then
10559 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10560else
10561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562for as_dir in $PATH
10563do
10564 IFS=$as_save_IFS
10565 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10566 for ac_exec_ext in '' $ac_executable_extensions; do
10567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10568 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10570 break 2
10571 fi
10572done
81ecdfbb
RW
10573 done
10574IFS=$as_save_IFS
9a819804
AO
10575
10576fi
10577fi
10578GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10579if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10581$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10582else
81ecdfbb
RW
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584$as_echo "no" >&6; }
9a819804
AO
10585fi
10586
81ecdfbb 10587
9a819804
AO
10588 fi
10589 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10590 done
10591fi
10592
10593if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10594 set dummy gcj
10595 if test $build = $target ; then
10596 GCJ_FOR_TARGET="$2"
10597 else
10598 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10599 fi
d3f5afc4
MS
10600else
10601 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10602fi
10603
10604
10605
10606if test -n "$GFORTRAN_FOR_TARGET"; then
10607 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10608elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10609 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10610fi
10611
9a819804
AO
10612if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10613 for ncn_progname in gfortran; do
10614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10615set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10617$as_echo_n "checking for $ac_word... " >&6; }
10618if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10619 $as_echo_n "(cached) " >&6
55db4b87 10620else
9a819804
AO
10621 if test -n "$GFORTRAN_FOR_TARGET"; then
10622 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10623else
c6b750e1
DJ
10624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625for as_dir in $PATH
10626do
10627 IFS=$as_save_IFS
10628 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10631 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10633 break 2
10634 fi
10635done
81ecdfbb
RW
10636 done
10637IFS=$as_save_IFS
c6b750e1 10638
55db4b87
PB
10639fi
10640fi
9a819804
AO
10641GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10642if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10644$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10645else
81ecdfbb
RW
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647$as_echo "no" >&6; }
55db4b87 10648fi
c6b750e1 10649
81ecdfbb 10650
2429c060
PB
10651 done
10652fi
c6b750e1 10653
9a819804 10654if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10655 for ncn_progname in gfortran; do
81ecdfbb
RW
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10657$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10658 if test -x $with_build_time_tools/${ncn_progname}; then
10659 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10661$as_echo "yes" >&6; }
2429c060
PB
10662 break
10663 else
81ecdfbb
RW
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665$as_echo "no" >&6; }
2429c060
PB
10666 fi
10667 done
10668fi
10669
10670if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10671 for ncn_progname in gfortran; do
10672 if test -n "$ncn_target_tool_prefix"; then
10673 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10674set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676$as_echo_n "checking for $ac_word... " >&6; }
10677if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10678 $as_echo_n "(cached) " >&6
55db4b87
PB
10679else
10680 if test -n "$GFORTRAN_FOR_TARGET"; then
10681 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10682else
c6b750e1
DJ
10683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684for as_dir in $PATH
10685do
10686 IFS=$as_save_IFS
10687 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10688 for ac_exec_ext in '' $ac_executable_extensions; do
10689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10690 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10692 break 2
10693 fi
10694done
81ecdfbb
RW
10695 done
10696IFS=$as_save_IFS
c6b750e1 10697
55db4b87
PB
10698fi
10699fi
c6b750e1 10700GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10701if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10703$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10704else
81ecdfbb
RW
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706$as_echo "no" >&6; }
55db4b87
PB
10707fi
10708
81ecdfbb 10709
2429c060
PB
10710 fi
10711 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10713set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10715$as_echo_n "checking for $ac_word... " >&6; }
10716if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10717 $as_echo_n "(cached) " >&6
55db4b87 10718else
05cbd757 10719 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10720 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10721else
10722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723for as_dir in $PATH
10724do
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10729 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10731 break 2
10732 fi
10733done
81ecdfbb
RW
10734 done
10735IFS=$as_save_IFS
c6b750e1 10736
55db4b87
PB
10737fi
10738fi
c6b750e1 10739GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10740if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10742$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10743else
81ecdfbb
RW
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745$as_echo "no" >&6; }
55db4b87 10746fi
c6b750e1 10747
81ecdfbb 10748
2429c060
PB
10749 fi
10750 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10751 done
10752fi
c6b750e1 10753
05cbd757
PB
10754if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10755 set dummy gfortran
10756 if test $build = $target ; then
10757 GFORTRAN_FOR_TARGET="$2"
55db4b87 10758 else
05cbd757 10759 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10760 fi
d3f5afc4
MS
10761else
10762 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10763fi
10764
2429c060
PB
10765
10766
e552509b
ILT
10767if test -n "$GOC_FOR_TARGET"; then
10768 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10769elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10770 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10771fi
10772
10773if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10774 for ncn_progname in gccgo; do
10775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10776set dummy ${ncn_progname}; ac_word=$2
10777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10778$as_echo_n "checking for $ac_word... " >&6; }
10779if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10780 $as_echo_n "(cached) " >&6
10781else
10782 if test -n "$GOC_FOR_TARGET"; then
10783 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10784else
10785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786for as_dir in $PATH
10787do
10788 IFS=$as_save_IFS
10789 test -z "$as_dir" && as_dir=.
10790 for ac_exec_ext in '' $ac_executable_extensions; do
10791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10792 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10794 break 2
10795 fi
10796done
10797 done
10798IFS=$as_save_IFS
10799
10800fi
10801fi
10802GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10803if test -n "$GOC_FOR_TARGET"; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10805$as_echo "$GOC_FOR_TARGET" >&6; }
10806else
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808$as_echo "no" >&6; }
10809fi
10810
10811
10812 done
10813fi
10814
10815if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10816 for ncn_progname in gccgo; do
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10818$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10819 if test -x $with_build_time_tools/${ncn_progname}; then
10820 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10822$as_echo "yes" >&6; }
10823 break
10824 else
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826$as_echo "no" >&6; }
10827 fi
10828 done
10829fi
10830
10831if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10832 for ncn_progname in gccgo; do
10833 if test -n "$ncn_target_tool_prefix"; then
10834 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10835set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10837$as_echo_n "checking for $ac_word... " >&6; }
10838if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10839 $as_echo_n "(cached) " >&6
10840else
10841 if test -n "$GOC_FOR_TARGET"; then
10842 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10843else
10844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845for as_dir in $PATH
10846do
10847 IFS=$as_save_IFS
10848 test -z "$as_dir" && as_dir=.
10849 for ac_exec_ext in '' $ac_executable_extensions; do
10850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10851 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10853 break 2
10854 fi
10855done
10856 done
10857IFS=$as_save_IFS
10858
10859fi
10860fi
10861GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10862if test -n "$GOC_FOR_TARGET"; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10864$as_echo "$GOC_FOR_TARGET" >&6; }
10865else
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867$as_echo "no" >&6; }
10868fi
10869
10870
10871 fi
10872 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10874set dummy ${ncn_progname}; ac_word=$2
10875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876$as_echo_n "checking for $ac_word... " >&6; }
10877if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10878 $as_echo_n "(cached) " >&6
10879else
10880 if test -n "$GOC_FOR_TARGET"; then
10881 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10882else
10883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884for as_dir in $PATH
10885do
10886 IFS=$as_save_IFS
10887 test -z "$as_dir" && as_dir=.
10888 for ac_exec_ext in '' $ac_executable_extensions; do
10889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10890 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10892 break 2
10893 fi
10894done
10895 done
10896IFS=$as_save_IFS
10897
10898fi
10899fi
10900GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10901if test -n "$GOC_FOR_TARGET"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10903$as_echo "$GOC_FOR_TARGET" >&6; }
10904else
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906$as_echo "no" >&6; }
10907fi
10908
10909
10910 fi
10911 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10912 done
10913fi
10914
10915if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10916 set dummy gccgo
10917 if test $build = $target ; then
10918 GOC_FOR_TARGET="$2"
10919 else
10920 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10921 fi
10922else
10923 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10924fi
10925
10926
10927
2429c060
PB
10928cat > conftest.c << \EOF
10929#ifdef __GNUC__
10930 gcc_yay;
10931#endif
10932EOF
10933if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10934 have_gcc_for_target=yes
859789af 10935else
2429c060
PB
10936 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10937 have_gcc_for_target=no
859789af 10938fi
2429c060
PB
10939rm conftest.c
10940
10941
10942
859789af 10943
2429c060
PB
10944if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10945 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10947$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10948 if test -x $with_build_time_tools/ar; then
10949 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10950 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10952$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10953 else
81ecdfbb
RW
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955$as_echo "no" >&6; }
3a35eeb3 10956 fi
2429c060
PB
10957 elif test $build != $host && test $have_gcc_for_target = yes; then
10958 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10959 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10960 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10961 fi
2429c060 10962fi
c6b750e1 10963if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10964 # Extract the first word of "ar", so it can be a program name with args.
10965set dummy ar; ac_word=$2
81ecdfbb
RW
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10967$as_echo_n "checking for $ac_word... " >&6; }
10968if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
859789af 10970else
c6b750e1
DJ
10971 case $AR_FOR_TARGET in
10972 [\\/]* | ?:[\\/]*)
2429c060
PB
10973 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10974 ;;
2429c060 10975 *)
c6b750e1
DJ
10976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977for as_dir in $gcc_cv_tool_dirs
10978do
10979 IFS=$as_save_IFS
10980 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10983 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10985 break 2
10986 fi
10987done
81ecdfbb
RW
10988 done
10989IFS=$as_save_IFS
c6b750e1 10990
2429c060
PB
10991 ;;
10992esac
859789af 10993fi
c6b750e1 10994AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10995if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10997$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10998else
81ecdfbb
RW
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000$as_echo "no" >&6; }
859789af 11001fi
05cbd757 11002
81ecdfbb 11003
2429c060
PB
11004fi
11005if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
11006
11007
11008if test -n "$AR_FOR_TARGET"; then
11009 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11010elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11011 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11012fi
11013
11014if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11015 for ncn_progname in ar; do
11016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11017set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11019$as_echo_n "checking for $ac_word... " >&6; }
11020if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11021 $as_echo_n "(cached) " >&6
9a819804
AO
11022else
11023 if test -n "$AR_FOR_TARGET"; then
11024 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11025else
11026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027for as_dir in $PATH
11028do
11029 IFS=$as_save_IFS
11030 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11031 for ac_exec_ext in '' $ac_executable_extensions; do
11032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11033 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11035 break 2
11036 fi
11037done
81ecdfbb
RW
11038 done
11039IFS=$as_save_IFS
9a819804
AO
11040
11041fi
11042fi
11043AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11044if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11046$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 11047else
81ecdfbb
RW
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049$as_echo "no" >&6; }
9a819804
AO
11050fi
11051
81ecdfbb 11052
9a819804
AO
11053 done
11054fi
11055
11056if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11057 for ncn_progname in ar; do
81ecdfbb
RW
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11059$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11060 if test -x $with_build_time_tools/${ncn_progname}; then
11061 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11063$as_echo "yes" >&6; }
2429c060
PB
11064 break
11065 else
81ecdfbb
RW
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067$as_echo "no" >&6; }
2429c060
PB
11068 fi
11069 done
859789af
AC
11070fi
11071
2429c060
PB
11072if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11073 for ncn_progname in ar; do
11074 if test -n "$ncn_target_tool_prefix"; then
11075 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11076set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11078$as_echo_n "checking for $ac_word... " >&6; }
11079if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11080 $as_echo_n "(cached) " >&6
7e0f7140 11081else
2429c060
PB
11082 if test -n "$AR_FOR_TARGET"; then
11083 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 11084else
c6b750e1
DJ
11085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11086for as_dir in $PATH
11087do
11088 IFS=$as_save_IFS
11089 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11090 for ac_exec_ext in '' $ac_executable_extensions; do
11091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11092 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11094 break 2
11095 fi
11096done
81ecdfbb
RW
11097 done
11098IFS=$as_save_IFS
c6b750e1 11099
7e0f7140
GK
11100fi
11101fi
c6b750e1 11102AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11103if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11105$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11106else
81ecdfbb
RW
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108$as_echo "no" >&6; }
7e0f7140
GK
11109fi
11110
81ecdfbb 11111
2429c060
PB
11112 fi
11113 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11114 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11115set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11117$as_echo_n "checking for $ac_word... " >&6; }
11118if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11119 $as_echo_n "(cached) " >&6
7e0f7140 11120else
2429c060
PB
11121 if test -n "$AR_FOR_TARGET"; then
11122 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 11123else
c6b750e1
DJ
11124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11125for as_dir in $PATH
11126do
11127 IFS=$as_save_IFS
11128 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11129 for ac_exec_ext in '' $ac_executable_extensions; do
11130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11131 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11133 break 2
11134 fi
11135done
81ecdfbb
RW
11136 done
11137IFS=$as_save_IFS
c6b750e1 11138
7e0f7140
GK
11139fi
11140fi
c6b750e1 11141AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11142if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11144$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11145else
81ecdfbb
RW
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147$as_echo "no" >&6; }
7e0f7140 11148fi
c6b750e1 11149
81ecdfbb 11150
2429c060
PB
11151 fi
11152 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11153 done
11154fi
c6b750e1 11155
2429c060
PB
11156if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11157 set dummy ar
7e0f7140 11158 if test $build = $target ; then
2429c060 11159 AR_FOR_TARGET="$2"
7e0f7140 11160 else
2429c060 11161 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11162 fi
d3f5afc4
MS
11163else
11164 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11165fi
11166
3a35eeb3
PB
11167else
11168 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11169fi
11170
11171
11172
11173
11174if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11175 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11177$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11178 if test -x $with_build_time_tools/as; then
11179 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11180 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11182$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11183 else
81ecdfbb
RW
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11185$as_echo "no" >&6; }
3a35eeb3 11186 fi
2429c060
PB
11187 elif test $build != $host && test $have_gcc_for_target = yes; then
11188 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11189 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11190 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11191 fi
11192fi
c6b750e1 11193if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11194 # Extract the first word of "as", so it can be a program name with args.
11195set dummy as; ac_word=$2
81ecdfbb
RW
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11197$as_echo_n "checking for $ac_word... " >&6; }
11198if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11199 $as_echo_n "(cached) " >&6
2429c060 11200else
c6b750e1
DJ
11201 case $AS_FOR_TARGET in
11202 [\\/]* | ?:[\\/]*)
2429c060
PB
11203 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11204 ;;
2429c060 11205 *)
c6b750e1
DJ
11206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11207for as_dir in $gcc_cv_tool_dirs
11208do
11209 IFS=$as_save_IFS
11210 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11211 for ac_exec_ext in '' $ac_executable_extensions; do
11212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11213 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11215 break 2
11216 fi
11217done
81ecdfbb
RW
11218 done
11219IFS=$as_save_IFS
c6b750e1 11220
2429c060
PB
11221 ;;
11222esac
11223fi
c6b750e1 11224AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11225if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11227$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11228else
81ecdfbb
RW
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230$as_echo "no" >&6; }
2429c060
PB
11231fi
11232
81ecdfbb 11233
2429c060
PB
11234fi
11235if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11236
11237
11238if test -n "$AS_FOR_TARGET"; then
11239 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11240elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11241 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11242fi
11243
11244if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11245 for ncn_progname in as; do
11246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11247set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11249$as_echo_n "checking for $ac_word... " >&6; }
11250if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11251 $as_echo_n "(cached) " >&6
9a819804
AO
11252else
11253 if test -n "$AS_FOR_TARGET"; then
11254 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11255else
11256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257for as_dir in $PATH
11258do
11259 IFS=$as_save_IFS
11260 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11261 for ac_exec_ext in '' $ac_executable_extensions; do
11262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11263 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11265 break 2
11266 fi
11267done
81ecdfbb
RW
11268 done
11269IFS=$as_save_IFS
9a819804
AO
11270
11271fi
11272fi
11273AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11274if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11276$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11277else
81ecdfbb
RW
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279$as_echo "no" >&6; }
9a819804
AO
11280fi
11281
81ecdfbb 11282
9a819804
AO
11283 done
11284fi
11285
11286if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11287 for ncn_progname in as; do
81ecdfbb
RW
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11289$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11290 if test -x $with_build_time_tools/${ncn_progname}; then
11291 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11293$as_echo "yes" >&6; }
2429c060
PB
11294 break
11295 else
81ecdfbb
RW
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297$as_echo "no" >&6; }
2429c060
PB
11298 fi
11299 done
11300fi
11301
11302if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11303 for ncn_progname in as; do
11304 if test -n "$ncn_target_tool_prefix"; then
11305 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11306set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11308$as_echo_n "checking for $ac_word... " >&6; }
11309if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11310 $as_echo_n "(cached) " >&6
2429c060
PB
11311else
11312 if test -n "$AS_FOR_TARGET"; then
11313 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11314else
c6b750e1
DJ
11315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11316for as_dir in $PATH
11317do
11318 IFS=$as_save_IFS
11319 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11320 for ac_exec_ext in '' $ac_executable_extensions; do
11321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11322 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11324 break 2
11325 fi
11326done
81ecdfbb
RW
11327 done
11328IFS=$as_save_IFS
c6b750e1 11329
2429c060
PB
11330fi
11331fi
c6b750e1 11332AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11333if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11335$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11336else
81ecdfbb
RW
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338$as_echo "no" >&6; }
2429c060
PB
11339fi
11340
81ecdfbb 11341
2429c060
PB
11342 fi
11343 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11345set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347$as_echo_n "checking for $ac_word... " >&6; }
11348if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11349 $as_echo_n "(cached) " >&6
2429c060
PB
11350else
11351 if test -n "$AS_FOR_TARGET"; then
11352 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11353else
c6b750e1
DJ
11354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355for as_dir in $PATH
11356do
11357 IFS=$as_save_IFS
11358 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11361 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11363 break 2
11364 fi
11365done
81ecdfbb
RW
11366 done
11367IFS=$as_save_IFS
c6b750e1 11368
2429c060
PB
11369fi
11370fi
c6b750e1 11371AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11372if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11374$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11375else
81ecdfbb
RW
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377$as_echo "no" >&6; }
2429c060 11378fi
c6b750e1 11379
81ecdfbb 11380
2429c060
PB
11381 fi
11382 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11383 done
11384fi
c6b750e1 11385
2429c060
PB
11386if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11387 set dummy as
11388 if test $build = $target ; then
11389 AS_FOR_TARGET="$2"
11390 else
11391 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11392 fi
d3f5afc4
MS
11393else
11394 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11395fi
11396
3a35eeb3
PB
11397else
11398 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11399fi
11400
11401
11402
11403
11404if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11405 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11407$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11408 if test -x $with_build_time_tools/dlltool; then
11409 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11410 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11412$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11413 else
81ecdfbb
RW
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415$as_echo "no" >&6; }
3a35eeb3 11416 fi
2429c060
PB
11417 elif test $build != $host && test $have_gcc_for_target = yes; then
11418 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11419 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11420 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11421 fi
11422fi
c6b750e1 11423if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11424 # Extract the first word of "dlltool", so it can be a program name with args.
11425set dummy dlltool; ac_word=$2
81ecdfbb
RW
11426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11427$as_echo_n "checking for $ac_word... " >&6; }
11428if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
2429c060 11430else
c6b750e1
DJ
11431 case $DLLTOOL_FOR_TARGET in
11432 [\\/]* | ?:[\\/]*)
2429c060
PB
11433 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11434 ;;
2429c060 11435 *)
c6b750e1
DJ
11436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437for as_dir in $gcc_cv_tool_dirs
11438do
11439 IFS=$as_save_IFS
11440 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11441 for ac_exec_ext in '' $ac_executable_extensions; do
11442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11443 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11445 break 2
11446 fi
11447done
81ecdfbb
RW
11448 done
11449IFS=$as_save_IFS
c6b750e1 11450
2429c060
PB
11451 ;;
11452esac
11453fi
c6b750e1 11454DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11455if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11457$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11458else
81ecdfbb
RW
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460$as_echo "no" >&6; }
2429c060
PB
11461fi
11462
81ecdfbb 11463
2429c060
PB
11464fi
11465if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11466
11467
11468if test -n "$DLLTOOL_FOR_TARGET"; then
11469 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11470elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11471 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11472fi
11473
11474if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11475 for ncn_progname in dlltool; do
11476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11477set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479$as_echo_n "checking for $ac_word... " >&6; }
11480if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11481 $as_echo_n "(cached) " >&6
9a819804
AO
11482else
11483 if test -n "$DLLTOOL_FOR_TARGET"; then
11484 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11485else
11486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487for as_dir in $PATH
11488do
11489 IFS=$as_save_IFS
11490 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11491 for ac_exec_ext in '' $ac_executable_extensions; do
11492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11493 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11495 break 2
11496 fi
11497done
81ecdfbb
RW
11498 done
11499IFS=$as_save_IFS
9a819804
AO
11500
11501fi
11502fi
11503DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11504if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11506$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11507else
81ecdfbb
RW
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509$as_echo "no" >&6; }
9a819804
AO
11510fi
11511
81ecdfbb 11512
9a819804
AO
11513 done
11514fi
11515
11516if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11517 for ncn_progname in dlltool; do
81ecdfbb
RW
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11519$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11520 if test -x $with_build_time_tools/${ncn_progname}; then
11521 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11523$as_echo "yes" >&6; }
2429c060
PB
11524 break
11525 else
81ecdfbb
RW
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527$as_echo "no" >&6; }
2429c060
PB
11528 fi
11529 done
11530fi
11531
11532if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11533 for ncn_progname in dlltool; do
11534 if test -n "$ncn_target_tool_prefix"; then
11535 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11536set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11538$as_echo_n "checking for $ac_word... " >&6; }
11539if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11540 $as_echo_n "(cached) " >&6
2429c060
PB
11541else
11542 if test -n "$DLLTOOL_FOR_TARGET"; then
11543 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11544else
c6b750e1
DJ
11545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546for as_dir in $PATH
11547do
11548 IFS=$as_save_IFS
11549 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11550 for ac_exec_ext in '' $ac_executable_extensions; do
11551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11552 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11554 break 2
11555 fi
11556done
81ecdfbb
RW
11557 done
11558IFS=$as_save_IFS
c6b750e1 11559
2429c060
PB
11560fi
11561fi
c6b750e1 11562DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11563if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11565$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11566else
81ecdfbb
RW
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11568$as_echo "no" >&6; }
2429c060
PB
11569fi
11570
81ecdfbb 11571
2429c060
PB
11572 fi
11573 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11574 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11575set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11577$as_echo_n "checking for $ac_word... " >&6; }
11578if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11579 $as_echo_n "(cached) " >&6
2429c060
PB
11580else
11581 if test -n "$DLLTOOL_FOR_TARGET"; then
11582 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11583else
c6b750e1
DJ
11584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585for as_dir in $PATH
11586do
11587 IFS=$as_save_IFS
11588 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11589 for ac_exec_ext in '' $ac_executable_extensions; do
11590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11591 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11593 break 2
11594 fi
11595done
81ecdfbb
RW
11596 done
11597IFS=$as_save_IFS
c6b750e1 11598
2429c060
PB
11599fi
11600fi
c6b750e1 11601DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11602if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11604$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11605else
81ecdfbb
RW
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607$as_echo "no" >&6; }
2429c060 11608fi
c6b750e1 11609
81ecdfbb 11610
2429c060
PB
11611 fi
11612 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11613 done
11614fi
c6b750e1 11615
2429c060
PB
11616if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11617 set dummy dlltool
11618 if test $build = $target ; then
11619 DLLTOOL_FOR_TARGET="$2"
11620 else
11621 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11622 fi
d3f5afc4
MS
11623else
11624 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11625fi
11626
3a35eeb3
PB
11627else
11628 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11629fi
11630
11631
11632
11633
11634if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11635 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11637$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11638 if test -x $with_build_time_tools/ld; then
11639 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11640 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11642$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11643 else
81ecdfbb
RW
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645$as_echo "no" >&6; }
3a35eeb3 11646 fi
2429c060
PB
11647 elif test $build != $host && test $have_gcc_for_target = yes; then
11648 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11649 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11650 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11651 fi
11652fi
c6b750e1 11653if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11654 # Extract the first word of "ld", so it can be a program name with args.
11655set dummy ld; ac_word=$2
81ecdfbb
RW
11656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657$as_echo_n "checking for $ac_word... " >&6; }
11658if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11659 $as_echo_n "(cached) " >&6
2429c060 11660else
c6b750e1
DJ
11661 case $LD_FOR_TARGET in
11662 [\\/]* | ?:[\\/]*)
2429c060
PB
11663 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11664 ;;
2429c060 11665 *)
c6b750e1
DJ
11666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667for as_dir in $gcc_cv_tool_dirs
11668do
11669 IFS=$as_save_IFS
11670 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11671 for ac_exec_ext in '' $ac_executable_extensions; do
11672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11673 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11675 break 2
11676 fi
11677done
81ecdfbb
RW
11678 done
11679IFS=$as_save_IFS
c6b750e1 11680
2429c060
PB
11681 ;;
11682esac
11683fi
c6b750e1 11684LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11685if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11687$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11688else
81ecdfbb
RW
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690$as_echo "no" >&6; }
2429c060
PB
11691fi
11692
81ecdfbb 11693
2429c060
PB
11694fi
11695if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11696
11697
11698if test -n "$LD_FOR_TARGET"; then
11699 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11700elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11701 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11702fi
11703
11704if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11705 for ncn_progname in ld; do
11706 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11707set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11709$as_echo_n "checking for $ac_word... " >&6; }
11710if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11711 $as_echo_n "(cached) " >&6
9a819804
AO
11712else
11713 if test -n "$LD_FOR_TARGET"; then
11714 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11715else
11716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717for as_dir in $PATH
11718do
11719 IFS=$as_save_IFS
11720 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11721 for ac_exec_ext in '' $ac_executable_extensions; do
11722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11723 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11725 break 2
11726 fi
11727done
81ecdfbb
RW
11728 done
11729IFS=$as_save_IFS
9a819804
AO
11730
11731fi
11732fi
11733LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11734if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11736$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11737else
81ecdfbb
RW
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739$as_echo "no" >&6; }
9a819804
AO
11740fi
11741
81ecdfbb 11742
9a819804
AO
11743 done
11744fi
11745
11746if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11747 for ncn_progname in ld; do
81ecdfbb
RW
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11749$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11750 if test -x $with_build_time_tools/${ncn_progname}; then
11751 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11753$as_echo "yes" >&6; }
2429c060
PB
11754 break
11755 else
81ecdfbb
RW
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757$as_echo "no" >&6; }
2429c060
PB
11758 fi
11759 done
11760fi
11761
11762if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11763 for ncn_progname in ld; do
11764 if test -n "$ncn_target_tool_prefix"; then
11765 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11766set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11768$as_echo_n "checking for $ac_word... " >&6; }
11769if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11770 $as_echo_n "(cached) " >&6
2429c060
PB
11771else
11772 if test -n "$LD_FOR_TARGET"; then
11773 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11774else
c6b750e1
DJ
11775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776for as_dir in $PATH
11777do
11778 IFS=$as_save_IFS
11779 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11780 for ac_exec_ext in '' $ac_executable_extensions; do
11781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11782 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11784 break 2
11785 fi
11786done
81ecdfbb
RW
11787 done
11788IFS=$as_save_IFS
c6b750e1 11789
2429c060
PB
11790fi
11791fi
c6b750e1 11792LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11793if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11795$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11796else
81ecdfbb
RW
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798$as_echo "no" >&6; }
2429c060
PB
11799fi
11800
81ecdfbb 11801
2429c060
PB
11802 fi
11803 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11805set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807$as_echo_n "checking for $ac_word... " >&6; }
11808if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11809 $as_echo_n "(cached) " >&6
2429c060
PB
11810else
11811 if test -n "$LD_FOR_TARGET"; then
11812 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11813else
c6b750e1
DJ
11814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815for as_dir in $PATH
11816do
11817 IFS=$as_save_IFS
11818 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11821 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11823 break 2
11824 fi
11825done
81ecdfbb
RW
11826 done
11827IFS=$as_save_IFS
c6b750e1 11828
2429c060
PB
11829fi
11830fi
c6b750e1 11831LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11832if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11834$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11835else
81ecdfbb
RW
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837$as_echo "no" >&6; }
2429c060 11838fi
c6b750e1 11839
81ecdfbb 11840
2429c060
PB
11841 fi
11842 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11843 done
11844fi
c6b750e1 11845
2429c060
PB
11846if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11847 set dummy ld
11848 if test $build = $target ; then
11849 LD_FOR_TARGET="$2"
11850 else
11851 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11852 fi
d3f5afc4
MS
11853else
11854 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11855fi
11856
3a35eeb3
PB
11857else
11858 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11859fi
11860
11861
11862
11863
11864if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11865 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11867$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11868 if test -x $with_build_time_tools/lipo; then
11869 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11870 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11872$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11873 else
81ecdfbb
RW
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875$as_echo "no" >&6; }
3a35eeb3 11876 fi
2429c060
PB
11877 elif test $build != $host && test $have_gcc_for_target = yes; then
11878 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11879 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11880 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11881 fi
11882fi
9a819804
AO
11883if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11884 # Extract the first word of "lipo", so it can be a program name with args.
11885set dummy lipo; ac_word=$2
81ecdfbb
RW
11886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11887$as_echo_n "checking for $ac_word... " >&6; }
11888if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11889 $as_echo_n "(cached) " >&6
9a819804
AO
11890else
11891 case $LIPO_FOR_TARGET in
11892 [\\/]* | ?:[\\/]*)
11893 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11894 ;;
11895 *)
11896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897for as_dir in $gcc_cv_tool_dirs
11898do
11899 IFS=$as_save_IFS
11900 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11901 for ac_exec_ext in '' $ac_executable_extensions; do
11902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11903 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11905 break 2
11906 fi
11907done
81ecdfbb
RW
11908 done
11909IFS=$as_save_IFS
9a819804
AO
11910
11911 ;;
11912esac
11913fi
11914LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11915if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11917$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11918else
81ecdfbb
RW
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920$as_echo "no" >&6; }
9a819804
AO
11921fi
11922
81ecdfbb 11923
9a819804
AO
11924fi
11925if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11926
11927
11928if test -n "$LIPO_FOR_TARGET"; then
11929 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11930elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11931 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11932fi
11933
11934if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11935 for ncn_progname in lipo; do
11936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11937set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11939$as_echo_n "checking for $ac_word... " >&6; }
11940if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11941 $as_echo_n "(cached) " >&6
2429c060 11942else
9a819804
AO
11943 if test -n "$LIPO_FOR_TARGET"; then
11944 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11945else
11946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947for as_dir in $PATH
c6b750e1
DJ
11948do
11949 IFS=$as_save_IFS
11950 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11951 for ac_exec_ext in '' $ac_executable_extensions; do
11952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11953 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11955 break 2
11956 fi
11957done
81ecdfbb
RW
11958 done
11959IFS=$as_save_IFS
c6b750e1 11960
2429c060 11961fi
9a819804
AO
11962fi
11963LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11964if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11966$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11967else
81ecdfbb
RW
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969$as_echo "no" >&6; }
2429c060
PB
11970fi
11971
81ecdfbb 11972
9a819804 11973 done
2429c060 11974fi
9a819804
AO
11975
11976if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11977 for ncn_progname in lipo; do
81ecdfbb
RW
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11979$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11980 if test -x $with_build_time_tools/${ncn_progname}; then
11981 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11983$as_echo "yes" >&6; }
2429c060
PB
11984 break
11985 else
81ecdfbb
RW
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987$as_echo "no" >&6; }
2429c060
PB
11988 fi
11989 done
11990fi
11991
11992if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11993 for ncn_progname in lipo; do
11994 if test -n "$ncn_target_tool_prefix"; then
11995 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11996set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998$as_echo_n "checking for $ac_word... " >&6; }
11999if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12000 $as_echo_n "(cached) " >&6
2429c060
PB
12001else
12002 if test -n "$LIPO_FOR_TARGET"; then
12003 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12004else
c6b750e1
DJ
12005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12006for as_dir in $PATH
12007do
12008 IFS=$as_save_IFS
12009 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12010 for ac_exec_ext in '' $ac_executable_extensions; do
12011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12012 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12014 break 2
12015 fi
12016done
81ecdfbb
RW
12017 done
12018IFS=$as_save_IFS
c6b750e1 12019
2429c060
PB
12020fi
12021fi
c6b750e1 12022LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12023if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12025$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12026else
81ecdfbb
RW
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028$as_echo "no" >&6; }
2429c060
PB
12029fi
12030
81ecdfbb 12031
2429c060
PB
12032 fi
12033 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12034 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12035set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12037$as_echo_n "checking for $ac_word... " >&6; }
12038if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12039 $as_echo_n "(cached) " >&6
2429c060
PB
12040else
12041 if test -n "$LIPO_FOR_TARGET"; then
12042 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12043else
c6b750e1
DJ
12044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045for as_dir in $PATH
12046do
12047 IFS=$as_save_IFS
12048 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12049 for ac_exec_ext in '' $ac_executable_extensions; do
12050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12051 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12053 break 2
12054 fi
12055done
81ecdfbb
RW
12056 done
12057IFS=$as_save_IFS
c6b750e1 12058
2429c060
PB
12059fi
12060fi
c6b750e1 12061LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12062if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12064$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12065else
81ecdfbb
RW
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067$as_echo "no" >&6; }
2429c060 12068fi
c6b750e1 12069
81ecdfbb 12070
2429c060
PB
12071 fi
12072 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12073 done
12074fi
c6b750e1 12075
2429c060
PB
12076if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12077 set dummy lipo
12078 if test $build = $target ; then
12079 LIPO_FOR_TARGET="$2"
12080 else
12081 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12082 fi
d3f5afc4
MS
12083else
12084 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
12085fi
12086
3a35eeb3
PB
12087else
12088 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
12089fi
12090
12091
12092
12093
12094if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12095 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12097$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12098 if test -x $with_build_time_tools/nm; then
12099 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12100 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12102$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 12103 else
81ecdfbb
RW
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105$as_echo "no" >&6; }
3a35eeb3 12106 fi
2429c060
PB
12107 elif test $build != $host && test $have_gcc_for_target = yes; then
12108 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
12109 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12110 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
12111 fi
12112fi
c6b750e1 12113if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12114 # Extract the first word of "nm", so it can be a program name with args.
12115set dummy nm; ac_word=$2
81ecdfbb
RW
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117$as_echo_n "checking for $ac_word... " >&6; }
12118if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12119 $as_echo_n "(cached) " >&6
2429c060 12120else
c6b750e1
DJ
12121 case $NM_FOR_TARGET in
12122 [\\/]* | ?:[\\/]*)
2429c060
PB
12123 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12124 ;;
2429c060 12125 *)
c6b750e1
DJ
12126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127for as_dir in $gcc_cv_tool_dirs
12128do
12129 IFS=$as_save_IFS
12130 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12131 for ac_exec_ext in '' $ac_executable_extensions; do
12132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12133 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12135 break 2
12136 fi
12137done
81ecdfbb
RW
12138 done
12139IFS=$as_save_IFS
c6b750e1 12140
2429c060
PB
12141 ;;
12142esac
12143fi
c6b750e1 12144NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12145if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12147$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12148else
81ecdfbb
RW
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150$as_echo "no" >&6; }
2429c060
PB
12151fi
12152
81ecdfbb 12153
2429c060
PB
12154fi
12155if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12156
12157
12158if test -n "$NM_FOR_TARGET"; then
12159 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12160elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12161 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12162fi
12163
12164if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12165 for ncn_progname in nm; do
12166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12167set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12169$as_echo_n "checking for $ac_word... " >&6; }
12170if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12171 $as_echo_n "(cached) " >&6
9a819804
AO
12172else
12173 if test -n "$NM_FOR_TARGET"; then
12174 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12175else
12176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177for as_dir in $PATH
12178do
12179 IFS=$as_save_IFS
12180 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12181 for ac_exec_ext in '' $ac_executable_extensions; do
12182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12183 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12185 break 2
12186 fi
12187done
81ecdfbb
RW
12188 done
12189IFS=$as_save_IFS
9a819804
AO
12190
12191fi
12192fi
12193NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12194if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12196$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12197else
81ecdfbb
RW
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12199$as_echo "no" >&6; }
9a819804
AO
12200fi
12201
81ecdfbb 12202
9a819804
AO
12203 done
12204fi
12205
12206if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12207 for ncn_progname in nm; do
81ecdfbb
RW
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12209$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12210 if test -x $with_build_time_tools/${ncn_progname}; then
12211 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12213$as_echo "yes" >&6; }
2429c060
PB
12214 break
12215 else
81ecdfbb
RW
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217$as_echo "no" >&6; }
2429c060
PB
12218 fi
12219 done
12220fi
12221
12222if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12223 for ncn_progname in nm; do
12224 if test -n "$ncn_target_tool_prefix"; then
12225 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12226set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228$as_echo_n "checking for $ac_word... " >&6; }
12229if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12230 $as_echo_n "(cached) " >&6
859789af 12231else
55db4b87
PB
12232 if test -n "$NM_FOR_TARGET"; then
12233 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12234else
c6b750e1
DJ
12235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236for as_dir in $PATH
12237do
12238 IFS=$as_save_IFS
12239 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12240 for ac_exec_ext in '' $ac_executable_extensions; do
12241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12242 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12244 break 2
12245 fi
12246done
81ecdfbb
RW
12247 done
12248IFS=$as_save_IFS
c6b750e1 12249
859789af
AC
12250fi
12251fi
c6b750e1 12252NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12253if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12255$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12256else
81ecdfbb
RW
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258$as_echo "no" >&6; }
859789af
AC
12259fi
12260
81ecdfbb 12261
2429c060
PB
12262 fi
12263 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12265set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12267$as_echo_n "checking for $ac_word... " >&6; }
12268if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12269 $as_echo_n "(cached) " >&6
859789af 12270else
05cbd757
PB
12271 if test -n "$NM_FOR_TARGET"; then
12272 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12273else
c6b750e1
DJ
12274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275for as_dir in $PATH
12276do
12277 IFS=$as_save_IFS
12278 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12279 for ac_exec_ext in '' $ac_executable_extensions; do
12280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12281 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12283 break 2
12284 fi
12285done
81ecdfbb
RW
12286 done
12287IFS=$as_save_IFS
c6b750e1 12288
859789af
AC
12289fi
12290fi
c6b750e1 12291NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12292if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12294$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12295else
81ecdfbb
RW
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297$as_echo "no" >&6; }
859789af 12298fi
c6b750e1 12299
81ecdfbb 12300
2429c060
PB
12301 fi
12302 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12303 done
12304fi
c6b750e1 12305
05cbd757
PB
12306if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12307 set dummy nm
12308 if test $build = $target ; then
12309 NM_FOR_TARGET="$2"
859789af 12310 else
05cbd757 12311 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12312 fi
d3f5afc4
MS
12313else
12314 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12315fi
12316
3a35eeb3
PB
12317else
12318 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12319fi
12320
12321
12322
12323
6b91c541
AP
12324if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12325 if test -n "$with_build_time_tools"; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12327$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12328 if test -x $with_build_time_tools/objcopy; then
12329 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12330 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12332$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12333 else
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335$as_echo "no" >&6; }
12336 fi
12337 elif test $build != $host && test $have_gcc_for_target = yes; then
12338 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12339 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12340 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12341 fi
12342fi
12343if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12344 # Extract the first word of "objcopy", so it can be a program name with args.
12345set dummy objcopy; ac_word=$2
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347$as_echo_n "checking for $ac_word... " >&6; }
12348if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12349 $as_echo_n "(cached) " >&6
12350else
12351 case $OBJCOPY_FOR_TARGET in
12352 [\\/]* | ?:[\\/]*)
12353 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12354 ;;
12355 *)
12356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357for as_dir in $gcc_cv_tool_dirs
12358do
12359 IFS=$as_save_IFS
12360 test -z "$as_dir" && as_dir=.
12361 for ac_exec_ext in '' $ac_executable_extensions; do
12362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12363 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12365 break 2
12366 fi
12367done
12368 done
12369IFS=$as_save_IFS
12370
12371 ;;
12372esac
12373fi
12374OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12375if test -n "$OBJCOPY_FOR_TARGET"; then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12377$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12378else
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380$as_echo "no" >&6; }
12381fi
12382
12383
12384fi
12385if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12386
12387
12388if test -n "$OBJCOPY_FOR_TARGET"; then
12389 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12390elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12391 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12392fi
12393
12394if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12395 for ncn_progname in objcopy; do
12396 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12397set dummy ${ncn_progname}; ac_word=$2
12398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12399$as_echo_n "checking for $ac_word... " >&6; }
12400if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12401 $as_echo_n "(cached) " >&6
12402else
12403 if test -n "$OBJCOPY_FOR_TARGET"; then
12404 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12405else
12406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12407for as_dir in $PATH
12408do
12409 IFS=$as_save_IFS
12410 test -z "$as_dir" && as_dir=.
12411 for ac_exec_ext in '' $ac_executable_extensions; do
12412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12413 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12415 break 2
12416 fi
12417done
12418 done
12419IFS=$as_save_IFS
12420
12421fi
12422fi
12423OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12424if test -n "$OBJCOPY_FOR_TARGET"; then
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12426$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12427else
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429$as_echo "no" >&6; }
12430fi
12431
12432
12433 done
12434fi
12435
12436if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12437 for ncn_progname in objcopy; do
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12439$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12440 if test -x $with_build_time_tools/${ncn_progname}; then
12441 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12443$as_echo "yes" >&6; }
12444 break
12445 else
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447$as_echo "no" >&6; }
12448 fi
12449 done
12450fi
12451
12452if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12453 for ncn_progname in objcopy; do
12454 if test -n "$ncn_target_tool_prefix"; then
12455 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12456set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458$as_echo_n "checking for $ac_word... " >&6; }
12459if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12460 $as_echo_n "(cached) " >&6
12461else
12462 if test -n "$OBJCOPY_FOR_TARGET"; then
12463 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12464else
12465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466for as_dir in $PATH
12467do
12468 IFS=$as_save_IFS
12469 test -z "$as_dir" && as_dir=.
12470 for ac_exec_ext in '' $ac_executable_extensions; do
12471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12472 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12474 break 2
12475 fi
12476done
12477 done
12478IFS=$as_save_IFS
12479
12480fi
12481fi
12482OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12483if test -n "$OBJCOPY_FOR_TARGET"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12485$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12486else
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488$as_echo "no" >&6; }
12489fi
12490
12491
12492 fi
12493 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12495set dummy ${ncn_progname}; ac_word=$2
12496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497$as_echo_n "checking for $ac_word... " >&6; }
12498if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12499 $as_echo_n "(cached) " >&6
12500else
12501 if test -n "$OBJCOPY_FOR_TARGET"; then
12502 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12503else
12504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505for as_dir in $PATH
12506do
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12511 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 break 2
12514 fi
12515done
12516 done
12517IFS=$as_save_IFS
12518
12519fi
12520fi
12521OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12522if test -n "$OBJCOPY_FOR_TARGET"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12524$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12525else
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527$as_echo "no" >&6; }
12528fi
12529
12530
12531 fi
12532 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12533 done
12534fi
12535
12536if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12537 set dummy objcopy
12538 if test $build = $target ; then
12539 OBJCOPY_FOR_TARGET="$2"
12540 else
12541 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12542 fi
12543else
12544 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12545fi
12546
12547else
12548 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12549fi
12550
12551
12552
12553
2429c060
PB
12554if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12555 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12557$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12558 if test -x $with_build_time_tools/objdump; then
12559 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12560 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12562$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12563 else
81ecdfbb
RW
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12565$as_echo "no" >&6; }
3a35eeb3 12566 fi
2429c060
PB
12567 elif test $build != $host && test $have_gcc_for_target = yes; then
12568 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12569 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12570 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12571 fi
12572fi
c6b750e1 12573if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12574 # Extract the first word of "objdump", so it can be a program name with args.
12575set dummy objdump; ac_word=$2
81ecdfbb
RW
12576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577$as_echo_n "checking for $ac_word... " >&6; }
12578if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
2429c060 12580else
c6b750e1
DJ
12581 case $OBJDUMP_FOR_TARGET in
12582 [\\/]* | ?:[\\/]*)
2429c060
PB
12583 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12584 ;;
2429c060 12585 *)
c6b750e1
DJ
12586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12587for as_dir in $gcc_cv_tool_dirs
12588do
12589 IFS=$as_save_IFS
12590 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12591 for ac_exec_ext in '' $ac_executable_extensions; do
12592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12593 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12595 break 2
12596 fi
12597done
81ecdfbb
RW
12598 done
12599IFS=$as_save_IFS
c6b750e1 12600
2429c060
PB
12601 ;;
12602esac
12603fi
c6b750e1 12604OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12605if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12607$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12608else
81ecdfbb
RW
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610$as_echo "no" >&6; }
2429c060
PB
12611fi
12612
81ecdfbb 12613
2429c060
PB
12614fi
12615if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12616
12617
12618if test -n "$OBJDUMP_FOR_TARGET"; then
12619 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12620elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12621 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12622fi
12623
12624if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12625 for ncn_progname in objdump; do
12626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12627set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629$as_echo_n "checking for $ac_word... " >&6; }
12630if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12631 $as_echo_n "(cached) " >&6
9a819804
AO
12632else
12633 if test -n "$OBJDUMP_FOR_TARGET"; then
12634 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12635else
12636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637for as_dir in $PATH
12638do
12639 IFS=$as_save_IFS
12640 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12641 for ac_exec_ext in '' $ac_executable_extensions; do
12642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12643 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12645 break 2
12646 fi
12647done
81ecdfbb
RW
12648 done
12649IFS=$as_save_IFS
9a819804
AO
12650
12651fi
12652fi
12653OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12654if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12656$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12657else
81ecdfbb
RW
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659$as_echo "no" >&6; }
9a819804
AO
12660fi
12661
81ecdfbb 12662
9a819804
AO
12663 done
12664fi
12665
12666if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12667 for ncn_progname in objdump; do
81ecdfbb
RW
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12669$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12670 if test -x $with_build_time_tools/${ncn_progname}; then
12671 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12673$as_echo "yes" >&6; }
2429c060
PB
12674 break
12675 else
81ecdfbb
RW
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677$as_echo "no" >&6; }
2429c060
PB
12678 fi
12679 done
12680fi
12681
12682if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12683 for ncn_progname in objdump; do
12684 if test -n "$ncn_target_tool_prefix"; then
12685 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12686set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688$as_echo_n "checking for $ac_word... " >&6; }
12689if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12690 $as_echo_n "(cached) " >&6
5ae72758
DJ
12691else
12692 if test -n "$OBJDUMP_FOR_TARGET"; then
12693 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12694else
c6b750e1
DJ
12695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696for as_dir in $PATH
12697do
12698 IFS=$as_save_IFS
12699 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12700 for ac_exec_ext in '' $ac_executable_extensions; do
12701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12702 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12704 break 2
12705 fi
12706done
81ecdfbb
RW
12707 done
12708IFS=$as_save_IFS
c6b750e1 12709
5ae72758
DJ
12710fi
12711fi
c6b750e1 12712OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12713if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12715$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12716else
81ecdfbb
RW
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718$as_echo "no" >&6; }
5ae72758
DJ
12719fi
12720
81ecdfbb 12721
2429c060
PB
12722 fi
12723 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12725set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727$as_echo_n "checking for $ac_word... " >&6; }
12728if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12729 $as_echo_n "(cached) " >&6
5ae72758
DJ
12730else
12731 if test -n "$OBJDUMP_FOR_TARGET"; then
12732 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12733else
c6b750e1
DJ
12734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735for as_dir in $PATH
12736do
12737 IFS=$as_save_IFS
12738 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12739 for ac_exec_ext in '' $ac_executable_extensions; do
12740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12741 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12743 break 2
12744 fi
12745done
81ecdfbb
RW
12746 done
12747IFS=$as_save_IFS
c6b750e1 12748
5ae72758
DJ
12749fi
12750fi
c6b750e1 12751OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12752if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12754$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12755else
81ecdfbb
RW
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757$as_echo "no" >&6; }
5ae72758 12758fi
c6b750e1 12759
81ecdfbb 12760
2429c060
PB
12761 fi
12762 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12763 done
12764fi
c6b750e1 12765
5ae72758
DJ
12766if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12767 set dummy objdump
12768 if test $build = $target ; then
12769 OBJDUMP_FOR_TARGET="$2"
12770 else
12771 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12772 fi
d3f5afc4
MS
12773else
12774 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12775fi
12776
3a35eeb3
PB
12777else
12778 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12779fi
12780
12781
12782
12783
12784if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12785 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12787$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12788 if test -x $with_build_time_tools/ranlib; then
12789 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12790 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12792$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12793 else
81ecdfbb
RW
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795$as_echo "no" >&6; }
3a35eeb3 12796 fi
2429c060
PB
12797 elif test $build != $host && test $have_gcc_for_target = yes; then
12798 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12799 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12800 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12801 fi
12802fi
c6b750e1 12803if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12804 # Extract the first word of "ranlib", so it can be a program name with args.
12805set dummy ranlib; ac_word=$2
81ecdfbb
RW
12806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12807$as_echo_n "checking for $ac_word... " >&6; }
12808if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12809 $as_echo_n "(cached) " >&6
2429c060 12810else
c6b750e1
DJ
12811 case $RANLIB_FOR_TARGET in
12812 [\\/]* | ?:[\\/]*)
2429c060
PB
12813 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12814 ;;
2429c060 12815 *)
c6b750e1
DJ
12816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817for as_dir in $gcc_cv_tool_dirs
12818do
12819 IFS=$as_save_IFS
12820 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12821 for ac_exec_ext in '' $ac_executable_extensions; do
12822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12823 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12825 break 2
12826 fi
12827done
81ecdfbb
RW
12828 done
12829IFS=$as_save_IFS
c6b750e1 12830
2429c060
PB
12831 ;;
12832esac
12833fi
c6b750e1 12834RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12835if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12837$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12838else
81ecdfbb
RW
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840$as_echo "no" >&6; }
2429c060
PB
12841fi
12842
81ecdfbb 12843
2429c060
PB
12844fi
12845if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12846
12847
12848if test -n "$RANLIB_FOR_TARGET"; then
12849 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12850elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12851 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12852fi
12853
12854if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12855 for ncn_progname in ranlib; do
12856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12857set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12859$as_echo_n "checking for $ac_word... " >&6; }
12860if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12861 $as_echo_n "(cached) " >&6
9a819804
AO
12862else
12863 if test -n "$RANLIB_FOR_TARGET"; then
12864 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12865else
12866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867for as_dir in $PATH
12868do
12869 IFS=$as_save_IFS
12870 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12871 for ac_exec_ext in '' $ac_executable_extensions; do
12872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12873 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12875 break 2
12876 fi
12877done
81ecdfbb
RW
12878 done
12879IFS=$as_save_IFS
9a819804
AO
12880
12881fi
12882fi
12883RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12884if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12886$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12887else
81ecdfbb
RW
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889$as_echo "no" >&6; }
9a819804
AO
12890fi
12891
81ecdfbb 12892
9a819804
AO
12893 done
12894fi
12895
12896if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12897 for ncn_progname in ranlib; do
81ecdfbb
RW
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12899$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12900 if test -x $with_build_time_tools/${ncn_progname}; then
12901 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12903$as_echo "yes" >&6; }
2429c060
PB
12904 break
12905 else
81ecdfbb
RW
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12907$as_echo "no" >&6; }
2429c060
PB
12908 fi
12909 done
12910fi
12911
12912if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12913 for ncn_progname in ranlib; do
12914 if test -n "$ncn_target_tool_prefix"; then
12915 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12916set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12918$as_echo_n "checking for $ac_word... " >&6; }
12919if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12920 $as_echo_n "(cached) " >&6
859789af 12921else
55db4b87
PB
12922 if test -n "$RANLIB_FOR_TARGET"; then
12923 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12924else
c6b750e1
DJ
12925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12926for as_dir in $PATH
12927do
12928 IFS=$as_save_IFS
12929 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12930 for ac_exec_ext in '' $ac_executable_extensions; do
12931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12932 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12934 break 2
12935 fi
12936done
81ecdfbb
RW
12937 done
12938IFS=$as_save_IFS
c6b750e1 12939
859789af
AC
12940fi
12941fi
c6b750e1 12942RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12943if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12945$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12946else
81ecdfbb
RW
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12948$as_echo "no" >&6; }
859789af
AC
12949fi
12950
81ecdfbb 12951
2429c060
PB
12952 fi
12953 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12955set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12957$as_echo_n "checking for $ac_word... " >&6; }
12958if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12959 $as_echo_n "(cached) " >&6
859789af 12960else
05cbd757
PB
12961 if test -n "$RANLIB_FOR_TARGET"; then
12962 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12963else
c6b750e1
DJ
12964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965for as_dir in $PATH
12966do
12967 IFS=$as_save_IFS
12968 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12969 for ac_exec_ext in '' $ac_executable_extensions; do
12970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12971 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12973 break 2
12974 fi
12975done
81ecdfbb
RW
12976 done
12977IFS=$as_save_IFS
c6b750e1 12978
859789af
AC
12979fi
12980fi
c6b750e1 12981RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12982if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12984$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12985else
81ecdfbb
RW
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987$as_echo "no" >&6; }
859789af 12988fi
c6b750e1 12989
81ecdfbb 12990
2429c060
PB
12991 fi
12992 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12993 done
12994fi
c6b750e1 12995
2429c060
PB
12996if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12997 set dummy ranlib
12998 if test $build = $target ; then
12999 RANLIB_FOR_TARGET="$2"
13000 else
13001 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13002 fi
d3f5afc4
MS
13003else
13004 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 13005fi
05cbd757 13006
3a35eeb3
PB
13007else
13008 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
13009fi
13010
2429c060
PB
13011
13012
13013
b121d7d4
DD
13014if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13015 if test -n "$with_build_time_tools"; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13017$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13018 if test -x $with_build_time_tools/readelf; then
13019 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13020 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13022$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13023 else
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025$as_echo "no" >&6; }
13026 fi
13027 elif test $build != $host && test $have_gcc_for_target = yes; then
13028 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13029 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13030 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13031 fi
13032fi
13033if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13034 # Extract the first word of "readelf", so it can be a program name with args.
13035set dummy readelf; ac_word=$2
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13037$as_echo_n "checking for $ac_word... " >&6; }
13038if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13039 $as_echo_n "(cached) " >&6
13040else
13041 case $READELF_FOR_TARGET in
13042 [\\/]* | ?:[\\/]*)
13043 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13044 ;;
13045 *)
13046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047for as_dir in $gcc_cv_tool_dirs
13048do
13049 IFS=$as_save_IFS
13050 test -z "$as_dir" && as_dir=.
13051 for ac_exec_ext in '' $ac_executable_extensions; do
13052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13053 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13055 break 2
13056 fi
13057done
13058 done
13059IFS=$as_save_IFS
13060
13061 ;;
13062esac
13063fi
13064READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13065if test -n "$READELF_FOR_TARGET"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13067$as_echo "$READELF_FOR_TARGET" >&6; }
13068else
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070$as_echo "no" >&6; }
13071fi
13072
13073
13074fi
13075if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13076
13077
13078if test -n "$READELF_FOR_TARGET"; then
13079 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13080elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13081 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13082fi
13083
13084if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13085 for ncn_progname in readelf; do
13086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13087set dummy ${ncn_progname}; ac_word=$2
13088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13089$as_echo_n "checking for $ac_word... " >&6; }
13090if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13091 $as_echo_n "(cached) " >&6
13092else
13093 if test -n "$READELF_FOR_TARGET"; then
13094 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13095else
13096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097for as_dir in $PATH
13098do
13099 IFS=$as_save_IFS
13100 test -z "$as_dir" && as_dir=.
13101 for ac_exec_ext in '' $ac_executable_extensions; do
13102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13103 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13105 break 2
13106 fi
13107done
13108 done
13109IFS=$as_save_IFS
13110
13111fi
13112fi
13113READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13114if test -n "$READELF_FOR_TARGET"; then
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13116$as_echo "$READELF_FOR_TARGET" >&6; }
13117else
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119$as_echo "no" >&6; }
13120fi
13121
13122
13123 done
13124fi
13125
13126if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13127 for ncn_progname in readelf; do
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13129$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13130 if test -x $with_build_time_tools/${ncn_progname}; then
13131 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13133$as_echo "yes" >&6; }
13134 break
13135 else
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137$as_echo "no" >&6; }
13138 fi
13139 done
13140fi
13141
13142if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13143 for ncn_progname in readelf; do
13144 if test -n "$ncn_target_tool_prefix"; then
13145 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13146set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13148$as_echo_n "checking for $ac_word... " >&6; }
13149if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13150 $as_echo_n "(cached) " >&6
13151else
13152 if test -n "$READELF_FOR_TARGET"; then
13153 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13154else
13155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13156for as_dir in $PATH
13157do
13158 IFS=$as_save_IFS
13159 test -z "$as_dir" && as_dir=.
13160 for ac_exec_ext in '' $ac_executable_extensions; do
13161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13162 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13164 break 2
13165 fi
13166done
13167 done
13168IFS=$as_save_IFS
13169
13170fi
13171fi
13172READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13173if test -n "$READELF_FOR_TARGET"; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13175$as_echo "$READELF_FOR_TARGET" >&6; }
13176else
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13178$as_echo "no" >&6; }
13179fi
13180
13181
13182 fi
13183 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13185set dummy ${ncn_progname}; ac_word=$2
13186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13187$as_echo_n "checking for $ac_word... " >&6; }
13188if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13189 $as_echo_n "(cached) " >&6
13190else
13191 if test -n "$READELF_FOR_TARGET"; then
13192 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13193else
13194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13195for as_dir in $PATH
13196do
13197 IFS=$as_save_IFS
13198 test -z "$as_dir" && as_dir=.
13199 for ac_exec_ext in '' $ac_executable_extensions; do
13200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13201 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13203 break 2
13204 fi
13205done
13206 done
13207IFS=$as_save_IFS
13208
13209fi
13210fi
13211READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13212if test -n "$READELF_FOR_TARGET"; then
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13214$as_echo "$READELF_FOR_TARGET" >&6; }
13215else
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13217$as_echo "no" >&6; }
13218fi
13219
13220
13221 fi
13222 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13223 done
13224fi
13225
13226if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13227 set dummy readelf
13228 if test $build = $target ; then
13229 READELF_FOR_TARGET="$2"
13230 else
13231 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13232 fi
13233else
13234 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13235fi
13236
13237else
13238 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13239fi
13240
13241
13242
13243
2429c060
PB
13244if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13245 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13247$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13248 if test -x $with_build_time_tools/strip; then
13249 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13250 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13252$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 13253 else
81ecdfbb
RW
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255$as_echo "no" >&6; }
3a35eeb3 13256 fi
2429c060
PB
13257 elif test $build != $host && test $have_gcc_for_target = yes; then
13258 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
13259 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13260 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13261 fi
13262fi
c6b750e1 13263if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13264 # Extract the first word of "strip", so it can be a program name with args.
13265set dummy strip; ac_word=$2
81ecdfbb
RW
13266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13267$as_echo_n "checking for $ac_word... " >&6; }
13268if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13269 $as_echo_n "(cached) " >&6
2429c060 13270else
c6b750e1
DJ
13271 case $STRIP_FOR_TARGET in
13272 [\\/]* | ?:[\\/]*)
2429c060
PB
13273 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13274 ;;
2429c060 13275 *)
c6b750e1
DJ
13276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13277for as_dir in $gcc_cv_tool_dirs
13278do
13279 IFS=$as_save_IFS
13280 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13281 for ac_exec_ext in '' $ac_executable_extensions; do
13282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13283 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13285 break 2
13286 fi
13287done
81ecdfbb
RW
13288 done
13289IFS=$as_save_IFS
c6b750e1 13290
2429c060
PB
13291 ;;
13292esac
13293fi
c6b750e1 13294STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13295if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13297$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13298else
81ecdfbb
RW
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300$as_echo "no" >&6; }
2429c060
PB
13301fi
13302
81ecdfbb 13303
2429c060
PB
13304fi
13305if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13306
13307
13308if test -n "$STRIP_FOR_TARGET"; then
13309 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13310elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13311 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13312fi
13313
13314if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13315 for ncn_progname in strip; do
13316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13317set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13319$as_echo_n "checking for $ac_word... " >&6; }
13320if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13321 $as_echo_n "(cached) " >&6
9a819804
AO
13322else
13323 if test -n "$STRIP_FOR_TARGET"; then
13324 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13325else
13326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327for as_dir in $PATH
13328do
13329 IFS=$as_save_IFS
13330 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13331 for ac_exec_ext in '' $ac_executable_extensions; do
13332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13333 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13335 break 2
13336 fi
13337done
81ecdfbb
RW
13338 done
13339IFS=$as_save_IFS
9a819804
AO
13340
13341fi
13342fi
13343STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13344if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13346$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13347else
81ecdfbb
RW
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13349$as_echo "no" >&6; }
9a819804
AO
13350fi
13351
81ecdfbb 13352
9a819804
AO
13353 done
13354fi
13355
13356if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13357 for ncn_progname in strip; do
81ecdfbb
RW
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13359$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13360 if test -x $with_build_time_tools/${ncn_progname}; then
13361 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13363$as_echo "yes" >&6; }
2429c060
PB
13364 break
13365 else
81ecdfbb
RW
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13367$as_echo "no" >&6; }
2429c060
PB
13368 fi
13369 done
13370fi
13371
13372if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13373 for ncn_progname in strip; do
13374 if test -n "$ncn_target_tool_prefix"; then
13375 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13376set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13378$as_echo_n "checking for $ac_word... " >&6; }
13379if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13380 $as_echo_n "(cached) " >&6
7e0f7140
GK
13381else
13382 if test -n "$STRIP_FOR_TARGET"; then
13383 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13384else
13385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13386for as_dir in $PATH
13387do
13388 IFS=$as_save_IFS
13389 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13390 for ac_exec_ext in '' $ac_executable_extensions; do
13391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13392 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13394 break 2
13395 fi
13396done
81ecdfbb
RW
13397 done
13398IFS=$as_save_IFS
c6b750e1 13399
7e0f7140
GK
13400fi
13401fi
c6b750e1 13402STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13403if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13405$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13406else
81ecdfbb
RW
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408$as_echo "no" >&6; }
7e0f7140
GK
13409fi
13410
81ecdfbb 13411
2429c060
PB
13412 fi
13413 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13415set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13417$as_echo_n "checking for $ac_word... " >&6; }
13418if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13419 $as_echo_n "(cached) " >&6
7e0f7140
GK
13420else
13421 if test -n "$STRIP_FOR_TARGET"; then
13422 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13423else
c6b750e1
DJ
13424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13425for as_dir in $PATH
13426do
13427 IFS=$as_save_IFS
13428 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13429 for ac_exec_ext in '' $ac_executable_extensions; do
13430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13431 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13433 break 2
13434 fi
13435done
81ecdfbb
RW
13436 done
13437IFS=$as_save_IFS
c6b750e1 13438
7e0f7140
GK
13439fi
13440fi
c6b750e1 13441STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13442if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13444$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13445else
81ecdfbb
RW
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13447$as_echo "no" >&6; }
7e0f7140 13448fi
c6b750e1 13449
81ecdfbb 13450
2429c060
PB
13451 fi
13452 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13453 done
13454fi
c6b750e1 13455
7e0f7140
GK
13456if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13457 set dummy strip
13458 if test $build = $target ; then
13459 STRIP_FOR_TARGET="$2"
13460 else
13461 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13462 fi
d3f5afc4
MS
13463else
13464 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13465fi
13466
3a35eeb3
PB
13467else
13468 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13469fi
13470
13471
13472
13473
13474if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13475 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13477$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13478 if test -x $with_build_time_tools/windres; then
13479 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13480 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13482$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13483 else
81ecdfbb
RW
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485$as_echo "no" >&6; }
3a35eeb3 13486 fi
2429c060
PB
13487 elif test $build != $host && test $have_gcc_for_target = yes; then
13488 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13489 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13490 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13491 fi
13492fi
c6b750e1 13493if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13494 # Extract the first word of "windres", so it can be a program name with args.
13495set dummy windres; ac_word=$2
81ecdfbb
RW
13496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13497$as_echo_n "checking for $ac_word... " >&6; }
13498if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13499 $as_echo_n "(cached) " >&6
2429c060 13500else
c6b750e1
DJ
13501 case $WINDRES_FOR_TARGET in
13502 [\\/]* | ?:[\\/]*)
2429c060
PB
13503 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13504 ;;
2429c060 13505 *)
c6b750e1
DJ
13506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13507for as_dir in $gcc_cv_tool_dirs
13508do
13509 IFS=$as_save_IFS
13510 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13511 for ac_exec_ext in '' $ac_executable_extensions; do
13512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13513 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13515 break 2
13516 fi
13517done
81ecdfbb
RW
13518 done
13519IFS=$as_save_IFS
c6b750e1 13520
2429c060
PB
13521 ;;
13522esac
13523fi
c6b750e1 13524WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13525if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13527$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13528else
81ecdfbb
RW
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530$as_echo "no" >&6; }
2429c060
PB
13531fi
13532
81ecdfbb 13533
2429c060
PB
13534fi
13535if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13536
13537
13538if test -n "$WINDRES_FOR_TARGET"; then
13539 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13540elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13541 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13542fi
13543
13544if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13545 for ncn_progname in windres; do
13546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13547set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13549$as_echo_n "checking for $ac_word... " >&6; }
13550if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13551 $as_echo_n "(cached) " >&6
9a819804
AO
13552else
13553 if test -n "$WINDRES_FOR_TARGET"; then
13554 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13555else
13556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13557for as_dir in $PATH
13558do
13559 IFS=$as_save_IFS
13560 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13561 for ac_exec_ext in '' $ac_executable_extensions; do
13562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13563 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13565 break 2
13566 fi
13567done
81ecdfbb
RW
13568 done
13569IFS=$as_save_IFS
9a819804
AO
13570
13571fi
13572fi
13573WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13574if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13576$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13577else
81ecdfbb
RW
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13579$as_echo "no" >&6; }
9a819804
AO
13580fi
13581
81ecdfbb 13582
9a819804
AO
13583 done
13584fi
13585
13586if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13587 for ncn_progname in windres; do
81ecdfbb
RW
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13589$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13590 if test -x $with_build_time_tools/${ncn_progname}; then
13591 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13593$as_echo "yes" >&6; }
2429c060
PB
13594 break
13595 else
81ecdfbb
RW
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597$as_echo "no" >&6; }
2429c060
PB
13598 fi
13599 done
13600fi
13601
13602if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13603 for ncn_progname in windres; do
13604 if test -n "$ncn_target_tool_prefix"; then
13605 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13606set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608$as_echo_n "checking for $ac_word... " >&6; }
13609if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13610 $as_echo_n "(cached) " >&6
859789af 13611else
55db4b87
PB
13612 if test -n "$WINDRES_FOR_TARGET"; then
13613 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13614else
c6b750e1
DJ
13615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616for as_dir in $PATH
13617do
13618 IFS=$as_save_IFS
13619 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13620 for ac_exec_ext in '' $ac_executable_extensions; do
13621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13622 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13624 break 2
13625 fi
13626done
81ecdfbb
RW
13627 done
13628IFS=$as_save_IFS
c6b750e1 13629
859789af
AC
13630fi
13631fi
c6b750e1 13632WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13633if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13635$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13636else
81ecdfbb
RW
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13638$as_echo "no" >&6; }
859789af
AC
13639fi
13640
81ecdfbb 13641
2429c060
PB
13642 fi
13643 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13644 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13645set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13647$as_echo_n "checking for $ac_word... " >&6; }
13648if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13649 $as_echo_n "(cached) " >&6
859789af 13650else
05cbd757
PB
13651 if test -n "$WINDRES_FOR_TARGET"; then
13652 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13653else
c6b750e1
DJ
13654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13655for as_dir in $PATH
13656do
13657 IFS=$as_save_IFS
13658 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13659 for ac_exec_ext in '' $ac_executable_extensions; do
13660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13661 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13663 break 2
13664 fi
13665done
81ecdfbb
RW
13666 done
13667IFS=$as_save_IFS
c6b750e1 13668
859789af
AC
13669fi
13670fi
c6b750e1 13671WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13672if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13674$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13675else
81ecdfbb
RW
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13677$as_echo "no" >&6; }
859789af 13678fi
c6b750e1 13679
81ecdfbb 13680
2429c060
PB
13681 fi
13682 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13683 done
13684fi
c6b750e1 13685
05cbd757
PB
13686if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13687 set dummy windres
13688 if test $build = $target ; then
13689 WINDRES_FOR_TARGET="$2"
859789af 13690 else
05cbd757 13691 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13692 fi
d3f5afc4
MS
13693else
13694 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13695fi
13696
3a35eeb3
PB
13697else
13698 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13699fi
13700
852e5f18 13701
0c24b341
NC
13702
13703
13704if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13705 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13707$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13708 if test -x $with_build_time_tools/windmc; then
13709 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13710 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13712$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13713 else
81ecdfbb
RW
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13715$as_echo "no" >&6; }
0c24b341
NC
13716 fi
13717 elif test $build != $host && test $have_gcc_for_target = yes; then
13718 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13719 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13720 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13721 fi
13722fi
13723if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13724 # Extract the first word of "windmc", so it can be a program name with args.
13725set dummy windmc; ac_word=$2
81ecdfbb
RW
13726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13727$as_echo_n "checking for $ac_word... " >&6; }
13728if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13729 $as_echo_n "(cached) " >&6
0c24b341
NC
13730else
13731 case $WINDMC_FOR_TARGET in
13732 [\\/]* | ?:[\\/]*)
13733 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13734 ;;
13735 *)
13736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13737for as_dir in $gcc_cv_tool_dirs
13738do
13739 IFS=$as_save_IFS
13740 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13741 for ac_exec_ext in '' $ac_executable_extensions; do
13742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13743 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13745 break 2
13746 fi
13747done
81ecdfbb
RW
13748 done
13749IFS=$as_save_IFS
0c24b341
NC
13750
13751 ;;
13752esac
13753fi
13754WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13755if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13757$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13758else
81ecdfbb
RW
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13760$as_echo "no" >&6; }
0c24b341
NC
13761fi
13762
81ecdfbb 13763
0c24b341
NC
13764fi
13765if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13766
13767
13768if test -n "$WINDMC_FOR_TARGET"; then
13769 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13770elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13771 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13772fi
13773
13774if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13775 for ncn_progname in windmc; do
13776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13777set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13779$as_echo_n "checking for $ac_word... " >&6; }
13780if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13781 $as_echo_n "(cached) " >&6
0c24b341
NC
13782else
13783 if test -n "$WINDMC_FOR_TARGET"; then
13784 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13785else
13786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787for as_dir in $PATH
13788do
13789 IFS=$as_save_IFS
13790 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13791 for ac_exec_ext in '' $ac_executable_extensions; do
13792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13793 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13795 break 2
13796 fi
13797done
81ecdfbb
RW
13798 done
13799IFS=$as_save_IFS
0c24b341
NC
13800
13801fi
13802fi
13803WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13804if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13806$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13807else
81ecdfbb
RW
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13809$as_echo "no" >&6; }
0c24b341
NC
13810fi
13811
81ecdfbb 13812
0c24b341
NC
13813 done
13814fi
13815
13816if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13817 for ncn_progname in windmc; do
81ecdfbb
RW
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13819$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13820 if test -x $with_build_time_tools/${ncn_progname}; then
13821 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13823$as_echo "yes" >&6; }
0c24b341
NC
13824 break
13825 else
81ecdfbb
RW
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13827$as_echo "no" >&6; }
0c24b341
NC
13828 fi
13829 done
13830fi
13831
13832if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13833 for ncn_progname in windmc; do
13834 if test -n "$ncn_target_tool_prefix"; then
13835 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13836set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13838$as_echo_n "checking for $ac_word... " >&6; }
13839if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13840 $as_echo_n "(cached) " >&6
0c24b341
NC
13841else
13842 if test -n "$WINDMC_FOR_TARGET"; then
13843 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13844else
13845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846for as_dir in $PATH
13847do
13848 IFS=$as_save_IFS
13849 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13850 for ac_exec_ext in '' $ac_executable_extensions; do
13851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13852 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13854 break 2
13855 fi
13856done
81ecdfbb
RW
13857 done
13858IFS=$as_save_IFS
0c24b341
NC
13859
13860fi
13861fi
13862WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13863if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13865$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13866else
81ecdfbb
RW
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13868$as_echo "no" >&6; }
0c24b341
NC
13869fi
13870
81ecdfbb 13871
0c24b341
NC
13872 fi
13873 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13875set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13877$as_echo_n "checking for $ac_word... " >&6; }
13878if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13879 $as_echo_n "(cached) " >&6
0c24b341
NC
13880else
13881 if test -n "$WINDMC_FOR_TARGET"; then
13882 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13883else
13884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13885for as_dir in $PATH
13886do
13887 IFS=$as_save_IFS
13888 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13889 for ac_exec_ext in '' $ac_executable_extensions; do
13890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13891 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13893 break 2
13894 fi
13895done
81ecdfbb
RW
13896 done
13897IFS=$as_save_IFS
0c24b341
NC
13898
13899fi
13900fi
13901WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13902if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13904$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13905else
81ecdfbb
RW
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13907$as_echo "no" >&6; }
0c24b341
NC
13908fi
13909
81ecdfbb 13910
0c24b341
NC
13911 fi
13912 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13913 done
13914fi
13915
13916if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13917 set dummy windmc
13918 if test $build = $target ; then
13919 WINDMC_FOR_TARGET="$2"
13920 else
13921 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13922 fi
13923else
13924 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13925fi
13926
13927else
13928 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13929fi
13930
13931
be01d343
PB
13932RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13933
81ecdfbb
RW
13934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13935$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13936if test "x${build}" != "x${host}" ; then
2429c060
PB
13937 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13938 # We already found the complete path
b8025f34 13939 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13941$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13942 else
13943 # Canadian cross, just use what we found
81ecdfbb
RW
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13945$as_echo "pre-installed" >&6; }
2429c060 13946 fi
be01d343
PB
13947else
13948 ok=yes
13949 case " ${configdirs} " in
13950 *" binutils "*) ;;
13951 *) ok=no ;;
13952 esac
c6b750e1 13953
be01d343
PB
13954 if test $ok = yes; then
13955 # An in-tree tool is available and we can use it
13956 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13958$as_echo "just compiled" >&6; }
2429c060
PB
13959 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13960 # We already found the complete path
b8025f34 13961 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13963$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13964 elif test "x$target" = "x$host"; then
13965 # We can use an host tool
13966 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13968$as_echo "host tool" >&6; }
be01d343
PB
13969 else
13970 # We need a cross tool
81ecdfbb
RW
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13972$as_echo "pre-installed" >&6; }
be01d343
PB
13973 fi
13974fi
4b900473 13975
81ecdfbb
RW
13976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13977$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13978if test "x${build}" != "x${host}" ; then
2429c060
PB
13979 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13980 # We already found the complete path
b8025f34 13981 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13983$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13984 else
13985 # Canadian cross, just use what we found
81ecdfbb
RW
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13987$as_echo "pre-installed" >&6; }
2429c060 13988 fi
be01d343
PB
13989else
13990 ok=yes
13991 case " ${configdirs} " in
13992 *" gas "*) ;;
13993 *) ok=no ;;
13994 esac
c6b750e1 13995
be01d343
PB
13996 if test $ok = yes; then
13997 # An in-tree tool is available and we can use it
13998 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14000$as_echo "just compiled" >&6; }
2429c060
PB
14001 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14002 # We already found the complete path
b8025f34 14003 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14005$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14006 elif test "x$target" = "x$host"; then
14007 # We can use an host tool
14008 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14010$as_echo "host tool" >&6; }
be01d343
PB
14011 else
14012 # We need a cross tool
81ecdfbb
RW
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14014$as_echo "pre-installed" >&6; }
be01d343
PB
14015 fi
14016fi
4b900473 14017
81ecdfbb
RW
14018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14019$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 14020if test "x${build}" != "x${host}" ; then
2429c060
PB
14021 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14022 # We already found the complete path
b8025f34 14023 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14025$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14026 else
14027 # Canadian cross, just use what we found
81ecdfbb
RW
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14029$as_echo "pre-installed" >&6; }
2429c060 14030 fi
be01d343
PB
14031else
14032 ok=yes
14033 case " ${configdirs} " in
14034 *" gcc "*) ;;
14035 *) ok=no ;;
14036 esac
c6b750e1 14037
be01d343
PB
14038 if test $ok = yes; then
14039 # An in-tree tool is available and we can use it
14040 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14042$as_echo "just compiled" >&6; }
2429c060
PB
14043 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14044 # We already found the complete path
b8025f34 14045 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14047$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14048 elif test "x$target" = "x$host"; then
14049 # We can use an host tool
14050 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14052$as_echo "host tool" >&6; }
be01d343
PB
14053 else
14054 # We need a cross tool
81ecdfbb
RW
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14056$as_echo "pre-installed" >&6; }
be01d343
PB
14057 fi
14058fi
4b900473 14059
81ecdfbb
RW
14060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14061$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 14062if test "x${build}" != "x${host}" ; then
2429c060
PB
14063 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14064 # We already found the complete path
b8025f34 14065 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14067$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14068 else
14069 # Canadian cross, just use what we found
81ecdfbb
RW
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14071$as_echo "pre-installed" >&6; }
2429c060 14072 fi
be01d343
PB
14073else
14074 ok=yes
14075 case " ${configdirs} " in
14076 *" gcc "*) ;;
14077 *) ok=no ;;
14078 esac
14079 case ,${enable_languages}, in
14080 *,c++,*) ;;
14081 *) ok=no ;;
14082 esac
14083 if test $ok = yes; then
14084 # An in-tree tool is available and we can use it
95e43135 14085 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
81ecdfbb
RW
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14087$as_echo "just compiled" >&6; }
2429c060
PB
14088 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14089 # We already found the complete path
b8025f34 14090 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14092$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14093 elif test "x$target" = "x$host"; then
14094 # We can use an host tool
14095 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14097$as_echo "host tool" >&6; }
be01d343
PB
14098 else
14099 # We need a cross tool
81ecdfbb
RW
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14101$as_echo "pre-installed" >&6; }
be01d343
PB
14102 fi
14103fi
4b900473 14104
81ecdfbb
RW
14105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14106$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 14107if test "x${build}" != "x${host}" ; then
2429c060
PB
14108 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14109 # We already found the complete path
b8025f34 14110 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14112$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14113 else
14114 # Canadian cross, just use what we found
81ecdfbb
RW
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14116$as_echo "pre-installed" >&6; }
2429c060 14117 fi
be01d343
PB
14118else
14119 ok=yes
14120 case " ${configdirs} " in
14121 *" gcc "*) ;;
14122 *) ok=no ;;
14123 esac
14124 case ,${enable_languages}, in
14125 *,c++,*) ;;
14126 *) ok=no ;;
14127 esac
14128 if test $ok = yes; then
14129 # An in-tree tool is available and we can use it
95e43135 14130 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
81ecdfbb
RW
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14132$as_echo "just compiled" >&6; }
2429c060
PB
14133 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14134 # We already found the complete path
b8025f34 14135 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14137$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14138 elif test "x$target" = "x$host"; then
14139 # We can use an host tool
14140 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14142$as_echo "host tool" >&6; }
be01d343
PB
14143 else
14144 # We need a cross tool
81ecdfbb
RW
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14146$as_echo "pre-installed" >&6; }
be01d343
PB
14147 fi
14148fi
4b900473 14149
81ecdfbb
RW
14150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14151$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 14152if test "x${build}" != "x${host}" ; then
2429c060
PB
14153 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14154 # We already found the complete path
b8025f34 14155 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14157$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14158 else
14159 # Canadian cross, just use what we found
81ecdfbb
RW
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14161$as_echo "pre-installed" >&6; }
2429c060 14162 fi
be01d343
PB
14163else
14164 ok=yes
14165 case " ${configdirs} " in
14166 *" binutils "*) ;;
14167 *) ok=no ;;
14168 esac
c6b750e1 14169
be01d343
PB
14170 if test $ok = yes; then
14171 # An in-tree tool is available and we can use it
14172 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14174$as_echo "just compiled" >&6; }
2429c060
PB
14175 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14176 # We already found the complete path
b8025f34 14177 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14179$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14180 elif test "x$target" = "x$host"; then
14181 # We can use an host tool
14182 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14184$as_echo "host tool" >&6; }
be01d343
PB
14185 else
14186 # We need a cross tool
81ecdfbb
RW
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14188$as_echo "pre-installed" >&6; }
be01d343
PB
14189 fi
14190fi
4b900473 14191
81ecdfbb
RW
14192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14193$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 14194if test "x${build}" != "x${host}" ; then
2429c060
PB
14195 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14196 # We already found the complete path
b8025f34 14197 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14199$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14200 else
14201 # Canadian cross, just use what we found
81ecdfbb
RW
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14203$as_echo "pre-installed" >&6; }
2429c060 14204 fi
be01d343
PB
14205else
14206 ok=yes
14207 case " ${configdirs} " in
14208 *" gcc "*) ;;
14209 *) ok=no ;;
14210 esac
c6b750e1 14211
be01d343
PB
14212 if test $ok = yes; then
14213 # An in-tree tool is available and we can use it
14214 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14216$as_echo "just compiled" >&6; }
2429c060
PB
14217 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14218 # We already found the complete path
b8025f34 14219 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14221$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14222 elif test "x$target" = "x$host"; then
14223 # We can use an host tool
14224 GCC_FOR_TARGET='$()'
81ecdfbb
RW
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14226$as_echo "host tool" >&6; }
be01d343
PB
14227 else
14228 # We need a cross tool
81ecdfbb
RW
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14230$as_echo "pre-installed" >&6; }
be01d343
PB
14231 fi
14232fi
4b900473 14233
81ecdfbb
RW
14234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14235$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 14236if test "x${build}" != "x${host}" ; then
2429c060
PB
14237 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14238 # We already found the complete path
b8025f34 14239 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14241$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14242 else
14243 # Canadian cross, just use what we found
81ecdfbb
RW
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14245$as_echo "pre-installed" >&6; }
2429c060 14246 fi
be01d343
PB
14247else
14248 ok=yes
14249 case " ${configdirs} " in
14250 *" gcc "*) ;;
14251 *) ok=no ;;
14252 esac
14253 case ,${enable_languages}, in
14254 *,java,*) ;;
14255 *) ok=no ;;
14256 esac
14257 if test $ok = yes; then
14258 # An in-tree tool is available and we can use it
14259 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14261$as_echo "just compiled" >&6; }
2429c060
PB
14262 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14263 # We already found the complete path
b8025f34 14264 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14266$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14267 elif test "x$target" = "x$host"; then
14268 # We can use an host tool
14269 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14271$as_echo "host tool" >&6; }
be01d343
PB
14272 else
14273 # We need a cross tool
81ecdfbb
RW
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14275$as_echo "pre-installed" >&6; }
be01d343
PB
14276 fi
14277fi
4b900473 14278
81ecdfbb
RW
14279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14280$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 14281if test "x${build}" != "x${host}" ; then
2429c060
PB
14282 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14283 # We already found the complete path
b8025f34 14284 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14286$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14287 else
14288 # Canadian cross, just use what we found
81ecdfbb
RW
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14290$as_echo "pre-installed" >&6; }
2429c060 14291 fi
be01d343
PB
14292else
14293 ok=yes
14294 case " ${configdirs} " in
14295 *" gcc "*) ;;
14296 *) ok=no ;;
14297 esac
14298 case ,${enable_languages}, in
14299 *,fortran,*) ;;
14300 *) ok=no ;;
14301 esac
14302 if test $ok = yes; then
14303 # An in-tree tool is available and we can use it
14304 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14306$as_echo "just compiled" >&6; }
2429c060
PB
14307 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14308 # We already found the complete path
b8025f34 14309 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14311$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14312 elif test "x$target" = "x$host"; then
14313 # We can use an host tool
14314 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14316$as_echo "host tool" >&6; }
be01d343
PB
14317 else
14318 # We need a cross tool
81ecdfbb
RW
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14320$as_echo "pre-installed" >&6; }
be01d343
PB
14321 fi
14322fi
4b900473 14323
e552509b
ILT
14324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14325$as_echo_n "checking where to find the target gccgo... " >&6; }
14326if test "x${build}" != "x${host}" ; then
14327 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14328 # We already found the complete path
14329 ac_dir=`dirname $GOC_FOR_TARGET`
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14331$as_echo "pre-installed in $ac_dir" >&6; }
14332 else
14333 # Canadian cross, just use what we found
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14335$as_echo "pre-installed" >&6; }
14336 fi
14337else
14338 ok=yes
14339 case " ${configdirs} " in
14340 *" gcc "*) ;;
14341 *) ok=no ;;
14342 esac
14343 case ,${enable_languages}, in
14344 *,go,*) ;;
14345 *) ok=no ;;
14346 esac
14347 if test $ok = yes; then
14348 # An in-tree tool is available and we can use it
14349 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14351$as_echo "just compiled" >&6; }
14352 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14353 # We already found the complete path
14354 ac_dir=`dirname $GOC_FOR_TARGET`
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14356$as_echo "pre-installed in $ac_dir" >&6; }
14357 elif test "x$target" = "x$host"; then
14358 # We can use an host tool
14359 GOC_FOR_TARGET='$(GOC)'
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14361$as_echo "host tool" >&6; }
14362 else
14363 # We need a cross tool
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14365$as_echo "pre-installed" >&6; }
14366 fi
14367fi
14368
81ecdfbb
RW
14369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14370$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14371if test "x${build}" != "x${host}" ; then
2429c060
PB
14372 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14373 # We already found the complete path
b8025f34 14374 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14376$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14377 else
14378 # Canadian cross, just use what we found
81ecdfbb
RW
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14380$as_echo "pre-installed" >&6; }
2429c060 14381 fi
be01d343
PB
14382else
14383 ok=yes
14384 case " ${configdirs} " in
14385 *" ld "*) ;;
14386 *) ok=no ;;
14387 esac
c6b750e1 14388
be01d343
PB
14389 if test $ok = yes; then
14390 # An in-tree tool is available and we can use it
14391 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14393$as_echo "just compiled" >&6; }
2429c060
PB
14394 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14395 # We already found the complete path
b8025f34 14396 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14398$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14399 elif test "x$target" = "x$host"; then
14400 # We can use an host tool
14401 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14403$as_echo "host tool" >&6; }
be01d343
PB
14404 else
14405 # We need a cross tool
81ecdfbb
RW
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14407$as_echo "pre-installed" >&6; }
be01d343
PB
14408 fi
14409fi
4b900473 14410
81ecdfbb
RW
14411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14412$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14413if test "x${build}" != "x${host}" ; then
2429c060
PB
14414 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14415 # We already found the complete path
b8025f34 14416 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14418$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14419 else
14420 # Canadian cross, just use what we found
81ecdfbb
RW
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14422$as_echo "pre-installed" >&6; }
2429c060 14423 fi
be01d343 14424else
2429c060
PB
14425 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14426 # We already found the complete path
b8025f34 14427 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14429$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14430 elif test "x$target" = "x$host"; then
be01d343
PB
14431 # We can use an host tool
14432 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14434$as_echo "host tool" >&6; }
be01d343
PB
14435 else
14436 # We need a cross tool
81ecdfbb
RW
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14438$as_echo "pre-installed" >&6; }
be01d343
PB
14439 fi
14440fi
4b900473 14441
81ecdfbb
RW
14442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14443$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14444if test "x${build}" != "x${host}" ; then
2429c060
PB
14445 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14446 # We already found the complete path
b8025f34 14447 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14449$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14450 else
14451 # Canadian cross, just use what we found
81ecdfbb
RW
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14453$as_echo "pre-installed" >&6; }
2429c060 14454 fi
be01d343
PB
14455else
14456 ok=yes
14457 case " ${configdirs} " in
14458 *" binutils "*) ;;
14459 *) ok=no ;;
14460 esac
c6b750e1 14461
be01d343
PB
14462 if test $ok = yes; then
14463 # An in-tree tool is available and we can use it
14464 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14466$as_echo "just compiled" >&6; }
2429c060
PB
14467 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14468 # We already found the complete path
b8025f34 14469 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14471$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14472 elif test "x$target" = "x$host"; then
14473 # We can use an host tool
14474 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14476$as_echo "host tool" >&6; }
be01d343
PB
14477 else
14478 # We need a cross tool
81ecdfbb
RW
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14480$as_echo "pre-installed" >&6; }
be01d343
PB
14481 fi
14482fi
4b900473 14483
6b91c541
AP
14484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14485$as_echo_n "checking where to find the target objcopy... " >&6; }
14486if test "x${build}" != "x${host}" ; then
14487 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14488 # We already found the complete path
14489 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14491$as_echo "pre-installed in $ac_dir" >&6; }
14492 else
14493 # Canadian cross, just use what we found
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14495$as_echo "pre-installed" >&6; }
14496 fi
14497else
14498 ok=yes
14499 case " ${configdirs} " in
14500 *" binutils "*) ;;
14501 *) ok=no ;;
14502 esac
14503
14504 if test $ok = yes; then
14505 # An in-tree tool is available and we can use it
14506 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14508$as_echo "just compiled" >&6; }
14509 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14510 # We already found the complete path
14511 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14513$as_echo "pre-installed in $ac_dir" >&6; }
14514 elif test "x$target" = "x$host"; then
14515 # We can use an host tool
1b6c0831 14516 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14518$as_echo "host tool" >&6; }
14519 else
14520 # We need a cross tool
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14522$as_echo "pre-installed" >&6; }
14523 fi
14524fi
14525
81ecdfbb
RW
14526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14527$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14528if test "x${build}" != "x${host}" ; then
2429c060
PB
14529 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14530 # We already found the complete path
b8025f34 14531 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14533$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14534 else
14535 # Canadian cross, just use what we found
81ecdfbb
RW
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14537$as_echo "pre-installed" >&6; }
2429c060 14538 fi
be01d343
PB
14539else
14540 ok=yes
14541 case " ${configdirs} " in
14542 *" binutils "*) ;;
14543 *) ok=no ;;
14544 esac
c6b750e1 14545
be01d343
PB
14546 if test $ok = yes; then
14547 # An in-tree tool is available and we can use it
14548 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14550$as_echo "just compiled" >&6; }
2429c060
PB
14551 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14552 # We already found the complete path
b8025f34 14553 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14555$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14556 elif test "x$target" = "x$host"; then
14557 # We can use an host tool
14558 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14560$as_echo "host tool" >&6; }
be01d343
PB
14561 else
14562 # We need a cross tool
81ecdfbb
RW
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14564$as_echo "pre-installed" >&6; }
be01d343
PB
14565 fi
14566fi
4b900473 14567
81ecdfbb
RW
14568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14569$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14570if test "x${build}" != "x${host}" ; then
2429c060
PB
14571 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14572 # We already found the complete path
b8025f34 14573 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14575$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14576 else
14577 # Canadian cross, just use what we found
81ecdfbb
RW
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14579$as_echo "pre-installed" >&6; }
2429c060 14580 fi
be01d343
PB
14581else
14582 ok=yes
14583 case " ${configdirs} " in
14584 *" binutils "*) ;;
14585 *) ok=no ;;
14586 esac
c6b750e1 14587
be01d343
PB
14588 if test $ok = yes; then
14589 # An in-tree tool is available and we can use it
14590 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14592$as_echo "just compiled" >&6; }
2429c060
PB
14593 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14594 # We already found the complete path
b8025f34 14595 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14597$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14598 elif test "x$target" = "x$host"; then
14599 # We can use an host tool
14600 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14602$as_echo "host tool" >&6; }
be01d343
PB
14603 else
14604 # We need a cross tool
81ecdfbb
RW
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14606$as_echo "pre-installed" >&6; }
be01d343
PB
14607 fi
14608fi
4b900473 14609
b121d7d4
DD
14610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14611$as_echo_n "checking where to find the target readelf... " >&6; }
14612if test "x${build}" != "x${host}" ; then
14613 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14614 # We already found the complete path
14615 ac_dir=`dirname $READELF_FOR_TARGET`
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14617$as_echo "pre-installed in $ac_dir" >&6; }
14618 else
14619 # Canadian cross, just use what we found
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14621$as_echo "pre-installed" >&6; }
14622 fi
14623else
14624 ok=yes
14625 case " ${configdirs} " in
14626 *" binutils "*) ;;
14627 *) ok=no ;;
14628 esac
14629
14630 if test $ok = yes; then
14631 # An in-tree tool is available and we can use it
14632 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14634$as_echo "just compiled" >&6; }
14635 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14636 # We already found the complete path
14637 ac_dir=`dirname $READELF_FOR_TARGET`
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14639$as_echo "pre-installed in $ac_dir" >&6; }
14640 elif test "x$target" = "x$host"; then
14641 # We can use an host tool
14642 READELF_FOR_TARGET='$(READELF)'
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14644$as_echo "host tool" >&6; }
14645 else
14646 # We need a cross tool
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14648$as_echo "pre-installed" >&6; }
14649 fi
14650fi
14651
81ecdfbb
RW
14652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14653$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14654if test "x${build}" != "x${host}" ; then
2429c060
PB
14655 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14656 # We already found the complete path
b8025f34 14657 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14659$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14660 else
14661 # Canadian cross, just use what we found
81ecdfbb
RW
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14663$as_echo "pre-installed" >&6; }
2429c060 14664 fi
be01d343
PB
14665else
14666 ok=yes
14667 case " ${configdirs} " in
14668 *" binutils "*) ;;
14669 *) ok=no ;;
14670 esac
c6b750e1 14671
be01d343
PB
14672 if test $ok = yes; then
14673 # An in-tree tool is available and we can use it
9b980aa1 14674 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14676$as_echo "just compiled" >&6; }
2429c060
PB
14677 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14678 # We already found the complete path
b8025f34 14679 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14681$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14682 elif test "x$target" = "x$host"; then
14683 # We can use an host tool
14684 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14686$as_echo "host tool" >&6; }
be01d343
PB
14687 else
14688 # We need a cross tool
81ecdfbb
RW
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14690$as_echo "pre-installed" >&6; }
be01d343
PB
14691 fi
14692fi
4b900473 14693
81ecdfbb
RW
14694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14695$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14696if test "x${build}" != "x${host}" ; then
2429c060
PB
14697 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14698 # We already found the complete path
b8025f34 14699 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14701$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14702 else
14703 # Canadian cross, just use what we found
81ecdfbb
RW
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14705$as_echo "pre-installed" >&6; }
2429c060 14706 fi
be01d343
PB
14707else
14708 ok=yes
14709 case " ${configdirs} " in
14710 *" binutils "*) ;;
14711 *) ok=no ;;
14712 esac
c6b750e1 14713
be01d343
PB
14714 if test $ok = yes; then
14715 # An in-tree tool is available and we can use it
14716 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14718$as_echo "just compiled" >&6; }
2429c060
PB
14719 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14720 # We already found the complete path
b8025f34 14721 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14723$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14724 elif test "x$target" = "x$host"; then
14725 # We can use an host tool
14726 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14728$as_echo "host tool" >&6; }
be01d343
PB
14729 else
14730 # We need a cross tool
81ecdfbb
RW
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14732$as_echo "pre-installed" >&6; }
be01d343 14733 fi
a0da8069 14734fi
54752a6b 14735
81ecdfbb
RW
14736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14737$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14738if test "x${build}" != "x${host}" ; then
14739 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14740 # We already found the complete path
14741 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14743$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14744 else
14745 # Canadian cross, just use what we found
81ecdfbb
RW
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14747$as_echo "pre-installed" >&6; }
0c24b341
NC
14748 fi
14749else
14750 ok=yes
14751 case " ${configdirs} " in
14752 *" binutils "*) ;;
14753 *) ok=no ;;
14754 esac
14755
14756 if test $ok = yes; then
14757 # An in-tree tool is available and we can use it
14758 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14760$as_echo "just compiled" >&6; }
0c24b341
NC
14761 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14762 # We already found the complete path
14763 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14765$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14766 elif test "x$target" = "x$host"; then
14767 # We can use an host tool
14768 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14770$as_echo "host tool" >&6; }
0c24b341
NC
14771 else
14772 # We need a cross tool
81ecdfbb
RW
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14774$as_echo "pre-installed" >&6; }
0c24b341
NC
14775 fi
14776fi
14777
54752a6b
NN
14778
14779
be01d343 14780
4b900473 14781
a0da8069
NN
14782# Certain tools may need extra flags.
14783AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14784RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14785NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14786
be01d343
PB
14787# When building target libraries, except in a Canadian cross, we use
14788# the same toolchain as the compiler we just built.
14789COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14790COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14791COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14792if test $host = $build; then
14793 case " $configdirs " in
14794 *" gcc "*)
14795 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14796 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14797 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14798 ;;
14799 esac
14800fi
14801
14802
14803
14804
14805
81ecdfbb
RW
14806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14807$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14808# Check whether --enable-maintainer-mode was given.
14809if test "${enable_maintainer_mode+set}" = set; then :
14810 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14811else
14812 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14813fi
14814
14815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14816$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14817
14818
14819if test "$USE_MAINTAINER_MODE" = yes; then
14820 MAINTAINER_MODE_TRUE=
14821 MAINTAINER_MODE_FALSE='#'
14822else
14823 MAINTAINER_MODE_TRUE='#'
14824 MAINTAINER_MODE_FALSE=
c6b750e1 14825fi
3d5e36ae
AO
14826MAINT=$MAINTAINER_MODE_TRUE
14827
1d39f329
NN
14828# ---------------------
14829# GCC bootstrap support
14830# ---------------------
14831
14832# Stage specific cflags for build.
14833stage1_cflags="-g"
14834case $build in
14835 vax-*-*)
14836 case ${GCC} in
14837 yes) stage1_cflags="-g -Wa,-J" ;;
14838 *) stage1_cflags="-g -J" ;;
14839 esac ;;
1d39f329
NN
14840esac
14841
1d89b610 14842
1d39f329 14843
8a0d8a5c 14844# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14845# Check whether --enable-stage1-checking was given.
14846if test "${enable_stage1_checking+set}" = set; then :
14847 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14848else
5566c1fa 14849 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
ce6c656d
L
14850 # For --disable-checking or implicit --enable-checking=release, avoid
14851 # setting --enable-checking=gc in the default stage1 checking for LTO
14852 # bootstraps. See PR62077.
14853 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types
14854 case $BUILD_CONFIG in
14855 *lto*)
14856 if test "x$enable_checking" = x && \
14857 test -d ${srcdir}/gcc && \
14858 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14859 stage1_checking=--enable-checking=yes,types
14860 fi;;
14861 *) stage1_checking=--enable-checking=yes,types;;
14862 esac
8a0d8a5c 14863else
5566c1fa 14864 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14865fi
81ecdfbb 14866fi
8a0d8a5c
PB
14867
14868
c6b750e1 14869
81ecdfbb
RW
14870# Enable -Werror in bootstrap stage2 and later.
14871# Check whether --enable-werror was given.
14872if test "${enable_werror+set}" = set; then :
14873 enableval=$enable_werror;
1d39f329 14874else
a0323144 14875 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14876 enable_werror=yes
79fcd0ec
PB
14877else
14878 enable_werror=no
14879fi
81ecdfbb
RW
14880fi
14881
1a6f2dc7
NN
14882case ${enable_werror} in
14883 yes) stage2_werror_flag="--enable-werror-always" ;;
14884 *) stage2_werror_flag="" ;;
1d39f329
NN
14885esac
14886
14887
82033c9b
JBG
14888# Enable --enable-host-shared.
14889# Check whether --enable-host-shared was given.
14890if test "${enable_host_shared+set}" = set; then :
14891 enableval=$enable_host_shared; host_shared=$enableval
14892else
14893 host_shared=no
14894fi
14895
14896
14897
1b6c0831
L
14898# PR jit/64780: Require the user to explicitly specify
14899# --enable-host-shared if the jit is enabled, hinting
14900# that they might want to do a separate configure/build of
14901# the jit, to avoid users from slowing down the rest of the
14902# compiler by enabling the jit.
14903if test ${host_shared} = "no" ; then
14904 case "${enable_languages}" in
14905 *jit*)
14906 as_fn_error "
14907Enabling language \"jit\" requires --enable-host-shared.
14908
14909--enable-host-shared typically slows the rest of the compiler down by
14910a few %, so you must explicitly enable it.
14911
14912If you want to build both the jit and the regular compiler, it is often
14913best to do this via two separate configure/builds, in separate
14914directories, to avoid imposing the performance cost of
14915--enable-host-shared on the regular compiler." "$LINENO" 5
14916 ;;
14917 *)
14918 ;;
14919 esac
14920fi
14921
e8a5fa9c
RW
14922# Specify what files to not compare during bootstrap.
14923
14924compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14925case "$target" in
14926 hppa*64*-*-hpux*) ;;
14927 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
1488e230 14928 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14929esac
14930
14931
81ecdfbb
RW
14932ac_config_files="$ac_config_files Makefile"
14933
c6b750e1 14934cat >confcache <<\_ACEOF
a0da8069
NN
14935# This file is a shell script that caches the results of configure
14936# tests run on this system so they can be shared between configure
c6b750e1
DJ
14937# scripts and configure runs, see configure's option --config-cache.
14938# It is not useful on other systems. If it contains results you don't
14939# want to keep, you may remove or edit it.
a0da8069 14940#
c6b750e1
DJ
14941# config.status only pays attention to the cache file if you give it
14942# the --recheck option to rerun configure.
a0da8069 14943#
c6b750e1
DJ
14944# `ac_cv_env_foo' variables (set or unset) will be overridden when
14945# loading this file, other *unset* `ac_cv_foo' will be assigned the
14946# following values.
14947
14948_ACEOF
14949
a0da8069
NN
14950# The following way of writing the cache mishandles newlines in values,
14951# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14952# So, we kill variables containing newlines.
a0da8069
NN
14953# Ultrix sh set writes to stderr and can't be redirected directly,
14954# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14955(
14956 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14957 eval ac_val=\$$ac_var
14958 case $ac_val in #(
14959 *${as_nl}*)
14960 case $ac_var in #(
14961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14962$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14963 esac
14964 case $ac_var in #(
14965 _ | IFS | as_nl) ;; #(
14966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14967 *) { eval $ac_var=; unset $ac_var;} ;;
14968 esac ;;
14969 esac
14970 done
14971
c6b750e1 14972 (set) 2>&1 |
81ecdfbb
RW
14973 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14974 *${as_nl}ac_space=\ *)
14975 # `set' does not quote correctly, so add quotes: double-quote
14976 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14977 sed -n \
14978 "s/'/'\\\\''/g;
14979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14980 ;; #(
c6b750e1
DJ
14981 *)
14982 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14983 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14984 ;;
81ecdfbb
RW
14985 esac |
14986 sort
14987) |
c6b750e1 14988 sed '
81ecdfbb 14989 /^ac_cv_env_/b end
c6b750e1 14990 t clear
81ecdfbb 14991 :clear
c6b750e1
DJ
14992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14993 t end
81ecdfbb
RW
14994 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14995 :end' >>confcache
14996if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14997 if test -w "$cache_file"; then
14998 test "x$cache_file" != "x/dev/null" &&
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15000$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 15001 cat confcache >$cache_file
a0da8069 15002 else
81ecdfbb
RW
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15004$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 15005 fi
852e5f18 15006fi
a0da8069 15007rm -f confcache
852e5f18 15008
a0da8069
NN
15009test "x$prefix" = xNONE && prefix=$ac_default_prefix
15010# Let make expand exec_prefix.
15011test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 15012
a0da8069
NN
15013# Transform confdefs.h into DEFS.
15014# Protect against shell expansion while executing Makefile rules.
15015# Protect against Makefile macro expansion.
c6b750e1
DJ
15016#
15017# If the first sed substitution is executed (which looks for macros that
81ecdfbb 15018# take arguments), then branch to the quote section. Otherwise,
c6b750e1 15019# look for a macro that doesn't take arguments.
81ecdfbb
RW
15020ac_script='
15021:mline
15022/\\$/{
15023 N
15024 s,\\\n,,
15025 b mline
15026}
c6b750e1 15027t clear
81ecdfbb
RW
15028:clear
15029s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 15030t quote
81ecdfbb 15031s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 15032t quote
81ecdfbb
RW
15033b any
15034:quote
15035s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15036s/\[/\\&/g
15037s/\]/\\&/g
15038s/\$/$$/g
15039H
15040:any
15041${
15042 g
15043 s/^\n//
15044 s/\n/ /g
15045 p
15046}
15047'
15048DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
15049
15050
15051ac_libobjs=
15052ac_ltlibobjs=
15053for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15054 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15055 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15056 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15057 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15058 # will be set to the directory where LIBOBJS objects are built.
15059 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15060 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
15061done
15062LIBOBJS=$ac_libobjs
852e5f18 15063
c6b750e1 15064LTLIBOBJS=$ac_ltlibobjs
376a0e54 15065
cac3d6c4 15066
c6b750e1
DJ
15067
15068: ${CONFIG_STATUS=./config.status}
81ecdfbb 15069ac_write_fail=0
c6b750e1
DJ
15070ac_clean_files_save=$ac_clean_files
15071ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15072{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15073$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15074as_write_fail=0
15075cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
15076#! $SHELL
15077# Generated by $as_me.
a0da8069 15078# Run this file to recreate the current configuration.
a0da8069 15079# Compiler output produced by configure, useful for debugging
c6b750e1 15080# configure, is in config.log if it exists.
376a0e54 15081
c6b750e1
DJ
15082debug=false
15083ac_cs_recheck=false
15084ac_cs_silent=false
c6b750e1 15085
81ecdfbb
RW
15086SHELL=\${CONFIG_SHELL-$SHELL}
15087export SHELL
15088_ASEOF
15089cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15090## -------------------- ##
15091## M4sh Initialization. ##
15092## -------------------- ##
15093
15094# Be more Bourne compatible
15095DUALCASE=1; export DUALCASE # for MKS sh
15096if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
15097 emulate sh
15098 NULLCMD=:
81ecdfbb 15099 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
15100 # is contrary to our usage. Disable this feature.
15101 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15102 setopt NO_GLOB_SUBST
15103else
15104 case `(set -o) 2>/dev/null` in #(
15105 *posix*) :
15106 set -o posix ;; #(
15107 *) :
15108 ;;
15109esac
c6b750e1 15110fi
c6b750e1 15111
81ecdfbb
RW
15112
15113as_nl='
15114'
15115export as_nl
15116# Printing a long string crashes Solaris 7 /usr/bin/printf.
15117as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15118as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15119as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15120# Prefer a ksh shell builtin over an external printf program on Solaris,
15121# but without wasting forks for bash or zsh.
15122if test -z "$BASH_VERSION$ZSH_VERSION" \
15123 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15124 as_echo='print -r --'
15125 as_echo_n='print -rn --'
15126elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15127 as_echo='printf %s\n'
15128 as_echo_n='printf %s'
15129else
15130 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15131 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15132 as_echo_n='/usr/ucb/echo -n'
15133 else
15134 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15135 as_echo_n_body='eval
15136 arg=$1;
15137 case $arg in #(
15138 *"$as_nl"*)
15139 expr "X$arg" : "X\\(.*\\)$as_nl";
15140 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15141 esac;
15142 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15143 '
15144 export as_echo_n_body
15145 as_echo_n='sh -c $as_echo_n_body as_echo'
15146 fi
15147 export as_echo_body
15148 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
15149fi
15150
81ecdfbb
RW
15151# The user is always right.
15152if test "${PATH_SEPARATOR+set}" != set; then
15153 PATH_SEPARATOR=:
15154 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15155 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15156 PATH_SEPARATOR=';'
15157 }
15158fi
15159
15160
15161# IFS
15162# We need space, tab and new line, in precisely that order. Quoting is
15163# there to prevent editors from complaining about space-tab.
15164# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15165# splitting by setting IFS to empty value.)
15166IFS=" "" $as_nl"
15167
15168# Find who we are. Look in the path if we contain no directory separator.
15169case $0 in #((
15170 *[\\/]* ) as_myself=$0 ;;
15171 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15172for as_dir in $PATH
15173do
15174 IFS=$as_save_IFS
15175 test -z "$as_dir" && as_dir=.
15176 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15177 done
15178IFS=$as_save_IFS
15179
15180 ;;
15181esac
15182# We did not find ourselves, most probably we were run as `sh COMMAND'
15183# in which case we are not to be found in the path.
15184if test "x$as_myself" = x; then
15185 as_myself=$0
15186fi
15187if test ! -f "$as_myself"; then
15188 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15189 exit 1
15190fi
c6b750e1 15191
81ecdfbb
RW
15192# Unset variables that we do not need and which cause bugs (e.g. in
15193# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15194# suppresses any "Segmentation fault" message there. '((' could
15195# trigger a bug in pdksh 5.2.14.
15196for as_var in BASH_ENV ENV MAIL MAILPATH
15197do eval test x\${$as_var+set} = xset \
15198 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15199done
c6b750e1
DJ
15200PS1='$ '
15201PS2='> '
15202PS4='+ '
15203
15204# NLS nuisances.
81ecdfbb
RW
15205LC_ALL=C
15206export LC_ALL
15207LANGUAGE=C
15208export LANGUAGE
15209
15210# CDPATH.
15211(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15212
15213
15214# as_fn_error ERROR [LINENO LOG_FD]
15215# ---------------------------------
15216# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15217# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15218# script with status $?, using 1 if that was 0.
15219as_fn_error ()
15220{
15221 as_status=$?; test $as_status -eq 0 && as_status=1
15222 if test "$3"; then
15223 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15224 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 15225 fi
81ecdfbb
RW
15226 $as_echo "$as_me: error: $1" >&2
15227 as_fn_exit $as_status
15228} # as_fn_error
15229
15230
15231# as_fn_set_status STATUS
15232# -----------------------
15233# Set $? to STATUS, without forking.
15234as_fn_set_status ()
15235{
15236 return $1
15237} # as_fn_set_status
15238
15239# as_fn_exit STATUS
15240# -----------------
15241# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15242as_fn_exit ()
15243{
15244 set +e
15245 as_fn_set_status $1
15246 exit $1
15247} # as_fn_exit
15248
15249# as_fn_unset VAR
15250# ---------------
15251# Portably unset VAR.
15252as_fn_unset ()
15253{
15254 { eval $1=; unset $1;}
15255}
15256as_unset=as_fn_unset
15257# as_fn_append VAR VALUE
15258# ----------------------
15259# Append the text in VALUE to the end of the definition contained in VAR. Take
15260# advantage of any shell optimizations that allow amortized linear growth over
15261# repeated appends, instead of the typical quadratic growth present in naive
15262# implementations.
15263if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15264 eval 'as_fn_append ()
15265 {
15266 eval $1+=\$2
15267 }'
15268else
15269 as_fn_append ()
15270 {
15271 eval $1=\$$1\$2
15272 }
15273fi # as_fn_append
15274
15275# as_fn_arith ARG...
15276# ------------------
15277# Perform arithmetic evaluation on the ARGs, and store the result in the
15278# global $as_val. Take advantage of shells that can avoid forks. The arguments
15279# must be portable across $(()) and expr.
15280if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15281 eval 'as_fn_arith ()
15282 {
15283 as_val=$(( $* ))
15284 }'
15285else
15286 as_fn_arith ()
15287 {
15288 as_val=`expr "$@" || test $? -eq 1`
15289 }
15290fi # as_fn_arith
15291
c6b750e1 15292
81ecdfbb
RW
15293if expr a : '\(a\)' >/dev/null 2>&1 &&
15294 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
15295 as_expr=expr
15296else
15297 as_expr=false
15298fi
15299
81ecdfbb 15300if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
15301 as_basename=basename
15302else
15303 as_basename=false
15304fi
15305
81ecdfbb
RW
15306if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15307 as_dirname=dirname
15308else
15309 as_dirname=false
15310fi
c6b750e1 15311
81ecdfbb 15312as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15313$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15314 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15315 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15316$as_echo X/"$0" |
15317 sed '/^.*\/\([^/][^/]*\)\/*$/{
15318 s//\1/
15319 q
15320 }
15321 /^X\/\(\/\/\)$/{
15322 s//\1/
15323 q
15324 }
15325 /^X\/\(\/\).*/{
15326 s//\1/
15327 q
15328 }
15329 s/.*/./; q'`
c6b750e1 15330
c6b750e1
DJ
15331# Avoid depending upon Character Ranges.
15332as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15333as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15334as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15335as_cr_digits='0123456789'
15336as_cr_alnum=$as_cr_Letters$as_cr_digits
15337
81ecdfbb
RW
15338ECHO_C= ECHO_N= ECHO_T=
15339case `echo -n x` in #(((((
15340-n*)
15341 case `echo 'xy\c'` in
15342 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15343 xy) ECHO_C='\c';;
15344 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15345 ECHO_T=' ';;
15346 esac;;
15347*)
15348 ECHO_N='-n';;
c6b750e1
DJ
15349esac
15350
81ecdfbb
RW
15351rm -f conf$$ conf$$.exe conf$$.file
15352if test -d conf$$.dir; then
15353 rm -f conf$$.dir/conf$$.file
c6b750e1 15354else
81ecdfbb
RW
15355 rm -f conf$$.dir
15356 mkdir conf$$.dir 2>/dev/null
c6b750e1 15357fi
81ecdfbb
RW
15358if (echo >conf$$.file) 2>/dev/null; then
15359 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15360 as_ln_s='ln -s'
81ecdfbb
RW
15361 # ... but there are two gotchas:
15362 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15363 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15364 # In both cases, we have to default to `cp -p'.
15365 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15366 as_ln_s='cp -p'
15367 elif ln conf$$.file conf$$ 2>/dev/null; then
15368 as_ln_s=ln
15369 else
15370 as_ln_s='cp -p'
c6b750e1 15371 fi
c6b750e1
DJ
15372else
15373 as_ln_s='cp -p'
15374fi
81ecdfbb
RW
15375rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15376rmdir conf$$.dir 2>/dev/null
15377
15378
15379# as_fn_mkdir_p
15380# -------------
15381# Create "$as_dir" as a directory, including parents if necessary.
15382as_fn_mkdir_p ()
15383{
15384
15385 case $as_dir in #(
15386 -*) as_dir=./$as_dir;;
15387 esac
15388 test -d "$as_dir" || eval $as_mkdir_p || {
15389 as_dirs=
15390 while :; do
15391 case $as_dir in #(
15392 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15393 *) as_qdir=$as_dir;;
15394 esac
15395 as_dirs="'$as_qdir' $as_dirs"
15396 as_dir=`$as_dirname -- "$as_dir" ||
15397$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15398 X"$as_dir" : 'X\(//\)[^/]' \| \
15399 X"$as_dir" : 'X\(//\)$' \| \
15400 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15401$as_echo X"$as_dir" |
15402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15403 s//\1/
15404 q
15405 }
15406 /^X\(\/\/\)[^/].*/{
15407 s//\1/
15408 q
15409 }
15410 /^X\(\/\/\)$/{
15411 s//\1/
15412 q
15413 }
15414 /^X\(\/\).*/{
15415 s//\1/
15416 q
15417 }
15418 s/.*/./; q'`
15419 test -d "$as_dir" && break
15420 done
15421 test -z "$as_dirs" || eval "mkdir $as_dirs"
15422 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15423
c6b750e1 15424
81ecdfbb 15425} # as_fn_mkdir_p
c6b750e1 15426if mkdir -p . 2>/dev/null; then
81ecdfbb 15427 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15428else
15429 test -d ./-p && rmdir ./-p
15430 as_mkdir_p=false
15431fi
15432
81ecdfbb
RW
15433if test -x / >/dev/null 2>&1; then
15434 as_test_x='test -x'
15435else
15436 if ls -dL / >/dev/null 2>&1; then
15437 as_ls_L_option=L
15438 else
15439 as_ls_L_option=
15440 fi
15441 as_test_x='
15442 eval sh -c '\''
15443 if test -d "$1"; then
15444 test -d "$1/.";
15445 else
15446 case $1 in #(
15447 -*)set "./$1";;
15448 esac;
15449 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15450 ???[sx]*):;;*)false;;esac;fi
15451 '\'' sh
15452 '
15453fi
15454as_executable_p=$as_test_x
c6b750e1
DJ
15455
15456# Sed expression to map a string onto a valid CPP name.
15457as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15458
15459# Sed expression to map a string onto a valid variable name.
15460as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15461
15462
c6b750e1 15463exec 6>&1
81ecdfbb
RW
15464## ----------------------------------- ##
15465## Main body of $CONFIG_STATUS script. ##
15466## ----------------------------------- ##
15467_ASEOF
15468test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15469
15470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15471# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15472# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15473# values after options handling.
15474ac_log="
c6b750e1 15475This file was extended by $as_me, which was
81ecdfbb 15476generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
15477
15478 CONFIG_FILES = $CONFIG_FILES
15479 CONFIG_HEADERS = $CONFIG_HEADERS
15480 CONFIG_LINKS = $CONFIG_LINKS
15481 CONFIG_COMMANDS = $CONFIG_COMMANDS
15482 $ $0 $@
15483
81ecdfbb
RW
15484on `(hostname || uname -n) 2>/dev/null | sed 1q`
15485"
15486
c6b750e1
DJ
15487_ACEOF
15488
81ecdfbb
RW
15489case $ac_config_files in *"
15490"*) set x $ac_config_files; shift; ac_config_files=$*;;
15491esac
c6b750e1 15492
c6b750e1 15493
c6b750e1 15494
81ecdfbb
RW
15495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15496# Files that config.status was made for.
15497config_files="$ac_config_files"
c6b750e1 15498
81ecdfbb 15499_ACEOF
c6b750e1 15500
81ecdfbb 15501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15502ac_cs_usage="\
81ecdfbb
RW
15503\`$as_me' instantiates files and other configuration actions
15504from templates according to the current configuration. Unless the files
15505and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15506
81ecdfbb 15507Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15508
15509 -h, --help print this help, then exit
81ecdfbb
RW
15510 -V, --version print version number and configuration settings, then exit
15511 -q, --quiet, --silent
15512 do not print progress messages
c6b750e1
DJ
15513 -d, --debug don't remove temporary files
15514 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15515 --file=FILE[:TEMPLATE]
15516 instantiate the configuration file FILE
c6b750e1
DJ
15517
15518Configuration files:
15519$config_files
15520
81ecdfbb 15521Report bugs to the package provider."
c6b750e1 15522
81ecdfbb
RW
15523_ACEOF
15524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
15525ac_cs_version="\\
15526config.status
81ecdfbb
RW
15527configured by $0, generated by GNU Autoconf 2.64,
15528 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 15529
81ecdfbb 15530Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
15531This config.status script is free software; the Free Software Foundation
15532gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15533
15534ac_pwd='$ac_pwd'
15535srcdir='$srcdir'
15536INSTALL='$INSTALL'
8e957354 15537AWK='$AWK'
81ecdfbb 15538test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15539_ACEOF
15540
81ecdfbb
RW
15541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15542# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15543ac_need_defaults=:
15544while test $# != 0
a0da8069 15545do
c6b750e1
DJ
15546 case $1 in
15547 --*=*)
81ecdfbb
RW
15548 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15549 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15550 ac_shift=:
15551 ;;
81ecdfbb 15552 *)
c6b750e1
DJ
15553 ac_option=$1
15554 ac_optarg=$2
15555 ac_shift=shift
15556 ;;
c6b750e1
DJ
15557 esac
15558
15559 case $ac_option in
15560 # Handling of the options.
a0da8069 15561 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15562 ac_cs_recheck=: ;;
81ecdfbb
RW
15563 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15564 $as_echo "$ac_cs_version"; exit ;;
15565 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15566 debug=: ;;
15567 --file | --fil | --fi | --f )
15568 $ac_shift
81ecdfbb
RW
15569 case $ac_optarg in
15570 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15571 esac
15572 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15573 ac_need_defaults=false;;
81ecdfbb
RW
15574 --he | --h | --help | --hel | -h )
15575 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15576 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15577 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15578 ac_cs_silent=: ;;
15579
15580 # This is an error.
81ecdfbb
RW
15581 -*) as_fn_error "unrecognized option: \`$1'
15582Try \`$0 --help' for more information." ;;
c6b750e1 15583
81ecdfbb
RW
15584 *) as_fn_append ac_config_targets " $1"
15585 ac_need_defaults=false ;;
c6b750e1 15586
376a0e54 15587 esac
c6b750e1 15588 shift
376a0e54
CM
15589done
15590
c6b750e1 15591ac_configure_extra_args=
376a0e54 15592
c6b750e1
DJ
15593if $ac_cs_silent; then
15594 exec 6>/dev/null
15595 ac_configure_extra_args="$ac_configure_extra_args --silent"
15596fi
376a0e54 15597
c6b750e1 15598_ACEOF
81ecdfbb 15599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15600if \$ac_cs_recheck; then
81ecdfbb
RW
15601 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15602 shift
15603 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15604 CONFIG_SHELL='$SHELL'
15605 export CONFIG_SHELL
15606 exec "\$@"
c6b750e1
DJ
15607fi
15608
15609_ACEOF
81ecdfbb
RW
15610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15611exec 5>>config.log
15612{
15613 echo
15614 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15615## Running $as_me. ##
15616_ASBOX
15617 $as_echo "$ac_log"
15618} >&5
c6b750e1 15619
81ecdfbb
RW
15620_ACEOF
15621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15622#
15623# INIT-COMMANDS
15624#
15625extrasub_build="$extrasub_build"
15626 extrasub_host="$extrasub_host"
15627 extrasub_target="$extrasub_target"
15628
81ecdfbb 15629_ACEOF
c6b750e1 15630
81ecdfbb 15631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15632
81ecdfbb 15633# Handling of arguments.
c6b750e1
DJ
15634for ac_config_target in $ac_config_targets
15635do
81ecdfbb
RW
15636 case $ac_config_target in
15637 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15638
15639 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15640 esac
15641done
15642
81ecdfbb 15643
c6b750e1
DJ
15644# If the user did not use the arguments to specify the items to instantiate,
15645# then the envvar interface is used. Set only those that are not.
15646# We use the long form for the default assignment because of an extremely
15647# bizarre bug on SunOS 4.1.3.
15648if $ac_need_defaults; then
15649 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15650fi
15651
15652# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15653# simply because there is no reason against having it here, and in addition,
c6b750e1 15654# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15655# Hook for its removal unless debugging.
15656# Note that there is a small window in which the directory will not be cleaned:
15657# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15658$debug ||
15659{
81ecdfbb
RW
15660 tmp=
15661 trap 'exit_status=$?
15662 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15663' 0
15664 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15665}
c6b750e1
DJ
15666# Create a (secure) tmp directory for tmp files.
15667
15668{
81ecdfbb 15669 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
15670 test -n "$tmp" && test -d "$tmp"
15671} ||
15672{
81ecdfbb
RW
15673 tmp=./conf$$-$RANDOM
15674 (umask 077 && mkdir "$tmp")
15675} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15676
15677# Set up the scripts for CONFIG_FILES section.
15678# No need to generate them if there are no CONFIG_FILES.
15679# This happens for instance with `./config.status config.h'.
15680if test -n "$CONFIG_FILES"; then
15681
15682if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15683 ac_cs_awk_getline=:
15684 ac_cs_awk_pipe_init=
15685 ac_cs_awk_read_file='
15686 while ((getline aline < (F[key])) > 0)
15687 print(aline)
15688 close(F[key])'
15689 ac_cs_awk_pipe_fini=
15690else
15691 ac_cs_awk_getline=false
15692 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15693 ac_cs_awk_read_file='
15694 print "|#_!!_#|"
15695 print "cat " F[key] " &&"
15696 '$ac_cs_awk_pipe_init
15697 # The final `:' finishes the AND list.
15698 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15699fi
15700ac_cr=`echo X | tr X '\015'`
15701# On cygwin, bash can eat \r inside `` if the user requested igncr.
15702# But we know of no other shell where ac_cr would be empty at this
15703# point, so we can use a bashism as a fallback.
15704if test "x$ac_cr" = x; then
15705 eval ac_cr=\$\'\\r\'
15706fi
15707ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15708if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15709 ac_cs_awk_cr='\r'
15710else
15711 ac_cs_awk_cr=$ac_cr
15712fi
15713
15714echo 'BEGIN {' >"$tmp/subs1.awk" &&
15715_ACEOF
15716
15717# Create commands to substitute file output variables.
c6b750e1 15718{
81ecdfbb
RW
15719 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15720 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15721 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15722 echo "_ACAWK" &&
15723 echo "_ACEOF"
15724} >conf$$files.sh &&
15725. ./conf$$files.sh ||
15726 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15727rm -f conf$$files.sh
c6b750e1 15728
81ecdfbb
RW
15729{
15730 echo "cat >conf$$subs.awk <<_ACEOF" &&
15731 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15732 echo "_ACEOF"
15733} >conf$$subs.sh ||
15734 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15735ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15736ac_delim='%!_!# '
15737for ac_last_try in false false false false false :; do
15738 . ./conf$$subs.sh ||
15739 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15740
15741 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15742 if test $ac_delim_n = $ac_delim_num; then
15743 break
15744 elif $ac_last_try; then
15745 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15746 else
15747 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15748 fi
15749done
15750rm -f conf$$subs.sh
15751
15752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15753cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15754_ACEOF
81ecdfbb
RW
15755sed -n '
15756h
15757s/^/S["/; s/!.*/"]=/
15758p
15759g
15760s/^[^!]*!//
15761:repl
15762t repl
15763s/'"$ac_delim"'$//
15764t delim
15765:nl
15766h
15767s/\(.\{148\}\).*/\1/
15768t more1
15769s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15770p
15771n
15772b repl
15773:more1
15774s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15775p
15776g
15777s/.\{148\}//
15778t nl
15779:delim
15780h
15781s/\(.\{148\}\).*/\1/
15782t more2
15783s/["\\]/\\&/g; s/^/"/; s/$/"/
15784p
15785b
15786:more2
15787s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15788p
15789g
15790s/.\{148\}//
15791t delim
15792' <conf$$subs.awk | sed '
15793/^[^""]/{
15794 N
15795 s/\n//
15796}
15797' >>$CONFIG_STATUS || ac_write_fail=1
15798rm -f conf$$subs.awk
15799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15800_ACAWK
15801cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15802 for (key in S) S_is_set[key] = 1
15803 FS = "\a"
15804 \$ac_cs_awk_pipe_init
15805}
15806{
15807 line = $ 0
15808 nfields = split(line, field, "@")
15809 substed = 0
15810 len = length(field[1])
15811 for (i = 2; i < nfields; i++) {
15812 key = field[i]
15813 keylen = length(key)
15814 if (S_is_set[key]) {
15815 value = S[key]
15816 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15817 len += length(value) + length(field[++i])
15818 substed = 1
15819 } else
15820 len += 1 + keylen
15821 }
15822 if (nfields == 3 && !substed) {
15823 key = field[2]
15824 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15825 \$ac_cs_awk_read_file
15826 next
15827 }
15828 }
15829 print line
15830}
15831\$ac_cs_awk_pipe_fini
15832_ACAWK
15833_ACEOF
15834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15835if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15836 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15837else
15838 cat
15839fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15840 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15841_ACEOF
15842
15843# VPATH may cause trouble with some makes, so we remove $(srcdir),
15844# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15845# trailing colons and then remove the whole line if VPATH becomes empty
15846# (actually we leave an empty line to preserve line numbers).
15847if test "x$srcdir" = x.; then
15848 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15849s/:*\$(srcdir):*/:/
15850s/:*\${srcdir}:*/:/
15851s/:*@srcdir@:*/:/
15852s/^\([^=]*=[ ]*\):*/\1/
15853s/:*$//
15854s/^[^=]*=[ ]*$//
15855}'
15856fi
c6b750e1 15857
81ecdfbb
RW
15858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15859fi # test -n "$CONFIG_FILES"
c6b750e1 15860
c6b750e1 15861
81ecdfbb
RW
15862eval set X " :F $CONFIG_FILES "
15863shift
15864for ac_tag
15865do
15866 case $ac_tag in
15867 :[FHLC]) ac_mode=$ac_tag; continue;;
15868 esac
15869 case $ac_mode$ac_tag in
15870 :[FHL]*:*);;
15871 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15872 :[FH]-) ac_tag=-:-;;
15873 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15874 esac
15875 ac_save_IFS=$IFS
15876 IFS=:
15877 set x $ac_tag
15878 IFS=$ac_save_IFS
15879 shift
15880 ac_file=$1
15881 shift
252b5132 15882
81ecdfbb
RW
15883 case $ac_mode in
15884 :L) ac_source=$1;;
15885 :[FH])
15886 ac_file_inputs=
15887 for ac_f
15888 do
15889 case $ac_f in
15890 -) ac_f="$tmp/stdin";;
15891 *) # Look for the file first in the build tree, then in the source tree
15892 # (if the path is not absolute). The absolute path cannot be DOS-style,
15893 # because $ac_f cannot contain `:'.
15894 test -f "$ac_f" ||
15895 case $ac_f in
15896 [\\/$]*) false;;
15897 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15898 esac ||
15899 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15900 esac
15901 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15902 as_fn_append ac_file_inputs " '$ac_f'"
15903 done
c6b750e1 15904
81ecdfbb
RW
15905 # Let's still pretend it is `configure' which instantiates (i.e., don't
15906 # use $as_me), people would be surprised to read:
15907 # /* config.h. Generated by config.status. */
15908 configure_input='Generated from '`
15909 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15910 `' by configure.'
15911 if test x"$ac_file" != x-; then
15912 configure_input="$ac_file. $configure_input"
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15914$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15915 fi
81ecdfbb
RW
15916 # Neutralize special characters interpreted by sed in replacement strings.
15917 case $configure_input in #(
15918 *\&* | *\|* | *\\* )
15919 ac_sed_conf_input=`$as_echo "$configure_input" |
15920 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15921 *) ac_sed_conf_input=$configure_input;;
15922 esac
cac3d6c4 15923
81ecdfbb
RW
15924 case $ac_tag in
15925 *:-:* | *:-) cat >"$tmp/stdin" \
15926 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15927 esac
15928 ;;
a0da8069 15929 esac
252b5132 15930
81ecdfbb 15931 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15932$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15933 X"$ac_file" : 'X\(//\)[^/]' \| \
15934 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15935 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15936$as_echo X"$ac_file" |
15937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15938 s//\1/
15939 q
15940 }
15941 /^X\(\/\/\)[^/].*/{
15942 s//\1/
15943 q
15944 }
15945 /^X\(\/\/\)$/{
15946 s//\1/
15947 q
15948 }
15949 /^X\(\/\).*/{
15950 s//\1/
15951 q
15952 }
15953 s/.*/./; q'`
15954 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15955 ac_builddir=.
252b5132 15956
81ecdfbb
RW
15957case "$ac_dir" in
15958.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15959*)
15960 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15961 # A ".." for each directory in $ac_dir_suffix.
15962 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15963 case $ac_top_builddir_sub in
15964 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15965 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15966 esac ;;
15967esac
15968ac_abs_top_builddir=$ac_pwd
15969ac_abs_builddir=$ac_pwd$ac_dir_suffix
15970# for backward compatibility:
15971ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15972
15973case $srcdir in
81ecdfbb 15974 .) # We are building in place.
c6b750e1 15975 ac_srcdir=.
81ecdfbb
RW
15976 ac_top_srcdir=$ac_top_builddir_sub
15977 ac_abs_top_srcdir=$ac_pwd ;;
15978 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15979 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15980 ac_top_srcdir=$srcdir
15981 ac_abs_top_srcdir=$srcdir ;;
15982 *) # Relative name.
15983 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15984 ac_top_srcdir=$ac_top_build_prefix$srcdir
15985 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15986esac
81ecdfbb 15987ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15988
252b5132 15989
81ecdfbb
RW
15990 case $ac_mode in
15991 :F)
15992 #
15993 # CONFIG_FILE
15994 #
c6b750e1
DJ
15995
15996 case $INSTALL in
15997 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15998 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15999 esac
81ecdfbb 16000_ACEOF
252b5132 16001
81ecdfbb
RW
16002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16003# If the template does not know about datarootdir, expand it.
16004# FIXME: This hack should be removed a few years after 2.60.
16005ac_datarootdir_hack=; ac_datarootdir_seen=
16006ac_sed_dataroot='
16007/datarootdir/ {
16008 p
16009 q
16010}
16011/@datadir@/p
16012/@docdir@/p
16013/@infodir@/p
16014/@localedir@/p
16015/@mandir@/p'
16016case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16017*datarootdir*) ac_datarootdir_seen=yes;;
16018*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16020$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 16021_ACEOF
81ecdfbb
RW
16022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16023 ac_datarootdir_hack='
16024 s&@datadir@&$datadir&g
16025 s&@docdir@&$docdir&g
16026 s&@infodir@&$infodir&g
16027 s&@localedir@&$localedir&g
16028 s&@mandir@&$mandir&g
16029 s&\\\${datarootdir}&$datarootdir&g' ;;
16030esac
16031_ACEOF
16032
16033# Neutralize VPATH when `$srcdir' = `.'.
16034# Shell code in configure.ac might set extrasub.
16035# FIXME: do we really want to maintain this feature?
16036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16037ac_sed_extra="$ac_vpsub
c6b750e1
DJ
16038$extrasub
16039_ACEOF
81ecdfbb 16040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
16041:t
16042/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16043s|@configure_input@|$ac_sed_conf_input|;t t
16044s&@top_builddir@&$ac_top_builddir_sub&;t t
16045s&@top_build_prefix@&$ac_top_build_prefix&;t t
16046s&@srcdir@&$ac_srcdir&;t t
16047s&@abs_srcdir@&$ac_abs_srcdir&;t t
16048s&@top_srcdir@&$ac_top_srcdir&;t t
16049s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16050s&@builddir@&$ac_builddir&;t t
16051s&@abs_builddir@&$ac_abs_builddir&;t t
16052s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16053s&@INSTALL@&$ac_INSTALL&;t t
16054$ac_datarootdir_hack
16055"
16056eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16057if $ac_cs_awk_getline; then
16058 $AWK -f "$tmp/subs.awk"
16059else
16060 $AWK -f "$tmp/subs.awk" | $SHELL
16061fi >$tmp/out \
16062 || as_fn_error "could not create $ac_file" "$LINENO" 5
16063
16064test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16065 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16066 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16068which seems to be undefined. Please make sure it is defined." >&5
16069$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16070which seems to be undefined. Please make sure it is defined." >&2;}
16071
16072 rm -f "$tmp/stdin"
16073 case $ac_file in
16074 -) cat "$tmp/out" && rm -f "$tmp/out";;
16075 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16076 esac \
16077 || as_fn_error "could not create $ac_file" "$LINENO" 5
16078 ;;
c148b4cb 16079
c148b4cb 16080
c148b4cb 16081
81ecdfbb
RW
16082 esac
16083
06a51eac
RW
16084
16085 case $ac_file$ac_mode in
16086 "Makefile":F) sed "$extrasub_build" Makefile |
16087 sed "$extrasub_host" |
16088 sed "$extrasub_target" > mf$$
16089 mv -f mf$$ Makefile ;;
16090
16091 esac
81ecdfbb
RW
16092done # for ac_tag
16093
16094
16095as_fn_exit 0
c6b750e1 16096_ACEOF
c6b750e1
DJ
16097ac_clean_files=$ac_clean_files_save
16098
81ecdfbb
RW
16099test $ac_write_fail = 0 ||
16100 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16101
c6b750e1
DJ
16102
16103# configure is writing to config.log, and then calls config.status.
16104# config.status does its own redirection, appending to config.log.
16105# Unfortunately, on DOS this fails, as config.log is still kept open
16106# by configure, so config.status won't be able to write to it; its
16107# output is simply discarded. So we exec the FD to /dev/null,
16108# effectively closing config.log, so it can be properly (re)opened and
16109# appended to by config.status. When coming back to configure, we
16110# need to make the FD available again.
16111if test "$no_create" != yes; then
16112 ac_cs_success=:
16113 ac_config_status_args=
16114 test "$silent" = yes &&
16115 ac_config_status_args="$ac_config_status_args --quiet"
16116 exec 5>/dev/null
16117 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16118 exec 5>>config.log
16119 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16120 # would make configure fail if this is the last instruction.
81ecdfbb
RW
16121 $ac_cs_success || as_fn_exit $?
16122fi
16123if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16125$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 16126fi
c148b4cb 16127
This page took 1.890524 seconds and 4 git commands to generate.