Remove extraneous whitespace from ARM sim sources.
[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
81ecdfbb 653poststage1_ldflags
143754cd 654poststage1_libs
81ecdfbb 655stage1_ldflags
b3676d82 656stage1_libs
7ec59b9e 657extra_isl_gmp_configure_flags
81ecdfbb
RW
658extra_mpc_mpfr_configure_flags
659extra_mpc_gmp_configure_flags
660extra_mpfr_configure_flags
661gmpinc
662gmplibs
663do_compare
664GNATMAKE
665GNATBIND
666ac_ct_CXX
667CXXFLAGS
668CXX
669OBJEXT
670EXEEXT
671ac_ct_CC
672CPPFLAGS
673LDFLAGS
674CFLAGS
675CC
ffdd6afc 676EXTRA_CONFIGARGS_LIBJAVA
1b6c0831 677extra_liboffloadmic_configure_flags
81ecdfbb
RW
678target_subdir
679host_subdir
680build_subdir
681build_libsubdir
8e957354
PB
682AWK
683SED
81ecdfbb
RW
684LN_S
685LN
686INSTALL_DATA
687INSTALL_SCRIPT
688INSTALL_PROGRAM
689target_os
690target_vendor
691target_cpu
692target
693host_os
694host_vendor
695host_cpu
696host
697target_noncanonical
698host_noncanonical
699build_noncanonical
700build_os
701build_vendor
702build_cpu
703build
704TOPLEVEL_CONFIGURE_ARGUMENTS
705target_alias
706host_alias
707build_alias
708LIBS
709ECHO_T
710ECHO_N
711ECHO_C
712DEFS
713mandir
714localedir
715libdir
716psdir
717pdfdir
718dvidir
719htmldir
720infodir
721docdir
722oldincludedir
723includedir
724localstatedir
725sharedstatedir
726sysconfdir
727datadir
728datarootdir
729libexecdir
730sbindir
731bindir
732program_transform_name
733prefix
734exec_prefix
735PACKAGE_URL
736PACKAGE_BUGREPORT
737PACKAGE_STRING
738PACKAGE_VERSION
739PACKAGE_TARNAME
740PACKAGE_NAME
741PATH_SEPARATOR
742SHELL'
743ac_subst_files='serialization_dependencies
744host_makefile_frag
745target_makefile_frag
746alphaieee_frag
747ospace_frag'
748ac_user_opts='
749enable_option_checking
750with_build_libsubdir
cf39cfc5 751with_system_zlib
1b6c0831
L
752enable_as_accelerator_for
753enable_offload_targets
81ecdfbb 754enable_gold
c7791212 755enable_ld
89a1e9c3
PB
756enable_libquadmath
757enable_libquadmath_support
81ecdfbb
RW
758enable_libada
759enable_libssp
f66a9a70 760enable_libstdcxx
1b6c0831 761enable_liboffloadmic
ffdd6afc
ILT
762enable_static_libjava
763enable_bootstrap
81ecdfbb
RW
764with_mpc
765with_mpc_include
766with_mpc_lib
767with_mpfr_dir
768with_mpfr
769with_mpfr_include
770with_mpfr_lib
771with_gmp_dir
772with_gmp
773with_gmp_include
774with_gmp_lib
775with_host_libstdcxx
81ecdfbb 776with_stage1_libs
b3676d82 777with_stage1_ldflags
81ecdfbb 778with_boot_libs
143754cd 779with_boot_ldflags
7ec59b9e
L
780with_isl
781with_isl_include
782with_isl_lib
783enable_isl_version_check
700d40ca 784enable_lto
1b6c0831
L
785enable_linker_plugin_configure_flags
786enable_linker_plugin_flags
81ecdfbb
RW
787enable_stage1_languages
788enable_objc_gc
789with_build_sysroot
790with_debug_prefix_map
96655cc4 791with_build_config
730af8ee 792enable_vtable_verify
81ecdfbb
RW
793enable_serial_configure
794with_build_time_tools
795enable_maintainer_mode
796enable_stage1_checking
797enable_werror
82033c9b 798enable_host_shared
81ecdfbb
RW
799'
800 ac_precious_vars='build_alias
801host_alias
802target_alias
803CC
804CFLAGS
805LDFLAGS
806LIBS
807CPPFLAGS
808CXX
809CXXFLAGS
810CCC
4074d5f2
RW
811build_configargs
812host_configargs
813target_configargs
81ecdfbb
RW
814AR
815AS
816DLLTOOL
817LD
818LIPO
819NM
820RANLIB
821STRIP
822WINDRES
823WINDMC
824OBJCOPY
825OBJDUMP
b121d7d4 826READELF
81ecdfbb
RW
827CC_FOR_TARGET
828CXX_FOR_TARGET
829GCC_FOR_TARGET
830GCJ_FOR_TARGET
831GFORTRAN_FOR_TARGET
e552509b 832GOC_FOR_TARGET
81ecdfbb
RW
833AR_FOR_TARGET
834AS_FOR_TARGET
835DLLTOOL_FOR_TARGET
836LD_FOR_TARGET
837LIPO_FOR_TARGET
838NM_FOR_TARGET
6b91c541 839OBJCOPY_FOR_TARGET
81ecdfbb
RW
840OBJDUMP_FOR_TARGET
841RANLIB_FOR_TARGET
b121d7d4 842READELF_FOR_TARGET
81ecdfbb
RW
843STRIP_FOR_TARGET
844WINDRES_FOR_TARGET
845WINDMC_FOR_TARGET'
846
a0da8069
NN
847
848# Initialize some variables set by options.
c6b750e1
DJ
849ac_init_help=
850ac_init_version=false
81ecdfbb
RW
851ac_unrecognized_opts=
852ac_unrecognized_sep=
a0da8069
NN
853# The variables have the same names as the options, with
854# dashes changed to underlines.
c6b750e1 855cache_file=/dev/null
a0da8069 856exec_prefix=NONE
a0da8069 857no_create=
a0da8069
NN
858no_recursion=
859prefix=NONE
860program_prefix=NONE
861program_suffix=NONE
862program_transform_name=s,x,x,
863silent=
864site=
865srcdir=
a0da8069
NN
866verbose=
867x_includes=NONE
868x_libraries=NONE
c6b750e1
DJ
869
870# Installation directory options.
871# These are left unexpanded so users can "make install exec_prefix=/foo"
872# and all the variables that are supposed to be based on exec_prefix
873# by default will actually change.
874# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 875# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
876bindir='${exec_prefix}/bin'
877sbindir='${exec_prefix}/sbin'
878libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
879datarootdir='${prefix}/share'
880datadir='${datarootdir}'
a0da8069
NN
881sysconfdir='${prefix}/etc'
882sharedstatedir='${prefix}/com'
883localstatedir='${prefix}/var'
a0da8069
NN
884includedir='${prefix}/include'
885oldincludedir='/usr/include'
81ecdfbb
RW
886docdir='${datarootdir}/doc/${PACKAGE}'
887infodir='${datarootdir}/info'
888htmldir='${docdir}'
889dvidir='${docdir}'
890pdfdir='${docdir}'
891psdir='${docdir}'
892libdir='${exec_prefix}/lib'
893localedir='${datarootdir}/locale'
894mandir='${datarootdir}/man'
252b5132 895
a0da8069 896ac_prev=
81ecdfbb 897ac_dashdash=
a0da8069
NN
898for ac_option
899do
a0da8069
NN
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
81ecdfbb 902 eval $ac_prev=\$ac_option
a0da8069
NN
903 ac_prev=
904 continue
905 fi
252b5132 906
81ecdfbb
RW
907 case $ac_option in
908 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 *) ac_optarg=yes ;;
910 esac
a0da8069
NN
911
912 # Accept the important Cygnus configure options, so we can diagnose typos.
913
81ecdfbb
RW
914 case $ac_dashdash$ac_option in
915 --)
916 ac_dashdash=yes ;;
a0da8069
NN
917
918 -bindir | --bindir | --bindi | --bind | --bin | --bi)
919 ac_prev=bindir ;;
920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 921 bindir=$ac_optarg ;;
a0da8069
NN
922
923 -build | --build | --buil | --bui | --bu)
c6b750e1 924 ac_prev=build_alias ;;
a0da8069 925 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 926 build_alias=$ac_optarg ;;
a0da8069
NN
927
928 -cache-file | --cache-file | --cache-fil | --cache-fi \
929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930 ac_prev=cache_file ;;
931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
933 cache_file=$ac_optarg ;;
934
935 --config-cache | -C)
936 cache_file=config.cache ;;
a0da8069 937
81ecdfbb 938 -datadir | --datadir | --datadi | --datad)
a0da8069 939 ac_prev=datadir ;;
81ecdfbb 940 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 941 datadir=$ac_optarg ;;
a0da8069 942
81ecdfbb
RW
943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944 | --dataroo | --dataro | --datar)
945 ac_prev=datarootdir ;;
946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948 datarootdir=$ac_optarg ;;
949
a0da8069 950 -disable-* | --disable-*)
81ecdfbb 951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 952 # Reject names that are not valid shell variable names.
81ecdfbb
RW
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959"enable_$ac_useropt"
960"*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=no ;;
965
966 -docdir | --docdir | --docdi | --doc | --do)
967 ac_prev=docdir ;;
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 docdir=$ac_optarg ;;
970
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 ac_prev=dvidir ;;
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 dvidir=$ac_optarg ;;
a0da8069
NN
975
976 -enable-* | --enable-*)
81ecdfbb 977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 978 # Reject names that are not valid shell variable names.
81ecdfbb
RW
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
984 *"
985"enable_$ac_useropt"
986"*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
a0da8069 989 esac
81ecdfbb 990 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
991
992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
c6b750e1 999 exec_prefix=$ac_optarg ;;
a0da8069
NN
1000
1001 -gas | --gas | --ga | --g)
1002 # Obsolete; use --with-gas.
1003 with_gas=yes ;;
1004
c6b750e1
DJ
1005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
a0da8069
NN
1011
1012 -host | --host | --hos | --ho)
c6b750e1 1013 ac_prev=host_alias ;;
a0da8069 1014 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1015 host_alias=$ac_optarg ;;
a0da8069 1016
81ecdfbb
RW
1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 ac_prev=htmldir ;;
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 | --ht=*)
1021 htmldir=$ac_optarg ;;
1022
a0da8069
NN
1023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1028 includedir=$ac_optarg ;;
a0da8069
NN
1029
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 ac_prev=infodir ;;
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1033 infodir=$ac_optarg ;;
a0da8069
NN
1034
1035 -libdir | --libdir | --libdi | --libd)
1036 ac_prev=libdir ;;
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1038 libdir=$ac_optarg ;;
a0da8069
NN
1039
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1045 libexecdir=$ac_optarg ;;
a0da8069 1046
81ecdfbb
RW
1047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1051
a0da8069 1052 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1053 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1057 localstatedir=$ac_optarg ;;
a0da8069
NN
1058
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 ac_prev=mandir ;;
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1062 mandir=$ac_optarg ;;
a0da8069
NN
1063
1064 -nfp | --nfp | --nf)
1065 # Obsolete; use --without-fp.
1066 with_fp=no ;;
1067
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1069 | --no-cr | --no-c | -n)
a0da8069
NN
1070 no_create=yes ;;
1071
1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 no_recursion=yes ;;
1075
1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1083 oldincludedir=$ac_optarg ;;
a0da8069
NN
1084
1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 ac_prev=prefix ;;
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1088 prefix=$ac_optarg ;;
a0da8069
NN
1089
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1095 program_prefix=$ac_optarg ;;
a0da8069
NN
1096
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1102 program_suffix=$ac_optarg ;;
a0da8069
NN
1103
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1119 program_transform_name=$ac_optarg ;;
a0da8069 1120
81ecdfbb
RW
1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 ac_prev=pdfdir ;;
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1125
1126 -psdir | --psdir | --psdi | --psd | --ps)
1127 ac_prev=psdir ;;
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 psdir=$ac_optarg ;;
1130
a0da8069
NN
1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1133 silent=yes ;;
1134
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
c6b750e1 1139 sbindir=$ac_optarg ;;
a0da8069
NN
1140
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
c6b750e1 1150 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1151
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
c6b750e1 1155 site=$ac_optarg ;;
a0da8069
NN
1156
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1160 srcdir=$ac_optarg ;;
a0da8069
NN
1161
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1167 sysconfdir=$ac_optarg ;;
a0da8069
NN
1168
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1170 ac_prev=target_alias ;;
a0da8069 1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1172 target_alias=$ac_optarg ;;
a0da8069
NN
1173
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1176
c6b750e1
DJ
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
a0da8069
NN
1179
1180 -with-* | --with-*)
81ecdfbb 1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1182 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189"with_$ac_useropt"
1190"*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
a0da8069 1193 esac
81ecdfbb 1194 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1195
1196 -without-* | --without-*)
81ecdfbb 1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1198 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205"with_$ac_useropt"
1206"*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
a0da8069
NN
1211
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1215
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1221 x_includes=$ac_optarg ;;
a0da8069
NN
1222
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1228 x_libraries=$ac_optarg ;;
a0da8069 1229
81ecdfbb
RW
1230 -*) as_fn_error "unrecognized option: \`$ac_option'
1231Try \`$0 --help' for more information."
a0da8069
NN
1232 ;;
1233
c6b750e1
DJ
1234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1240 esac
1241 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1242 export $ac_envvar ;;
1243
a0da8069 1244 *)
c6b750e1 1245 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1250 ;;
1251
1252 esac
1253done
1254
1255if test -n "$ac_prev"; then
c6b750e1 1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1257 as_fn_error "missing argument to $ac_option"
a0da8069 1258fi
a0da8069 1259
81ecdfbb
RW
1260if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1262 no) ;;
1263 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1265 esac
81ecdfbb 1266fi
a0da8069 1267
81ecdfbb
RW
1268# Check all directory arguments for consistency.
1269for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
a0da8069 1273do
81ecdfbb
RW
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
c6b750e1 1282 case $ac_val in
81ecdfbb
RW
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1285 esac
81ecdfbb 1286 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1287done
1288
c6b750e1
DJ
1289# There might be people who depend on the old broken behavior: `$host'
1290# used to hold the argument of --host etc.
1291# FIXME: To remove some day.
1292build=$build_alias
1293host=$host_alias
1294target=$target_alias
376a0e54 1295
c6b750e1
DJ
1296# FIXME: To remove some day.
1297if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
81ecdfbb 1300 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1304 fi
1305fi
1306
1307ac_tool_prefix=
1308test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310test "$silent" = yes && exec 6>/dev/null
a0da8069 1311
a0da8069 1312
81ecdfbb
RW
1313ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314ac_ls_di=`ls -di .` &&
1315ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error "working directory cannot be determined"
1317test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error "pwd does not report name of working directory"
1319
1320
a0da8069
NN
1321# Find the source files, if location was not specified.
1322if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
81ecdfbb
RW
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330$as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\).*/{
1344 s//\1/
1345 q
1346 }
1347 s/.*/./; q'`
a0da8069 1348 srcdir=$ac_confdir
81ecdfbb 1349 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1350 srcdir=..
1351 fi
1352else
1353 ac_srcdir_defaulted=no
1354fi
81ecdfbb
RW
1355if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1358fi
1359ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360ac_abs_confdir=`(
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1362 pwd)`
1363# When building in place, set srcdir=.
1364if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 srcdir=.
1366fi
1367# Remove unnecessary trailing slashes from srcdir.
1368# Double slashes in file names in object file debugging info
1369# mess up M-x gdb in Emacs.
1370case $srcdir in
1371*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372esac
6d0cd39e
AM
1373case $srcdir in
1374 *" "*)
1375 as_fn_error "path to source, $srcdir, contains spaces"
1376 ;;
1377esac
9cc8ae67
PB
1378ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1379
81ecdfbb
RW
1380for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385done
c6b750e1
DJ
1386
1387#
1388# Report the --help message.
1389#
1390if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1393 cat <<_ACEOF
1394\`configure' configures this package to adapt to many kinds of systems.
1395
1396Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399VAR=VALUE. See below for descriptions of some of the useful variables.
1400
1401Defaults for the options are specified in brackets.
1402
1403Configuration:
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413
c6b750e1
DJ
1414Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1416 [$ac_default_prefix]
c6b750e1 1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1418 [PREFIX]
c6b750e1
DJ
1419
1420By default, \`make install' will install all the files in
1421\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423for instance \`--prefix=\$HOME'.
1424
1425For better control, use the options below.
1426
1427Fine tuning of the installation directories:
81ecdfbb
RW
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1447_ACEOF
1448
1449 cat <<\_ACEOF
1450
1451Program names:
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455
1456System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 --target=TARGET configure for building compilers for TARGET [HOST]
1460_ACEOF
a0da8069 1461fi
a0da8069 1462
c6b750e1
DJ
1463if test -n "$ac_init_help"; then
1464
1465 cat <<\_ACEOF
1466
1467Optional Features:
81ecdfbb 1468 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1b6c0831
L
1471 --enable-as-accelerator-for=ARG
1472 build as offload target compiler. Specify offload
1473 host triple by ARG
1474 --enable-offload-targets=LIST
1475 enable offloading to devices from comma-separated
1476 LIST of TARGET[=DIR]. Use optional path to find
1477 offload target compiler during the build
c7791212 1478 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1479 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
89a1e9c3
PB
1480 --disable-libquadmath do not build libquadmath directory
1481 --disable-libquadmath-support
1482 disable libquadmath support for Fortran
521ec477
DD
1483 --enable-libada build libada directory
1484 --enable-libssp build libssp directory
f66a9a70 1485 --disable-libstdcxx do not build libstdc++-v3 directory
1b6c0831
L
1486 --enable-liboffloadmic=ARG
1487 build liboffloadmic [ARG={no,host,target}]
ffdd6afc
ILT
1488 --enable-static-libjava[=ARG]
1489 build static libjava [default=no]
1490 --enable-bootstrap enable bootstrapping [yes if native build]
7ec59b9e
L
1491 --disable-isl-version-check
1492 disable check for ISL version
700d40ca 1493 --enable-lto enable link time optimization support
1b6c0831
L
1494 --enable-linker-plugin-configure-flags=FLAGS
1495 additional flags for configuring linker plugins
1496 [none]
1497 --enable-linker-plugin-flags=FLAGS
1498 additional flags for configuring and building linker
1499 plugins [none]
7837304f
AS
1500 --enable-stage1-languages[=all]
1501 choose additional languages to build during stage1.
1502 Mostly useful for compiler development
1503 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1504 Objective-C runtime
730af8ee 1505 --enable-vtable-verify Enable vtable verification feature
521ec477 1506 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1507 force sequential configuration of sub-packages for
1508 the host, target or build machine, or all
1509 sub-packages
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1513 --enable-stage1-checking[=all]
1514 choose additional checking for stage1 of the
1515 compiler
c6b750e1 1516 --enable-werror enable -Werror in bootstrap stage2 and later
82033c9b 1517 --enable-host-shared build host code as shared libraries
c6b750e1
DJ
1518
1519Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-build-libsubdir=DIR Directory where to find libraries for build system
cf39cfc5 1523 --with-system-zlib use installed libz
7837304f
AS
1524 --with-mpc=PATH specify prefix directory for installed MPC package.
1525 Equivalent to --with-mpc-include=PATH/include plus
1526 --with-mpc-lib=PATH/lib
1527 --with-mpc-include=PATH specify directory for installed MPC include files
1528 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1529 --with-mpfr-dir=PATH this option has been REMOVED
1530 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1531 Equivalent to --with-mpfr-include=PATH/include plus
1532 --with-mpfr-lib=PATH/lib
c6b750e1 1533 --with-mpfr-include=PATH
521ec477
DD
1534 specify directory for installed MPFR include files
1535 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1536 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1537 --with-gmp=PATH specify prefix directory for the installed GMP
1538 package. Equivalent to
1539 --with-gmp-include=PATH/include plus
1540 --with-gmp-lib=PATH/lib
521ec477
DD
1541 --with-gmp-include=PATH specify directory for installed GMP include files
1542 --with-gmp-lib=PATH specify directory for the installed GMP library
7837304f
AS
1543 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1544 linking with PPL
b3676d82 1545 --with-stage1-libs=LIBS libraries for stage1
7837304f
AS
1546 --with-stage1-ldflags=FLAGS
1547 linker flags for stage1
7837304f
AS
1548 --with-boot-libs=LIBS libraries for stage2 and later
1549 --with-boot-ldflags=FLAGS
1550 linker flags for stage2 and later
7ec59b9e 1551 --with-isl=PATH Specify prefix directory for the installed ISL
7837304f 1552 package. Equivalent to
7ec59b9e
L
1553 --with-isl-include=PATH/include plus
1554 --with-isl-lib=PATH/lib
1555 --with-isl-include=PATH Specify directory for installed ISL include files
1556 --with-isl-lib=PATH Specify the directory for the installed ISL library
521ec477 1557 --with-build-sysroot=SYSROOT
c6b750e1 1558 use sysroot as the system root during the build
8a6ee3ab 1559 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1560 map A to B, C to D ... in debug information
1561 --with-build-config='NAME NAME2...'
1562 use config/NAME.mk build configuration
521ec477 1563 --with-build-time-tools=PATH
c6b750e1 1564 use given path to find target tools during the build
c6b750e1
DJ
1565
1566Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
81ecdfbb
RW
1571 LIBS libraries to pass to the linker, e.g. -l<library>
1572 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1573 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1574 CXX C++ compiler command
1575 CXXFLAGS C++ compiler flags
4074d5f2
RW
1576 build_configargs
1577 additional configure arguments for build directories
1578 host_configargs
1579 additional configure arguments for host directories
1580 target_configargs
1581 additional configure arguments for target directories
9a819804
AO
1582 AR AR for the host
1583 AS AS for the host
1584 DLLTOOL DLLTOOL for the host
1585 LD LD for the host
1586 LIPO LIPO for the host
1587 NM NM for the host
1588 RANLIB RANLIB for the host
1589 STRIP STRIP for the host
1590 WINDRES WINDRES for the host
0c24b341 1591 WINDMC WINDMC for the host
9a819804
AO
1592 OBJCOPY OBJCOPY for the host
1593 OBJDUMP OBJDUMP for the host
b121d7d4 1594 READELF READELF for the host
9a819804
AO
1595 CC_FOR_TARGET
1596 CC for the target
1597 CXX_FOR_TARGET
1598 CXX for the target
1599 GCC_FOR_TARGET
1600 GCC for the target
1601 GCJ_FOR_TARGET
1602 GCJ for the target
1603 GFORTRAN_FOR_TARGET
1604 GFORTRAN for the target
e552509b
ILT
1605 GOC_FOR_TARGET
1606 GOC for the target
9a819804
AO
1607 AR_FOR_TARGET
1608 AR for the target
1609 AS_FOR_TARGET
1610 AS for the target
1611 DLLTOOL_FOR_TARGET
1612 DLLTOOL for the target
1613 LD_FOR_TARGET
1614 LD for the target
1615 LIPO_FOR_TARGET
1616 LIPO for the target
1617 NM_FOR_TARGET
1618 NM for the target
6b91c541
AP
1619 OBJCOPY_FOR_TARGET
1620 OBJCOPY for the target
9a819804
AO
1621 OBJDUMP_FOR_TARGET
1622 OBJDUMP for the target
1623 RANLIB_FOR_TARGET
1624 RANLIB for the target
b121d7d4
DD
1625 READELF_FOR_TARGET
1626 READELF for the target
9a819804
AO
1627 STRIP_FOR_TARGET
1628 STRIP for the target
1629 WINDRES_FOR_TARGET
1630 WINDRES for the target
0c24b341
NC
1631 WINDMC_FOR_TARGET
1632 WINDMC for the target
c6b750e1
DJ
1633
1634Use these variables to override the choices made by `configure' or to help
1635it to find libraries and programs with nonstandard names/locations.
1636
81ecdfbb 1637Report bugs to the package provider.
c6b750e1 1638_ACEOF
81ecdfbb 1639ac_status=$?
c6b750e1
DJ
1640fi
1641
1642if test "$ac_init_help" = "recursive"; then
1643 # If there are subdirs, report their specific --help.
c6b750e1 1644 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1645 test -d "$ac_dir" ||
1646 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1647 continue
c6b750e1
DJ
1648 ac_builddir=.
1649
81ecdfbb
RW
1650case "$ac_dir" in
1651.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652*)
1653 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1654 # A ".." for each directory in $ac_dir_suffix.
1655 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1656 case $ac_top_builddir_sub in
1657 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1659 esac ;;
1660esac
1661ac_abs_top_builddir=$ac_pwd
1662ac_abs_builddir=$ac_pwd$ac_dir_suffix
1663# for backward compatibility:
1664ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1665
1666case $srcdir in
81ecdfbb 1667 .) # We are building in place.
c6b750e1 1668 ac_srcdir=.
81ecdfbb
RW
1669 ac_top_srcdir=$ac_top_builddir_sub
1670 ac_abs_top_srcdir=$ac_pwd ;;
1671 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1672 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1673 ac_top_srcdir=$srcdir
1674 ac_abs_top_srcdir=$srcdir ;;
1675 *) # Relative name.
1676 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1677 ac_top_srcdir=$ac_top_build_prefix$srcdir
1678 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1679esac
81ecdfbb
RW
1680ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1681
1682 cd "$ac_dir" || { ac_status=$?; continue; }
1683 # Check for guested configure.
1684 if test -f "$ac_srcdir/configure.gnu"; then
1685 echo &&
1686 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1687 elif test -f "$ac_srcdir/configure"; then
1688 echo &&
1689 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1690 else
81ecdfbb
RW
1691 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1692 fi || ac_status=$?
1693 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1694 done
1695fi
1696
81ecdfbb 1697test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1698if $ac_init_version; then
1699 cat <<\_ACEOF
81ecdfbb
RW
1700configure
1701generated by GNU Autoconf 2.64
c6b750e1 1702
81ecdfbb 1703Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1704This configure script is free software; the Free Software Foundation
1705gives unlimited permission to copy, distribute and modify it.
1706_ACEOF
81ecdfbb 1707 exit
c6b750e1 1708fi
81ecdfbb
RW
1709
1710## ------------------------ ##
1711## Autoconf initialization. ##
1712## ------------------------ ##
1713
1714# ac_fn_c_try_compile LINENO
1715# --------------------------
1716# Try to compile conftest.$ac_ext, and return whether this succeeded.
1717ac_fn_c_try_compile ()
1718{
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext
1721 if { { ac_try="$ac_compile"
1722case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_compile") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && {
1737 test -z "$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 } && test -s conftest.$ac_objext; then :
1740 ac_retval=0
1741else
1742 $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1
1746fi
1747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748 return $ac_retval
1749
1750} # ac_fn_c_try_compile
1751
1752# ac_fn_cxx_try_compile LINENO
1753# ----------------------------
1754# Try to compile conftest.$ac_ext, and return whether this succeeded.
1755ac_fn_cxx_try_compile ()
1756{
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 rm -f conftest.$ac_objext
1759 if { { ac_try="$ac_compile"
1760case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_compile") 2>conftest.err
1767 ac_status=$?
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1772 fi
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && {
1775 test -z "$ac_cxx_werror_flag" ||
1776 test ! -s conftest.err
1777 } && test -s conftest.$ac_objext; then :
1778 ac_retval=0
1779else
1780 $as_echo "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783 ac_retval=1
1784fi
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786 return $ac_retval
1787
1788} # ac_fn_cxx_try_compile
1789
b3676d82
EB
1790# ac_fn_cxx_try_link LINENO
1791# -------------------------
1792# Try to link conftest.$ac_ext, and return whether this succeeded.
1793ac_fn_cxx_try_link ()
1794{
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext conftest$ac_exeext
1797 if { { ac_try="$ac_link"
1798case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801esac
1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803$as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_link") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1810 fi
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_cxx_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest$ac_exeext && {
1816 test "$cross_compiling" = yes ||
1817 $as_test_x conftest$ac_exeext
1818 }; then :
1819 ac_retval=0
1820else
1821 $as_echo "$as_me: failed program was:" >&5
1822sed 's/^/| /' conftest.$ac_ext >&5
1823
1824 ac_retval=1
1825fi
1826 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1827 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1828 # interfere with the next link command; also delete a directory that is
1829 # left behind by Apple's compiler. We do this before executing the actions.
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832 return $ac_retval
1833
1834} # ac_fn_cxx_try_link
1835
81ecdfbb
RW
1836# ac_fn_c_try_link LINENO
1837# -----------------------
1838# Try to link conftest.$ac_ext, and return whether this succeeded.
1839ac_fn_c_try_link ()
1840{
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext conftest$ac_exeext
1843 if { { ac_try="$ac_link"
1844case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847esac
1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849$as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_link") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1856 fi
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest$ac_exeext && {
1862 test "$cross_compiling" = yes ||
1863 $as_test_x conftest$ac_exeext
1864 }; then :
1865 ac_retval=0
1866else
1867 $as_echo "$as_me: failed program was:" >&5
1868sed 's/^/| /' conftest.$ac_ext >&5
1869
1870 ac_retval=1
1871fi
1872 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1873 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1874 # interfere with the next link command; also delete a directory that is
1875 # left behind by Apple's compiler. We do this before executing the actions.
1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 return $ac_retval
1879
1880} # ac_fn_c_try_link
1881cat >config.log <<_ACEOF
c6b750e1
DJ
1882This file contains any messages produced by compilers while
1883running configure, to aid debugging if configure makes a mistake.
1884
1885It was created by $as_me, which was
81ecdfbb 1886generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1887
1888 $ $0 $@
1889
1890_ACEOF
81ecdfbb 1891exec 5>>config.log
c6b750e1
DJ
1892{
1893cat <<_ASUNAME
1894## --------- ##
1895## Platform. ##
1896## --------- ##
1897
1898hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1899uname -m = `(uname -m) 2>/dev/null || echo unknown`
1900uname -r = `(uname -r) 2>/dev/null || echo unknown`
1901uname -s = `(uname -s) 2>/dev/null || echo unknown`
1902uname -v = `(uname -v) 2>/dev/null || echo unknown`
1903
1904/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1905/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1906
1907/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1908/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1909/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1910/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1911/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1912/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1913/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1914
1915_ASUNAME
1916
1917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918for as_dir in $PATH
1919do
1920 IFS=$as_save_IFS
1921 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1922 $as_echo "PATH: $as_dir"
1923 done
1924IFS=$as_save_IFS
c6b750e1
DJ
1925
1926} >&5
1927
1928cat >&5 <<_ACEOF
1929
1930
1931## ----------- ##
1932## Core tests. ##
1933## ----------- ##
1934
1935_ACEOF
1936
1937
1938# Keep a trace of the command line.
1939# Strip out --no-create and --no-recursion so they do not pile up.
1940# Strip out --silent because we don't want to record it for future runs.
1941# Also quote any args containing shell meta-characters.
1942# Make two passes to allow for proper duplicate-argument suppression.
1943ac_configure_args=
1944ac_configure_args0=
1945ac_configure_args1=
c6b750e1
DJ
1946ac_must_keep_next=false
1947for ac_pass in 1 2
1948do
1949 for ac_arg
1950 do
1951 case $ac_arg in
1952 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1954 | -silent | --silent | --silen | --sile | --sil)
1955 continue ;;
81ecdfbb
RW
1956 *\'*)
1957 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1958 esac
1959 case $ac_pass in
81ecdfbb 1960 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1961 2)
81ecdfbb 1962 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1963 if test $ac_must_keep_next = true; then
1964 ac_must_keep_next=false # Got value, back to normal.
1965 else
1966 case $ac_arg in
1967 *=* | --config-cache | -C | -disable-* | --disable-* \
1968 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1969 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1970 | -with-* | --with-* | -without-* | --without-* | --x)
1971 case "$ac_configure_args0 " in
1972 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1973 esac
1974 ;;
1975 -* ) ac_must_keep_next=true ;;
1976 esac
1977 fi
81ecdfbb 1978 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1979 ;;
1980 esac
1981 done
1982done
81ecdfbb
RW
1983{ ac_configure_args0=; unset ac_configure_args0;}
1984{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1985
1986# When interrupted or exit'd, cleanup temporary files, and complete
1987# config.log. We remove comments because anyway the quotes in there
1988# would cause problems or look ugly.
81ecdfbb
RW
1989# WARNING: Use '\'' to represent an apostrophe within the trap.
1990# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1991trap 'exit_status=$?
1992 # Save into config.log some information that might help in debugging.
1993 {
1994 echo
1995
1996 cat <<\_ASBOX
1997## ---------------- ##
1998## Cache variables. ##
1999## ---------------- ##
2000_ASBOX
2001 echo
2002 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2003(
2004 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2005 eval ac_val=\$$ac_var
2006 case $ac_val in #(
2007 *${as_nl}*)
2008 case $ac_var in #(
2009 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2010$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2011 esac
2012 case $ac_var in #(
2013 _ | IFS | as_nl) ;; #(
2014 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2015 *) { eval $ac_var=; unset $ac_var;} ;;
2016 esac ;;
2017 esac
2018 done
c6b750e1 2019 (set) 2>&1 |
81ecdfbb
RW
2020 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2021 *${as_nl}ac_space=\ *)
c6b750e1 2022 sed -n \
81ecdfbb
RW
2023 "s/'\''/'\''\\\\'\'''\''/g;
2024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2025 ;; #(
c6b750e1 2026 *)
81ecdfbb 2027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2028 ;;
81ecdfbb
RW
2029 esac |
2030 sort
2031)
c6b750e1
DJ
2032 echo
2033
2034 cat <<\_ASBOX
2035## ----------------- ##
2036## Output variables. ##
2037## ----------------- ##
2038_ASBOX
2039 echo
2040 for ac_var in $ac_subst_vars
2041 do
81ecdfbb
RW
2042 eval ac_val=\$$ac_var
2043 case $ac_val in
2044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045 esac
2046 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2047 done | sort
2048 echo
2049
2050 if test -n "$ac_subst_files"; then
2051 cat <<\_ASBOX
81ecdfbb
RW
2052## ------------------- ##
2053## File substitutions. ##
2054## ------------------- ##
c6b750e1
DJ
2055_ASBOX
2056 echo
2057 for ac_var in $ac_subst_files
2058 do
81ecdfbb
RW
2059 eval ac_val=\$$ac_var
2060 case $ac_val in
2061 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062 esac
2063 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2064 done | sort
2065 echo
2066 fi
2067
2068 if test -s confdefs.h; then
2069 cat <<\_ASBOX
2070## ----------- ##
2071## confdefs.h. ##
2072## ----------- ##
2073_ASBOX
2074 echo
81ecdfbb 2075 cat confdefs.h
c6b750e1
DJ
2076 echo
2077 fi
2078 test "$ac_signal" != 0 &&
81ecdfbb
RW
2079 $as_echo "$as_me: caught signal $ac_signal"
2080 $as_echo "$as_me: exit $exit_status"
c6b750e1 2081 } >&5
81ecdfbb
RW
2082 rm -f core *.core core.conftest.* &&
2083 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2084 exit $exit_status
81ecdfbb 2085' 0
c6b750e1 2086for ac_signal in 1 2 13 15; do
81ecdfbb 2087 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2088done
2089ac_signal=0
2090
2091# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2092rm -f -r conftest* confdefs.h
2093
2094$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2095
2096# Predefined preprocessor variables.
2097
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_NAME "$PACKAGE_NAME"
2100_ACEOF
2101
c6b750e1
DJ
2102cat >>confdefs.h <<_ACEOF
2103#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2104_ACEOF
2105
c6b750e1
DJ
2106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_VERSION "$PACKAGE_VERSION"
2108_ACEOF
2109
c6b750e1
DJ
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_STRING "$PACKAGE_STRING"
2112_ACEOF
2113
c6b750e1
DJ
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2116_ACEOF
2117
81ecdfbb
RW
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_URL "$PACKAGE_URL"
2120_ACEOF
2121
c6b750e1
DJ
2122
2123# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2124# Prefer an explicitly selected file to automatically selected ones.
2125ac_site_file1=NONE
2126ac_site_file2=NONE
2127if test -n "$CONFIG_SITE"; then
2128 ac_site_file1=$CONFIG_SITE
2129elif test "x$prefix" != xNONE; then
2130 ac_site_file1=$prefix/share/config.site
2131 ac_site_file2=$prefix/etc/config.site
2132else
2133 ac_site_file1=$ac_default_prefix/share/config.site
2134 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2135fi
81ecdfbb
RW
2136for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2137do
2138 test "x$ac_site_file" = xNONE && continue
a0da8069 2139 if test -r "$ac_site_file"; then
81ecdfbb
RW
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2141$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2142 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2143 . "$ac_site_file"
2144 fi
2145done
2146
2147if test -r "$cache_file"; then
c6b750e1
DJ
2148 # Some versions of bash will fail to source /dev/null (special
2149 # files actually), so we avoid doing that.
2150 if test -f "$cache_file"; then
81ecdfbb
RW
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2153 case $cache_file in
81ecdfbb
RW
2154 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155 *) . "./$cache_file";;
c6b750e1
DJ
2156 esac
2157 fi
a0da8069 2158else
81ecdfbb
RW
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2161 >$cache_file
2162fi
2163
2164# Check that the precious variables saved in the cache have kept the same
2165# value.
2166ac_cache_corrupted=false
81ecdfbb 2167for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2168 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2169 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2170 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2171 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2172 case $ac_old_set,$ac_new_set in
2173 set,)
81ecdfbb
RW
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2175$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2176 ac_cache_corrupted=: ;;
2177 ,set)
81ecdfbb
RW
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2179$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2180 ac_cache_corrupted=: ;;
2181 ,);;
2182 *)
2183 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2184 # differences in whitespace do not lead to failure.
2185 ac_old_val_w=`echo x $ac_old_val`
2186 ac_new_val_w=`echo x $ac_new_val`
2187 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2189$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2190 ac_cache_corrupted=:
2191 else
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2193$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2194 eval $ac_var=\$ac_old_val
2195 fi
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2197$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2199$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2200 fi;;
2201 esac
2202 # Pass precious variables to config.status.
2203 if test "$ac_new_set" = set; then
2204 case $ac_new_val in
81ecdfbb 2205 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2206 *) ac_arg=$ac_var=$ac_new_val ;;
2207 esac
2208 case " $ac_configure_args " in
2209 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2210 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2211 esac
2212 fi
2213done
2214if $ac_cache_corrupted; then
81ecdfbb
RW
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2218$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2219 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2220fi
81ecdfbb
RW
2221## -------------------- ##
2222## Main body of script. ##
2223## -------------------- ##
a0da8069
NN
2224
2225ac_ext=c
a0da8069 2226ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230
2231
2232
2233
c6b750e1
DJ
2234
2235
34a0f3cf 2236
c6b750e1 2237
5b553f7e
RW
2238
2239progname=$0
2240# if PWD already has a value, it is probably wrong.
2241if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2242
2243# Export original configure arguments for use by sub-configures.
2244# Quote arguments with shell meta charatcers.
2245TOPLEVEL_CONFIGURE_ARGUMENTS=
2246set -- "$progname" "$@"
2247for ac_arg
2248do
2249 case "$ac_arg" in
2250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2252 # if the argument is of the form -foo=baz, quote the baz part only
2253 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2254 *) ;;
2255 esac
2256 # Add the quoted argument to the list.
2257 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2258done
2259if test "$silent" = yes; then
2260 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2261fi
2262# Remove the initial space we just introduced and, as these will be
2263# expanded by make, quote '$'.
2264TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2265
c6b750e1
DJ
2266
2267# Find the build, host, and target systems.
a0da8069 2268ac_aux_dir=
81ecdfbb
RW
2269for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2270 for ac_t in install-sh install.sh shtool; do
2271 if test -f "$ac_dir/$ac_t"; then
2272 ac_aux_dir=$ac_dir
2273 ac_install_sh="$ac_aux_dir/$ac_t -c"
2274 break 2
2275 fi
2276 done
a0da8069
NN
2277done
2278if test -z "$ac_aux_dir"; then
81ecdfbb 2279 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2280fi
81ecdfbb
RW
2281
2282# These three variables are undocumented and unsupported,
2283# and are intended to be withdrawn in a future Autoconf release.
2284# They can cause serious problems if a builder's source tree is in a directory
2285# whose full name contains unusual characters.
2286ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2287ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2288ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2289
a0da8069 2290
c6b750e1 2291# Make sure we can run config.sub.
81ecdfbb
RW
2292$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2293 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2294
2295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2296$as_echo_n "checking build system type... " >&6; }
2297if test "${ac_cv_build+set}" = set; then :
2298 $as_echo_n "(cached) " >&6
2299else
2300 ac_build_alias=$build_alias
2301test "x$ac_build_alias" = x &&
2302 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2303test "x$ac_build_alias" = x &&
2304 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2305ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2306 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2307
2308fi
2309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2310$as_echo "$ac_cv_build" >&6; }
2311case $ac_cv_build in
2312*-*-*) ;;
2313*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2314esac
c6b750e1 2315build=$ac_cv_build
81ecdfbb
RW
2316ac_save_IFS=$IFS; IFS='-'
2317set x $ac_cv_build
2318shift
2319build_cpu=$1
2320build_vendor=$2
2321shift; shift
2322# Remember, the first character of IFS is used to create $*,
2323# except with old shells:
2324build_os=$*
2325IFS=$ac_save_IFS
2326case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2327
a0da8069 2328
c6b750e1
DJ
2329 case ${build_alias} in
2330 "") build_noncanonical=${build} ;;
2331 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2332esac
2333
2334
cac3d6c4 2335
c6b750e1
DJ
2336 case ${host_alias} in
2337 "") host_noncanonical=${build_noncanonical} ;;
2338 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2339esac
2340
cac3d6c4 2341
c6b750e1
DJ
2342
2343 case ${target_alias} in
2344 "") target_noncanonical=${host_noncanonical} ;;
2345 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2346esac
2347
cac3d6c4 2348
c6b750e1
DJ
2349
2350
2351test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2352 test "$program_prefix$program_suffix$program_transform_name" = \
2353 NONENONEs,x,x, &&
c6b750e1 2354 program_transform_name=s,y,y,
cac3d6c4 2355
81ecdfbb
RW
2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2357$as_echo_n "checking host system type... " >&6; }
2358if test "${ac_cv_host+set}" = set; then :
2359 $as_echo_n "(cached) " >&6
cac3d6c4 2360else
81ecdfbb
RW
2361 if test "x$host_alias" = x; then
2362 ac_cv_host=$ac_cv_build
2363else
2364 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2365 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2366fi
c6b750e1
DJ
2367
2368fi
81ecdfbb
RW
2369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2370$as_echo "$ac_cv_host" >&6; }
2371case $ac_cv_host in
2372*-*-*) ;;
2373*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2374esac
c6b750e1 2375host=$ac_cv_host
81ecdfbb
RW
2376ac_save_IFS=$IFS; IFS='-'
2377set x $ac_cv_host
2378shift
2379host_cpu=$1
2380host_vendor=$2
2381shift; shift
2382# Remember, the first character of IFS is used to create $*,
2383# except with old shells:
2384host_os=$*
2385IFS=$ac_save_IFS
2386case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2387
2388
81ecdfbb
RW
2389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2390$as_echo_n "checking target system type... " >&6; }
2391if test "${ac_cv_target+set}" = set; then :
2392 $as_echo_n "(cached) " >&6
c6b750e1 2393else
81ecdfbb
RW
2394 if test "x$target_alias" = x; then
2395 ac_cv_target=$ac_cv_host
2396else
2397 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2398 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2399fi
c6b750e1 2400
cac3d6c4 2401fi
81ecdfbb
RW
2402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2403$as_echo "$ac_cv_target" >&6; }
2404case $ac_cv_target in
2405*-*-*) ;;
2406*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2407esac
c6b750e1 2408target=$ac_cv_target
81ecdfbb
RW
2409ac_save_IFS=$IFS; IFS='-'
2410set x $ac_cv_target
2411shift
2412target_cpu=$1
2413target_vendor=$2
2414shift; shift
2415# Remember, the first character of IFS is used to create $*,
2416# except with old shells:
2417target_os=$*
2418IFS=$ac_save_IFS
2419case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2420
2421
2422# The aliases save the names the user supplied, while $host etc.
2423# will get canonicalized.
2424test -n "$target_alias" &&
2425 test "$program_prefix$program_suffix$program_transform_name" = \
2426 NONENONEs,x,x, &&
2427 program_prefix=${target_alias}-
81ecdfbb 2428
a0da8069 2429test "$program_prefix" != NONE &&
81ecdfbb 2430 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2431# Use a double $ so make ignores it.
2432test "$program_suffix" != NONE &&
81ecdfbb
RW
2433 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2434# Double any \ or $.
c6b750e1 2435# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2436ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2437program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2438
a0da8069
NN
2439
2440
e5c3f801
NN
2441# Get 'install' or 'install-sh' and its variants.
2442# Find a good install program. We prefer a C program (faster),
2443# so one script is as good as another. But avoid the broken or
2444# incompatible versions:
2445# SysV /etc/install, /usr/sbin/install
2446# SunOS /usr/etc/install
2447# IRIX /sbin/install
2448# AIX /bin/install
c6b750e1 2449# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2450# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2451# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2452# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2453# OS/2's system install, which has a completely different semantic
e5c3f801 2454# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2455# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2457$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2458if test -z "$INSTALL"; then
81ecdfbb
RW
2459if test "${ac_cv_path_install+set}" = set; then :
2460 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2461else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463for as_dir in $PATH
2464do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2467 # Account for people who put trailing slashes in PATH elements.
2468case $as_dir/ in #((
2469 ./ | .// | /[cC]/* | \
c6b750e1 2470 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2471 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2472 /usr/ucb/* ) ;;
2473 *)
2474 # OSF1 and SCO ODT 3.0 have their own names for install.
2475 # Don't use installbsd from OSF since it installs stuff as root
2476 # by default.
2477 for ac_prog in ginstall scoinst install; do
2478 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2479 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2480 if test $ac_prog = install &&
c6b750e1 2481 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2482 # AIX install. It has an incompatible calling convention.
2483 :
c6b750e1
DJ
2484 elif test $ac_prog = install &&
2485 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486 # program-specific install script used by HP pwplus--don't use.
2487 :
e5c3f801 2488 else
58c85be7
RW
2489 rm -rf conftest.one conftest.two conftest.dir
2490 echo one > conftest.one
2491 echo two > conftest.two
2492 mkdir conftest.dir
2493 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2494 test -s conftest.one && test -s conftest.two &&
2495 test -s conftest.dir/conftest.one &&
2496 test -s conftest.dir/conftest.two
2497 then
2498 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2499 break 3
2500 fi
e5c3f801
NN
2501 fi
2502 fi
2503 done
c6b750e1
DJ
2504 done
2505 ;;
2506esac
81ecdfbb
RW
2507
2508 done
2509IFS=$as_save_IFS
c6b750e1 2510
58c85be7 2511rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2512
2513fi
2514 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2515 INSTALL=$ac_cv_path_install
e5c3f801 2516 else
58c85be7
RW
2517 # As a last resort, use the slow shell script. Don't cache a
2518 # value for INSTALL within a source directory, because that will
e5c3f801 2519 # break other packages using the cache if that directory is
58c85be7 2520 # removed, or if the value is a relative name.
c6b750e1 2521 INSTALL=$ac_install_sh
e5c3f801
NN
2522 fi
2523fi
81ecdfbb
RW
2524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2525$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2526
2527# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2528# It thinks the first close brace ends the variable substitution.
2529test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2530
c6b750e1 2531test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2532
2533test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2534
81ecdfbb
RW
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2536$as_echo_n "checking whether ln works... " >&6; }
2537if test "${acx_cv_prog_LN+set}" = set; then :
2538 $as_echo_n "(cached) " >&6
656fdd47
PB
2539else
2540 rm -f conftestdata_t
2541echo >conftestdata_f
2542if ln conftestdata_f conftestdata_t 2>/dev/null
2543then
2544 acx_cv_prog_LN=ln
2545else
2546 acx_cv_prog_LN=no
2547fi
2548rm -f conftestdata_f conftestdata_t
2549
2550fi
2551if test $acx_cv_prog_LN = no; then
2552 LN="cp"
81ecdfbb
RW
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2554$as_echo "no, using $LN" >&6; }
656fdd47
PB
2555else
2556 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2558$as_echo "yes" >&6; }
656fdd47
PB
2559fi
2560
81ecdfbb
RW
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2562$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2563LN_S=$as_ln_s
2564if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2566$as_echo "yes" >&6; }
cac3d6c4 2567else
81ecdfbb
RW
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2569$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2570fi
2571
8e957354
PB
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2573$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2574if test "${ac_cv_path_SED+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2576else
2577 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2578 for ac_i in 1 2 3 4 5 6 7; do
2579 ac_script="$ac_script$as_nl$ac_script"
2580 done
2581 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2582 { ac_script=; unset ac_script;}
2583 if test -z "$SED"; then
2584 ac_path_SED_found=false
2585 # Loop through the user's path and test for each of PROGNAME-LIST
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_prog in sed gsed; do
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2594 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2595# Check for GNU ac_path_SED and select it if it is found.
2596 # Check for GNU $ac_path_SED
2597case `"$ac_path_SED" --version 2>&1` in
2598*GNU*)
2599 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2600*)
2601 ac_count=0
2602 $as_echo_n 0123456789 >"conftest.in"
2603 while :
2604 do
2605 cat "conftest.in" "conftest.in" >"conftest.tmp"
2606 mv "conftest.tmp" "conftest.in"
2607 cp "conftest.in" "conftest.nl"
2608 $as_echo '' >> "conftest.nl"
2609 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2611 as_fn_arith $ac_count + 1 && ac_count=$as_val
2612 if test $ac_count -gt ${ac_path_SED_max-0}; then
2613 # Best one so far, save it but keep looking for a better one
2614 ac_cv_path_SED="$ac_path_SED"
2615 ac_path_SED_max=$ac_count
2616 fi
2617 # 10*(2^10) chars as input seems more than enough
2618 test $ac_count -gt 10 && break
2619 done
2620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2621esac
2622
2623 $ac_path_SED_found && break 3
2624 done
2625 done
2626 done
2627IFS=$as_save_IFS
2628 if test -z "$ac_cv_path_SED"; then
2629 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2630 fi
2631else
2632 ac_cv_path_SED=$SED
2633fi
2634
2635fi
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2637$as_echo "$ac_cv_path_SED" >&6; }
2638 SED="$ac_cv_path_SED"
2639 rm -f conftest.sed
2640
2641for ac_prog in gawk mawk nawk awk
2642do
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644set dummy $ac_prog; ac_word=$2
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646$as_echo_n "checking for $ac_word... " >&6; }
2647if test "${ac_cv_prog_AWK+set}" = set; then :
2648 $as_echo_n "(cached) " >&6
2649else
2650 if test -n "$AWK"; then
2651 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2652else
2653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654for as_dir in $PATH
2655do
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660 ac_cv_prog_AWK="$ac_prog"
2661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 break 2
2663 fi
2664done
2665 done
2666IFS=$as_save_IFS
2667
2668fi
2669fi
2670AWK=$ac_cv_prog_AWK
2671if test -n "$AWK"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2673$as_echo "$AWK" >&6; }
2674else
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676$as_echo "no" >&6; }
2677fi
2678
2679
2680 test -n "$AWK" && break
2681done
2682
e5c3f801 2683
0fdbe983
DJ
2684srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2685
2686# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2687# a relative path.
2688if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2689 INSTALL="${srcpwd}/install-sh -c"
2690fi
2691
a0da8069
NN
2692# Set srcdir to "." if that's what it is.
2693# This is important for multilib support.
2694pwd=`${PWDCMD-pwd}`
a0da8069
NN
2695if test "${pwd}" = "${srcpwd}" ; then
2696 srcdir=.
252b5132
RH
2697fi
2698
a0da8069 2699topsrcdir=$srcpwd
252b5132 2700
a0da8069 2701extra_host_args=
afefada0 2702
a0da8069
NN
2703### To add a new directory to the tree, first choose whether it is a target
2704### or a host dependent tool. Then put it into the appropriate list
2705### (library or tools, host or target), doing a dependency sort.
252b5132 2706
c6b750e1 2707# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2708# configdirs, or target_configdirs; see the serialization section below.
252b5132 2709
c6b750e1
DJ
2710# Dependency sorting is only needed when *configuration* must be done in
2711# a particular order. In all cases a dependency should be specified in
a0da8069 2712# the Makefile, whether or not it's implicitly specified here.
252b5132 2713
a0da8069
NN
2714# Double entries in build_configdirs, configdirs, or target_configdirs may
2715# cause circular dependencies and break everything horribly.
252b5132 2716
6a9cf61e
PB
2717# these library is used by various programs built for the build
2718# environment
2719#
1b6c0831 2720build_libs="build-libiberty build-libcpp"
6a9cf61e
PB
2721
2722# these tools are built for the build environment
a90ef4bf 2723build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2724
a0da8069 2725# these libraries are used by various programs built for the host environment
1b6c0831
L
2726#f
2727host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
a0da8069 2728
a0da8069
NN
2729# these tools are built for the host environment
2730# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2731# know that we are building the simulator.
2732# binutils, gas and ld appear in that order because it makes sense to run
2733# "make check" in that particular order.
e6de499b 2734# If --enable-gold is used, "gold" may replace "ld".
1b6c0831 2735host_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
2736
2737# libgcj represents the runtime libraries only used by gcj.
2738libgcj="target-libffi \
a0da8069 2739 target-zlib \
a0da8069
NN
2740 target-libjava"
2741
2742# these libraries are built for the target environment, and are built after
2743# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2744# Note that libiberty is not a target library.
b1299c4e 2745target_libraries="target-libgcc \
2bf680c4 2746 target-libbacktrace \
a0da8069
NN
2747 target-libgloss \
2748 target-newlib \
cff87f51 2749 target-libgomp \
522e3d71 2750 target-libcilkrts \
1b6c0831 2751 target-liboffloadmic \
7ec59b9e 2752 target-libatomic \
d32e2926 2753 target-libitm \
b9459e83 2754 target-libstdc++-v3 \
5286fdef 2755 target-libsanitizer \
95e43135 2756 target-libvtv \
1b6c0831 2757 target-libmpx \
bb780410 2758 target-libssp \
e552509b 2759 target-libquadmath \
4b1cb4fe 2760 target-libgfortran \
4f0ef2d8 2761 target-boehm-gc \
83326456 2762 ${libgcj} \
a2592b1b 2763 target-libobjc \
e552509b
ILT
2764 target-libada \
2765 target-libgo"
a0da8069 2766
9c14acb8
NN
2767# these tools are built using the target libraries, and are intended to
2768# run only in the target environment
a0da8069 2769#
9c14acb8 2770# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2771# list belongs in this list.
a0da8069 2772#
a90ef4bf 2773target_tools="target-rda"
252b5132 2774
a0da8069 2775################################################################################
252b5132 2776
a0da8069
NN
2777## All tools belong in one of the four categories, and are assigned above
2778## We assign ${configdirs} this way to remove all embedded newlines. This
2779## is important because configure will choke if they ever get through.
2780## ${configdirs} is directories we build using the host tools.
2781## ${target_configdirs} is directories we build using the target tools.
a0da8069 2782configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2783target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2784build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2785
9cc8ae67
PB
2786
2787
a0da8069 2788################################################################################
252b5132 2789
a0da8069 2790srcname="gnu development package"
252b5132 2791
a0da8069
NN
2792# This gets set non-empty for some net releases of packages.
2793appdirs=""
252b5132 2794
a0da8069
NN
2795# Define is_cross_compiler to save on calls to 'test'.
2796is_cross_compiler=
2797if test x"${host}" = x"${target}" ; then
2798 is_cross_compiler=no
252b5132 2799else
a0da8069 2800 is_cross_compiler=yes
c6b750e1 2801fi
252b5132 2802
9175bfc0 2803# Find the build and target subdir names.
dd12c3a8 2804
66a79c16
DJ
2805# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2806# have matching libraries, they should use host libraries: Makefile.tpl
2807# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2808# However, they still use the build modules, because the corresponding
2809# host modules (e.g. bison) are only built for the host when bootstrap
2810# finishes. So:
2811# - build_subdir is where we find build modules, and never changes.
2812# - build_libsubdir is where we find build libraries, and can be overridden.
2813
2814# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2815build_subdir="build-${build_noncanonical}"
c6b750e1 2816
81ecdfbb
RW
2817# Check whether --with-build-libsubdir was given.
2818if test "${with_build_libsubdir+set}" = set; then :
2819 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2820else
2821 build_libsubdir="$build_subdir"
81ecdfbb
RW
2822fi
2823
b00612cc
PB
2824# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2825if ( test $srcdir = . && test -d gcc ) \
2826 || test -d $srcdir/../host-${host_noncanonical}; then
2827 host_subdir="host-${host_noncanonical}"
2828else
2829 host_subdir=.
2830fi
dd12c3a8
NN
2831# No prefix.
2832target_subdir=${target_noncanonical}
c6b750e1 2833
2fd0b40b
RW
2834# Be sure to cover against remnants of an in-tree build.
2835if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2836 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2837Use a pristine source tree when building in a separate tree" "$LINENO" 5
2838fi
252b5132 2839
a0da8069
NN
2840# Skipdirs are removed silently.
2841skipdirs=
2842# Noconfigdirs are removed loudly.
2843noconfigdirs=""
252b5132 2844
a0da8069
NN
2845use_gnu_ld=
2846# Make sure we don't let GNU ld be added if we didn't want it.
2847if test x$with_gnu_ld = xno ; then
2848 use_gnu_ld=no
93f9b408 2849 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2850fi
2851
a0da8069
NN
2852use_gnu_as=
2853# Make sure we don't let GNU as be added if we didn't want it.
2854if test x$with_gnu_as = xno ; then
2855 use_gnu_as=no
2856 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2857fi
2858
700d40ca 2859use_included_zlib=
cf39cfc5
L
2860
2861# Check whether --with-system-zlib was given.
2862if test "${with_system_zlib+set}" = set; then :
2863 withval=$with_system_zlib;
2864fi
2865
700d40ca
ILT
2866# Make sure we don't let ZLIB be added if we didn't want it.
2867if test x$with_system_zlib = xyes ; then
2868 use_included_zlib=no
2869 noconfigdirs="$noconfigdirs zlib"
2870fi
2871
c6b750e1 2872# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2873# it's not even worth trying to configure, much less build, that tool.
252b5132 2874
a0da8069
NN
2875case ${with_x} in
2876 yes | "") ;; # the default value for this tree is that X11 is available
2877 no)
675c6968 2878 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2879 # We won't be able to build gdbtk without X.
c6b750e1 2880 enable_gdbtk=no
a0da8069
NN
2881 ;;
2882 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2883esac
252b5132 2884
0377a422 2885# Some are only suitable for cross toolchains.
a0da8069
NN
2886# Remove these if host=target.
2887cross_only="target-libgloss target-newlib target-opcodes"
2888
2889case $is_cross_compiler in
2890 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2891esac
252b5132 2892
a0da8069
NN
2893# If both --with-headers and --with-libs are specified, default to
2894# --without-newlib.
32be62b5
RS
2895if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2896 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2897 if test x"${with_newlib}" = x ; then
2898 with_newlib=no
2899 fi
252b5132
RH
2900fi
2901
a0da8069
NN
2902# Recognize --with-newlib/--without-newlib.
2903case ${with_newlib} in
2904 no) skipdirs="${skipdirs} target-newlib" ;;
2905 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2906esac
252b5132 2907
1b6c0831
L
2908# Check whether --enable-as-accelerator-for was given.
2909if test "${enable_as_accelerator_for+set}" = set; then :
2910 enableval=$enable_as_accelerator_for;
2911fi
2912
2913
2914# Check whether --enable-offload-targets was given.
2915if test "${enable_offload_targets+set}" = set; then :
2916 enableval=$enable_offload_targets;
2917 if test x"$enable_offload_targets" = x; then
2918 as_fn_error "no offload targets specified" "$LINENO" 5
2919 fi
2920
2921else
2922 enable_offload_targets=
2923fi
2924
2925
c7791212
NC
2926# Handle --enable-gold, --enable-ld.
2927# --disable-gold [--enable-ld]
2928# Build only ld. Default option.
d3b50760
L
2929# --enable-gold [--enable-ld]
2930# Build both gold and ld. Install gold as "ld.gold", install ld
2931# as "ld.bfd" and "ld".
2932# --enable-gold=default [--enable-ld]
c7791212
NC
2933# Build both gold and ld. Install gold as "ld.gold" and "ld",
2934# install ld as "ld.bfd".
2935# --enable-gold[=default] --disable-ld
2936# Build only gold, which is then installed as both "ld.gold" and "ld".
2937# --enable-gold --enable-ld=default
d3b50760
L
2938# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2939# and ld.bfd).
c7791212
NC
2940# In other words, ld is default
2941# --enable-gold=default --enable-ld=default
2942# Error.
2943
2944default_ld=
81ecdfbb
RW
2945# Check whether --enable-gold was given.
2946if test "${enable_gold+set}" = set; then :
2947 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2948else
2949 ENABLE_GOLD=no
81ecdfbb
RW
2950fi
2951
c7791212
NC
2952case "${ENABLE_GOLD}" in
2953 yes|default)
e6de499b
NC
2954 # Check for ELF target.
2955 is_elf=no
2956 case "${target}" in
2957 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 2958 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 2959 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2bda3143 2960 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
e6de499b
NC
2961 case "${target}" in
2962 *-*-linux*aout* | *-*-linux*oldld*)
2963 ;;
2964 *)
2965 is_elf=yes
2966 ;;
2967 esac
2968 esac
2969
2970 if test "$is_elf" = "yes"; then
2971 # Check for target supported by gold.
93f9b408 2972 case "${target}" in
6d26190c
JY
2973 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2974 | aarch64*-*-* | tilegx*-*-*)
c7791212
NC
2975 configdirs="$configdirs gold"
2976 if test x${ENABLE_GOLD} = xdefault; then
2977 default_ld=gold
2978 fi
e6de499b 2979 ENABLE_GOLD=yes
93f9b408
ILT
2980 ;;
2981 esac
e6de499b
NC
2982 fi
2983 ;;
2984 no)
2985 ;;
2986 *)
2987 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2988 ;;
c7791212
NC
2989esac
2990
2991# Check whether --enable-ld was given.
2992if test "${enable_ld+set}" = set; then :
2993 enableval=$enable_ld; ENABLE_LD=$enableval
2994else
2995 ENABLE_LD=yes
2996fi
2997
2998
2999case "${ENABLE_LD}" in
3000 default)
d3b50760 3001 if test x${default_ld} != x; then
c7791212
NC
3002 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3003 fi
3004 ;;
3005 yes)
3006 ;;
3007 no)
3008 if test x${ENABLE_GOLD} != xyes; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3010$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3011 fi
3012 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3013 ;;
3014 *)
3015 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3016 ;;
3017esac
93f9b408 3018
a0da8069 3019# Configure extra directories which are host specific
252b5132 3020
a0da8069
NN
3021case "${host}" in
3022 *-cygwin*)
3023 configdirs="$configdirs libtermcap" ;;
3024esac
252b5132 3025
59f7ec45
HPN
3026# A target can indicate whether a language isn't supported for some reason.
3027# Only spaces may be used in this macro; not newlines or tabs.
3028unsupported_languages=
3029
c6b750e1 3030# Remove more programs from consideration, based on the host or
a0da8069
NN
3031# target this usually means that a port of the program doesn't
3032# exist yet.
252b5132 3033
a0da8069 3034case "${host}" in
3516a403 3035 i[3456789]86-*-msdosdjgpp*)
6a608608 3036 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3037 ;;
a0da8069 3038esac
252b5132 3039
4b1cb4fe 3040
89a1e9c3
PB
3041# Check whether --enable-libquadmath was given.
3042if test "${enable_libquadmath+set}" = set; then :
3043 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3044else
3045 ENABLE_LIBQUADMATH=yes
3046fi
3047
3048if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3049 noconfigdirs="$noconfigdirs target-libquadmath"
3050fi
3051
3052
3053# Check whether --enable-libquadmath-support was given.
3054if test "${enable_libquadmath_support+set}" = set; then :
3055 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3056else
3057 ENABLE_LIBQUADMATH_SUPPORT=yes
3058fi
3059
3060enable_libquadmath_support=
3061if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3062 enable_libquadmath_support=no
3063fi
3064
3065
81ecdfbb
RW
3066# Check whether --enable-libada was given.
3067if test "${enable_libada+set}" = set; then :
3068 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3069else
3070 ENABLE_LIBADA=yes
81ecdfbb
RW
3071fi
3072
a2592b1b 3073if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3074 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3075fi
3076
81ecdfbb
RW
3077# Check whether --enable-libssp was given.
3078if test "${enable_libssp+set}" = set; then :
3079 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3080else
3081 ENABLE_LIBSSP=yes
81ecdfbb
RW
3082fi
3083
5f128533 3084
f66a9a70
L
3085# Check whether --enable-libstdcxx was given.
3086if test "${enable_libstdcxx+set}" = set; then :
3087 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3088else
3089 ENABLE_LIBSTDCXX=default
3090fi
3091
3092if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1b6c0831
L
3093 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3094fi
3095
3096# If this is accelerator compiler and its target is intelmic we enable
3097# target liboffloadmic by default. If this is compiler with offloading
3098# for intelmic we enable host liboffloadmic by default. Otherwise
3099# liboffloadmic is disabled by default.
3100# Check whether --enable-liboffloadmic was given.
3101if test "${enable_liboffloadmic+set}" = set; then :
3102 enableval=$enable_liboffloadmic; case "$enableval" in
3103 no | host | target)
3104 enable_liboffloadmic=$enableval ;;
3105 *)
3106 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3107esac
3108else
3109 if test x"$enable_as_accelerator_for" != x; then
3110 case "${target}" in
3111 *-intelmic-* | *-intelmicemul-*)
3112 enable_liboffloadmic=target
3113 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3114 ;;
3115 *)
3116 enable_liboffloadmic=no
3117 ;;
3118 esac
3119else
3120 case "${enable_offload_targets}" in
3121 *-intelmic-* | *-intelmicemul-*)
3122 enable_liboffloadmic=host
3123 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3124 ;;
3125 *)
3126 enable_liboffloadmic=no
3127 ;;
3128 esac
3129fi
f66a9a70
L
3130fi
3131
1b6c0831
L
3132
3133
a0da8069
NN
3134# Save it here so that, even in case of --enable-libgcj, if the Java
3135# front-end isn't enabled, we still get libgcj disabled.
3136libgcj_saved=$libgcj
3137case $enable_libgcj in
3138yes)
3139 # If we reset it here, it won't get added to noconfigdirs in the
3140 # target-specific build rules, so it will be forcibly enabled
3141 # (unless the Java language itself isn't enabled).
3142 libgcj=
3143 ;;
3144no)
3145 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
3146 # Don't disable libffi, though, other languages use it.
3147 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
33d23ee8
ILT
3148 # Clear libgcj_saved so that even if java is enabled libffi won't be
3149 # built.
3150 libgcj_saved=
a0da8069
NN
3151 ;;
3152esac
252b5132 3153
ffdd6afc
ILT
3154# Check whether --enable-static-libjava was given.
3155if test "${enable_static_libjava+set}" = set; then :
3156 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3157else
3158 ENABLE_STATIC_LIBJAVA=no
3159fi
3160
3161enable_static_libjava=
3162if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3163 enable_static_libjava=yes
3164fi
3165
3166if test x$enable_static_libjava != xyes ; then
3167 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3168fi
3169
4b1cb4fe 3170
a6df5a19
PB
3171# Disable libgomp on non POSIX hosted systems.
3172if test x$enable_libgomp = x ; then
b3ded179
PB
3173 # Enable libgomp by default on hosted POSIX systems.
3174 case "${target}" in
29383458 3175 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3176 ;;
5b806d27 3177 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3178 ;;
2479f722 3179 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3180 ;;
3181 *-*-darwin* | *-*-aix*)
3182 ;;
3183 *)
3184 noconfigdirs="$noconfigdirs target-libgomp"
3185 ;;
3186 esac
a6df5a19 3187fi
b3ded179 3188
7ec59b9e
L
3189# Disable libatomic on unsupported systems.
3190if test -d ${srcdir}/libatomic; then
3191 if test x$enable_libatomic = x; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3193$as_echo_n "checking for libatomic support... " >&6; }
3194 if (srcdir=${srcdir}/libatomic; \
3195 . ${srcdir}/configure.tgt; \
3196 test -n "$UNSUPPORTED")
3197 then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199$as_echo "no" >&6; }
3200 noconfigdirs="$noconfigdirs target-libatomic"
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203$as_echo "yes" >&6; }
3204 fi
3205 fi
3206fi
3207
522e3d71 3208# Disable libcilkrts on unsupported systems.
3209if test -d ${srcdir}/libcilkrts; then
3210 if test x$enable_libcilkrts = x; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3212$as_echo_n "checking for libcilkrts support... " >&6; }
3213 if (srcdir=${srcdir}/libcilkrts; \
3214 . ${srcdir}/configure.tgt; \
3215 test -n "$UNSUPPORTED")
3216 then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218$as_echo "no" >&6; }
3219 noconfigdirs="$noconfigdirs target-libcilkrts"
3220 else
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222$as_echo "yes" >&6; }
3223 fi
3224 fi
3225fi
3226
1b6c0831
L
3227# Disable liboffloadmic on unsupported systems.
3228if test -d ${srcdir}/liboffloadmic; then
3229 if test x$enable_liboffloadmic != xno; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3231$as_echo_n "checking for liboffloadmic support... " >&6; }
3232 if (srcdir=${srcdir}/liboffloadmic; \
3233 . ${srcdir}/configure.tgt; \
3234 test -n "$UNSUPPORTED")
3235 then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238 noconfigdirs="$noconfigdirs target-liboffloadmic"
3239 else
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241$as_echo "yes" >&6; }
3242 fi
3243 fi
3244fi
3245
d32e2926
RH
3246# Disable libitm on unsupported systems.
3247if test -d ${srcdir}/libitm; then
3248 if test x$enable_libitm = x; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3250$as_echo_n "checking for libitm support... " >&6; }
3251 if (srcdir=${srcdir}/libitm; \
3252 . ${srcdir}/configure.tgt; \
3253 test -n "$UNSUPPORTED")
3254 then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256$as_echo "no" >&6; }
3257 noconfigdirs="$noconfigdirs target-libitm"
3258 else
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3260$as_echo "yes" >&6; }
3261 fi
3262 fi
3263fi
3264
5286fdef
L
3265# Disable libsanitizer on unsupported systems.
3266if test -d ${srcdir}/libsanitizer; then
3267 if test x$enable_libsanitizer = x; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3269$as_echo_n "checking for libsanitizer support... " >&6; }
3270 if (srcdir=${srcdir}/libsanitizer; \
3271 . ${srcdir}/configure.tgt; \
3272 test -n "$UNSUPPORTED")
3273 then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275$as_echo "no" >&6; }
3276 noconfigdirs="$noconfigdirs target-libsanitizer"
3277 else
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3279$as_echo "yes" >&6; }
3280 fi
3281 fi
3282fi
3283
95e43135
JBG
3284# Disable libvtv on unsupported systems.
3285if test -d ${srcdir}/libvtv; then
3286 if test x$enable_libvtv = x; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3288$as_echo_n "checking for libvtv support... " >&6; }
3289 if (srcdir=${srcdir}/libvtv; \
3290 . ${srcdir}/configure.tgt; \
3291 test "$VTV_SUPPORTED" != "yes")
3292 then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295 noconfigdirs="$noconfigdirs target-libvtv"
3296 else
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3298$as_echo "yes" >&6; }
3299 fi
3300 fi
3301fi
3302
1b6c0831
L
3303
3304# Enable libmpx on supported systems by request.
3305if test -d ${srcdir}/libmpx; then
3306 if test x$enable_libmpx = xyes; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3308$as_echo_n "checking for libmpx support... " >&6; }
3309 if (srcdir=${srcdir}/libmpx; \
3310 . ${srcdir}/configure.tgt; \
3311 test "$LIBMPX_SUPPORTED" != "yes")
3312 then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314$as_echo "no" >&6; }
3315 noconfigdirs="$noconfigdirs target-libmpx"
3316 else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318$as_echo "yes" >&6; }
3319 fi
3320 else
3321 noconfigdirs="$noconfigdirs target-libmpx"
3322 fi
3323fi
3324
3325
3326
1488e230
DE
3327# Disable libquadmath for some systems.
3328case "${target}" in
5286fdef
L
3329 avr-*-*)
3330 noconfigdirs="$noconfigdirs target-libquadmath"
3331 ;;
1488e230
DE
3332 # libquadmath is unused on AIX and libquadmath build process use of
3333 # LD_LIBRARY_PATH can break AIX bootstrap.
3334 powerpc-*-aix* | rs6000-*-aix*)
3335 noconfigdirs="$noconfigdirs target-libquadmath"
3336 ;;
3337esac
3338
065a5627
JM
3339# Disable libssp for some systems.
3340case "${target}" in
3341 avr-*-*)
c5f5c3c2 3342 # No hosted I/O support.
065a5627
JM
3343 noconfigdirs="$noconfigdirs target-libssp"
3344 ;;
3345 powerpc-*-aix* | rs6000-*-aix*)
3346 noconfigdirs="$noconfigdirs target-libssp"
3347 ;;
99c513f6 3348 rl78-*-*)
202e2356
NC
3349 # libssp uses a misaligned load to trigger a fault, but the RL78
3350 # doesn't fault for those - instead, it gives a build-time error
3351 # for explicit misaligned loads.
99c513f6
DD
3352 noconfigdirs="$noconfigdirs target-libssp"
3353 ;;
1b6c0831
L
3354 visium-*-*)
3355 # No hosted I/O support.
3356 noconfigdirs="$noconfigdirs target-libssp"
3357 ;;
065a5627
JM
3358esac
3359
065a5627 3360# Disable libstdc++-v3 for some systems.
f66a9a70
L
3361# Allow user to override this if they pass --enable-libstdc++-v3
3362if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3363 case "${target}" in
3364 *-*-vxworks*)
3365 # VxWorks uses the Dinkumware C++ library.
3366 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3367 ;;
3368 arm*-wince-pe*)
3369 # the C++ libraries don't build on top of CE's C libraries
3370 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3371 ;;
3372 avr-*-*)
3373 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3374 ;;
3375 esac
3376fi
065a5627
JM
3377
3378# Disable Fortran for some systems.
3379case "${target}" in
3380 mmix-*-*)
3381 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3382 unsupported_languages="$unsupported_languages fortran"
3383 ;;
3384esac
3385
0827f9a6 3386# Disable Java if libffi is not supported.
9863d716 3387case "${target}" in
e7d5abf1
JBG
3388 aarch64-*-*)
3389 ;;
0827f9a6
JM
3390 alpha*-*-*)
3391 ;;
3392 arm*-*-*)
3393 ;;
3394 cris-*-*)
3395 ;;
3396 frv-*-*)
3397 ;;
3398 hppa*-*-linux*)
3399 ;;
3400 hppa*-*-hpux*)
3401 ;;
3402 i?86-*-*)
3403 ;;
3404 ia64*-*-*)
3405 ;;
3406 m32r*-*-*)
3407 ;;
3408 m68k-*-*)
3409 ;;
2479f722 3410 mips*-*-rtems*)
0827f9a6
JM
3411 ;;
3412 mips*-*-linux*)
3413 ;;
3414 powerpc*-*-linux*)
3415 ;;
3416 powerpc-*-darwin*)
3417 ;;
3418 powerpc-*-aix* | rs6000-*-aix*)
3419 ;;
3420 powerpc-*-freebsd*)
3421 ;;
3422 powerpc64-*-freebsd*)
3423 ;;
3424 powerpc*-*-rtems*)
9863d716 3425 ;;
0827f9a6
JM
3426 s390-*-* | s390x-*-*)
3427 ;;
3428 sh-*-* | sh[34]*-*-*)
3429 ;;
3430 sh64-*-* | sh5*-*-*)
3431 ;;
3432 sparc*-*-*)
3433 ;;
3434 x86_64-*-*)
3435 ;;
3436 *-*-*)
3437 unsupported_languages="$unsupported_languages java"
3438 ;;
3439esac
3440
3441# Disable Java, libgcj or related libraries for some systems.
3442case "${target}" in
9863d716
JM
3443 powerpc-*-darwin*)
3444 ;;
3445 i[3456789]86-*-darwin*)
3446 ;;
3447 x86_64-*-darwin[912]*)
3448 ;;
3449 *-*-darwin*)
3450 noconfigdirs="$noconfigdirs ${libgcj}"
3451 ;;
9863d716
JM
3452 *-*-netware*)
3453 noconfigdirs="$noconfigdirs ${libgcj}"
3454 ;;
3455 *-*-rtems*)
3456 noconfigdirs="$noconfigdirs ${libgcj}"
3457 ;;
3458 *-*-tpf*)
3459 noconfigdirs="$noconfigdirs ${libgcj}"
3460 ;;
3461 *-*-uclinux*)
3462 noconfigdirs="$noconfigdirs ${libgcj}"
3463 ;;
3464 *-*-vxworks*)
3465 noconfigdirs="$noconfigdirs ${libgcj}"
3466 ;;
9863d716
JM
3467 alpha*-*-*vms*)
3468 noconfigdirs="$noconfigdirs ${libgcj}"
3469 ;;
1b6c0831
L
3470 arm*-*-freebsd*)
3471 noconfigdirs="$noconfigdirs ${libgcj}"
3472 ;;
0827f9a6 3473 arm-wince-pe)
9863d716
JM
3474 noconfigdirs="$noconfigdirs ${libgcj}"
3475 ;;
9863d716
JM
3476 arm*-*-symbianelf*)
3477 noconfigdirs="$noconfigdirs ${libgcj}"
3478 ;;
9863d716 3479 bfin-*-*)
9863d716
JM
3480 noconfigdirs="$noconfigdirs target-boehm-gc"
3481 ;;
9863d716
JM
3482 cris-*-* | crisv32-*-*)
3483 unsupported_languages="$unsupported_languages java"
3484 case "${target}" in
3485 *-*-linux*)
3486 ;;
3487 *) # See PR46792 regarding target-libffi.
3488 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3489 esac
3490 ;;
9863d716
JM
3491 hppa*64*-*-linux*)
3492 # In this case, it's because the hppa64-linux target is for
3493 # the kernel only at this point and has no libc, and thus no
3494 # headers, crt*.o, etc., all of which are needed by these.
82ae827f 3495 unsupported_languages="$unsupported_languages java"
9863d716 3496 ;;
82ae827f 3497 hppa*64*-*-hpux*)
9863d716
JM
3498 noconfigdirs="$noconfigdirs ${libgcj}"
3499 ;;
3500 hppa*-hp-hpux11*)
3501 ;;
82ae827f 3502 hppa*-*-hpux*)
9863d716
JM
3503 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3504 # build on HP-UX 10.20.
3505 noconfigdirs="$noconfigdirs ${libgcj}"
3506 ;;
9863d716
JM
3507 ia64*-*-*vms*)
3508 noconfigdirs="$noconfigdirs ${libgcj}"
3509 ;;
9863d716
JM
3510 i[3456789]86-w64-mingw*)
3511 noconfigdirs="$noconfigdirs ${libgcj}"
3512 ;;
3513 i[3456789]86-*-mingw*)
3514 noconfigdirs="$noconfigdirs ${libgcj}"
3515 ;;
3516 x86_64-*-mingw*)
3517 noconfigdirs="$noconfigdirs ${libgcj}"
3518 ;;
9863d716
JM
3519 mmix-*-*)
3520 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
9863d716
JM
3521 ;;
3522 powerpc-*-aix*)
3523 # copied from rs6000-*-* entry
3524 noconfigdirs="$noconfigdirs ${libgcj}"
3525 ;;
9863d716
JM
3526 rs6000-*-aix*)
3527 noconfigdirs="$noconfigdirs ${libgcj}"
3528 ;;
3f8107ab
AM
3529 ft32-*-*)
3530 noconfigdirs="$noconfigdirs ${libgcj}"
3531 ;;
9863d716
JM
3532 *-*-lynxos*)
3533 noconfigdirs="$noconfigdirs ${libgcj}"
3534 ;;
9863d716
JM
3535esac
3536
1b6c0831
L
3537# Disable the go frontend on systems where it is known to not work. Please keep
3538# this in sync with contrib/config-list.mk.
3539case "${target}" in
3540*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3541 unsupported_languages="$unsupported_languages go"
3542 ;;
3543esac
3544
a413f71a
ILT
3545# Disable libgo for some systems where it is known to not work.
3546# For testing, you can easily override this with --enable-libgo.
3547if test x$enable_libgo = x; then
3548 case "${target}" in
3549 *-*-darwin*)
3550 # PR 46986
3551 noconfigdirs="$noconfigdirs target-libgo"
3552 ;;
3553 *-*-cygwin* | *-*-mingw*)
3554 noconfigdirs="$noconfigdirs target-libgo"
3555 ;;
3556 *-*-aix*)
3557 noconfigdirs="$noconfigdirs target-libgo"
3558 ;;
3559 esac
3560fi
3561
691bb5a1
DD
3562# Default libgloss CPU subdirectory.
3563libgloss_dir="$target_cpu"
4b1cb4fe 3564
ff46fb8f
JM
3565case "${target}" in
3566 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3567 libgloss_dir=wince
3568 ;;
f1dd87fc
YZ
3569 aarch64*-*-* )
3570 libgloss_dir=aarch64
3571 ;;
ff46fb8f
JM
3572 arm*-*-*)
3573 libgloss_dir=arm
3574 ;;
3575 cris-*-* | crisv32-*-*)
3576 libgloss_dir=cris
3577 ;;
3578 hppa*-*-*)
3579 libgloss_dir=pa
3580 ;;
3581 i[3456789]86-*-*)
3582 libgloss_dir=i386
3583 ;;
3584 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3585 libgloss_dir=m68hc11
3586 ;;
3587 m68*-*-* | fido-*-*)
3588 libgloss_dir=m68k
3589 ;;
3590 mips*-*-*)
3591 libgloss_dir=mips
3592 ;;
3593 powerpc*-*-*)
3594 libgloss_dir=rs6000
3595 ;;
3596 sparc*-*-*)
3597 libgloss_dir=sparc
3598 ;;
3599esac
3600
c7e4b184 3601# Disable newlib and libgloss for various target OSes.
a0da8069 3602case "${target}" in
c7e4b184
JM
3603 alpha*-dec-osf*)
3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605 ;;
3606 i[3456789]86-*-linux*)
3607 # This section makes it possible to build newlib natively on linux.
3608 # If we are using a cross compiler then don't configure newlib.
3609 if test x${is_cross_compiler} != xno ; then
3610 noconfigdirs="$noconfigdirs target-newlib"
3611 fi
3612 noconfigdirs="$noconfigdirs target-libgloss"
3613 # If we are not using a cross compiler, do configure newlib.
3614 # Note however, that newlib will only be configured in this situation
3615 # if the --with-newlib option has been given, because otherwise
3616 # 'target-newlib' will appear in skipdirs.
3617 ;;
3618 i[3456789]86-*-rdos*)
3619 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620 ;;
3621 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623 ;;
3624 sparc-*-sunos4*)
3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626 ;;
3627 *-*-aix*)
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629 ;;
3630 *-*-beos*)
3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632 ;;
a0da8069 3633 *-*-chorusos)
b2f14e4a 3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3635 ;;
c7e4b184
JM
3636 *-*-dragonfly*)
3637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3638 ;;
3639 *-*-freebsd*)
3640 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3641 ;;
3642 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3643 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3644 ;;
3645 *-*-lynxos*)
3646 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3647 ;;
3648 *-*-mingw*)
3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650 ;;
3651 *-*-netbsd*)
3652 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653 ;;
3654 *-*-netware*)
3655 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656 ;;
3657 *-*-tpf*)
3658 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659 ;;
3660 *-*-uclinux*)
3661 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3662 ;;
3663 *-*-vxworks*)
3664 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665 ;;
3666esac
3667
3668case "${target}" in
3669 *-*-chorusos)
3670 ;;
24741ab2 3671 powerpc-*-darwin*)
9d39db92 3672 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3673 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3674 ;;
85bd1942
TG
3675 i[3456789]86-*-darwin*)
3676 noconfigdirs="$noconfigdirs ld gprof"
3677 noconfigdirs="$noconfigdirs sim target-rda"
3678 ;;
e8a5fa9c 3679 x86_64-*-darwin[912]*)
652dec25
TG
3680 noconfigdirs="$noconfigdirs ld gas gprof"
3681 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3682 ;;
04d1ab34 3683 *-*-darwin*)
d320aacb 3684 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3685 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3686 ;;
5b806d27 3687 *-*-dragonfly*)
5b806d27 3688 ;;
de0b4a87 3689 *-*-freebsd*)
4b1cb4fe
DD
3690 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3691 && test -f /usr/local/include/gmp.h; then
3692 with_gmp=/usr/local
3693 fi
4b1cb4fe 3694 ;;
f8a495c8
NC
3695 *-*-kaos*)
3696 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3697 noconfigdirs="$noconfigdirs target-libgloss"
3698 ;;
a0da8069 3699 *-*-netbsd*)
a0da8069 3700 ;;
2a3124ca 3701 *-*-netware*)
a0da8069
NN
3702 ;;
3703 *-*-rtems*)
9863d716 3704 noconfigdirs="$noconfigdirs target-libgloss"
f8797b5a
JB
3705 # this is not caught below because this stanza matches earlier
3706 case $target in
3707 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3708 esac
a0da8069 3709 ;;
1587117a
EC
3710 # The tpf target doesn't support gdb yet.
3711 *-*-tpf*)
c7e4b184 3712 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3713 ;;
c1968181 3714 *-*-uclinux*)
c7e4b184 3715 noconfigdirs="$noconfigdirs target-rda"
c1968181 3716 ;;
a0da8069 3717 *-*-vxworks*)
a0da8069
NN
3718 ;;
3719 alpha*-dec-osf*)
3720 # ld works, but does not support shared libraries.
a0da8069 3721 # gas doesn't generate exception information.
c7e4b184 3722 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3723 ;;
3724 alpha*-*-*vms*)
9863d716 3725 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3726 ;;
a0da8069
NN
3727 alpha*-*-*)
3728 # newlib is not 64 bit ready
9863d716 3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3730 ;;
a0da8069 3731 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3732 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3733 ;;
f4cfb980 3734 arc-*-*|arceb-*-*)
782cb41f 3735 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3736 ;;
a0da8069 3737 arm-*-pe*)
9863d716 3738 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3739 ;;
a0da8069 3740 arm-*-riscix*)
b2f14e4a 3741 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3742 ;;
8e71395b
L
3743 avr-*-rtems*)
3744 ;;
3745 avr-*-*)
3746 if test x${with_avrlibc} != xno; then
3747 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3748 fi
3749 ;;
a0da8069 3750 c4x-*-* | tic4x-*-*)
b2f14e4a 3751 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3752 ;;
b2f14e4a
JM
3753 tic54x-*-*)
3754 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3755 ;;
a0da8069 3756 d10v-*-*)
b2f14e4a 3757 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3758 ;;
3759 d30v-*-*)
b2f14e4a 3760 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3761 ;;
3762 fr30-*-elf*)
9863d716 3763 noconfigdirs="$noconfigdirs gdb"
a0da8069 3764 ;;
3f8107ab
AM
3765 ft32-*-*)
3766 noconfigdirs="$noconfigdirs target-rda gprof"
3767 ;;
20135e4c 3768 moxie-*-*)
10b8fe5e 3769 noconfigdirs="$noconfigdirs"
20135e4c 3770 ;;
a0da8069 3771 h8300*-*-*)
9863d716 3772 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3773 ;;
3774 h8500-*-*)
b2f14e4a 3775 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3776 ;;
caeba88f 3777 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3778 ;;
5569a85f
JDA
3779 hppa*64*-*-hpux*)
3780 noconfigdirs="$noconfigdirs gdb"
3781 ;;
3782 hppa*-*-hpux11*)
3783 noconfigdirs="$noconfigdirs gdb ld"
3784 ;;
93cc359e 3785 hppa*64*-*-linux*)
a0da8069 3786 ;;
f0ff0f90 3787 hppa*-*-linux*)
5dcac624 3788 ;;
a0da8069 3789 hppa*-*-*elf* | \
a0da8069
NN
3790 hppa*-*-lites* | \
3791 hppa*-*-openbsd* | \
3792 hppa*64*-*-*)
4f0ef2d8 3793 ;;
691bb5a1 3794 hppa*-*-pro*)
691bb5a1 3795 ;;
a0da8069 3796 hppa*-*-*)
9863d716 3797 noconfigdirs="$noconfigdirs ld"
a0da8069 3798 ;;
b07c2aad 3799 i960-*-*)
b2f14e4a 3800 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3801 ;;
a0da8069
NN
3802 ia64*-*-elf*)
3803 # No gdb support yet.
0377a422 3804 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3805 ;;
3806 ia64*-**-hpux*)
92c9a463 3807 # No ld support yet.
5569a85f 3808 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
a0da8069 3809 ;;
19e99079 3810 ia64*-*-*vms*)
7ec59b9e
L
3811 # No ld support yet.
3812 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3813 ;;
1f53ca9a 3814 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3815 ;;
3816 i[3456789]86-*-mingw*)
45055374 3817 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3818 ;;
a0da8069
NN
3819 *-*-cygwin*)
3820 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3821 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3822 # always build newlib if winsup directory is present.
45055374 3823 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3824 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3825 elif test -d "$srcdir/newlib"; then
45055374 3826 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3827 fi
c6b750e1 3828 ;;
ec11bdc6 3829 i[3456789]86-*-pe)
782cb41f 3830 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3831 ;;
ec11bdc6 3832 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3833 # The linker does not yet know about weak symbols in COFF,
3834 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3835 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3836 ;;
ec11bdc6 3837 i[3456789]86-*-sco*)
b2f14e4a 3838 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3839 ;;
cff32a7c 3840 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3841 noconfigdirs="$noconfigdirs target-libgloss"
3842 ;;
ec11bdc6 3843 i[3456789]86-*-sysv4*)
b2f14e4a 3844 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3845 ;;
ec11bdc6 3846 i[3456789]86-*-beos*)
c7e4b184 3847 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3848 ;;
b59bea8a 3849 i[3456789]86-*-rdos*)
c7e4b184 3850 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3851 ;;
a0da8069 3852 mmix-*-*)
9863d716 3853 noconfigdirs="$noconfigdirs gdb"
a0da8069 3854 ;;
4970f871 3855 mt-*-*)
cdb9b172
AH
3856 noconfigdirs="$noconfigdirs sim"
3857 ;;
a0da8069
NN
3858 powerpc-*-aix*)
3859 # copied from rs6000-*-* entry
c7e4b184 3860 noconfigdirs="$noconfigdirs gprof"
a0da8069 3861 ;;
93cc359e 3862 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3863 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3864 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3865 # always build newlib.
3866 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3867 ;;
3868 # This is temporary until we can link against shared libraries
3869 powerpcle-*-solaris*)
b2f14e4a 3870 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3871 ;;
3872 powerpc-*-beos*)
c7e4b184 3873 noconfigdirs="$noconfigdirs gdb"
a0da8069 3874 ;;
a0da8069 3875 rs6000-*-lynxos*)
c7e4b184 3876 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3877 ;;
3878 rs6000-*-aix*)
c7e4b184 3879 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3880 ;;
3881 rs6000-*-*)
9863d716 3882 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3883 ;;
3884 m68k-apollo-*)
b2f14e4a 3885 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3886 ;;
25a07265 3887 microblaze*)
9863d716 3888 noconfigdirs="$noconfigdirs gprof"
25a07265 3889 ;;
a9d58c06 3890 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
3891 if test x$with_newlib = xyes; then
3892 noconfigdirs="$noconfigdirs gprof"
3893 fi
5bd8be13 3894 ;;
a0da8069 3895 mips*-*-irix5*)
b2f14e4a 3896 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3897 ;;
3898 mips*-*-irix6*)
9863d716 3899 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3900 ;;
a0da8069 3901 mips*-*-bsd*)
e8044f35 3902 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3903 ;;
a0da8069 3904 mips*-*-linux*)
a0da8069 3905 ;;
e8044f35
RS
3906 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3907 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3908 noconfigdirs="$noconfigdirs ld gas gprof"
3909 ;;
a0da8069 3910 mips*-*-*)
9863d716 3911 noconfigdirs="$noconfigdirs gprof"
a0da8069 3912 ;;
b25b5cef
CJW
3913 nds32*-*-*)
3914 noconfigdirs="$noconfigdirs gdb"
3915 ;;
1b6c0831
L
3916 nvptx*-*-*)
3917 # nvptx is just a compiler
3918 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3919 ;;
cfbc1a6c
JS
3920 or1k*-*-*)
3921 noconfigdirs="$noconfigdirs gdb"
3922 ;;
dbf85af7 3923 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3924 case "${target}" in
3925 sh*-*-elf)
9863d716 3926 ;;
e8a5fa9c 3927 *)
9863d716 3928 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3929 esac
a0da8069 3930 ;;
a0da8069 3931 sparc-*-sunos4*)
c7e4b184 3932 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3933 use_gnu_ld=no
3934 fi
3935 ;;
619a3713 3936 tic6x-*-*)
40ae9136 3937 noconfigdirs="$noconfigdirs sim"
619a3713 3938 ;;
68d122bb 3939 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
3940 noconfigdirs="$noconfigdirs sim"
3941 ;;
a0da8069 3942 v810-*-*)
b2f14e4a 3943 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3944 ;;
3945 vax-*-*)
9863d716 3946 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3947 ;;
a0da8069 3948esac
252b5132 3949
a0da8069
NN
3950# If we aren't building newlib, then don't build libgloss, since libgloss
3951# depends upon some newlib header files.
3952case "${noconfigdirs}" in
3953 *target-libgloss*) ;;
3954 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3955esac
3956
a0da8069 3957# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3958host_makefile_frag=/dev/null
3959if test -d ${srcdir}/config ; then
3960case "${host}" in
ec11bdc6 3961 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3962 host_makefile_frag="config/mh-djgpp"
3963 ;;
3964 *-cygwin*)
e33b51a6 3965
81ecdfbb
RW
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3967$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3968echo a >cygwin-cat-check
1f53ca9a 3969if test `cat cygwin-cat-check` = a ; then
8ade07e9 3970 rm cygwin-cat-check
81ecdfbb
RW
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3972$as_echo "yes" >&6; }
e33b51a6 3973else
8ade07e9 3974 rm cygwin-cat-check
81ecdfbb
RW
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976$as_echo "no" >&6; }
3977 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3978 Please either mount the build directory in binary mode or run the following
3979 commands before running any configure script:
3980set -o igncr
3981export SHELLOPTS
81ecdfbb 3982 " "$LINENO" 5
e33b51a6 3983fi
e33b51a6 3984
a0da8069
NN
3985 host_makefile_frag="config/mh-cygwin"
3986 ;;
8a1599ab 3987 *-mingw*)
84e7906e 3988 host_makefile_frag="config/mh-mingw"
2d1e8239 3989 ;;
da888c87 3990 hppa*-hp-hpux10*)
da888c87 3991 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3992 ;;
3516a403 3993 hppa*-hp-hpux*)
da888c87
PB
3994 host_makefile_frag="config/mh-pa"
3995 ;;
3996 hppa*-*)
3997 host_makefile_frag="config/mh-pa"
3998 ;;
e552509b
ILT
3999 *-*-darwin*)
4000 host_makefile_frag="config/mh-darwin"
0df3d27f 4001 ;;
f6d183c0
PB
4002 powerpc-*-aix*)
4003 host_makefile_frag="config/mh-ppc-aix"
4004 ;;
4005 rs6000-*-aix*)
4006 host_makefile_frag="config/mh-ppc-aix"
4007 ;;
a0da8069
NN
4008esac
4009fi
4010
9e07f89d 4011if test "${build}" != "${host}" ; then
1576798e
PB
4012 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4013 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 4014 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
4015 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4016 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4017 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 4018 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
4019 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4020 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4021 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4022 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4023 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4024 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4025else
4026 AR_FOR_BUILD="\$(AR)"
4027 AS_FOR_BUILD="\$(AS)"
512b7dfb 4028 CC_FOR_BUILD="\$(CC)"
1576798e
PB
4029 CXX_FOR_BUILD="\$(CXX)"
4030 GCJ_FOR_BUILD="\$(GCJ)"
4031 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 4032 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
4033 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4034 LD_FOR_BUILD="\$(LD)"
4035 NM_FOR_BUILD="\$(NM)"
4036 RANLIB_FOR_BUILD="\$(RANLIB)"
4037 WINDRES_FOR_BUILD="\$(WINDRES)"
4038 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
4039fi
4040
4041ac_ext=c
c6b750e1
DJ
4042ac_cpp='$CPP $CPPFLAGS'
4043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046if test -n "$ac_tool_prefix"; then
4047 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4048set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050$as_echo_n "checking for $ac_word... " >&6; }
4051if test "${ac_cv_prog_CC+set}" = set; then :
4052 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4053else
4054 if test -n "$CC"; then
4055 ac_cv_prog_CC="$CC" # Let the user override the test.
4056else
4057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058for as_dir in $PATH
4059do
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4064 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4066 break 2
4067 fi
4068done
81ecdfbb
RW
4069 done
4070IFS=$as_save_IFS
c6b750e1
DJ
4071
4072fi
4073fi
4074CC=$ac_cv_prog_CC
4075if test -n "$CC"; then
81ecdfbb
RW
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4077$as_echo "$CC" >&6; }
c6b750e1 4078else
81ecdfbb
RW
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080$as_echo "no" >&6; }
c6b750e1
DJ
4081fi
4082
81ecdfbb 4083
c6b750e1
DJ
4084fi
4085if test -z "$ac_cv_prog_CC"; then
4086 ac_ct_CC=$CC
6a9cf61e 4087 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4088set dummy gcc; ac_word=$2
81ecdfbb
RW
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090$as_echo_n "checking for $ac_word... " >&6; }
4091if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4092 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4093else
4094 if test -n "$ac_ct_CC"; then
4095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4096else
4097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098for as_dir in $PATH
4099do
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4104 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4106 break 2
4107 fi
4108done
81ecdfbb
RW
4109 done
4110IFS=$as_save_IFS
c6b750e1
DJ
4111
4112fi
4113fi
4114ac_ct_CC=$ac_cv_prog_ac_ct_CC
4115if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4117$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4118else
81ecdfbb
RW
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120$as_echo "no" >&6; }
c6b750e1
DJ
4121fi
4122
81ecdfbb
RW
4123 if test "x$ac_ct_CC" = x; then
4124 CC=""
4125 else
4126 case $cross_compiling:$ac_tool_warned in
4127yes:)
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4130ac_tool_warned=yes ;;
4131esac
4132 CC=$ac_ct_CC
4133 fi
c6b750e1
DJ
4134else
4135 CC="$ac_cv_prog_CC"
4136fi
4137
4138if test -z "$CC"; then
81ecdfbb
RW
4139 if test -n "$ac_tool_prefix"; then
4140 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4141set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143$as_echo_n "checking for $ac_word... " >&6; }
4144if test "${ac_cv_prog_CC+set}" = set; then :
4145 $as_echo_n "(cached) " >&6
9e07f89d
NN
4146else
4147 if test -n "$CC"; then
4148 ac_cv_prog_CC="$CC" # Let the user override the test.
4149else
c6b750e1
DJ
4150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151for as_dir in $PATH
4152do
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4157 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4159 break 2
4160 fi
4161done
81ecdfbb
RW
4162 done
4163IFS=$as_save_IFS
c6b750e1 4164
9e07f89d
NN
4165fi
4166fi
c6b750e1 4167CC=$ac_cv_prog_CC
9e07f89d 4168if test -n "$CC"; then
81ecdfbb
RW
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4170$as_echo "$CC" >&6; }
c6b750e1 4171else
81ecdfbb
RW
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173$as_echo "no" >&6; }
c6b750e1
DJ
4174fi
4175
c6b750e1 4176
81ecdfbb 4177 fi
c6b750e1 4178fi
9e07f89d
NN
4179if test -z "$CC"; then
4180 # Extract the first word of "cc", so it can be a program name with args.
4181set dummy cc; ac_word=$2
81ecdfbb
RW
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183$as_echo_n "checking for $ac_word... " >&6; }
4184if test "${ac_cv_prog_CC+set}" = set; then :
4185 $as_echo_n "(cached) " >&6
9e07f89d
NN
4186else
4187 if test -n "$CC"; then
4188 ac_cv_prog_CC="$CC" # Let the user override the test.
4189else
9e07f89d 4190 ac_prog_rejected=no
c6b750e1
DJ
4191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192for as_dir in $PATH
4193do
4194 IFS=$as_save_IFS
4195 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
4198 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4199 ac_prog_rejected=yes
4200 continue
4201 fi
4202 ac_cv_prog_CC="cc"
81ecdfbb 4203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4204 break 2
4205 fi
4206done
81ecdfbb
RW
4207 done
4208IFS=$as_save_IFS
c6b750e1 4209
9e07f89d
NN
4210if test $ac_prog_rejected = yes; then
4211 # We found a bogon in the path, so make sure we never use it.
4212 set dummy $ac_cv_prog_CC
4213 shift
c6b750e1 4214 if test $# != 0; then
9e07f89d
NN
4215 # We chose a different compiler from the bogus one.
4216 # However, it has the same basename, so the bogon will be chosen
4217 # first if we set CC to just the basename; use the full file name.
4218 shift
c6b750e1 4219 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4220 fi
4221fi
4222fi
4223fi
c6b750e1 4224CC=$ac_cv_prog_CC
9e07f89d 4225if test -n "$CC"; then
81ecdfbb
RW
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4227$as_echo "$CC" >&6; }
9e07f89d 4228else
81ecdfbb
RW
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230$as_echo "no" >&6; }
9e07f89d
NN
4231fi
4232
81ecdfbb 4233
c6b750e1
DJ
4234fi
4235if test -z "$CC"; then
4236 if test -n "$ac_tool_prefix"; then
81ecdfbb 4237 for ac_prog in cl.exe
c6b750e1
DJ
4238 do
4239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4240set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242$as_echo_n "checking for $ac_word... " >&6; }
4243if test "${ac_cv_prog_CC+set}" = set; then :
4244 $as_echo_n "(cached) " >&6
9e07f89d
NN
4245else
4246 if test -n "$CC"; then
4247 ac_cv_prog_CC="$CC" # Let the user override the test.
4248else
c6b750e1
DJ
4249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250for as_dir in $PATH
4251do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4256 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4258 break 2
376a0e54 4259 fi
c6b750e1 4260done
81ecdfbb
RW
4261 done
4262IFS=$as_save_IFS
cac3d6c4 4263
c6b750e1
DJ
4264fi
4265fi
4266CC=$ac_cv_prog_CC
4267if test -n "$CC"; then
81ecdfbb
RW
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4269$as_echo "$CC" >&6; }
cac3d6c4 4270else
81ecdfbb
RW
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272$as_echo "no" >&6; }
9e07f89d 4273fi
cac3d6c4 4274
81ecdfbb 4275
c6b750e1
DJ
4276 test -n "$CC" && break
4277 done
cac3d6c4 4278fi
c6b750e1
DJ
4279if test -z "$CC"; then
4280 ac_ct_CC=$CC
81ecdfbb 4281 for ac_prog in cl.exe
c6b750e1
DJ
4282do
4283 # Extract the first word of "$ac_prog", so it can be a program name with args.
4284set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4286$as_echo_n "checking for $ac_word... " >&6; }
4287if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4288 $as_echo_n "(cached) " >&6
cac3d6c4 4289else
c6b750e1
DJ
4290 if test -n "$ac_ct_CC"; then
4291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4292else
c6b750e1
DJ
4293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294for as_dir in $PATH
4295do
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4300 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4302 break 2
4303 fi
4304done
81ecdfbb
RW
4305 done
4306IFS=$as_save_IFS
c6b750e1 4307
cac3d6c4
CM
4308fi
4309fi
c6b750e1
DJ
4310ac_ct_CC=$ac_cv_prog_ac_ct_CC
4311if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4313$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4314else
81ecdfbb
RW
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316$as_echo "no" >&6; }
cac3d6c4 4317fi
376a0e54 4318
81ecdfbb 4319
c6b750e1
DJ
4320 test -n "$ac_ct_CC" && break
4321done
4322
81ecdfbb
RW
4323 if test "x$ac_ct_CC" = x; then
4324 CC=""
4325 else
4326 case $cross_compiling:$ac_tool_warned in
4327yes:)
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4330ac_tool_warned=yes ;;
4331esac
4332 CC=$ac_ct_CC
4333 fi
c6b750e1
DJ
4334fi
4335
4336fi
4337
4338
81ecdfbb
RW
4339test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4341as_fn_error "no acceptable C compiler found in \$PATH
4342See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4343
4344# Provide some information about the compiler.
81ecdfbb
RW
4345$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4346set X $ac_compile
4347ac_compiler=$2
4348for ac_option in --version -v -V -qversion; do
4349 { { ac_try="$ac_compiler $ac_option >&5"
4350case "(($ac_try" in
4351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4353esac
4354eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4355$as_echo "$ac_try_echo"; } >&5
4356 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4357 ac_status=$?
81ecdfbb
RW
4358 if test -s conftest.err; then
4359 sed '10a\
4360... rest of stderr output deleted ...
4361 10q' conftest.err >conftest.er1
4362 cat conftest.er1 >&5
4363 rm -f conftest.er1 conftest.err
4364 fi
4365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4366 test $ac_status = 0; }
4367done
c6b750e1 4368
81ecdfbb 4369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4370/* end confdefs.h. */
4371
4372int
4373main ()
4374{
4375
4376 ;
4377 return 0;
4378}
4379_ACEOF
4380ac_clean_files_save=$ac_clean_files
81ecdfbb 4381ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4382# Try to create an executable without -o first, disregard a.out.
4383# It will help us diagnose broken compilers, and finding out an intuition
4384# of exeext.
81ecdfbb
RW
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4386$as_echo_n "checking for C compiler default output file name... " >&6; }
4387ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4388
4389# The possible output files:
4390ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4391
4392ac_rmfiles=
4393for ac_file in $ac_files
4394do
4395 case $ac_file in
4396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4397 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4398 esac
4399done
4400rm -f $ac_rmfiles
4401
4402if { { ac_try="$ac_link_default"
4403case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4406esac
4407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408$as_echo "$ac_try_echo"; } >&5
4409 (eval "$ac_link_default") 2>&5
c6b750e1 4410 ac_status=$?
81ecdfbb
RW
4411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412 test $ac_status = 0; }; then :
4413 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4414# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4415# in a Makefile. We should not override ac_cv_exeext if it was cached,
4416# so that the user can short-circuit this test for compilers unknown to
4417# Autoconf.
4418for ac_file in $ac_files ''
c6b750e1
DJ
4419do
4420 test -f "$ac_file" || continue
4421 case $ac_file in
81ecdfbb 4422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4423 ;;
4424 [ab].out )
4425 # We found the default executable, but exeext='' is most
4426 # certainly right.
4427 break;;
4428 *.* )
81ecdfbb
RW
4429 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4430 then :; else
4431 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4432 fi
4433 # We set ac_cv_exeext here because the later test for it is not
4434 # safe: cross compilers may not add the suffix if given an `-o'
4435 # argument, so we may need to know it at that point already.
4436 # Even if this section looks crufty: it has the advantage of
4437 # actually working.
c6b750e1
DJ
4438 break;;
4439 * )
4440 break;;
4441 esac
4442done
81ecdfbb
RW
4443test "$ac_cv_exeext" = no && ac_cv_exeext=
4444
c6b750e1 4445else
81ecdfbb
RW
4446 ac_file=''
4447fi
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4449$as_echo "$ac_file" >&6; }
4450if test -z "$ac_file"; then :
4451 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4452sed 's/^/| /' conftest.$ac_ext >&5
4453
81ecdfbb
RW
4454{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4456{ as_fn_set_status 77
4457as_fn_error "C compiler cannot create executables
4458See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4459fi
c6b750e1 4460ac_exeext=$ac_cv_exeext
c6b750e1 4461
81ecdfbb 4462# Check that the compiler produces executables we can run. If not, either
c6b750e1 4463# the compiler is broken, or we cross compile.
81ecdfbb
RW
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4465$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4466# If not cross compiling, check that we can run a simple program.
4467if test "$cross_compiling" != yes; then
4468 if { ac_try='./$ac_file'
81ecdfbb
RW
4469 { { case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472esac
4473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4474$as_echo "$ac_try_echo"; } >&5
4475 (eval "$ac_try") 2>&5
c6b750e1 4476 ac_status=$?
81ecdfbb
RW
4477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4478 test $ac_status = 0; }; }; then
c6b750e1
DJ
4479 cross_compiling=no
4480 else
4481 if test "$cross_compiling" = maybe; then
4482 cross_compiling=yes
4483 else
81ecdfbb
RW
4484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4486as_fn_error "cannot run C compiled programs.
c6b750e1 4487If you meant to cross compile, use \`--host'.
81ecdfbb 4488See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4489 fi
4490 fi
4491fi
81ecdfbb
RW
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4493$as_echo "yes" >&6; }
c6b750e1 4494
81ecdfbb 4495rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4496ac_clean_files=$ac_clean_files_save
81ecdfbb 4497# Check that the compiler produces executables we can run. If not, either
c6b750e1 4498# the compiler is broken, or we cross compile.
81ecdfbb
RW
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4500$as_echo_n "checking whether we are cross compiling... " >&6; }
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4502$as_echo "$cross_compiling" >&6; }
4503
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4505$as_echo_n "checking for suffix of executables... " >&6; }
4506if { { ac_try="$ac_link"
4507case "(($ac_try" in
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4510esac
4511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4512$as_echo "$ac_try_echo"; } >&5
4513 (eval "$ac_link") 2>&5
c6b750e1 4514 ac_status=$?
81ecdfbb
RW
4515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516 test $ac_status = 0; }; then :
c6b750e1
DJ
4517 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4518# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4519# work properly (i.e., refer to `conftest.exe'), while it won't with
4520# `rm'.
4521for ac_file in conftest.exe conftest conftest.*; do
4522 test -f "$ac_file" || continue
4523 case $ac_file in
81ecdfbb 4524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4525 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4526 break;;
4527 * ) break;;
4528 esac
4529done
4530else
81ecdfbb
RW
4531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4533as_fn_error "cannot compute suffix of executables: cannot compile and link
4534See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4535fi
c6b750e1 4536rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4538$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4539
4540rm -f conftest.$ac_ext
4541EXEEXT=$ac_cv_exeext
4542ac_exeext=$EXEEXT
81ecdfbb
RW
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4544$as_echo_n "checking for suffix of object files... " >&6; }
4545if test "${ac_cv_objext+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
c6b750e1 4547else
81ecdfbb 4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4549/* end confdefs.h. */
4550
4551int
4552main ()
4553{
4554
4555 ;
4556 return 0;
4557}
4558_ACEOF
4559rm -f conftest.o conftest.obj
81ecdfbb
RW
4560if { { ac_try="$ac_compile"
4561case "(($ac_try" in
4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4564esac
4565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4566$as_echo "$ac_try_echo"; } >&5
4567 (eval "$ac_compile") 2>&5
c6b750e1 4568 ac_status=$?
81ecdfbb
RW
4569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4570 test $ac_status = 0; }; then :
4571 for ac_file in conftest.o conftest.obj conftest.*; do
4572 test -f "$ac_file" || continue;
c6b750e1 4573 case $ac_file in
81ecdfbb 4574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4575 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4576 break;;
4577 esac
4578done
cac3d6c4 4579else
81ecdfbb 4580 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4581sed 's/^/| /' conftest.$ac_ext >&5
4582
81ecdfbb
RW
4583{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4585as_fn_error "cannot compute suffix of object files: cannot compile
4586See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4587fi
c6b750e1
DJ
4588rm -f conftest.$ac_cv_objext conftest.$ac_ext
4589fi
81ecdfbb
RW
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4591$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4592OBJEXT=$ac_cv_objext
4593ac_objext=$OBJEXT
81ecdfbb
RW
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4595$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4596if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4597 $as_echo_n "(cached) " >&6
c6b750e1 4598else
81ecdfbb 4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4600/* end confdefs.h. */
4601
4602int
4603main ()
4604{
4605#ifndef __GNUC__
4606 choke me
4607#endif
4608
4609 ;
4610 return 0;
4611}
4612_ACEOF
81ecdfbb 4613if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4614 ac_compiler_gnu=yes
4615else
81ecdfbb 4616 ac_compiler_gnu=no
c6b750e1 4617fi
81ecdfbb 4618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4619ac_cv_c_compiler_gnu=$ac_compiler_gnu
4620
4621fi
81ecdfbb
RW
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4623$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4624if test $ac_compiler_gnu = yes; then
4625 GCC=yes
4626else
4627 GCC=
4628fi
c6b750e1
DJ
4629ac_test_CFLAGS=${CFLAGS+set}
4630ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4632$as_echo_n "checking whether $CC accepts -g... " >&6; }
4633if test "${ac_cv_prog_cc_g+set}" = set; then :
4634 $as_echo_n "(cached) " >&6
4635else
4636 ac_save_c_werror_flag=$ac_c_werror_flag
4637 ac_c_werror_flag=yes
4638 ac_cv_prog_cc_g=no
4639 CFLAGS="-g"
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4641/* end confdefs.h. */
4642
4643int
4644main ()
4645{
4646
4647 ;
4648 return 0;
4649}
4650_ACEOF
81ecdfbb 4651if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4652 ac_cv_prog_cc_g=yes
4653else
81ecdfbb
RW
4654 CFLAGS=""
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656/* end confdefs.h. */
4657
4658int
4659main ()
4660{
4661
4662 ;
4663 return 0;
4664}
4665_ACEOF
4666if ac_fn_c_try_compile "$LINENO"; then :
4667
4668else
4669 ac_c_werror_flag=$ac_save_c_werror_flag
4670 CFLAGS="-g"
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672/* end confdefs.h. */
cac3d6c4 4673
81ecdfbb
RW
4674int
4675main ()
4676{
4677
4678 ;
4679 return 0;
4680}
4681_ACEOF
4682if ac_fn_c_try_compile "$LINENO"; then :
4683 ac_cv_prog_cc_g=yes
4684fi
4685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4686fi
81ecdfbb 4687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4688fi
81ecdfbb
RW
4689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 ac_c_werror_flag=$ac_save_c_werror_flag
4691fi
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4693$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4694if test "$ac_test_CFLAGS" = set; then
c6b750e1 4695 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4696elif test $ac_cv_prog_cc_g = yes; then
4697 if test "$GCC" = yes; then
4698 CFLAGS="-g -O2"
4699 else
4700 CFLAGS="-g"
4701 fi
4702else
4703 if test "$GCC" = yes; then
4704 CFLAGS="-O2"
4705 else
4706 CFLAGS=
4707 fi
4708fi
81ecdfbb
RW
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4710$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4711if test "${ac_cv_prog_cc_c89+set}" = set; then :
4712 $as_echo_n "(cached) " >&6
c6b750e1 4713else
81ecdfbb 4714 ac_cv_prog_cc_c89=no
c6b750e1 4715ac_save_CC=$CC
81ecdfbb 4716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4717/* end confdefs.h. */
4718#include <stdarg.h>
4719#include <stdio.h>
4720#include <sys/types.h>
4721#include <sys/stat.h>
4722/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4723struct buf { int x; };
4724FILE * (*rcsopen) (struct buf *, struct stat *, int);
4725static char *e (p, i)
4726 char **p;
4727 int i;
4728{
4729 return p[i];
4730}
4731static char *f (char * (*g) (char **, int), char **p, ...)
4732{
4733 char *s;
4734 va_list v;
4735 va_start (v,p);
4736 s = g (p, va_arg (v,int));
4737 va_end (v);
4738 return s;
4739}
4740
4741/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4742 function prototypes and stuff, but not '\xHH' hex character constants.
4743 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4744 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4745 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4746 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4747 that's true only with -std. */
c6b750e1
DJ
4748int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4749
81ecdfbb
RW
4750/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4751 inside strings and character constants. */
4752#define FOO(x) 'x'
4753int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4754
c6b750e1
DJ
4755int test (int i, double x);
4756struct s1 {int (*f) (int a);};
4757struct s2 {int (*f) (double a);};
4758int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4759int argc;
4760char **argv;
4761int
4762main ()
4763{
4764return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4765 ;
4766 return 0;
4767}
4768_ACEOF
81ecdfbb
RW
4769for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4770 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4771do
4772 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4773 if ac_fn_c_try_compile "$LINENO"; then :
4774 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4775fi
81ecdfbb
RW
4776rm -f core conftest.err conftest.$ac_objext
4777 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4778done
81ecdfbb 4779rm -f conftest.$ac_ext
c6b750e1
DJ
4780CC=$ac_save_CC
4781
4782fi
81ecdfbb
RW
4783# AC_CACHE_VAL
4784case "x$ac_cv_prog_cc_c89" in
4785 x)
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4787$as_echo "none needed" >&6; } ;;
4788 xno)
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4790$as_echo "unsupported" >&6; } ;;
c6b750e1 4791 *)
81ecdfbb
RW
4792 CC="$CC $ac_cv_prog_cc_c89"
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4794$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4795esac
81ecdfbb 4796if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4797
c6b750e1
DJ
4798fi
4799
c6b750e1
DJ
4800ac_ext=c
4801ac_cpp='$CPP $CPPFLAGS'
4802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4805
81ecdfbb 4806ac_ext=cpp
18f6b6ee
PB
4807ac_cpp='$CXXCPP $CPPFLAGS'
4808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4811if test -z "$CXX"; then
4812 if test -n "$CCC"; then
4813 CXX=$CCC
4814 else
4815 if test -n "$ac_tool_prefix"; then
4816 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4817 do
4818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4819set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821$as_echo_n "checking for $ac_word... " >&6; }
4822if test "${ac_cv_prog_CXX+set}" = set; then :
4823 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4824else
4825 if test -n "$CXX"; then
4826 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4827else
4828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829for as_dir in $PATH
4830do
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4835 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4837 break 2
4838 fi
4839done
81ecdfbb
RW
4840 done
4841IFS=$as_save_IFS
512b7dfb 4842
18f6b6ee
PB
4843fi
4844fi
4845CXX=$ac_cv_prog_CXX
4846if test -n "$CXX"; then
81ecdfbb
RW
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4848$as_echo "$CXX" >&6; }
18f6b6ee 4849else
81ecdfbb
RW
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851$as_echo "no" >&6; }
18f6b6ee
PB
4852fi
4853
81ecdfbb 4854
18f6b6ee
PB
4855 test -n "$CXX" && break
4856 done
4857fi
4858if test -z "$CXX"; then
4859 ac_ct_CXX=$CXX
81ecdfbb 4860 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4861do
4862 # Extract the first word of "$ac_prog", so it can be a program name with args.
4863set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865$as_echo_n "checking for $ac_word... " >&6; }
4866if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4868else
4869 if test -n "$ac_ct_CXX"; then
4870 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4871else
4872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873for as_dir in $PATH
4874do
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4879 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4881 break 2
512b7dfb 4882 fi
18f6b6ee 4883done
81ecdfbb
RW
4884 done
4885IFS=$as_save_IFS
512b7dfb 4886
18f6b6ee
PB
4887fi
4888fi
4889ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4890if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4892$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4893else
81ecdfbb
RW
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895$as_echo "no" >&6; }
18f6b6ee
PB
4896fi
4897
81ecdfbb 4898
18f6b6ee
PB
4899 test -n "$ac_ct_CXX" && break
4900done
18f6b6ee 4901
81ecdfbb
RW
4902 if test "x$ac_ct_CXX" = x; then
4903 CXX="g++"
4904 else
4905 case $cross_compiling:$ac_tool_warned in
4906yes:)
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4909ac_tool_warned=yes ;;
4910esac
4911 CXX=$ac_ct_CXX
4912 fi
18f6b6ee
PB
4913fi
4914
81ecdfbb
RW
4915 fi
4916fi
18f6b6ee 4917# Provide some information about the compiler.
81ecdfbb
RW
4918$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4919set X $ac_compile
4920ac_compiler=$2
4921for ac_option in --version -v -V -qversion; do
4922 { { ac_try="$ac_compiler $ac_option >&5"
4923case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926esac
4927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4928$as_echo "$ac_try_echo"; } >&5
4929 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4930 ac_status=$?
81ecdfbb
RW
4931 if test -s conftest.err; then
4932 sed '10a\
4933... rest of stderr output deleted ...
4934 10q' conftest.err >conftest.er1
4935 cat conftest.er1 >&5
4936 rm -f conftest.er1 conftest.err
4937 fi
4938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4939 test $ac_status = 0; }
4940done
18f6b6ee 4941
81ecdfbb
RW
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4943$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4944if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
18f6b6ee 4946else
81ecdfbb 4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4948/* end confdefs.h. */
4949
4950int
4951main ()
4952{
4953#ifndef __GNUC__
4954 choke me
4955#endif
4956
4957 ;
4958 return 0;
4959}
4960_ACEOF
81ecdfbb 4961if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4962 ac_compiler_gnu=yes
4963else
81ecdfbb 4964 ac_compiler_gnu=no
18f6b6ee 4965fi
81ecdfbb 4966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4967ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4968
4969fi
81ecdfbb
RW
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4971$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4972if test $ac_compiler_gnu = yes; then
4973 GXX=yes
4974else
4975 GXX=
4976fi
18f6b6ee
PB
4977ac_test_CXXFLAGS=${CXXFLAGS+set}
4978ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4980$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4981if test "${ac_cv_prog_cxx_g+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4983else
4984 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4985 ac_cxx_werror_flag=yes
4986 ac_cv_prog_cxx_g=no
4987 CXXFLAGS="-g"
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4989/* end confdefs.h. */
4990
4991int
4992main ()
4993{
4994
4995 ;
4996 return 0;
4997}
4998_ACEOF
81ecdfbb 4999if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5000 ac_cv_prog_cxx_g=yes
5001else
81ecdfbb
RW
5002 CXXFLAGS=""
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5004/* end confdefs.h. */
81ecdfbb 5005
18f6b6ee
PB
5006int
5007main ()
5008{
81ecdfbb 5009
18f6b6ee
PB
5010 ;
5011 return 0;
5012}
5013_ACEOF
81ecdfbb 5014if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 5015
81ecdfbb
RW
5016else
5017 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5018 CXXFLAGS="-g"
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5020/* end confdefs.h. */
81ecdfbb 5021
18f6b6ee
PB
5022int
5023main ()
5024{
81ecdfbb 5025
18f6b6ee
PB
5026 ;
5027 return 0;
5028}
5029_ACEOF
81ecdfbb
RW
5030if ac_fn_cxx_try_compile "$LINENO"; then :
5031 ac_cv_prog_cxx_g=yes
18f6b6ee 5032fi
81ecdfbb
RW
5033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034fi
5035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036fi
5037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5039fi
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5041$as_echo "$ac_cv_prog_cxx_g" >&6; }
5042if test "$ac_test_CXXFLAGS" = set; then
5043 CXXFLAGS=$ac_save_CXXFLAGS
5044elif test $ac_cv_prog_cxx_g = yes; then
5045 if test "$GXX" = yes; then
5046 CXXFLAGS="-g -O2"
5047 else
5048 CXXFLAGS="-g"
5049 fi
5050else
5051 if test "$GXX" = yes; then
5052 CXXFLAGS="-O2"
5053 else
5054 CXXFLAGS=
5055 fi
18f6b6ee 5056fi
18f6b6ee
PB
5057ac_ext=c
5058ac_cpp='$CPP $CPPFLAGS'
5059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061ac_compiler_gnu=$ac_cv_c_compiler_gnu
5062
5063
5064# We must set the default linker to the linker used by gcc for the correct
5065# operation of libtool. If LD is not defined and we are using gcc, try to
5066# set the LD default to the ld used by gcc.
5067if test -z "$LD"; then
5068 if test "$GCC" = yes; then
5069 case $build in
5070 *-*-mingw*)
5071 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5072 *)
5073 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5074 esac
5075 case $gcc_prog_ld in
5076 # Accept absolute paths.
5077 [\\/]* | [A-Za-z]:[\\/]*)
5078 LD="$gcc_prog_ld" ;;
5079 esac
5080 fi
512b7dfb
PB
5081fi
5082
b3676d82
EB
5083# Check whether -static-libstdc++ -static-libgcc is supported.
5084have_static_libs=no
5085if test "$GCC" = yes; then
5086 saved_LDFLAGS="$LDFLAGS"
5087
5088 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5090$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5091 ac_ext=cpp
5092ac_cpp='$CXXCPP $CPPFLAGS'
5093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5096
5097
5098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099/* end confdefs.h. */
a882be68
EB
5100
5101#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5102#error -static-libstdc++ not implemented
5103#endif
b3676d82
EB
5104int main() {}
5105_ACEOF
5106if ac_fn_cxx_try_link "$LINENO"; then :
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5108$as_echo "yes" >&6; }; have_static_libs=yes
5109else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111$as_echo "no" >&6; }
5112fi
5113rm -f core conftest.err conftest.$ac_objext \
5114 conftest$ac_exeext conftest.$ac_ext
5115 ac_ext=c
5116ac_cpp='$CPP $CPPFLAGS'
5117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120
5121
5122 LDFLAGS="$saved_LDFLAGS"
5123fi
5124
512b7dfb
PB
5125
5126
5127
c6b750e1 5128if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5129 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5130set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132$as_echo_n "checking for $ac_word... " >&6; }
5133if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
9e07f89d 5135else
512b7dfb
PB
5136 if test -n "$GNATBIND"; then
5137 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5138else
c6b750e1
DJ
5139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140for as_dir in $PATH
5141do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5146 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5148 break 2
5149 fi
5150done
81ecdfbb
RW
5151 done
5152IFS=$as_save_IFS
c6b750e1 5153
9e07f89d
NN
5154fi
5155fi
512b7dfb
PB
5156GNATBIND=$ac_cv_prog_GNATBIND
5157if test -n "$GNATBIND"; then
81ecdfbb
RW
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5159$as_echo "$GNATBIND" >&6; }
9e07f89d 5160else
81ecdfbb
RW
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162$as_echo "no" >&6; }
9e07f89d
NN
5163fi
5164
81ecdfbb 5165
c6b750e1 5166fi
512b7dfb
PB
5167if test -z "$ac_cv_prog_GNATBIND"; then
5168 ac_ct_GNATBIND=$GNATBIND
5169 # Extract the first word of "gnatbind", so it can be a program name with args.
5170set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172$as_echo_n "checking for $ac_word... " >&6; }
5173if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
9e07f89d 5175else
512b7dfb
PB
5176 if test -n "$ac_ct_GNATBIND"; then
5177 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5178else
c6b750e1
DJ
5179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5186 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5188 break 2
5189 fi
5190done
81ecdfbb
RW
5191 done
5192IFS=$as_save_IFS
c6b750e1 5193
9e07f89d
NN
5194fi
5195fi
512b7dfb
PB
5196ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5197if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5199$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5200else
81ecdfbb
RW
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202$as_echo "no" >&6; }
9e07f89d
NN
5203fi
5204
81ecdfbb
RW
5205 if test "x$ac_ct_GNATBIND" = x; then
5206 GNATBIND="no"
5207 else
5208 case $cross_compiling:$ac_tool_warned in
5209yes:)
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212ac_tool_warned=yes ;;
5213esac
5214 GNATBIND=$ac_ct_GNATBIND
5215 fi
24ff9987 5216else
512b7dfb 5217 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5218fi
5219
7df2cd5d 5220if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5221 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5222set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224$as_echo_n "checking for $ac_word... " >&6; }
5225if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5226 $as_echo_n "(cached) " >&6
7df2cd5d 5227else
512b7dfb
PB
5228 if test -n "$GNATMAKE"; then
5229 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5230else
5231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5238 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5240 break 2
5241 fi
5242done
81ecdfbb
RW
5243 done
5244IFS=$as_save_IFS
7df2cd5d
PB
5245
5246fi
5247fi
512b7dfb
PB
5248GNATMAKE=$ac_cv_prog_GNATMAKE
5249if test -n "$GNATMAKE"; then
81ecdfbb
RW
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5251$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5252else
81ecdfbb
RW
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254$as_echo "no" >&6; }
7df2cd5d
PB
5255fi
5256
81ecdfbb 5257
7df2cd5d 5258fi
512b7dfb
PB
5259if test -z "$ac_cv_prog_GNATMAKE"; then
5260 ac_ct_GNATMAKE=$GNATMAKE
5261 # Extract the first word of "gnatmake", so it can be a program name with args.
5262set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264$as_echo_n "checking for $ac_word... " >&6; }
5265if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
7df2cd5d 5267else
512b7dfb
PB
5268 if test -n "$ac_ct_GNATMAKE"; then
5269 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5270else
5271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272for as_dir in $PATH
5273do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5278 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5280 break 2
5281 fi
5282done
81ecdfbb
RW
5283 done
5284IFS=$as_save_IFS
7df2cd5d 5285
7df2cd5d
PB
5286fi
5287fi
512b7dfb
PB
5288ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5289if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5291$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5292else
81ecdfbb
RW
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294$as_echo "no" >&6; }
7df2cd5d
PB
5295fi
5296
81ecdfbb
RW
5297 if test "x$ac_ct_GNATMAKE" = x; then
5298 GNATMAKE="no"
5299 else
5300 case $cross_compiling:$ac_tool_warned in
5301yes:)
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5304ac_tool_warned=yes ;;
5305esac
5306 GNATMAKE=$ac_ct_GNATMAKE
5307 fi
7df2cd5d 5308else
512b7dfb 5309 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5310fi
5311
81ecdfbb
RW
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5313$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5314if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5315 $as_echo_n "(cached) " >&6
9e07f89d
NN
5316else
5317 cat >conftest.adb <<EOF
5318procedure conftest is begin null; end conftest;
5319EOF
5320acx_cv_cc_gcc_supports_ada=no
5321# There is a bug in old released versions of GCC which causes the
5322# driver to exit successfully when the appropriate language module
5323# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5324# Therefore we must check for the error message as well as an
5325# unsuccessful exit.
b8908782
DD
5326# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5327# given a .adb file, but produce no object file. So we must check
5328# if an object file was really produced to guard against this.
9e07f89d 5329errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5330if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5331 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5332fi
5333rm -f conftest.*
5334fi
81ecdfbb
RW
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5336$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5337
64b986c0 5338if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5339 have_gnat=yes
5340else
5341 have_gnat=no
5342fi
5343
81ecdfbb
RW
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5345$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5346if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
b8908782
DD
5348else
5349 echo abfoo >t1
5350 echo cdfoo >t2
5351 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5352 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5353 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5354 :
5355 else
5356 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5357 fi
5358 fi
b8908782
DD
5359 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5360 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5361 :
b8908782
DD
5362 else
5363 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5364 fi
5365 fi
5366 rm t1 t2
5367
5368fi
81ecdfbb
RW
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5370$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5371do_compare="$gcc_cv_prog_cmp_skip"
5372
5373
9e07f89d 5374
ffdd6afc
ILT
5375# Check whether --enable-bootstrap was given.
5376if test "${enable_bootstrap+set}" = set; then :
5377 enableval=$enable_bootstrap;
5378else
5379 enable_bootstrap=default
5380fi
5381
5382
5383# Issue errors and warnings for invalid/strange bootstrap combinations.
5384if test -r $srcdir/gcc/configure; then
5385 have_compiler=yes
5386else
5387 have_compiler=no
5388fi
5389
5390case "$have_compiler:$host:$target:$enable_bootstrap" in
5391 *:*:*:no) ;;
5392
5393 # Default behavior. Enable bootstrap if we have a compiler
5394 # and we are in a native configuration.
5395 yes:$build:$build:default)
5396 enable_bootstrap=yes ;;
5397
5398 *:*:*:default)
5399 enable_bootstrap=no ;;
5400
5401 # We have a compiler and we are in a native configuration, bootstrap is ok
5402 yes:$build:$build:yes)
5403 ;;
5404
5405 # Other configurations, but we have a compiler. Assume the user knows
5406 # what he's doing.
5407 yes:*:*:yes)
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5409$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5410 ;;
5411
5412 # No compiler: if they passed --enable-bootstrap explicitly, fail
5413 no:*:*:yes)
5414 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5415
5416 # Fail if wrong command line
5417 *)
5418 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5419 ;;
5420esac
5421
d5f2ee2e
KG
5422# Used for setting $lt_cv_objdir
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5424$as_echo_n "checking for objdir... " >&6; }
5425if test "${lt_cv_objdir+set}" = set; then :
5426 $as_echo_n "(cached) " >&6
5427else
5428 rm -f .libs 2>/dev/null
5429mkdir .libs 2>/dev/null
5430if test -d .libs; then
5431 lt_cv_objdir=.libs
5432else
5433 # MS-DOS does not allow filenames that begin with a dot.
5434 lt_cv_objdir=_libs
5435fi
5436rmdir .libs 2>/dev/null
5437fi
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5439$as_echo "$lt_cv_objdir" >&6; }
5440objdir=$lt_cv_objdir
5441
5442
5443
5444
5445
5446cat >>confdefs.h <<_ACEOF
5447#define LT_OBJDIR "$lt_cv_objdir/"
5448_ACEOF
5449
5450
5451
e8a5fa9c 5452# Check for GMP, MPFR and MPC
d9b76ff9 5453gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5454gmpinc=
4b900473 5455have_gmp=no
e8a5fa9c
RW
5456
5457# Specify a location for mpc
5458# check for this first so it ends up on the link line before mpfr.
5459
81ecdfbb
RW
5460# Check whether --with-mpc was given.
5461if test "${with_mpc+set}" = set; then :
5462 withval=$with_mpc;
5463fi
e8a5fa9c 5464
e8a5fa9c 5465
e552509b 5466# Check whether --with-mpc-include was given.
81ecdfbb
RW
5467if test "${with_mpc_include+set}" = set; then :
5468 withval=$with_mpc_include;
5469fi
e8a5fa9c 5470
e8a5fa9c 5471
e552509b 5472# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5473if test "${with_mpc_lib+set}" = set; then :
5474 withval=$with_mpc_lib;
5475fi
e8a5fa9c 5476
e8a5fa9c
RW
5477
5478if test "x$with_mpc" != x; then
d9b76ff9
KG
5479 gmplibs="-L$with_mpc/lib $gmplibs"
5480 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5481fi
5482if test "x$with_mpc_include" != x; then
d9b76ff9 5483 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5484fi
5485if test "x$with_mpc_lib" != x; then
d9b76ff9 5486 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5487fi
5488if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5489 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5490 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5491 # Do not test the mpc version. Assume that it is sufficient, since
5492 # it is in the source tree, and the library has not been built yet
5493 # but it would be included on the link line in the version check below
5494 # hence making the test fail.
d9b76ff9 5495 have_gmp=yes
e8a5fa9c 5496fi
4b900473 5497
11b04d1f
DD
5498# Specify a location for mpfr
5499# check for this first so it ends up on the link line before gmp.
c6b750e1 5500
81ecdfbb
RW
5501# Check whether --with-mpfr-dir was given.
5502if test "${with_mpfr_dir+set}" = set; then :
5503 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5504Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5505fi
5506
11b04d1f
DD
5507
5508
81ecdfbb
RW
5509# Check whether --with-mpfr was given.
5510if test "${with_mpfr+set}" = set; then :
5511 withval=$with_mpfr;
5512fi
c6b750e1 5513
11b04d1f 5514
e552509b 5515# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5516if test "${with_mpfr_include+set}" = set; then :
5517 withval=$with_mpfr_include;
5518fi
c6b750e1 5519
8a0d8a5c 5520
e552509b 5521# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5522if test "${with_mpfr_lib+set}" = set; then :
5523 withval=$with_mpfr_lib;
5524fi
8a0d8a5c 5525
11b04d1f
DD
5526
5527if test "x$with_mpfr" != x; then
5528 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5529 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5530fi
8a0d8a5c 5531if test "x$with_mpfr_include" != x; then
d9b76ff9 5532 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5533fi
5534if test "x$with_mpfr_lib" != x; then
5535 gmplibs="-L$with_mpfr_lib $gmplibs"
5536fi
4b900473 5537if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21
NC
5538 # MPFR v3.1.0 moved the sources into a src sub-directory.
5539 if test -d ${srcdir}/mpfr/src; then
5540 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5541 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5542 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5543 else
5544 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5545 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5546 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5547 fi
4b900473
PB
5548 # Do not test the mpfr version. Assume that it is sufficient, since
5549 # it is in the source tree, and the library has not been built yet
5550 # but it would be included on the link line in the version check below
5551 # hence making the test fail.
5552 have_gmp=yes
5553fi
11b04d1f 5554
4b1cb4fe 5555# Specify a location for gmp
c6b750e1 5556
81ecdfbb
RW
5557# Check whether --with-gmp-dir was given.
5558if test "${with_gmp_dir+set}" = set; then :
5559 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5560Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5561fi
5562
4b1cb4fe
DD
5563
5564
81ecdfbb
RW
5565# Check whether --with-gmp was given.
5566if test "${with_gmp+set}" = set; then :
5567 withval=$with_gmp;
5568fi
c6b750e1 5569
4b1cb4fe 5570
e552509b 5571# Check whether --with-gmp-include was given.
81ecdfbb
RW
5572if test "${with_gmp_include+set}" = set; then :
5573 withval=$with_gmp_include;
5574fi
c6b750e1 5575
8a0d8a5c 5576
e552509b 5577# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5578if test "${with_gmp_lib+set}" = set; then :
5579 withval=$with_gmp_lib;
5580fi
8a0d8a5c
PB
5581
5582
4b1cb4fe 5583
11b04d1f
DD
5584if test "x$with_gmp" != x; then
5585 gmplibs="-L$with_gmp/lib $gmplibs"
5586 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5587fi
8a0d8a5c
PB
5588if test "x$with_gmp_include" != x; then
5589 gmpinc="-I$with_gmp_include $gmpinc"
5590fi
5591if test "x$with_gmp_lib" != x; then
5592 gmplibs="-L$with_gmp_lib $gmplibs"
5593fi
4b900473 5594if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5595 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5596 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5597 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5598 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5599 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5600 # Do not test the gmp version. Assume that it is sufficient, since
5601 # it is in the source tree, and the library has not been built yet
5602 # but it would be included on the link line in the version check below
5603 # hence making the test fail.
5604 have_gmp=yes
5605fi
4b1cb4fe 5606
ceb92e78 5607if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5608 have_gmp=yes
5609 saved_CFLAGS="$CFLAGS"
5610 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5611 # Check for the recommended and required versions of GMP.
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5613$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5614
5615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5616/* end confdefs.h. */
5617#include "gmp.h"
5618int
5619main ()
5620{
5621
5622 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5623 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5624 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5625 choke me
5626 #endif
5627
5628 ;
5629 return 0;
5630}
5631_ACEOF
5632if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5634/* end confdefs.h. */
a6b5846e 5635#include <gmp.h>
c6b750e1
DJ
5636int
5637main ()
5638{
4b1cb4fe 5639
a6b5846e
KG
5640 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5641 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5642 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5643 choke me
5644 #endif
c6b750e1
DJ
5645
5646 ;
5647 return 0;
5648}
5649_ACEOF
81ecdfbb
RW
5650if ac_fn_c_try_compile "$LINENO"; then :
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5652$as_echo "yes" >&6; }
a6b5846e
KG
5653else
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5655$as_echo "buggy but acceptable" >&6; }
5656fi
5657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5658else
81ecdfbb
RW
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5661fi
81ecdfbb 5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5663
e8a5fa9c 5664 # If we have GMP, check the MPFR version.
4b900473 5665 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5666 # Check for the recommended and required versions of MPFR.
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5668$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5670/* end confdefs.h. */
9b134994 5671#include <gmp.h>
4b900473 5672 #include <mpfr.h>
c6b750e1
DJ
5673int
5674main ()
5675{
9b134994 5676
7ec59b9e 5677 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5687/* end confdefs.h. */
4b1cb4fe 5688#include <gmp.h>
4b900473 5689 #include <mpfr.h>
c6b750e1
DJ
5690int
5691main ()
5692{
9dbaa842 5693
a6b5846e 5694 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5695 choke me
5696 #endif
e8a5fa9c
RW
5697
5698 ;
5699 return 0;
5700}
5701_ACEOF
81ecdfbb
RW
5702if ac_fn_c_try_compile "$LINENO"; then :
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5704$as_echo "yes" >&6; }
e8a5fa9c 5705else
81ecdfbb
RW
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5707$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5708fi
81ecdfbb 5709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5710else
81ecdfbb
RW
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5713fi
81ecdfbb 5714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5715 fi
5716
5717 # Check for the MPC header version.
d9b76ff9 5718 if test x"$have_gmp" = xyes ; then
a6b5846e 5719 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5721$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5723/* end confdefs.h. */
5724#include <mpc.h>
5725int
5726main ()
5727{
5728
a6b5846e
KG
5729 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5730 choke me
5731 #endif
5732
5733 ;
5734 return 0;
5735}
5736_ACEOF
5737if ac_fn_c_try_compile "$LINENO"; then :
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739/* end confdefs.h. */
5740#include <mpc.h>
5741int
5742main ()
5743{
5744
5745 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5746 choke me
5747 #endif
5748
5749 ;
5750 return 0;
5751}
5752_ACEOF
81ecdfbb
RW
5753if ac_fn_c_try_compile "$LINENO"; then :
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5755$as_echo "yes" >&6; }
a6b5846e
KG
5756else
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5758$as_echo "buggy but acceptable" >&6; }
5759fi
5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5761else
81ecdfbb 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5763$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5764fi
81ecdfbb 5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5766 fi
5767
5768 # Now check the MPFR library.
5769 if test x"$have_gmp" = xyes; then
5770 saved_LIBS="$LIBS"
5771 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5773$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5775/* end confdefs.h. */
d9b76ff9 5776#include <mpc.h>
e8a5fa9c
RW
5777int
5778main ()
5779{
5780
5781 mpfr_t n;
5782 mpfr_t x;
d9b76ff9 5783 mpc_t c;
e8a5fa9c
RW
5784 int t;
5785 mpfr_init (n);
5786 mpfr_init (x);
5787 mpfr_atan2 (n, n, x, GMP_RNDN);
5788 mpfr_erfc (n, x, GMP_RNDN);
5789 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5790 mpfr_clear(n);
5791 mpfr_clear(x);
5792 mpc_init2 (c, 53);
5793 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5794 mpc_cosh (c, c, MPC_RNDNN);
5795 mpc_pow (c, c, c, MPC_RNDNN);
5796 mpc_acosh (c, c, MPC_RNDNN);
5797 mpc_clear (c);
c6b750e1
DJ
5798
5799 ;
5800 return 0;
5801}
5802_ACEOF
81ecdfbb
RW
5803if ac_fn_c_try_link "$LINENO"; then :
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5805$as_echo "yes" >&6; }
c6b750e1 5806else
81ecdfbb
RW
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5809fi
81ecdfbb
RW
5810rm -f core conftest.err conftest.$ac_objext \
5811 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5812 LIBS="$saved_LIBS"
5813 fi
5814
4b900473 5815 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5816
a6b5846e
KG
5817# The library versions listed in the error message below should match
5818# the HARD-minimums enforced above.
4b900473 5819 if test x$have_gmp != xyes; then
7ec59b9e 5820 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5821Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5822their locations. Source code for these libraries can be found at
5823their respective hosting sites as well as at
5824ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5825http://gcc.gnu.org/install/prerequisites.html for additional info. If
5826you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5827make sure that you have installed both the libraries and the header
5828files. They may be located in separate packages." "$LINENO" 5
4b900473 5829 fi
9dbaa842
DD
5830fi
5831
e8a5fa9c
RW
5832# Flags needed for both GMP, MPFR and/or MPC.
5833
5834
5835
4b1cb4fe
DD
5836
5837
5838
7ec59b9e 5839
29383458
JM
5840# Allow host libstdc++ to be specified for static linking with PPL.
5841
81ecdfbb
RW
5842# Check whether --with-host-libstdcxx was given.
5843if test "${with_host_libstdcxx+set}" = set; then :
5844 withval=$with_host_libstdcxx;
5845fi
29383458 5846
29383458
JM
5847
5848case $with_host_libstdcxx in
5849 no|yes)
81ecdfbb 5850 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5851 ;;
5852esac
e28c595f 5853
b3676d82 5854# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 5855
b3676d82
EB
5856# Check whether --with-stage1-libs was given.
5857if test "${with_stage1_libs+set}" = set; then :
5858 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5859 stage1_libs=
e8a5fa9c 5860 else
b3676d82 5861 stage1_libs=$withval
e8a5fa9c
RW
5862 fi
5863else
b3676d82 5864 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5865fi
5866
e8a5fa9c
RW
5867
5868
b3676d82 5869# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 5870
b3676d82
EB
5871# Check whether --with-stage1-ldflags was given.
5872if test "${with_stage1_ldflags+set}" = set; then :
5873 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5874 stage1_ldflags=
e8a5fa9c 5875 else
b3676d82 5876 stage1_ldflags=$withval
e8a5fa9c
RW
5877 fi
5878else
b3676d82
EB
5879 stage1_ldflags=
5880 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5881 # if supported. But if the user explicitly specified the libraries to use,
5882 # trust that they are doing what they want.
5883 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5884 stage1_ldflags="-static-libstdc++ -static-libgcc"
5885 fi
81ecdfbb
RW
5886fi
5887
e8a5fa9c
RW
5888
5889
e8a5fa9c
RW
5890# Libraries to use for stage2 and later builds. This defaults to the
5891# argument passed to --with-host-libstdcxx.
5892
81ecdfbb
RW
5893# Check whether --with-boot-libs was given.
5894if test "${with_boot_libs+set}" = set; then :
5895 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5896 poststage1_libs=
5897 else
5898 poststage1_libs=$withval
5899 fi
5900else
5901 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5902fi
5903
e8a5fa9c
RW
5904
5905
143754cd
NC
5906# Linker flags to use for stage2 and later builds.
5907
5908# Check whether --with-boot-ldflags was given.
5909if test "${with_boot_ldflags+set}" = set; then :
5910 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5911 poststage1_ldflags=
5912 else
5913 poststage1_ldflags=$withval
5914 fi
5915else
5916 poststage1_ldflags=
4f11b223
ILT
5917 # In stages 2 and 3, default to linking libstdc++ and libgcc
5918 # statically. But if the user explicitly specified the libraries to
5919 # use, trust that they are doing what they want.
5920 if test "$poststage1_libs" = ""; then
143754cd
NC
5921 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5922 fi
5923fi
5924
5925
5926
1b6c0831
L
5927# GCC GRAPHITE dependency ISL.
5928# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
5929
5930
7ec59b9e
L
5931# Check whether --with-isl was given.
5932if test "${with_isl+set}" = set; then :
5933 withval=$with_isl;
81ecdfbb 5934fi
e28c595f 5935
e28c595f 5936
1b6c0831 5937# Treat --without-isl as a request to disable
8e71395b 5938# GRAPHITE support and skip all following checks.
1b6c0831 5939if test "x$with_isl" != "xno"; then
8e71395b
L
5940 # Check for ISL
5941
5942
7ec59b9e
L
5943# Check whether --with-isl-include was given.
5944if test "${with_isl_include+set}" = set; then :
5945 withval=$with_isl_include;
81ecdfbb
RW
5946fi
5947
e28c595f 5948
7ec59b9e
L
5949# Check whether --with-isl-lib was given.
5950if test "${with_isl_lib+set}" = set; then :
5951 withval=$with_isl_lib;
81ecdfbb 5952fi
e28c595f 5953
e28c595f 5954
7ec59b9e
L
5955 # Check whether --enable-isl-version-check was given.
5956if test "${enable_isl_version_check+set}" = set; then :
5957 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5958else
5959 ENABLE_ISL_CHECK=yes
b123da99
SP
5960fi
5961
5962
7ec59b9e
L
5963 # Initialize isllibs and islinc.
5964 case $with_isl in
5965 no)
5966 isllibs=
5967 islinc=
5968 ;;
5969 "" | yes)
5970 ;;
5971 *)
5972 isllibs="-L$with_isl/lib"
5973 islinc="-I$with_isl/include"
5974 ;;
5975 esac
5976 if test "x${with_isl_include}" != x ; then
5977 islinc="-I$with_isl_include"
5978 fi
5979 if test "x${with_isl_lib}" != x; then
5980 isllibs="-L$with_isl_lib"
5981 fi
5982 if test "x${islinc}" = x && test "x${isllibs}" = x \
5983 && test -d ${srcdir}/isl; then
5984 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5985 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5986 ENABLE_ISL_CHECK=no
3dae1673
JBG
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5988$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
7ec59b9e 5989 fi
b123da99 5990
1b6c0831 5991 isllibs="${isllibs} -lisl"
b123da99 5992
e28c595f 5993
b3fc79f8
JBG
5994
5995 if test "${ENABLE_ISL_CHECK}" = yes ; then
5996 _isl_saved_CFLAGS=$CFLAGS
5997 _isl_saved_LDFLAGS=$LDFLAGS
5998 _isl_saved_LIBS=$LIBS
5999
6000 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6001 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
6002 LIBS="${_isl_saved_LIBS} -lisl"
6003
1b6c0831
L
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
6005$as_echo_n "checking for compatible ISL... " >&6; }
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 6007/* end confdefs.h. */
1b6c0831 6008#include <isl/val.h>
b3fc79f8
JBG
6009int
6010main ()
6011{
1b6c0831 6012;
b3fc79f8
JBG
6013 ;
6014 return 0;
6015}
6016_ACEOF
1b6c0831 6017if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
6018 gcc_cv_isl=yes
6019else
6020 gcc_cv_isl=no
6021fi
1b6c0831
L
6022rm -f core conftest.err conftest.$ac_objext \
6023 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6025$as_echo "$gcc_cv_isl" >&6; }
6026
6027 CFLAGS=$_isl_saved_CFLAGS
6028 LDFLAGS=$_isl_saved_LDFLAGS
6029 LIBS=$_isl_saved_LIBS
6030 fi
6031
6032
e28c595f 6033
e28c595f 6034
7ec59b9e
L
6035
6036
7ec59b9e
L
6037 if test "x${with_isl}" = xno; then
6038 graphite_requested=no
6039 elif test "x${with_isl}" != x \
6040 || test "x${with_isl_include}" != x \
6041 || test "x${with_isl_lib}" != x ; then
6042 graphite_requested=yes
6043 else
6044 graphite_requested=no
b123da99 6045 fi
e28c595f 6046
e28c595f
JM
6047
6048
7ec59b9e
L
6049 if test "${gcc_cv_isl}" = no ; then
6050 isllibs=
6051 islinc=
6052 fi
e28c595f 6053
7ec59b9e
L
6054 if test "${graphite_requested}" = yes \
6055 && test "x${isllibs}" = x \
6056 && test "x${islinc}" = x ; then
e28c595f 6057
7ec59b9e
L
6058 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6059 fi
e552509b 6060
e28c595f 6061
e552509b
ILT
6062fi
6063
1b6c0831 6064# If the ISL check failed, disable builds of in-tree variant of ISL
8e71395b 6065if test "x$with_isl" = xno ||
8e71395b 6066 test "x$gcc_cv_isl" = xno; then
1b6c0831 6067 noconfigdirs="$noconfigdirs isl"
8e71395b 6068 islinc=
7ec59b9e
L
6069fi
6070
8e71395b
L
6071
6072
6073
700d40ca
ILT
6074# Check for LTO support.
6075# Check whether --enable-lto was given.
6076if test "${enable_lto+set}" = set; then :
6077 enableval=$enable_lto; enable_lto=$enableval
6078else
6079 enable_lto=yes; default_enable_lto=yes
6080fi
6081
6082
143754cd 6083
e49e5c92
DK
6084
6085
6086target_elf=no
6087case $target in
6088 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6089 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
6090 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6091 nvptx-*-none)
e49e5c92
DK
6092 target_elf=no
6093 ;;
6094 *)
6095 target_elf=yes
6096 ;;
6097esac
6098
6099if test $target_elf = yes; then :
74cea91b
DK
6100 # ELF platforms build the lto-plugin always.
6101 build_lto_plugin=yes
e49e5c92 6102
e49e5c92
DK
6103else
6104 if test x"$default_enable_lto" = x"yes" ; then
29821356 6105 case $target in
899b04ef 6106 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
74cea91b 6107 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6108 *) enable_lto=no ;;
6109 esac
e49e5c92 6110 else
29821356
RW
6111 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6112 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6113 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6114 # warn during gcc/ subconfigure; unless you're bootstrapping with
6115 # -flto it won't be needed until after installation anyway.
6116 case $target in
a8eb3f0a 6117 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6118 *) if test x"$enable_lto" = x"yes"; then
6119 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6120 fi
6121 ;;
6122 esac
6123 fi
a8eb3f0a 6124 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6125 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6126 case $target in
74cea91b 6127 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6128 *) ;;
6129 esac
74cea91b 6130
e49e5c92
DK
6131fi
6132
700d40ca 6133
1b6c0831
L
6134# Check whether --enable-linker-plugin-configure-flags was given.
6135if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6136 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6137else
6138 extra_linker_plugin_configure_flags=
6139fi
6140
6141
6142# Check whether --enable-linker-plugin-flags was given.
6143if test "${enable_linker_plugin_flags+set}" = set; then :
6144 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6145else
6146 extra_linker_plugin_flags=
6147fi
6148
6149
6150
e28c595f 6151
7ec59b9e 6152# By default, C and C++ are the only stage 1 languages.
9b134994 6153stage1_languages=,c,
1d39f329 6154
e8a5fa9c 6155# Target libraries that we bootstrap.
2aa2364a 6156bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6157
9e07f89d
NN
6158# Figure out what language subdirectories are present.
6159# Look if the user specified --enable-languages="..."; if not, use
6160# the environment variable $LANGUAGES if defined. $LANGUAGES might
6161# go away some day.
6162# NB: embedded tabs in this IF block -- do not untabify
6163if test -d ${srcdir}/gcc; then
6164 if test x"${enable_languages+set}" != xset; then
6165 if test x"${LANGUAGES+set}" = xset; then
6166 enable_languages="${LANGUAGES}"
6167 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6168 else
6169 enable_languages=all
6170 fi
6171 else
6172 if test x"${enable_languages}" = x ||
6173 test x"${enable_languages}" = xyes;
6174 then
6175 echo configure.in: --enable-languages needs at least one language argument 1>&2
6176 exit 1
6177 fi
6178 fi
6179 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6180
096f7d00
DE
6181 # 'f95' is the old name for the 'fortran' language. We issue a warning
6182 # and make the substitution.
6183 case ,${enable_languages}, in
6184 *,f95,*)
6185 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6186 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6187 ;;
6188 esac
6189
7ec59b9e
L
6190 # If bootstrapping, C++ must be enabled.
6191 case ",$enable_languages,:$enable_bootstrap" in
6192 *,c++,*:*) ;;
6193 *:yes)
ffdd6afc
ILT
6194 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6195 enable_languages="${enable_languages},c++"
6196 else
7ec59b9e 6197 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6198 fi
6199 ;;
6200 esac
6201
9e07f89d
NN
6202 # First scan to see if an enabled language requires some other language.
6203 # We assume that a given config-lang.in will list all the language
6204 # front ends it requires, even if some are required indirectly.
6205 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6206 case ${lang_frag} in
6207 ..) ;;
6208 # The odd quoting in the next line works around
6209 # an apparent bug in bash 1.12 on linux.
6210 ${srcdir}/gcc/[*]/config-lang.in) ;;
6211 *)
e552509b
ILT
6212 # From the config-lang.in, get $language, $lang_requires, and
6213 # $lang_requires_boot_languages.
9e07f89d
NN
6214 language=
6215 lang_requires=
e552509b 6216 lang_requires_boot_languages=
9e07f89d 6217 . ${lang_frag}
e552509b 6218 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6219 case ,${enable_languages}, in
6220 *,$other,*) ;;
6221 *,all,*) ;;
6222 *,$language,*)
6223 echo " \`$other' language required by \`$language'; enabling" 1>&2
6224 enable_languages="${enable_languages},${other}"
6225 ;;
6226 esac
6227 done
e552509b
ILT
6228 for other in ${lang_requires_boot_languages} ; do
6229 if test "$other" != "c"; then
6230 case ,${enable_stage1_languages}, in
6231 *,$other,*) ;;
6232 *,all,*) ;;
6233 *)
6234 case ,${enable_languages}, in
6235 *,$language,*)
6236 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6237 enable_stage1_languages="$enable_stage1_languages,${other}"
6238 ;;
6239 esac
6240 ;;
6241 esac
6242 fi
6243 done
9e07f89d
NN
6244 ;;
6245 esac
6246 done
6247
9b134994 6248 new_enable_languages=,c,
700d40ca
ILT
6249
6250 # If LTO is enabled, add the LTO front end.
700d40ca 6251 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6252 case ,${enable_languages}, in
6253 *,lto,*) ;;
6254 *) enable_languages="${enable_languages},lto" ;;
6255 esac
a8eb3f0a 6256 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 6257 configdirs="$configdirs lto-plugin"
700d40ca
ILT
6258 fi
6259 fi
6260
1b6c0831
L
6261 # If we're building an offloading compiler, add the LTO front end.
6262 if test x"$enable_as_accelerator_for" != x ; then
6263 case ,${enable_languages}, in
6264 *,lto,*) ;;
6265 *) enable_languages="${enable_languages},lto" ;;
6266 esac
6267 fi
700d40ca 6268
9e07f89d 6269 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6270 potential_languages=,c,
9e07f89d 6271
9e1a94f4
ILT
6272 enabled_target_libs=
6273 disabled_target_libs=
6274
9e07f89d
NN
6275 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6276 case ${lang_frag} in
6277 ..) ;;
6278 # The odd quoting in the next line works around
6279 # an apparent bug in bash 1.12 on linux.
6280 ${srcdir}/gcc/[*]/config-lang.in) ;;
6281 *)
c6b750e1 6282 # From the config-lang.in, get $language, $target_libs,
1d39f329 6283 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6284 language=
6285 target_libs=
6286 lang_dirs=
64ce424c 6287 subdir_requires=
9b134994
PB
6288 boot_language=no
6289 build_by_default=yes
9e07f89d 6290 . ${lang_frag}
9b134994
PB
6291 if test x${language} = x; then
6292 echo "${lang_frag} doesn't set \$language." 1>&2
6293 exit 1
6294 fi
6295
ffdd6afc 6296 if test "$language" = "c++"; then
7ec59b9e 6297 boot_language=yes
e8a5fa9c
RW
6298 fi
6299
8e71395b 6300 add_this_lang=no
9b134994
PB
6301 case ,${enable_languages}, in
6302 *,${language},*)
7ec59b9e
L
6303 # Language was explicitly selected; include it
6304 # unless it is C, which is enabled by default.
6305 if test "$language" != "c"; then
6306 add_this_lang=yes
6307 fi
9e07f89d 6308 ;;
9b134994
PB
6309 *,all,*)
6310 # 'all' was selected, select it if it is a default language
8e71395b
L
6311 if test "$language" != "c"; then
6312 add_this_lang=${build_by_default}
6313 fi
9e07f89d
NN
6314 ;;
6315 esac
4b1cb4fe 6316
64ce424c 6317 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6318 for i in $subdir_requires; do
3d3adb43 6319 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6320 case ,${enable_languages}, in
6321 *,${language},*)
6322 # Specifically requested language; tell them.
81ecdfbb 6323 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6324 ;;
6325 *)
6326 # Silently disable.
9b134994 6327 add_this_lang=unsupported
64ce424c
PB
6328 ;;
6329 esac
6330 done
6331
9b134994
PB
6332 # Disable Ada if no preexisting GNAT is available.
6333 case ,${enable_languages},:${language}:${have_gnat} in
6334 *,${language},*:ada:no)
6335 # Specifically requested language; tell them.
81ecdfbb 6336 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6337 ;;
6338 *:ada:no)
6339 # Silently disable.
6340 add_this_lang=unsupported
6341 ;;
6342 esac
6343
59f7ec45
HPN
6344 # Disable a language that is unsupported by the target.
6345 case " $unsupported_languages " in
6346 *" $language "*)
9b134994 6347 add_this_lang=unsupported
59f7ec45
HPN
6348 ;;
6349 esac
6350
4b1cb4fe 6351 case $add_this_lang in
9b134994 6352 unsupported)
9e07f89d 6353 # Remove language-dependent dirs.
9e1a94f4
ILT
6354 disabled_target_libs="$disabled_target_libs $target_libs"
6355 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6356 ;;
9b134994
PB
6357 no)
6358 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6359 disabled_target_libs="$disabled_target_libs $target_libs"
6360 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6361 potential_languages="${potential_languages}${language},"
6362 ;;
6363 yes)
6364 new_enable_languages="${new_enable_languages}${language},"
6365 potential_languages="${potential_languages}${language},"
1d39f329 6366 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6367 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6368 case "${boot_language}:,$enable_stage1_languages," in
6369 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6370 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6371 case ",$stage1_languages," in
6372 *,$language,* | ,yes, | ,all,) ;;
6373 *) stage1_languages="${stage1_languages}${language}," ;;
6374 esac
e8a5fa9c
RW
6375 # We need to bootstrap any supporting libraries.
6376 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6377 ;;
6378 esac
6379 ;;
9e07f89d
NN
6380 esac
6381 ;;
6382 esac
6383 done
6384
9e1a94f4
ILT
6385 # Add target libraries which are only needed for disabled languages
6386 # to noconfigdirs.
6387 if test -n "$disabled_target_libs"; then
6388 for dir in $disabled_target_libs; do
6389 case " $enabled_target_libs " in
6390 *" ${dir} "*) ;;
6391 *) noconfigdirs="$noconfigdirs $dir" ;;
6392 esac
6393 done
6394 fi
6395
81ecdfbb
RW
6396 # Check whether --enable-stage1-languages was given.
6397if test "${enable_stage1_languages+set}" = set; then :
6398 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6399 ,no,|,,)
6400 # Set it to something that will have no effect in the loop below
6401 enable_stage1_languages=c ;;
6402 ,yes,)
6403 enable_stage1_languages=`echo $new_enable_languages | \
6404 sed -e "s/^,//" -e "s/,$//" ` ;;
6405 *,all,*)
6406 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6407 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6408 esac
6409
6410 # Add "good" languages from enable_stage1_languages to stage1_languages,
6411 # while "bad" languages go in missing_languages. Leave no duplicates.
6412 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6413 case $potential_languages in
6414 *,$i,*)
6415 case $stage1_languages in
6416 *,$i,*) ;;
6417 *) stage1_languages="$stage1_languages$i," ;;
6418 esac ;;
6419 *)
6420 case $missing_languages in
6421 *,$i,*) ;;
6422 *) missing_languages="$missing_languages$i," ;;
6423 esac ;;
6424 esac
6425 done
81ecdfbb
RW
6426fi
6427
9b134994
PB
6428
6429 # Remove leading/trailing commas that were added for simplicity
6430 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6431 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6432 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6433 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6434
9e07f89d 6435 if test "x$missing_languages" != x; then
81ecdfbb 6436 as_fn_error "
27258dd4 6437The following requested languages could not be built: ${missing_languages}
81ecdfbb 6438Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6439 fi
9e07f89d
NN
6440 if test "x$new_enable_languages" != "x$enable_languages"; then
6441 echo The following languages will be built: ${new_enable_languages}
9b134994 6442 enable_languages="$new_enable_languages"
9e07f89d 6443 fi
9b134994 6444
c6b750e1 6445
81ec575a 6446 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6447fi
6448
a6df5a19
PB
6449# Handle --disable-<component> generically.
6450for dir in $configdirs $build_configdirs $target_configdirs ; do
6451 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6452 varname=`echo $dirname | sed -e s/+/_/g`
6453 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6454 noconfigdirs="$noconfigdirs $dir"
6455 fi
6456done
6457
4f0ef2d8 6458# Check for Boehm's garbage collector
81ecdfbb
RW
6459# Check whether --enable-objc-gc was given.
6460if test "${enable_objc_gc+set}" = set; then :
6461 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6462 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6463 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6464 ;;
6465esac
81ecdfbb
RW
6466fi
6467
4f0ef2d8
CD
6468
6469# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6470case ,${enable_languages},:${enable_objc_gc} in
6471 *,objc,*:yes)
4f0ef2d8
CD
6472 # Keep target-boehm-gc if requested for Objective-C.
6473 ;;
4f0ef2d8 6474 *)
d42c4017
DA
6475 # Otherwise remove target-boehm-gc depending on target-libjava.
6476 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6477 noconfigdirs="$noconfigdirs target-boehm-gc"
6478 fi
4f0ef2d8
CD
6479 ;;
6480esac
6481
1b6c0831 6482# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
7ec59b9e 6483case ,${enable_languages}, in
1b6c0831
L
6484 *,c++,*)
6485 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6486 case "${noconfigdirs}" in
6487 *target-libstdc++-v3*)
6488 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6489 ;;
6490 *) ;;
6491 esac
6492 ;;
7ec59b9e 6493 *)
1b6c0831 6494 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6495 ;;
6496esac
6497
caeba88f
AL
6498# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6499# $build_configdirs and $target_configdirs.
9e07f89d
NN
6500# If we have the source for $noconfigdirs entries, add them to $notsupp.
6501
6502notsupp=""
6503for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6504 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6505 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6506 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6507 if test -r $srcdir/$dirname/configure ; then
6508 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6509 true
6510 else
6511 notsupp="$notsupp $dir"
6512 fi
6513 fi
6514 fi
caeba88f
AL
6515 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6516 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6517 if test -r $srcdir/$dirname/configure ; then
6518 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6519 true
6520 else
6521 notsupp="$notsupp $dir"
6522 fi
6523 fi
6524 fi
9e07f89d
NN
6525 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6526 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6527 if test -r $srcdir/$dirname/configure ; then
6528 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6529 true
6530 else
6531 notsupp="$notsupp $dir"
6532 fi
6533 fi
6534 fi
6535done
6536
9e07f89d
NN
6537# Quietly strip out all directories which aren't configurable in this tree.
6538# This relies on all configurable subdirectories being autoconfiscated, which
6539# is now the case.
6a9cf61e
PB
6540build_configdirs_all="$build_configdirs"
6541build_configdirs=
6542for i in ${build_configdirs_all} ; do
c6b750e1 6543 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6544 if test -f ${srcdir}/$j/configure ; then
6545 build_configdirs="${build_configdirs} $i"
6546 fi
6547done
6548
9e07f89d
NN
6549configdirs_all="$configdirs"
6550configdirs=
6551for i in ${configdirs_all} ; do
6552 if test -f ${srcdir}/$i/configure ; then
6553 configdirs="${configdirs} $i"
6554 fi
6555done
6a9cf61e 6556
9e07f89d
NN
6557target_configdirs_all="$target_configdirs"
6558target_configdirs=
6559for i in ${target_configdirs_all} ; do
c6b750e1 6560 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6561 if test -f ${srcdir}/$j/configure ; then
6562 target_configdirs="${target_configdirs} $i"
6563 fi
6564done
6565
091021fa
L
6566# Exclude target-zlib if target-libjava isn't built.
6567case ${target_configdirs} in
6568*target-libjava*)
6569 ;;
6570*)
6571 target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6572 ;;
6573esac
6574
1b6c0831
L
6575# libiberty-linker-plugin is special: it doesn't have its own source directory,
6576# so we have to add it after the preceding checks.
6577if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6578then
6579 case " $configdirs " in
6580 *" libiberty "*)
6581 # If we can build libiberty, we can also build libiberty-linker-plugin.
6582 configdirs="$configdirs libiberty-linker-plugin"
6583 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6584 --with-libiberty=../libiberty-linker-plugin";;
6585 *)
6586 as_fn_error "libiberty missing" "$LINENO" 5;;
6587 esac
6588fi
6589
6590# Sometimes we have special requirements for the host libiberty.
6591extra_host_libiberty_configure_flags=
e81d5d05 6592extra_host_zlib_configure_flags=
1b6c0831
L
6593case " $configdirs " in
6594 *" lto-plugin "* | *" libcc1 "*)
6595 # When these are to be built as shared libraries, the same applies to
6596 # libiberty.
6597 extra_host_libiberty_configure_flags=--enable-shared
6598 ;;
e81d5d05
L
6599 *" bfd "*)
6600 # When bfd is to be built as a shared library, the same applies to
6601 # zlib.
6602 if test "$enable_shared" = "yes"; then
6603 extra_host_zlib_configure_flags=--enable-host-shared
6604 fi
6605 ;;
1b6c0831
L
6606esac
6607
6608
e81d5d05 6609
9e07f89d
NN
6610# Produce a warning message for the subdirs we can't configure.
6611# This isn't especially interesting in the Cygnus tree, but in the individual
6612# FSF releases, it's important to let people know when their machine isn't
6613# supported by the one or two programs in a package.
6614
6615if test -n "${notsupp}" && test -z "${norecursion}" ; then
6616 # If $appdirs is non-empty, at least one of those directories must still
6617 # be configured, or we error out. (E.g., if the gas release supports a
6618 # specified target in some subdirs but not the gas subdir, we shouldn't
6619 # pretend that all is well.)
6620 if test -n "$appdirs" ; then
6621 for dir in $appdirs ; do
6622 if test -r $dir/Makefile.in ; then
6623 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6624 appdirs=""
6625 break
6626 fi
6a9cf61e 6627 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6628 appdirs=""
6629 break
6630 fi
6631 fi
6632 done
6633 if test -n "$appdirs" ; then
6634 echo "*** This configuration is not supported by this package." 1>&2
6635 exit 1
6636 fi
6637 fi
6638 # Okay, some application will build, or we don't care to check. Still
6639 # notify of subdirs not getting built.
6640 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6641 echo " ${notsupp}" 1>&2
6642 echo " (Any other directories should still work fine.)" 1>&2
6643fi
6644
6645case "$host" in
6646 *msdosdjgpp*)
6647 enable_gdbtk=no ;;
6648esac
6649
18f6b6ee
PB
6650# To find our prefix, in gcc_cv_tool_prefix.
6651
6652# The user is always right.
6653if test "${PATH_SEPARATOR+set}" != set; then
6654 echo "#! /bin/sh" >conf$$.sh
6655 echo "exit 0" >>conf$$.sh
6656 chmod +x conf$$.sh
6657 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6658 PATH_SEPARATOR=';'
6659 else
6660 PATH_SEPARATOR=:
6661 fi
6662 rm -f conf$$.sh
6663fi
6664
6665
6666
6667if test "x$exec_prefix" = xNONE; then
6668 if test "x$prefix" = xNONE; then
6669 gcc_cv_tool_prefix=$ac_default_prefix
6670 else
6671 gcc_cv_tool_prefix=$prefix
6672 fi
6673else
6674 gcc_cv_tool_prefix=$exec_prefix
6675fi
6676
6677# If there is no compiler in the tree, use the PATH only. In any
6678# case, if there is no compiler in the tree nobody should use
6679# AS_FOR_TARGET and LD_FOR_TARGET.
6680if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6681 gcc_version=`cat $srcdir/gcc/BASE-VER`
6682 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6683 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6684 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6685 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6686 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6687 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6688else
6689 gcc_cv_tool_dirs=
6690fi
6691
6692if test x$build = x$target && test -n "$md_exec_prefix"; then
6693 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6694fi
6695
6696
6697
9e07f89d
NN
6698copy_dirs=
6699
c6b750e1 6700
81ecdfbb
RW
6701# Check whether --with-build-sysroot was given.
6702if test "${with_build_sysroot+set}" = set; then :
6703 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6704 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6705 fi
6706else
6707 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6708fi
a19b6204
MM
6709
6710
8a6ee3ab 6711
81ecdfbb
RW
6712
6713# Check whether --with-debug-prefix-map was given.
6714if test "${with_debug_prefix_map+set}" = set; then :
6715 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6716 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6717 for debug_map in $withval; do
6718 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6719 done
6720 fi
6721else
6722 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6723fi
6724
8a6ee3ab
JM
6725
6726
7f6ef0c0
PB
6727# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6728# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6729# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6730# We want to ensure that TARGET libraries (which we know are built with
6731# gcc) are built with "-O2 -g", so include those options when setting
6732# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6733if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6734 if test "x${is_cross_compiler}" = xyes; then
6735 CFLAGS_FOR_TARGET="-g -O2"
6736 else
6737 CFLAGS_FOR_TARGET=$CFLAGS
6738 case " $CFLAGS " in
6739 *" -O2 "*) ;;
6740 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6741 esac
6742 case " $CFLAGS " in
6743 *" -g "* | *" -g3 "*) ;;
6744 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6745 esac
6746 fi
7f6ef0c0
PB
6747fi
6748
6749
6750if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6751 if test "x${is_cross_compiler}" = xyes; then
6752 CXXFLAGS_FOR_TARGET="-g -O2"
6753 else
6754 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6755 case " $CXXFLAGS " in
6756 *" -O2 "*) ;;
6757 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6758 esac
6759 case " $CXXFLAGS " in
6760 *" -g "* | *" -g3 "*) ;;
6761 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6762 esac
6763 fi
7f6ef0c0
PB
6764fi
6765
6766
91c1f14c
DK
6767
6768
9e07f89d
NN
6769# Handle --with-headers=XXX. If the value is not "yes", the contents of
6770# the named directory are copied to $(tooldir)/sys-include.
6771if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6772 if test x${is_cross_compiler} = xno ; then
6773 echo 1>&2 '***' --with-headers is only supported when cross compiling
6774 exit 1
6775 fi
6776 if test x"${with_headers}" != xyes ; then
18f6b6ee 6777 x=${gcc_cv_tool_prefix}
c6b750e1 6778 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6779 fi
6780fi
6781
6782# Handle --with-libs=XXX. If the value is not "yes", the contents of
6783# the name directories are copied to $(tooldir)/lib. Multiple directories
6784# are permitted.
6785if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6786 if test x${is_cross_compiler} = xno ; then
6787 echo 1>&2 '***' --with-libs is only supported when cross compiling
6788 exit 1
6789 fi
6790 if test x"${with_libs}" != xyes ; then
6791 # Copy the libraries in reverse order, so that files in the first named
6792 # library override files in subsequent libraries.
18f6b6ee 6793 x=${gcc_cv_tool_prefix}
9e07f89d 6794 for l in ${with_libs}; do
c6b750e1 6795 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6796 done
6797 fi
6798fi
6799
700d40ca 6800# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6801#
6802# This is done by determining whether or not the appropriate directory
6803# is available, and by checking whether or not specific configurations
6804# have requested that this magic not happen.
c6b750e1
DJ
6805#
6806# The command line options always override the explicit settings in
2429c060
PB
6807# configure.in, and the settings in configure.in override this magic.
6808#
c6b750e1 6809# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6810# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6811# --without-gnu-ld options for the configure script. Similarly, if
6812# the default is to use the included zlib and you don't want to do that,
6813# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6814
6815if test x${use_gnu_as} = x &&
6816 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6817 with_gnu_as=yes
6818 extra_host_args="$extra_host_args --with-gnu-as"
6819fi
6820
6821if test x${use_gnu_ld} = x &&
93f9b408 6822 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6823 with_gnu_ld=yes
6824 extra_host_args="$extra_host_args --with-gnu-ld"
6825fi
6826
700d40ca
ILT
6827if test x${use_included_zlib} = x &&
6828 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6829 :
6830else
6831 with_system_zlib=yes
6832 extra_host_args="$extra_host_args --with-system-zlib"
6833fi
6834
2429c060
PB
6835# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6836# can detect this case.
6837
6838if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6839 with_newlib=yes
6840 extra_host_args="$extra_host_args --with-newlib"
6841fi
6842
9e07f89d
NN
6843# Handle ${copy_dirs}
6844set fnord ${copy_dirs}
6845shift
6846while test $# != 0 ; do
6847 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6848 :
6849 else
6850 echo Copying $1 to $2
6851
6852 # Use the install script to create the directory and all required
6853 # parent directories.
6854 if test -d $2 ; then
6855 :
6856 else
6857 echo >config.temp
6858 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6859 fi
6860
6861 # Copy the directory, assuming we have tar.
6862 # FIXME: Should we use B in the second tar? Not all systems support it.
6863 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6864
6865 # It is the responsibility of the user to correctly adjust all
6866 # symlinks. If somebody can figure out how to handle them correctly
6867 # here, feel free to add the code.
6868
6869 echo $1 > $2/COPIED
6870 fi
6871 shift; shift
6872done
6873
2429c060
PB
6874# Determine a target-dependent exec_prefix that the installed
6875# gcc will search in. Keep this list sorted by triplet, with
6876# the *-*-osname triplets last.
6877md_exec_prefix=
6878case "${target}" in
521ec477 6879 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6880 md_exec_prefix=/dev/env/DJDIR/bin
6881 ;;
2429c060 6882 *-*-hpux* | \
2429c060 6883 *-*-nto-qnx* | \
1f111696 6884 *-*-solaris2*)
2429c060
PB
6885 md_exec_prefix=/usr/ccs/bin
6886 ;;
6887esac
6888
a0da8069
NN
6889extra_arflags_for_target=
6890extra_nmflags_for_target=
6891extra_ranlibflags_for_target=
6892target_makefile_frag=/dev/null
6893case "${target}" in
77d7106f
AM
6894 spu-*-*)
6895 target_makefile_frag="config/mt-spu"
6896 ;;
a9d58c06 6897 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
6898 target_makefile_frag="config/mt-sde"
6899 ;;
f3b1e08e
RS
6900 mipsisa*-*-elfoabi*)
6901 target_makefile_frag="config/mt-mips-elfoabi"
6902 ;;
e7c8859c
RS
6903 mips*-*-*linux* | mips*-*-gnu*)
6904 target_makefile_frag="config/mt-mips-gnu"
6905 ;;
d9e042ac
SL
6906 nios2-*-elf*)
6907 target_makefile_frag="config/mt-nios2-elf"
6908 ;;
29383458 6909 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6910 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6911 ;;
6912 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6913 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6914 # commands to handle both 32-bit and 64-bit objects. These flags are
6915 # harmless if we're using GNU nm or ar.
6916 extra_arflags_for_target=" -X32_64"
6917 extra_nmflags_for_target=" -B -X32_64"
6918 ;;
a0da8069
NN
6919esac
6920
6921alphaieee_frag=/dev/null
6922case $target in
6923 alpha*-*-*)
6924 # This just makes sure to use the -mieee option to build target libs.
6925 # This should probably be set individually by each library.
6926 alphaieee_frag="config/mt-alphaieee"
6927 ;;
6928esac
6929
6930# If --enable-target-optspace always use -Os instead of -O2 to build
6931# the target libraries, similarly if it is not specified, use -Os
6932# on selected platforms.
6933ospace_frag=/dev/null
6934case "${enable_target_optspace}:${target}" in
6935 yes:*)
6936 ospace_frag="config/mt-ospace"
6937 ;;
6938 :d30v-*)
6939 ospace_frag="config/mt-d30v"
6940 ;;
16beab3d 6941 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
a0da8069
NN
6942 ospace_frag="config/mt-ospace"
6943 ;;
6944 no:* | :*)
6945 ;;
6946 *)
6947 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6948 ;;
6949esac
6950
a0da8069
NN
6951# Some systems (e.g., one of the i386-aix systems the gas testers are
6952# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6953tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6954build_tooldir=${tooldir}
6955
a0da8069
NN
6956# Create a .gdbinit file which runs the one in srcdir
6957# and tells GDB to look there for source files.
6958
6959if test -r ${srcdir}/.gdbinit ; then
6960 case ${srcdir} in
6961 .) ;;
6962 *) cat > ./.gdbinit <<EOF
6963# ${NO_EDIT}
6964dir ${srcdir}
6965dir .
6966source ${srcdir}/.gdbinit
6967EOF
6968 ;;
6969 esac
6970fi
6971
a0da8069
NN
6972# Make sure that the compiler is able to generate an executable. If it
6973# can't, we are probably in trouble. We don't care whether we can run the
6974# executable--we might be using a cross compiler--we only care whether it
6975# can be created. At this point the main configure script has set CC.
6976we_are_ok=no
6977echo "int main () { return 0; }" > conftest.c
6978${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6979if test $? = 0 ; then
6980 if test -s conftest || test -s conftest.exe ; then
6981 we_are_ok=yes
6982 fi
c6b750e1 6983fi
a0da8069
NN
6984case $we_are_ok in
6985 no)
6986 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6987 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6988 rm -f conftest*
6989 exit 1
6990 ;;
6991esac
6992rm -f conftest*
6993
3bbd2f8f 6994# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6995case "${host}" in
6996 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 6997 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6998 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6999 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7000esac
7001
3bbd2f8f 7002# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7003# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7004# built executables to PATH.
3bbd2f8f
AL
7005if test "$RPATH_ENVVAR" = PATH; then
7006 GCC_SHLIB_SUBDIR=/shlib
7007else
7008 GCC_SHLIB_SUBDIR=
7009fi
7010
730af8ee 7011# Adjust the toplevel makefile according to whether bootstrap was selected.
7012case $enable_bootstrap in
7013 yes)
7014 bootstrap_suffix=bootstrap
7015 BUILD_CONFIG=bootstrap-debug
7016 ;;
7017 no)
7018 bootstrap_suffix=no-bootstrap
7019 BUILD_CONFIG=
7020 ;;
7021esac
7022
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7024$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7025
7026
7027# Check whether --with-build-config was given.
7028if test "${with_build_config+set}" = set; then :
7029 withval=$with_build_config; case $with_build_config in
7030 yes) with_build_config= ;;
7031 no) with_build_config= BUILD_CONFIG= ;;
7032 esac
7033fi
7034
7035
7036if test "x${with_build_config}" != x; then
7037 BUILD_CONFIG=$with_build_config
7038else
7039 case $BUILD_CONFIG in
7040 bootstrap-debug)
7041 if echo "int f (void) { return 0; }" > conftest.c &&
7042 ${CC} -c conftest.c &&
7043 mv conftest.o conftest.o.g0 &&
7044 ${CC} -c -g conftest.c &&
7045 mv conftest.o conftest.o.g &&
7046 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7047 :
7048 else
7049 BUILD_CONFIG=
7050 fi
7051 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7052 ;;
7053 esac
7054fi
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7056$as_echo "$BUILD_CONFIG" >&6; }
7057
7058
7059# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7061$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7062# Check whether --enable-vtable-verify was given.
7063if test "${enable_vtable_verify+set}" = set; then :
7064 enableval=$enable_vtable_verify; case "$enableval" in
7065 yes) enable_vtable_verify=yes ;;
7066 no) enable_vtable_verify=no ;;
7067 *) enable_vtable_verify=no;;
7068 esac
7069else
7070 enable_vtable_verify=no
7071fi
7072
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7074$as_echo "$enable_vtable_verify" >&6; }
7075
a0da8069
NN
7076# Record target_configdirs and the configure arguments for target and
7077# build configuration in Makefile.
7078target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7079build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7080bootstrap_fixincludes=no
a0da8069 7081
2aa2364a
JR
7082# If we are building libgomp, bootstrap it.
7083if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7084 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7085fi
7086
730af8ee 7087# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7088# or bootstrap-ubsan, bootstrap it.
7089if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7090 case "$BUILD_CONFIG" in
7091 *bootstrap-asan* | *bootstrap-ubsan* )
7092 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7093 bootstrap_fixincludes=yes
730af8ee 7094 ;;
7095 esac
5eb08693
L
7096fi
7097
730af8ee 7098# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7099if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7100 test "$enable_vtable_verify" != no; then
95e43135
JBG
7101 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7102fi
7103
1b6c0831
L
7104# If we are building libmpx, bootstrap it.
7105if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7106 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7107fi
7108
a0da8069
NN
7109# Determine whether gdb needs tk/tcl or not.
7110# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7111# and in that case we want gdb to be built without tk. Ugh!
7112# In fact I believe gdb is the *only* package directly dependent on tk,
7113# so we should be able to put the 'maybe's in unconditionally and
7114# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7115# 100% sure that that's safe though.
c180f501 7116
675c6968 7117gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7118case "$enable_gdbtk" in
7119 no)
7120 GDB_TK="" ;;
c180f501
AC
7121 yes)
7122 GDB_TK="${gdb_tk}" ;;
a0da8069 7123 *)
c180f501
AC
7124 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7125 # distro. Eventually someone will fix this and move Insight, nee
7126 # gdbtk to a separate directory.
7127 if test -d ${srcdir}/gdb/gdbtk ; then
7128 GDB_TK="${gdb_tk}"
7129 else
7130 GDB_TK=""
7131 fi
7132 ;;
a0da8069 7133esac
907be67c
DJ
7134CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7135INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7136
6bd3dfaa 7137# Strip out unwanted targets.
dd12c3a8
NN
7138
7139# While at that, we remove Makefiles if we were started for recursive
7140# configuration, so that the top-level Makefile reconfigures them,
7141# like we used to do when configure itself was recursive.
dd12c3a8 7142
06a51eac
RW
7143# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7144# but now we're fixing up the Makefile ourselves with the additional
7145# commands passed to AC_CONFIG_FILES. Use separate variables
7146# extrasub-{build,host,target} not because there is any reason to split
7147# the substitutions up that way, but only to remain below the limit of
7148# 99 commands in a script, for HP-UX sed.
7149# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7150
16b1ad29
RW
7151case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7152 yes:yes:*\ gold\ *:*,c++,*) ;;
7153 yes:yes:*\ gold\ *:*)
7154 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7155 ;;
7156esac
7157
06a51eac 7158extrasub_build=
6a9cf61e 7159for module in ${build_configdirs} ; do
498d4a71
CF
7160 if test -z "${no_recursion}" \
7161 && test -f ${build_subdir}/${module}/Makefile; then
7162 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7163 rm -f ${build_subdir}/${module}/Makefile
7164 fi
06a51eac 7165 extrasub_build="$extrasub_build
498d4a71
CF
7166/^@if build-$module\$/d
7167/^@endif build-$module\$/d
7168/^@if build-$module-$bootstrap_suffix\$/d
7169/^@endif build-$module-$bootstrap_suffix\$/d"
7170done
06a51eac 7171extrasub_host=
498d4a71 7172for module in ${configdirs} ; do
80911fe1 7173 if test -z "${no_recursion}"; then
8cf39b1b 7174 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7175 if test -f ${file}; then
7176 echo 1>&2 "*** removing ${file} to force reconfigure"
7177 rm -f ${file}
7178 fi
7179 done
498d4a71 7180 fi
201f096f 7181 case ${module},${bootstrap_fixincludes} in
7182 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7183 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7184 esac
06a51eac 7185 extrasub_host="$extrasub_host
498d4a71
CF
7186/^@if $module\$/d
7187/^@endif $module\$/d
201f096f 7188/^@if $module-$host_bootstrap_suffix\$/d
7189/^@endif $module-$host_bootstrap_suffix\$/d"
498d4a71 7190done
06a51eac 7191extrasub_target=
498d4a71
CF
7192for module in ${target_configdirs} ; do
7193 if test -z "${no_recursion}" \
7194 && test -f ${target_subdir}/${module}/Makefile; then
7195 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7196 rm -f ${target_subdir}/${module}/Makefile
7197 fi
e8a5fa9c
RW
7198
7199 # We only bootstrap target libraries listed in bootstrap_target_libs.
7200 case $bootstrap_target_libs in
7201 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7202 *) target_bootstrap_suffix=no-bootstrap ;;
7203 esac
7204
06a51eac 7205 extrasub_target="$extrasub_target
498d4a71
CF
7206/^@if target-$module\$/d
7207/^@endif target-$module\$/d
e8a5fa9c
RW
7208/^@if target-$module-$target_bootstrap_suffix\$/d
7209/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7210done
7211
06a51eac
RW
7212# Do the final fixup along with target modules.
7213extrasub_target="$extrasub_target
6bd3dfaa 7214/^@if /,/^@endif /d"
a0da8069
NN
7215
7216# Create the serialization dependencies. This uses a temporary file.
7217
81ecdfbb
RW
7218# Check whether --enable-serial-configure was given.
7219if test "${enable_serial_configure+set}" = set; then :
7220 enableval=$enable_serial_configure;
7221fi
e6bfb94a
AO
7222
7223
1047cb91
DD
7224case ${enable_serial_configure} in
7225 yes)
7226 enable_serial_build_configure=yes
7227 enable_serial_host_configure=yes
7228 enable_serial_target_configure=yes
7229 ;;
7230esac
7231
a0da8069
NN
7232# These force 'configure's to be done one at a time, to avoid problems
7233# with contention over a shared config.cache.
7234rm -f serdep.tmp
e6bfb94a 7235echo '# serdep.tmp' > serdep.tmp
a0da8069 7236olditem=
1047cb91 7237test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7238for item in ${build_configdirs} ; do
7239 case ${olditem} in
7240 "") ;;
e6bfb94a 7241 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7242 esac
7243 olditem=${item}
7244done
7245olditem=
1047cb91 7246test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7247for item in ${configdirs} ; do
7248 case ${olditem} in
7249 "") ;;
e6bfb94a 7250 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7251 esac
7252 olditem=${item}
7253done
7254olditem=
1047cb91 7255test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7256for item in ${target_configdirs} ; do
7257 case ${olditem} in
7258 "") ;;
e6bfb94a 7259 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7260 esac
7261 olditem=${item}
7262done
7263serialization_dependencies=serdep.tmp
7264
7265
e6bfb94a 7266# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7267# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7268# might not want to pass down to subconfigures. The exception being
7269# --cache-file=/dev/null, which is used to turn off the use of cache
7270# files altogether, and which should be passed on to subconfigures.
7271# Also strip program-prefix, program-suffix, and program-transform-name,
7272# so that we can pass down a consistent program-transform-name.
c6b750e1 7273baseargs=
65b4571a 7274tbaseargs=
c6b750e1
DJ
7275keep_next=no
7276skip_next=no
7277eval "set -- $ac_configure_args"
18f6b6ee
PB
7278for ac_arg
7279do
c6b750e1
DJ
7280 if test X"$skip_next" = X"yes"; then
7281 skip_next=no
7282 continue
7283 fi
7284 if test X"$keep_next" = X"yes"; then
7285 case $ac_arg in
7286 *\'*)
7287 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7288 esac
7289 baseargs="$baseargs '$ac_arg'"
65b4571a 7290 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7291 keep_next=no
7292 continue
7293 fi
7294
7295 # Handle separated arguments. Based on the logic generated by
7296 # autoconf 2.59.
7297 case $ac_arg in
7298 *=* | --config-cache | -C | -disable-* | --disable-* \
7299 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7300 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7301 | -with-* | --with-* | -without-* | --without-* | --x)
7302 separate_arg=no
7303 ;;
7304 -*)
7305 separate_arg=yes
7306 ;;
7307 *)
7308 separate_arg=no
7309 ;;
7310 esac
7311
65b4571a
AO
7312 skip_targ=no
7313 case $ac_arg in
7314
7315 --with-* | --without-*)
7316 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7317
7318 case $libopt in
7319 *[-_]include)
7320 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7321 ;;
7322 *[-_]lib)
7323 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7324 ;;
7325 *)
7326 lib=$libopt
7327 ;;
7328 esac
7329
7330
7331 case $lib in
1b6c0831 7332 mpc | mpfr | gmp | isl)
65b4571a
AO
7333 # If we're processing --with-$lib, --with-$lib-include or
7334 # --with-$lib-lib, for one of the libs above, and target is
7335 # different from host, don't pass the current argument to any
7336 # target library's configure.
7337 if test x$is_cross_compiler = xyes; then
7338 skip_targ=yes
7339 fi
7340 ;;
7341 esac
7342 ;;
7343 esac
7344
c6b750e1 7345 case "$ac_arg" in
30167e0a
NC
7346 --cache-file=/dev/null | \
7347 -cache-file=/dev/null )
7348 # Handled here to avoid the test to skip args below.
7349 baseargs="$baseargs '$ac_arg'"
65b4571a 7350 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7351 # Assert: $separate_arg should always be no.
7352 keep_next=$separate_arg
7353 ;;
c6b750e1
DJ
7354 --no*)
7355 continue
7356 ;;
7357 --c* | \
7358 --sr* | \
7359 --ho* | \
7360 --bu* | \
7361 --t* | \
7362 --program-* | \
7363 -cache_file* | \
7364 -srcdir* | \
7365 -host* | \
7366 -build* | \
7367 -target* | \
7368 -program-prefix* | \
7369 -program-suffix* | \
7370 -program-transform-name* )
7371 skip_next=$separate_arg
7372 continue
7373 ;;
7374 -*)
7375 # An option. Add it.
7376 case $ac_arg in
7377 *\'*)
7378 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7379 esac
7380 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7381 if test X"$skip_targ" = Xno; then
7382 tbaseargs="$tbaseargs '$ac_arg'"
7383 fi
c6b750e1
DJ
7384 keep_next=$separate_arg
7385 ;;
7386 *)
7387 # Either a variable assignment, or a nonopt (triplet). Don't
7388 # pass it down; let the Makefile handle this.
7389 continue
7390 ;;
7391 esac
7392done
7393# Remove the initial space we just introduced and, as these will be
7394# expanded by make, quote '$'.
7395baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7396
f27d4f92
DJ
7397# Add in --program-transform-name, after --program-prefix and
7398# --program-suffix have been applied to it. Autoconf has already
7399# doubled dollar signs and backslashes in program_transform_name; we want
7400# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7401# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7402# Also, because we want to override the logic in subdir configure scripts to
7403# choose program_transform_name, replace any s,x,x, with s,y,y,.
7404sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7405${program_transform_name}
7406EOF_SED
7407gcc_transform_name=`cat conftestsed.out`
7408rm -f conftestsed.out
7409baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7410tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7411if test "$silent" = yes; then
7412 baseargs="$baseargs --silent"
65b4571a 7413 tbaseargs="$tbaseargs --silent"
2444379b 7414fi
34a0f3cf 7415baseargs="$baseargs --disable-option-checking"
65b4571a 7416tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7417
4074d5f2
RW
7418# Record and document user additions to sub configure arguments.
7419
7420
7421
7422
a0da8069
NN
7423# For the build-side libraries, we just need to pretend we're native,
7424# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
7425# desired. We can't even use the same cache file for all build-side
7426# libraries, as they're compiled differently; some with C, some with
7427# C++ or with different feature-enabling options.
7428build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
a0da8069
NN
7429
7430# For host modules, accept cache file option, or specification as blank.
7431case "${cache_file}" in
7432"") # empty
7433 cache_file_option="" ;;
7434/* | [A-Za-z]:[\\/]* ) # absolute path
7435 cache_file_option="--cache-file=${cache_file}" ;;
7436*) # relative path
7437 cache_file_option="--cache-file=../${cache_file}" ;;
7438esac
7439
82252c06
NN
7440# Host dirs don't like to share a cache file either, horribly enough.
7441# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7442host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7443
65b4571a 7444target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7445
7446# Passing a --with-cross-host argument lets the target libraries know
7447# whether they are being built with a cross-compiler or being built
7448# native. However, it would be better to use other mechanisms to make the
7449# sorts of decisions they want to make on this basis. Please consider
7450# this option to be deprecated. FIXME.
7451if test x${is_cross_compiler} = xyes ; then
c6b750e1 7452 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7453fi
7454
afc0578d 7455# Special user-friendly check for native x86_64-linux build, if
7456# multilib is not explicitly enabled.
7457case "$target:$have_compiler:$host:$target:$enable_multilib" in
7458 x86_64-*linux*:yes:$build:$build:)
7459 # Make sure we have a developement environment that handles 32-bit
7460 dev64=no
7461 echo "int main () { return 0; }" > conftest.c
7462 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7463 if test $? = 0 ; then
7464 if test -s conftest || test -s conftest.exe ; then
7465 dev64=yes
7466 fi
7467 fi
7468 rm -f conftest*
7469 if test x${dev64} != xyes ; then
7470 as_fn_error "I suspect your system does not have 32-bit developement 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
7471 fi
7472 ;;
7473esac
7474
938d2b74
RW
7475# Default to --enable-multilib.
7476if test x${enable_multilib} = x ; then
a0da8069 7477 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7478fi
a0da8069
NN
7479
7480# Pass --with-newlib if appropriate. Note that target_configdirs has
7481# changed from the earlier setting of with_newlib.
7482if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7483 target_configargs="--with-newlib ${target_configargs}"
7484fi
7485
95036d20
NN
7486# Different target subdirs use different values of certain variables
7487# (notably CXX). Worse, multilibs use *lots* of different values.
7488# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7489# it doesn't automatically accept command-line overrides of them.
7490# This means it's not safe for target subdirs to share a cache file,
7491# which is disgusting, but there you have it. Hopefully this can be
7492# fixed in future. It's still worthwhile to use a cache file for each
7493# directory. I think.
7494
ae380b45
MS
7495# Pass the appropriate --build, --host, --target and --cache-file arguments.
7496# We need to pass --target, as newer autoconf's requires consistency
7497# for target_alias and gcc doesn't manage it consistently.
4b900473 7498target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7499
a0da8069
NN
7500FLAGS_FOR_TARGET=
7501case " $target_configdirs " in
7502 *" newlib "*)
7503 case " $target_configargs " in
7504 *" --with-newlib "*)
7505 case "$target" in
1f53ca9a 7506 *-cygwin*)
6d94c122 7507 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7508 ;;
a0da8069
NN
7509 esac
7510
7511 # If we're not building GCC, don't discard standard headers.
7512 if test -d ${srcdir}/gcc; then
7513 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7514
7515 if test "${build}" != "${host}"; then
7516 # On Canadian crosses, CC_FOR_TARGET will have already been set
7517 # by `configure', so we won't have an opportunity to add -Bgcc/
7518 # to it. This is right: we don't want to search that directory
7519 # for binaries, but we want the header files in there, so add
7520 # them explicitly.
e552509b 7521 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7522
7523 # Someone might think of using the pre-installed headers on
7524 # Canadian crosses, in case the installed compiler is not fully
7525 # compatible with the compiler being built. In this case, it
7526 # would be better to flag an error than risking having
7527 # incompatible object files being constructed. We can't
7528 # guarantee that an error will be flagged, but let's hope the
7529 # compiler will do it, when presented with incompatible header
7530 # files.
7531 fi
7532 fi
7533
7534 case "${target}-${is_cross_compiler}" in
ec11bdc6 7535 i[3456789]86-*-linux*-no)
a0da8069
NN
7536 # Here host == target, so we don't need to build gcc,
7537 # so we don't want to discard standard headers.
7538 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7539 ;;
7540 *)
7541 # If we're building newlib, use its generic headers last, but search
7542 # for any libc-related directories first (so make it the last -B
7543 # switch).
7544 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
7545
7546 # If we're building libgloss, find the startup file, simulator library
7547 # and linker script.
7548 case " $target_configdirs " in
7549 *" libgloss "*)
7550 # Look for startup file, simulator library and maybe linker script.
7551 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7552 # Look for libnosys.a in case the target needs it.
7553 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7554 # Most targets have the linker script in the source directory.
7555 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7556 ;;
7557 esac
a0da8069
NN
7558 ;;
7559 esac
7560 ;;
7561 esac
7562 ;;
7563esac
1f53ca9a 7564
45055374 7565case "$target" in
1f53ca9a
AO
7566 x86_64-*mingw* | *-w64-mingw*)
7567 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7568 # however, use a symlink named 'mingw' in ${prefix} .
7569 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7570 ;;
7571 *-mingw*)
7572 # MinGW can't be handled as Cygwin above since it does not use newlib.
7573 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'
7574 ;;
45055374 7575esac
a0da8069 7576
5fbad20a
DD
7577# Allow the user to override the flags for
7578# our build compiler if desired.
c66487f8
NC
7579if test x"${build}" = x"${host}" ; then
7580 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7581 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7582 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7583fi
5fbad20a 7584
a0da8069
NN
7585# On Canadian crosses, we'll be searching the right directories for
7586# the previously-installed cross compiler, so don't bother to add
7587# flags for directories within the install tree of the compiler
7588# being built; programs in there won't even run.
7589if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7590 # Search for pre-installed headers if nothing else fits.
bba45b8b 7591 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
7592fi
7593
7594if test "x${use_gnu_ld}" = x &&
7595 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7596 # Arrange for us to find uninstalled linker scripts.
b00612cc 7597 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7598fi
7599
a481dbb7
DD
7600# Search for other target-specific linker scripts and such.
7601case "${target}" in
4e206d7e
DB
7602 mep*)
7603 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7604 ;;
7605esac
7606
a0da8069 7607# Makefile fragments.
3e707e94
PB
7608for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7609do
7610 eval fragval=\$$frag
7611 if test $fragval != /dev/null; then
7612 eval $frag=${srcdir}/$fragval
7613 fi
7614done
a0da8069
NN
7615
7616
7617
7618
7619
7620# Miscellanea: directories, flags, etc.
7621
7622
7623
7624
7625
7626
7627
3bbd2f8f 7628
6a9cf61e 7629# Build module lists & subconfigure args.
a0da8069
NN
7630
7631
7632
be01d343
PB
7633# Host module lists & subconfigure args.
7634
7635
7636
911e63d0 7637
be01d343
PB
7638# Target module lists & subconfigure args.
7639
7640
7641
7642# Build tools.
7643
7644
7645
1576798e
PB
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
be01d343
PB
7660# Generate default definitions for YACC, M4, LEX and other programs that run
7661# on the build machine. These are used if the Makefile can't locate these
7662# programs in objdir.
7663MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7664
7665for ac_prog in 'bison -y' byacc yacc
7666do
c6b750e1 7667 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7668set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670$as_echo_n "checking for $ac_word... " >&6; }
7671if test "${ac_cv_prog_YACC+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
be01d343
PB
7673else
7674 if test -n "$YACC"; then
7675 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7676else
c6b750e1
DJ
7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678for as_dir in $PATH
7679do
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7684 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7686 break 2
7687 fi
7688done
81ecdfbb
RW
7689 done
7690IFS=$as_save_IFS
c6b750e1 7691
be01d343
PB
7692fi
7693fi
c6b750e1 7694YACC=$ac_cv_prog_YACC
be01d343 7695if test -n "$YACC"; then
81ecdfbb
RW
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7697$as_echo "$YACC" >&6; }
be01d343 7698else
81ecdfbb
RW
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700$as_echo "no" >&6; }
be01d343
PB
7701fi
7702
81ecdfbb 7703
c6b750e1 7704 test -n "$YACC" && break
be01d343
PB
7705done
7706test -n "$YACC" || YACC="$MISSING bison -y"
7707
7708case " $build_configdirs " in
7709 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7710esac
7711
7712for ac_prog in bison
7713do
c6b750e1 7714 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7715set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717$as_echo_n "checking for $ac_word... " >&6; }
7718if test "${ac_cv_prog_BISON+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
be01d343
PB
7720else
7721 if test -n "$BISON"; then
7722 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7723else
c6b750e1
DJ
7724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7731 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7733 break 2
7734 fi
7735done
81ecdfbb
RW
7736 done
7737IFS=$as_save_IFS
c6b750e1 7738
be01d343
PB
7739fi
7740fi
c6b750e1 7741BISON=$ac_cv_prog_BISON
be01d343 7742if test -n "$BISON"; then
81ecdfbb
RW
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7744$as_echo "$BISON" >&6; }
be01d343 7745else
81ecdfbb
RW
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747$as_echo "no" >&6; }
be01d343
PB
7748fi
7749
81ecdfbb 7750
c6b750e1 7751 test -n "$BISON" && break
be01d343
PB
7752done
7753test -n "$BISON" || BISON="$MISSING bison"
7754
7755case " $build_configdirs " in
7756 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7757esac
7758
7759for ac_prog in gm4 gnum4 m4
7760do
c6b750e1 7761 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7762set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764$as_echo_n "checking for $ac_word... " >&6; }
7765if test "${ac_cv_prog_M4+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
be01d343
PB
7767else
7768 if test -n "$M4"; then
7769 ac_cv_prog_M4="$M4" # Let the user override the test.
7770else
c6b750e1
DJ
7771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772for as_dir in $PATH
7773do
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7778 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7780 break 2
7781 fi
7782done
81ecdfbb
RW
7783 done
7784IFS=$as_save_IFS
c6b750e1 7785
be01d343
PB
7786fi
7787fi
c6b750e1 7788M4=$ac_cv_prog_M4
be01d343 7789if test -n "$M4"; then
81ecdfbb
RW
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7791$as_echo "$M4" >&6; }
be01d343 7792else
81ecdfbb
RW
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794$as_echo "no" >&6; }
be01d343
PB
7795fi
7796
81ecdfbb 7797
c6b750e1 7798 test -n "$M4" && break
be01d343
PB
7799done
7800test -n "$M4" || M4="$MISSING m4"
7801
7802case " $build_configdirs " in
7803 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7804esac
7805
7806for ac_prog in flex lex
7807do
c6b750e1 7808 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7809set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811$as_echo_n "checking for $ac_word... " >&6; }
7812if test "${ac_cv_prog_LEX+set}" = set; then :
7813 $as_echo_n "(cached) " >&6
be01d343
PB
7814else
7815 if test -n "$LEX"; then
7816 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7817else
c6b750e1
DJ
7818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819for as_dir in $PATH
7820do
7821 IFS=$as_save_IFS
7822 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7823 for ac_exec_ext in '' $ac_executable_extensions; do
7824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7825 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7827 break 2
7828 fi
7829done
81ecdfbb
RW
7830 done
7831IFS=$as_save_IFS
c6b750e1 7832
be01d343
PB
7833fi
7834fi
c6b750e1 7835LEX=$ac_cv_prog_LEX
be01d343 7836if test -n "$LEX"; then
81ecdfbb
RW
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7838$as_echo "$LEX" >&6; }
be01d343 7839else
81ecdfbb
RW
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841$as_echo "no" >&6; }
be01d343
PB
7842fi
7843
81ecdfbb 7844
c6b750e1 7845 test -n "$LEX" && break
be01d343
PB
7846done
7847test -n "$LEX" || LEX="$MISSING flex"
7848
7849case " $build_configdirs " in
7850 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7851 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7852esac
7853
7854for ac_prog in flex
7855do
c6b750e1 7856 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7857set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859$as_echo_n "checking for $ac_word... " >&6; }
7860if test "${ac_cv_prog_FLEX+set}" = set; then :
7861 $as_echo_n "(cached) " >&6
be01d343
PB
7862else
7863 if test -n "$FLEX"; then
7864 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7865else
c6b750e1
DJ
7866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867for as_dir in $PATH
7868do
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7873 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7875 break 2
7876 fi
7877done
81ecdfbb
RW
7878 done
7879IFS=$as_save_IFS
c6b750e1 7880
be01d343
PB
7881fi
7882fi
c6b750e1 7883FLEX=$ac_cv_prog_FLEX
be01d343 7884if test -n "$FLEX"; then
81ecdfbb
RW
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7886$as_echo "$FLEX" >&6; }
be01d343 7887else
81ecdfbb
RW
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889$as_echo "no" >&6; }
be01d343
PB
7890fi
7891
81ecdfbb 7892
c6b750e1 7893 test -n "$FLEX" && break
be01d343
PB
7894done
7895test -n "$FLEX" || FLEX="$MISSING flex"
7896
7897case " $build_configdirs " in
7898 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7899esac
7900
7901for ac_prog in makeinfo
7902do
c6b750e1 7903 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7904set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906$as_echo_n "checking for $ac_word... " >&6; }
7907if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7908 $as_echo_n "(cached) " >&6
be01d343
PB
7909else
7910 if test -n "$MAKEINFO"; then
7911 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7912else
c6b750e1
DJ
7913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914for as_dir in $PATH
7915do
7916 IFS=$as_save_IFS
7917 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7920 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7922 break 2
7923 fi
7924done
81ecdfbb
RW
7925 done
7926IFS=$as_save_IFS
c6b750e1 7927
be01d343
PB
7928fi
7929fi
c6b750e1 7930MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7931if test -n "$MAKEINFO"; then
81ecdfbb
RW
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7933$as_echo "$MAKEINFO" >&6; }
be01d343 7934else
81ecdfbb
RW
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936$as_echo "no" >&6; }
be01d343
PB
7937fi
7938
81ecdfbb 7939
c6b750e1 7940 test -n "$MAKEINFO" && break
be01d343
PB
7941done
7942test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7943
7944case " $build_configdirs " in
7945 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7946 *)
7947
10ad8ef3 7948 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7949 # higher, else we use the "missing" dummy.
7950 if ${MAKEINFO} --version \
10ad8ef3 7951 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7952 :
7953 else
7954 MAKEINFO="$MISSING makeinfo"
7955 fi
7956 ;;
7957
7958esac
a0da8069 7959
be01d343 7960# FIXME: expect and dejagnu may become build tools?
a0da8069 7961
be01d343
PB
7962for ac_prog in expect
7963do
c6b750e1 7964 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7965set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967$as_echo_n "checking for $ac_word... " >&6; }
7968if test "${ac_cv_prog_EXPECT+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
be01d343
PB
7970else
7971 if test -n "$EXPECT"; then
7972 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7973else
c6b750e1
DJ
7974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975for as_dir in $PATH
7976do
7977 IFS=$as_save_IFS
7978 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7981 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7983 break 2
7984 fi
7985done
81ecdfbb
RW
7986 done
7987IFS=$as_save_IFS
c6b750e1 7988
be01d343
PB
7989fi
7990fi
c6b750e1 7991EXPECT=$ac_cv_prog_EXPECT
be01d343 7992if test -n "$EXPECT"; then
81ecdfbb
RW
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7994$as_echo "$EXPECT" >&6; }
be01d343 7995else
81ecdfbb
RW
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997$as_echo "no" >&6; }
be01d343 7998fi
a0da8069 7999
81ecdfbb 8000
c6b750e1 8001 test -n "$EXPECT" && break
be01d343
PB
8002done
8003test -n "$EXPECT" || EXPECT="expect"
a0da8069 8004
be01d343
PB
8005case " $configdirs " in
8006 *" expect "*)
8007 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8008 ;;
8009esac
a0da8069 8010
be01d343
PB
8011for ac_prog in runtest
8012do
c6b750e1 8013 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8014set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016$as_echo_n "checking for $ac_word... " >&6; }
8017if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8018 $as_echo_n "(cached) " >&6
be01d343
PB
8019else
8020 if test -n "$RUNTEST"; then
8021 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8022else
c6b750e1
DJ
8023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024for as_dir in $PATH
8025do
8026 IFS=$as_save_IFS
8027 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8030 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8032 break 2
8033 fi
8034done
81ecdfbb
RW
8035 done
8036IFS=$as_save_IFS
c6b750e1 8037
be01d343
PB
8038fi
8039fi
c6b750e1 8040RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8041if test -n "$RUNTEST"; then
81ecdfbb
RW
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8043$as_echo "$RUNTEST" >&6; }
be01d343 8044else
81ecdfbb
RW
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046$as_echo "no" >&6; }
be01d343 8047fi
a0da8069 8048
81ecdfbb 8049
c6b750e1 8050 test -n "$RUNTEST" && break
be01d343
PB
8051done
8052test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8053
be01d343
PB
8054case " $configdirs " in
8055 *" dejagnu "*)
6b89cc21 8056 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8057 ;;
8058esac
a0da8069
NN
8059
8060
a0da8069 8061# Host tools.
859789af
AC
8062ncn_tool_prefix=
8063test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8064ncn_target_tool_prefix=
8065test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8066
9a819804
AO
8067
8068
8069if test -n "$AR"; then
8070 ac_cv_prog_AR=$AR
8071elif test -n "$ac_cv_prog_AR"; then
8072 AR=$ac_cv_prog_AR
8073fi
8074
8075if test -n "$ac_cv_prog_AR"; then
8076 for ncn_progname in ar; do
8077 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8078set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080$as_echo_n "checking for $ac_word... " >&6; }
8081if test "${ac_cv_prog_AR+set}" = set; then :
8082 $as_echo_n "(cached) " >&6
9a819804
AO
8083else
8084 if test -n "$AR"; then
8085 ac_cv_prog_AR="$AR" # Let the user override the test.
8086else
8087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088for as_dir in $PATH
8089do
8090 IFS=$as_save_IFS
8091 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8094 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8096 break 2
8097 fi
8098done
81ecdfbb
RW
8099 done
8100IFS=$as_save_IFS
9a819804
AO
8101
8102fi
8103fi
8104AR=$ac_cv_prog_AR
8105if test -n "$AR"; then
81ecdfbb
RW
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8107$as_echo "$AR" >&6; }
9a819804 8108else
81ecdfbb
RW
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110$as_echo "no" >&6; }
9a819804
AO
8111fi
8112
81ecdfbb 8113
9a819804
AO
8114 done
8115fi
8116
8117for ncn_progname in ar; do
05cbd757
PB
8118 if test -n "$ncn_tool_prefix"; then
8119 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8120set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122$as_echo_n "checking for $ac_word... " >&6; }
8123if test "${ac_cv_prog_AR+set}" = set; then :
8124 $as_echo_n "(cached) " >&6
859789af
AC
8125else
8126 if test -n "$AR"; then
8127 ac_cv_prog_AR="$AR" # Let the user override the test.
8128else
c6b750e1
DJ
8129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130for as_dir in $PATH
8131do
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8136 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8138 break 2
8139 fi
8140done
81ecdfbb
RW
8141 done
8142IFS=$as_save_IFS
c6b750e1 8143
859789af
AC
8144fi
8145fi
c6b750e1 8146AR=$ac_cv_prog_AR
859789af 8147if test -n "$AR"; then
81ecdfbb
RW
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8149$as_echo "$AR" >&6; }
859789af 8150else
81ecdfbb
RW
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152$as_echo "no" >&6; }
859789af
AC
8153fi
8154
81ecdfbb 8155
05cbd757
PB
8156 fi
8157 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8159set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161$as_echo_n "checking for $ac_word... " >&6; }
8162if test "${ac_cv_prog_AR+set}" = set; then :
8163 $as_echo_n "(cached) " >&6
859789af 8164else
05cbd757
PB
8165 if test -n "$AR"; then
8166 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8167else
c6b750e1
DJ
8168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169for as_dir in $PATH
8170do
8171 IFS=$as_save_IFS
8172 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8173 for ac_exec_ext in '' $ac_executable_extensions; do
8174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8175 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8177 break 2
8178 fi
8179done
81ecdfbb
RW
8180 done
8181IFS=$as_save_IFS
c6b750e1 8182
859789af
AC
8183fi
8184fi
c6b750e1 8185AR=$ac_cv_prog_AR
05cbd757 8186if test -n "$AR"; then
81ecdfbb
RW
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8188$as_echo "$AR" >&6; }
859789af 8189else
81ecdfbb
RW
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191$as_echo "no" >&6; }
859789af 8192fi
c6b750e1 8193
81ecdfbb 8194
05cbd757
PB
8195 fi
8196 test -n "$ac_cv_prog_AR" && break
8197done
8198
8199if test -z "$ac_cv_prog_AR" ; then
8200 set dummy ar
8201 if test $build = $host ; then
8202 AR="$2"
859789af 8203 else
05cbd757 8204 AR="${ncn_tool_prefix}$2"
859789af 8205 fi
859789af
AC
8206fi
8207
9a819804
AO
8208
8209
8210if test -n "$AS"; then
8211 ac_cv_prog_AS=$AS
8212elif test -n "$ac_cv_prog_AS"; then
8213 AS=$ac_cv_prog_AS
8214fi
8215
8216if test -n "$ac_cv_prog_AS"; then
8217 for ncn_progname in as; do
8218 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8219set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8221$as_echo_n "checking for $ac_word... " >&6; }
8222if test "${ac_cv_prog_AS+set}" = set; then :
8223 $as_echo_n "(cached) " >&6
9a819804
AO
8224else
8225 if test -n "$AS"; then
8226 ac_cv_prog_AS="$AS" # Let the user override the test.
8227else
8228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229for as_dir in $PATH
8230do
8231 IFS=$as_save_IFS
8232 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8235 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8237 break 2
8238 fi
8239done
81ecdfbb
RW
8240 done
8241IFS=$as_save_IFS
9a819804
AO
8242
8243fi
8244fi
8245AS=$ac_cv_prog_AS
8246if test -n "$AS"; then
81ecdfbb
RW
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8248$as_echo "$AS" >&6; }
9a819804 8249else
81ecdfbb
RW
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251$as_echo "no" >&6; }
9a819804
AO
8252fi
8253
81ecdfbb 8254
9a819804
AO
8255 done
8256fi
8257
8258for ncn_progname in as; do
05cbd757
PB
8259 if test -n "$ncn_tool_prefix"; then
8260 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8261set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263$as_echo_n "checking for $ac_word... " >&6; }
8264if test "${ac_cv_prog_AS+set}" = set; then :
8265 $as_echo_n "(cached) " >&6
859789af
AC
8266else
8267 if test -n "$AS"; then
8268 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8269else
8270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271for as_dir in $PATH
8272do
8273 IFS=$as_save_IFS
8274 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8277 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8279 break 2
8280 fi
8281done
81ecdfbb
RW
8282 done
8283IFS=$as_save_IFS
c6b750e1 8284
859789af
AC
8285fi
8286fi
c6b750e1 8287AS=$ac_cv_prog_AS
859789af 8288if test -n "$AS"; then
81ecdfbb
RW
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8290$as_echo "$AS" >&6; }
859789af 8291else
81ecdfbb
RW
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293$as_echo "no" >&6; }
859789af
AC
8294fi
8295
81ecdfbb 8296
05cbd757
PB
8297 fi
8298 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8300set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302$as_echo_n "checking for $ac_word... " >&6; }
8303if test "${ac_cv_prog_AS+set}" = set; then :
8304 $as_echo_n "(cached) " >&6
859789af 8305else
05cbd757
PB
8306 if test -n "$AS"; then
8307 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8308else
c6b750e1
DJ
8309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310for as_dir in $PATH
8311do
8312 IFS=$as_save_IFS
8313 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8316 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8318 break 2
8319 fi
8320done
81ecdfbb
RW
8321 done
8322IFS=$as_save_IFS
c6b750e1 8323
859789af
AC
8324fi
8325fi
c6b750e1 8326AS=$ac_cv_prog_AS
05cbd757 8327if test -n "$AS"; then
81ecdfbb
RW
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8329$as_echo "$AS" >&6; }
859789af 8330else
81ecdfbb
RW
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332$as_echo "no" >&6; }
859789af 8333fi
c6b750e1 8334
81ecdfbb 8335
05cbd757
PB
8336 fi
8337 test -n "$ac_cv_prog_AS" && break
8338done
8339
8340if test -z "$ac_cv_prog_AS" ; then
8341 set dummy as
8342 if test $build = $host ; then
8343 AS="$2"
859789af 8344 else
05cbd757 8345 AS="${ncn_tool_prefix}$2"
859789af 8346 fi
859789af
AC
8347fi
8348
9a819804
AO
8349
8350
8351if test -n "$DLLTOOL"; then
8352 ac_cv_prog_DLLTOOL=$DLLTOOL
8353elif test -n "$ac_cv_prog_DLLTOOL"; then
8354 DLLTOOL=$ac_cv_prog_DLLTOOL
8355fi
8356
8357if test -n "$ac_cv_prog_DLLTOOL"; then
8358 for ncn_progname in dlltool; do
8359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8360set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362$as_echo_n "checking for $ac_word... " >&6; }
8363if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8364 $as_echo_n "(cached) " >&6
9a819804
AO
8365else
8366 if test -n "$DLLTOOL"; then
8367 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8368else
8369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370for as_dir in $PATH
8371do
8372 IFS=$as_save_IFS
8373 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8374 for ac_exec_ext in '' $ac_executable_extensions; do
8375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8376 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8378 break 2
8379 fi
8380done
81ecdfbb
RW
8381 done
8382IFS=$as_save_IFS
9a819804
AO
8383
8384fi
8385fi
8386DLLTOOL=$ac_cv_prog_DLLTOOL
8387if test -n "$DLLTOOL"; then
81ecdfbb
RW
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8389$as_echo "$DLLTOOL" >&6; }
9a819804 8390else
81ecdfbb
RW
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392$as_echo "no" >&6; }
9a819804
AO
8393fi
8394
81ecdfbb 8395
9a819804
AO
8396 done
8397fi
8398
8399for ncn_progname in dlltool; do
05cbd757
PB
8400 if test -n "$ncn_tool_prefix"; then
8401 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8402set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404$as_echo_n "checking for $ac_word... " >&6; }
8405if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8406 $as_echo_n "(cached) " >&6
859789af
AC
8407else
8408 if test -n "$DLLTOOL"; then
8409 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8410else
c6b750e1
DJ
8411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412for as_dir in $PATH
8413do
8414 IFS=$as_save_IFS
8415 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8418 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8420 break 2
8421 fi
8422done
81ecdfbb
RW
8423 done
8424IFS=$as_save_IFS
c6b750e1 8425
859789af
AC
8426fi
8427fi
c6b750e1 8428DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8429if test -n "$DLLTOOL"; then
81ecdfbb
RW
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8431$as_echo "$DLLTOOL" >&6; }
859789af 8432else
81ecdfbb
RW
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434$as_echo "no" >&6; }
859789af
AC
8435fi
8436
81ecdfbb 8437
05cbd757
PB
8438 fi
8439 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8441set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8443$as_echo_n "checking for $ac_word... " >&6; }
8444if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8445 $as_echo_n "(cached) " >&6
859789af 8446else
05cbd757
PB
8447 if test -n "$DLLTOOL"; then
8448 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8449else
c6b750e1
DJ
8450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451for as_dir in $PATH
8452do
8453 IFS=$as_save_IFS
8454 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8455 for ac_exec_ext in '' $ac_executable_extensions; do
8456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8457 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8459 break 2
8460 fi
8461done
81ecdfbb
RW
8462 done
8463IFS=$as_save_IFS
c6b750e1 8464
859789af
AC
8465fi
8466fi
c6b750e1 8467DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8468if test -n "$DLLTOOL"; then
81ecdfbb
RW
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8470$as_echo "$DLLTOOL" >&6; }
859789af 8471else
81ecdfbb
RW
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473$as_echo "no" >&6; }
859789af 8474fi
c6b750e1 8475
81ecdfbb 8476
05cbd757
PB
8477 fi
8478 test -n "$ac_cv_prog_DLLTOOL" && break
8479done
8480
8481if test -z "$ac_cv_prog_DLLTOOL" ; then
8482 set dummy dlltool
8483 if test $build = $host ; then
8484 DLLTOOL="$2"
859789af 8485 else
05cbd757 8486 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8487 fi
859789af
AC
8488fi
8489
9a819804
AO
8490
8491
8492if test -n "$LD"; then
8493 ac_cv_prog_LD=$LD
8494elif test -n "$ac_cv_prog_LD"; then
8495 LD=$ac_cv_prog_LD
8496fi
8497
8498if test -n "$ac_cv_prog_LD"; then
8499 for ncn_progname in ld; do
8500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8501set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503$as_echo_n "checking for $ac_word... " >&6; }
8504if test "${ac_cv_prog_LD+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
9a819804
AO
8506else
8507 if test -n "$LD"; then
8508 ac_cv_prog_LD="$LD" # Let the user override the test.
8509else
8510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511for as_dir in $PATH
8512do
8513 IFS=$as_save_IFS
8514 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8515 for ac_exec_ext in '' $ac_executable_extensions; do
8516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8517 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8519 break 2
8520 fi
8521done
81ecdfbb
RW
8522 done
8523IFS=$as_save_IFS
9a819804
AO
8524
8525fi
8526fi
8527LD=$ac_cv_prog_LD
8528if test -n "$LD"; then
81ecdfbb
RW
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8530$as_echo "$LD" >&6; }
9a819804 8531else
81ecdfbb
RW
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533$as_echo "no" >&6; }
9a819804
AO
8534fi
8535
81ecdfbb 8536
9a819804
AO
8537 done
8538fi
8539
8540for ncn_progname in ld; do
05cbd757
PB
8541 if test -n "$ncn_tool_prefix"; then
8542 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8543set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8545$as_echo_n "checking for $ac_word... " >&6; }
8546if test "${ac_cv_prog_LD+set}" = set; then :
8547 $as_echo_n "(cached) " >&6
859789af
AC
8548else
8549 if test -n "$LD"; then
8550 ac_cv_prog_LD="$LD" # Let the user override the test.
8551else
c6b750e1
DJ
8552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553for as_dir in $PATH
8554do
8555 IFS=$as_save_IFS
8556 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8557 for ac_exec_ext in '' $ac_executable_extensions; do
8558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8559 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8561 break 2
8562 fi
8563done
81ecdfbb
RW
8564 done
8565IFS=$as_save_IFS
c6b750e1 8566
859789af
AC
8567fi
8568fi
c6b750e1 8569LD=$ac_cv_prog_LD
859789af 8570if test -n "$LD"; then
81ecdfbb
RW
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8572$as_echo "$LD" >&6; }
859789af 8573else
81ecdfbb
RW
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575$as_echo "no" >&6; }
859789af
AC
8576fi
8577
81ecdfbb 8578
05cbd757
PB
8579 fi
8580 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8582set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584$as_echo_n "checking for $ac_word... " >&6; }
8585if test "${ac_cv_prog_LD+set}" = set; then :
8586 $as_echo_n "(cached) " >&6
859789af 8587else
05cbd757
PB
8588 if test -n "$LD"; then
8589 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8590else
c6b750e1
DJ
8591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592for as_dir in $PATH
8593do
8594 IFS=$as_save_IFS
8595 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8598 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8600 break 2
8601 fi
8602done
81ecdfbb
RW
8603 done
8604IFS=$as_save_IFS
c6b750e1 8605
859789af
AC
8606fi
8607fi
c6b750e1 8608LD=$ac_cv_prog_LD
05cbd757 8609if test -n "$LD"; then
81ecdfbb
RW
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8611$as_echo "$LD" >&6; }
859789af 8612else
81ecdfbb
RW
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614$as_echo "no" >&6; }
859789af 8615fi
c6b750e1 8616
81ecdfbb 8617
05cbd757
PB
8618 fi
8619 test -n "$ac_cv_prog_LD" && break
8620done
8621
8622if test -z "$ac_cv_prog_LD" ; then
8623 set dummy ld
8624 if test $build = $host ; then
8625 LD="$2"
859789af 8626 else
05cbd757 8627 LD="${ncn_tool_prefix}$2"
859789af 8628 fi
859789af
AC
8629fi
8630
9a819804
AO
8631
8632
8633if test -n "$LIPO"; then
8634 ac_cv_prog_LIPO=$LIPO
8635elif test -n "$ac_cv_prog_LIPO"; then
8636 LIPO=$ac_cv_prog_LIPO
8637fi
8638
8639if test -n "$ac_cv_prog_LIPO"; then
8640 for ncn_progname in lipo; do
8641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8642set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644$as_echo_n "checking for $ac_word... " >&6; }
8645if test "${ac_cv_prog_LIPO+set}" = set; then :
8646 $as_echo_n "(cached) " >&6
9a819804
AO
8647else
8648 if test -n "$LIPO"; then
8649 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8650else
8651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652for as_dir in $PATH
8653do
8654 IFS=$as_save_IFS
8655 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8656 for ac_exec_ext in '' $ac_executable_extensions; do
8657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8658 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8660 break 2
8661 fi
8662done
81ecdfbb
RW
8663 done
8664IFS=$as_save_IFS
9a819804
AO
8665
8666fi
8667fi
8668LIPO=$ac_cv_prog_LIPO
8669if test -n "$LIPO"; then
81ecdfbb
RW
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8671$as_echo "$LIPO" >&6; }
9a819804 8672else
81ecdfbb
RW
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8674$as_echo "no" >&6; }
9a819804
AO
8675fi
8676
81ecdfbb 8677
9a819804
AO
8678 done
8679fi
8680
8681for ncn_progname in lipo; do
be01d343
PB
8682 if test -n "$ncn_tool_prefix"; then
8683 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8684set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8686$as_echo_n "checking for $ac_word... " >&6; }
8687if test "${ac_cv_prog_LIPO+set}" = set; then :
8688 $as_echo_n "(cached) " >&6
be01d343
PB
8689else
8690 if test -n "$LIPO"; then
8691 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8692else
c6b750e1
DJ
8693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694for as_dir in $PATH
8695do
8696 IFS=$as_save_IFS
8697 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8698 for ac_exec_ext in '' $ac_executable_extensions; do
8699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8700 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8702 break 2
8703 fi
8704done
81ecdfbb
RW
8705 done
8706IFS=$as_save_IFS
c6b750e1 8707
be01d343
PB
8708fi
8709fi
c6b750e1 8710LIPO=$ac_cv_prog_LIPO
be01d343 8711if test -n "$LIPO"; then
81ecdfbb
RW
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8713$as_echo "$LIPO" >&6; }
be01d343 8714else
81ecdfbb
RW
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716$as_echo "no" >&6; }
be01d343
PB
8717fi
8718
81ecdfbb 8719
be01d343
PB
8720 fi
8721 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8723set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725$as_echo_n "checking for $ac_word... " >&6; }
8726if test "${ac_cv_prog_LIPO+set}" = set; then :
8727 $as_echo_n "(cached) " >&6
be01d343
PB
8728else
8729 if test -n "$LIPO"; then
8730 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8731else
c6b750e1
DJ
8732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733for as_dir in $PATH
8734do
8735 IFS=$as_save_IFS
8736 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8737 for ac_exec_ext in '' $ac_executable_extensions; do
8738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8739 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8741 break 2
8742 fi
8743done
81ecdfbb
RW
8744 done
8745IFS=$as_save_IFS
c6b750e1 8746
be01d343
PB
8747fi
8748fi
c6b750e1 8749LIPO=$ac_cv_prog_LIPO
be01d343 8750if test -n "$LIPO"; then
81ecdfbb
RW
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8752$as_echo "$LIPO" >&6; }
be01d343 8753else
81ecdfbb
RW
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755$as_echo "no" >&6; }
be01d343 8756fi
c6b750e1 8757
81ecdfbb 8758
be01d343
PB
8759 fi
8760 test -n "$ac_cv_prog_LIPO" && break
8761done
8762
8763if test -z "$ac_cv_prog_LIPO" ; then
8764 set dummy lipo
8765 if test $build = $host ; then
8766 LIPO="$2"
8767 else
8768 LIPO="${ncn_tool_prefix}$2"
8769 fi
8770fi
8771
9a819804
AO
8772
8773
8774if test -n "$NM"; then
8775 ac_cv_prog_NM=$NM
8776elif test -n "$ac_cv_prog_NM"; then
8777 NM=$ac_cv_prog_NM
8778fi
8779
8780if test -n "$ac_cv_prog_NM"; then
8781 for ncn_progname in nm; do
8782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8783set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785$as_echo_n "checking for $ac_word... " >&6; }
8786if test "${ac_cv_prog_NM+set}" = set; then :
8787 $as_echo_n "(cached) " >&6
859789af
AC
8788else
8789 if test -n "$NM"; then
8790 ac_cv_prog_NM="$NM" # Let the user override the test.
8791else
c6b750e1
DJ
8792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793for as_dir in $PATH
8794do
8795 IFS=$as_save_IFS
8796 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8797 for ac_exec_ext in '' $ac_executable_extensions; do
8798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8799 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8801 break 2
8802 fi
8803done
81ecdfbb
RW
8804 done
8805IFS=$as_save_IFS
c6b750e1 8806
859789af
AC
8807fi
8808fi
c6b750e1 8809NM=$ac_cv_prog_NM
859789af 8810if test -n "$NM"; then
81ecdfbb
RW
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8812$as_echo "$NM" >&6; }
859789af 8813else
81ecdfbb
RW
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815$as_echo "no" >&6; }
859789af
AC
8816fi
8817
81ecdfbb 8818
9a819804
AO
8819 done
8820fi
8821
8822for ncn_progname in nm; do
8823 if test -n "$ncn_tool_prefix"; then
8824 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8825set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827$as_echo_n "checking for $ac_word... " >&6; }
8828if test "${ac_cv_prog_NM+set}" = set; then :
8829 $as_echo_n "(cached) " >&6
859789af 8830else
05cbd757
PB
8831 if test -n "$NM"; then
8832 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8833else
c6b750e1
DJ
8834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835for as_dir in $PATH
8836do
8837 IFS=$as_save_IFS
8838 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8839 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8841 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8843 break 2
8844 fi
8845done
81ecdfbb
RW
8846 done
8847IFS=$as_save_IFS
c6b750e1 8848
859789af
AC
8849fi
8850fi
c6b750e1 8851NM=$ac_cv_prog_NM
05cbd757 8852if test -n "$NM"; then
81ecdfbb
RW
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8854$as_echo "$NM" >&6; }
859789af 8855else
81ecdfbb
RW
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857$as_echo "no" >&6; }
859789af 8858fi
c6b750e1 8859
81ecdfbb 8860
05cbd757 8861 fi
9a819804
AO
8862 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8864set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866$as_echo_n "checking for $ac_word... " >&6; }
8867if test "${ac_cv_prog_NM+set}" = set; then :
8868 $as_echo_n "(cached) " >&6
9a819804
AO
8869else
8870 if test -n "$NM"; then
8871 ac_cv_prog_NM="$NM" # Let the user override the test.
8872else
8873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874for as_dir in $PATH
8875do
8876 IFS=$as_save_IFS
8877 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8878 for ac_exec_ext in '' $ac_executable_extensions; do
8879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8880 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8882 break 2
8883 fi
8884done
81ecdfbb
RW
8885 done
8886IFS=$as_save_IFS
9a819804
AO
8887
8888fi
8889fi
8890NM=$ac_cv_prog_NM
8891if test -n "$NM"; then
81ecdfbb
RW
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8893$as_echo "$NM" >&6; }
9a819804 8894else
81ecdfbb
RW
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896$as_echo "no" >&6; }
9a819804
AO
8897fi
8898
81ecdfbb 8899
9a819804
AO
8900 fi
8901 test -n "$ac_cv_prog_NM" && break
8902done
8903
8904if test -z "$ac_cv_prog_NM" ; then
8905 set dummy nm
8906 if test $build = $host ; then
8907 NM="$2"
8908 else
8909 NM="${ncn_tool_prefix}$2"
8910 fi
8911fi
8912
8913
8914
8915if test -n "$RANLIB"; then
8916 ac_cv_prog_RANLIB=$RANLIB
8917elif test -n "$ac_cv_prog_RANLIB"; then
8918 RANLIB=$ac_cv_prog_RANLIB
8919fi
8920
8921if test -n "$ac_cv_prog_RANLIB"; then
8922 for ncn_progname in ranlib; do
8923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8924set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8926$as_echo_n "checking for $ac_word... " >&6; }
8927if test "${ac_cv_prog_RANLIB+set}" = set; then :
8928 $as_echo_n "(cached) " >&6
9a819804
AO
8929else
8930 if test -n "$RANLIB"; then
8931 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8932else
8933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934for as_dir in $PATH
8935do
8936 IFS=$as_save_IFS
8937 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8938 for ac_exec_ext in '' $ac_executable_extensions; do
8939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8940 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8942 break 2
8943 fi
8944done
81ecdfbb
RW
8945 done
8946IFS=$as_save_IFS
9a819804
AO
8947
8948fi
8949fi
8950RANLIB=$ac_cv_prog_RANLIB
8951if test -n "$RANLIB"; then
81ecdfbb
RW
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8953$as_echo "$RANLIB" >&6; }
9a819804 8954else
81ecdfbb
RW
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956$as_echo "no" >&6; }
9a819804
AO
8957fi
8958
81ecdfbb 8959
9a819804
AO
8960 done
8961fi
859789af 8962
9a819804 8963for ncn_progname in ranlib; do
05cbd757
PB
8964 if test -n "$ncn_tool_prefix"; then
8965 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8966set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8968$as_echo_n "checking for $ac_word... " >&6; }
8969if test "${ac_cv_prog_RANLIB+set}" = set; then :
8970 $as_echo_n "(cached) " >&6
859789af
AC
8971else
8972 if test -n "$RANLIB"; then
8973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8974else
c6b750e1
DJ
8975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976for as_dir in $PATH
8977do
8978 IFS=$as_save_IFS
8979 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8980 for ac_exec_ext in '' $ac_executable_extensions; do
8981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8982 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8984 break 2
8985 fi
8986done
81ecdfbb
RW
8987 done
8988IFS=$as_save_IFS
c6b750e1 8989
859789af
AC
8990fi
8991fi
c6b750e1 8992RANLIB=$ac_cv_prog_RANLIB
859789af 8993if test -n "$RANLIB"; then
81ecdfbb
RW
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8995$as_echo "$RANLIB" >&6; }
859789af 8996else
81ecdfbb
RW
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8998$as_echo "no" >&6; }
859789af
AC
8999fi
9000
81ecdfbb 9001
05cbd757
PB
9002 fi
9003 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9004 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9005set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9007$as_echo_n "checking for $ac_word... " >&6; }
9008if test "${ac_cv_prog_RANLIB+set}" = set; then :
9009 $as_echo_n "(cached) " >&6
859789af 9010else
05cbd757
PB
9011 if test -n "$RANLIB"; then
9012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9013else
c6b750e1
DJ
9014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015for as_dir in $PATH
9016do
9017 IFS=$as_save_IFS
9018 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9019 for ac_exec_ext in '' $ac_executable_extensions; do
9020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9021 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9023 break 2
9024 fi
9025done
81ecdfbb
RW
9026 done
9027IFS=$as_save_IFS
c6b750e1 9028
859789af
AC
9029fi
9030fi
c6b750e1 9031RANLIB=$ac_cv_prog_RANLIB
05cbd757 9032if test -n "$RANLIB"; then
81ecdfbb
RW
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9034$as_echo "$RANLIB" >&6; }
859789af 9035else
81ecdfbb
RW
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037$as_echo "no" >&6; }
859789af 9038fi
c6b750e1 9039
81ecdfbb 9040
859789af 9041 fi
05cbd757
PB
9042 test -n "$ac_cv_prog_RANLIB" && break
9043done
9044
9045if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9046 RANLIB="true"
859789af
AC
9047fi
9048
9a819804
AO
9049
9050
9051if test -n "$STRIP"; then
9052 ac_cv_prog_STRIP=$STRIP
9053elif test -n "$ac_cv_prog_STRIP"; then
9054 STRIP=$ac_cv_prog_STRIP
9055fi
9056
9057if test -n "$ac_cv_prog_STRIP"; then
9058 for ncn_progname in strip; do
9059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9060set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9062$as_echo_n "checking for $ac_word... " >&6; }
9063if test "${ac_cv_prog_STRIP+set}" = set; then :
9064 $as_echo_n "(cached) " >&6
9a819804
AO
9065else
9066 if test -n "$STRIP"; then
9067 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9068else
9069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9070for as_dir in $PATH
9071do
9072 IFS=$as_save_IFS
9073 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9074 for ac_exec_ext in '' $ac_executable_extensions; do
9075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9076 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9078 break 2
9079 fi
9080done
81ecdfbb
RW
9081 done
9082IFS=$as_save_IFS
9a819804
AO
9083
9084fi
9085fi
9086STRIP=$ac_cv_prog_STRIP
9087if test -n "$STRIP"; then
81ecdfbb
RW
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9089$as_echo "$STRIP" >&6; }
9a819804 9090else
81ecdfbb
RW
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092$as_echo "no" >&6; }
9a819804
AO
9093fi
9094
81ecdfbb 9095
9a819804
AO
9096 done
9097fi
9098
9099for ncn_progname in strip; do
be01d343
PB
9100 if test -n "$ncn_tool_prefix"; then
9101 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9102set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9104$as_echo_n "checking for $ac_word... " >&6; }
9105if test "${ac_cv_prog_STRIP+set}" = set; then :
9106 $as_echo_n "(cached) " >&6
be01d343
PB
9107else
9108 if test -n "$STRIP"; then
9109 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9110else
c6b750e1
DJ
9111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112for as_dir in $PATH
9113do
9114 IFS=$as_save_IFS
9115 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9116 for ac_exec_ext in '' $ac_executable_extensions; do
9117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9118 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9120 break 2
9121 fi
9122done
81ecdfbb
RW
9123 done
9124IFS=$as_save_IFS
c6b750e1 9125
be01d343
PB
9126fi
9127fi
c6b750e1 9128STRIP=$ac_cv_prog_STRIP
be01d343 9129if test -n "$STRIP"; then
81ecdfbb
RW
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9131$as_echo "$STRIP" >&6; }
be01d343 9132else
81ecdfbb
RW
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134$as_echo "no" >&6; }
be01d343
PB
9135fi
9136
81ecdfbb 9137
be01d343
PB
9138 fi
9139 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9141set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9143$as_echo_n "checking for $ac_word... " >&6; }
9144if test "${ac_cv_prog_STRIP+set}" = set; then :
9145 $as_echo_n "(cached) " >&6
be01d343
PB
9146else
9147 if test -n "$STRIP"; then
9148 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9149else
c6b750e1
DJ
9150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151for as_dir in $PATH
9152do
9153 IFS=$as_save_IFS
9154 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9155 for ac_exec_ext in '' $ac_executable_extensions; do
9156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9157 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9159 break 2
9160 fi
9161done
81ecdfbb
RW
9162 done
9163IFS=$as_save_IFS
c6b750e1 9164
be01d343
PB
9165fi
9166fi
c6b750e1 9167STRIP=$ac_cv_prog_STRIP
be01d343 9168if test -n "$STRIP"; then
81ecdfbb
RW
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9170$as_echo "$STRIP" >&6; }
be01d343 9171else
81ecdfbb
RW
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173$as_echo "no" >&6; }
be01d343 9174fi
c6b750e1 9175
81ecdfbb 9176
be01d343
PB
9177 fi
9178 test -n "$ac_cv_prog_STRIP" && break
9179done
9180
9181if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9182 STRIP="true"
be01d343
PB
9183fi
9184
9a819804
AO
9185
9186
9187if test -n "$WINDRES"; then
9188 ac_cv_prog_WINDRES=$WINDRES
9189elif test -n "$ac_cv_prog_WINDRES"; then
9190 WINDRES=$ac_cv_prog_WINDRES
9191fi
9192
9193if test -n "$ac_cv_prog_WINDRES"; then
9194 for ncn_progname in windres; do
9195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9196set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9198$as_echo_n "checking for $ac_word... " >&6; }
9199if test "${ac_cv_prog_WINDRES+set}" = set; then :
9200 $as_echo_n "(cached) " >&6
9a819804
AO
9201else
9202 if test -n "$WINDRES"; then
9203 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9204else
9205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9206for as_dir in $PATH
9207do
9208 IFS=$as_save_IFS
9209 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9210 for ac_exec_ext in '' $ac_executable_extensions; do
9211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9212 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9214 break 2
9215 fi
9216done
81ecdfbb
RW
9217 done
9218IFS=$as_save_IFS
9a819804
AO
9219
9220fi
9221fi
9222WINDRES=$ac_cv_prog_WINDRES
9223if test -n "$WINDRES"; then
81ecdfbb
RW
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9225$as_echo "$WINDRES" >&6; }
9a819804 9226else
81ecdfbb
RW
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9228$as_echo "no" >&6; }
9a819804
AO
9229fi
9230
81ecdfbb 9231
9a819804
AO
9232 done
9233fi
9234
9235for ncn_progname in windres; do
05cbd757
PB
9236 if test -n "$ncn_tool_prefix"; then
9237 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9238set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9240$as_echo_n "checking for $ac_word... " >&6; }
9241if test "${ac_cv_prog_WINDRES+set}" = set; then :
9242 $as_echo_n "(cached) " >&6
859789af
AC
9243else
9244 if test -n "$WINDRES"; then
9245 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9246else
c6b750e1
DJ
9247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248for as_dir in $PATH
9249do
9250 IFS=$as_save_IFS
9251 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9252 for ac_exec_ext in '' $ac_executable_extensions; do
9253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9254 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9256 break 2
9257 fi
9258done
81ecdfbb
RW
9259 done
9260IFS=$as_save_IFS
c6b750e1 9261
859789af
AC
9262fi
9263fi
c6b750e1 9264WINDRES=$ac_cv_prog_WINDRES
859789af 9265if test -n "$WINDRES"; then
81ecdfbb
RW
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9267$as_echo "$WINDRES" >&6; }
859789af 9268else
81ecdfbb
RW
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270$as_echo "no" >&6; }
859789af
AC
9271fi
9272
81ecdfbb 9273
05cbd757
PB
9274 fi
9275 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9277set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9279$as_echo_n "checking for $ac_word... " >&6; }
9280if test "${ac_cv_prog_WINDRES+set}" = set; then :
9281 $as_echo_n "(cached) " >&6
859789af 9282else
05cbd757
PB
9283 if test -n "$WINDRES"; then
9284 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9285else
c6b750e1
DJ
9286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287for as_dir in $PATH
9288do
9289 IFS=$as_save_IFS
9290 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9291 for ac_exec_ext in '' $ac_executable_extensions; do
9292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9293 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9295 break 2
9296 fi
9297done
81ecdfbb
RW
9298 done
9299IFS=$as_save_IFS
c6b750e1 9300
859789af
AC
9301fi
9302fi
c6b750e1 9303WINDRES=$ac_cv_prog_WINDRES
05cbd757 9304if test -n "$WINDRES"; then
81ecdfbb
RW
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9306$as_echo "$WINDRES" >&6; }
859789af 9307else
81ecdfbb
RW
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9309$as_echo "no" >&6; }
859789af 9310fi
c6b750e1 9311
81ecdfbb 9312
05cbd757
PB
9313 fi
9314 test -n "$ac_cv_prog_WINDRES" && break
9315done
9316
9317if test -z "$ac_cv_prog_WINDRES" ; then
9318 set dummy windres
9319 if test $build = $host ; then
9320 WINDRES="$2"
859789af 9321 else
05cbd757 9322 WINDRES="${ncn_tool_prefix}$2"
859789af 9323 fi
859789af
AC
9324fi
9325
9a819804
AO
9326
9327
0c24b341
NC
9328if test -n "$WINDMC"; then
9329 ac_cv_prog_WINDMC=$WINDMC
9330elif test -n "$ac_cv_prog_WINDMC"; then
9331 WINDMC=$ac_cv_prog_WINDMC
9332fi
9333
9334if test -n "$ac_cv_prog_WINDMC"; then
9335 for ncn_progname in windmc; do
9336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9337set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9339$as_echo_n "checking for $ac_word... " >&6; }
9340if test "${ac_cv_prog_WINDMC+set}" = set; then :
9341 $as_echo_n "(cached) " >&6
0c24b341
NC
9342else
9343 if test -n "$WINDMC"; then
9344 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9345else
9346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347for as_dir in $PATH
9348do
9349 IFS=$as_save_IFS
9350 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9351 for ac_exec_ext in '' $ac_executable_extensions; do
9352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9353 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9355 break 2
9356 fi
9357done
81ecdfbb
RW
9358 done
9359IFS=$as_save_IFS
0c24b341
NC
9360
9361fi
9362fi
9363WINDMC=$ac_cv_prog_WINDMC
9364if test -n "$WINDMC"; then
81ecdfbb
RW
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9366$as_echo "$WINDMC" >&6; }
0c24b341 9367else
81ecdfbb
RW
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9369$as_echo "no" >&6; }
0c24b341
NC
9370fi
9371
81ecdfbb 9372
0c24b341
NC
9373 done
9374fi
9375
9376for ncn_progname in windmc; do
9377 if test -n "$ncn_tool_prefix"; then
9378 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9379set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9381$as_echo_n "checking for $ac_word... " >&6; }
9382if test "${ac_cv_prog_WINDMC+set}" = set; then :
9383 $as_echo_n "(cached) " >&6
0c24b341
NC
9384else
9385 if test -n "$WINDMC"; then
9386 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9387else
9388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389for as_dir in $PATH
9390do
9391 IFS=$as_save_IFS
9392 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9393 for ac_exec_ext in '' $ac_executable_extensions; do
9394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9395 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9397 break 2
9398 fi
9399done
81ecdfbb
RW
9400 done
9401IFS=$as_save_IFS
0c24b341
NC
9402
9403fi
9404fi
9405WINDMC=$ac_cv_prog_WINDMC
9406if test -n "$WINDMC"; then
81ecdfbb
RW
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9408$as_echo "$WINDMC" >&6; }
0c24b341 9409else
81ecdfbb
RW
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9411$as_echo "no" >&6; }
0c24b341
NC
9412fi
9413
81ecdfbb 9414
0c24b341
NC
9415 fi
9416 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9417 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9418set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9420$as_echo_n "checking for $ac_word... " >&6; }
9421if test "${ac_cv_prog_WINDMC+set}" = set; then :
9422 $as_echo_n "(cached) " >&6
0c24b341
NC
9423else
9424 if test -n "$WINDMC"; then
9425 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9426else
9427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428for as_dir in $PATH
9429do
9430 IFS=$as_save_IFS
9431 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9432 for ac_exec_ext in '' $ac_executable_extensions; do
9433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9434 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9436 break 2
9437 fi
9438done
81ecdfbb
RW
9439 done
9440IFS=$as_save_IFS
0c24b341
NC
9441
9442fi
9443fi
9444WINDMC=$ac_cv_prog_WINDMC
9445if test -n "$WINDMC"; then
81ecdfbb
RW
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9447$as_echo "$WINDMC" >&6; }
0c24b341 9448else
81ecdfbb
RW
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450$as_echo "no" >&6; }
0c24b341
NC
9451fi
9452
81ecdfbb 9453
0c24b341
NC
9454 fi
9455 test -n "$ac_cv_prog_WINDMC" && break
9456done
9457
9458if test -z "$ac_cv_prog_WINDMC" ; then
9459 set dummy windmc
9460 if test $build = $host ; then
9461 WINDMC="$2"
9462 else
9463 WINDMC="${ncn_tool_prefix}$2"
9464 fi
9465fi
9466
9467
9468
9a819804
AO
9469if test -n "$OBJCOPY"; then
9470 ac_cv_prog_OBJCOPY=$OBJCOPY
9471elif test -n "$ac_cv_prog_OBJCOPY"; then
9472 OBJCOPY=$ac_cv_prog_OBJCOPY
9473fi
9474
9475if test -n "$ac_cv_prog_OBJCOPY"; then
9476 for ncn_progname in objcopy; do
9477 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9478set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9480$as_echo_n "checking for $ac_word... " >&6; }
9481if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9482 $as_echo_n "(cached) " >&6
9a819804
AO
9483else
9484 if test -n "$OBJCOPY"; then
9485 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9486else
9487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488for as_dir in $PATH
9489do
9490 IFS=$as_save_IFS
9491 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9492 for ac_exec_ext in '' $ac_executable_extensions; do
9493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9494 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9496 break 2
9497 fi
9498done
81ecdfbb
RW
9499 done
9500IFS=$as_save_IFS
9a819804
AO
9501
9502fi
9503fi
9504OBJCOPY=$ac_cv_prog_OBJCOPY
9505if test -n "$OBJCOPY"; then
81ecdfbb
RW
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9507$as_echo "$OBJCOPY" >&6; }
9a819804 9508else
81ecdfbb
RW
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510$as_echo "no" >&6; }
9a819804
AO
9511fi
9512
81ecdfbb 9513
9a819804
AO
9514 done
9515fi
9516
9517for ncn_progname in objcopy; do
05cbd757
PB
9518 if test -n "$ncn_tool_prefix"; then
9519 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9520set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9522$as_echo_n "checking for $ac_word... " >&6; }
9523if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9524 $as_echo_n "(cached) " >&6
859789af
AC
9525else
9526 if test -n "$OBJCOPY"; then
9527 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9528else
c6b750e1
DJ
9529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530for as_dir in $PATH
9531do
9532 IFS=$as_save_IFS
9533 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9534 for ac_exec_ext in '' $ac_executable_extensions; do
9535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9536 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9538 break 2
9539 fi
9540done
81ecdfbb
RW
9541 done
9542IFS=$as_save_IFS
c6b750e1 9543
859789af
AC
9544fi
9545fi
c6b750e1 9546OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9547if test -n "$OBJCOPY"; then
81ecdfbb
RW
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9549$as_echo "$OBJCOPY" >&6; }
859789af 9550else
81ecdfbb
RW
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9552$as_echo "no" >&6; }
859789af
AC
9553fi
9554
81ecdfbb 9555
05cbd757
PB
9556 fi
9557 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9559set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9561$as_echo_n "checking for $ac_word... " >&6; }
9562if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9563 $as_echo_n "(cached) " >&6
859789af 9564else
05cbd757
PB
9565 if test -n "$OBJCOPY"; then
9566 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9567else
c6b750e1
DJ
9568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569for as_dir in $PATH
9570do
9571 IFS=$as_save_IFS
9572 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9573 for ac_exec_ext in '' $ac_executable_extensions; do
9574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9575 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9577 break 2
9578 fi
9579done
81ecdfbb
RW
9580 done
9581IFS=$as_save_IFS
c6b750e1 9582
859789af
AC
9583fi
9584fi
c6b750e1 9585OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9586if test -n "$OBJCOPY"; then
81ecdfbb
RW
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9588$as_echo "$OBJCOPY" >&6; }
859789af 9589else
81ecdfbb
RW
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591$as_echo "no" >&6; }
859789af 9592fi
c6b750e1 9593
81ecdfbb 9594
05cbd757
PB
9595 fi
9596 test -n "$ac_cv_prog_OBJCOPY" && break
9597done
9598
9599if test -z "$ac_cv_prog_OBJCOPY" ; then
9600 set dummy objcopy
9601 if test $build = $host ; then
9602 OBJCOPY="$2"
859789af 9603 else
05cbd757 9604 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9605 fi
859789af
AC
9606fi
9607
9a819804
AO
9608
9609
9610if test -n "$OBJDUMP"; then
9611 ac_cv_prog_OBJDUMP=$OBJDUMP
9612elif test -n "$ac_cv_prog_OBJDUMP"; then
9613 OBJDUMP=$ac_cv_prog_OBJDUMP
9614fi
9615
9616if test -n "$ac_cv_prog_OBJDUMP"; then
9617 for ncn_progname in objdump; do
9618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9619set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9621$as_echo_n "checking for $ac_word... " >&6; }
9622if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9623 $as_echo_n "(cached) " >&6
9a819804
AO
9624else
9625 if test -n "$OBJDUMP"; then
9626 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9627else
9628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629for as_dir in $PATH
9630do
9631 IFS=$as_save_IFS
9632 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9633 for ac_exec_ext in '' $ac_executable_extensions; do
9634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9635 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9637 break 2
9638 fi
9639done
81ecdfbb
RW
9640 done
9641IFS=$as_save_IFS
9a819804
AO
9642
9643fi
9644fi
9645OBJDUMP=$ac_cv_prog_OBJDUMP
9646if test -n "$OBJDUMP"; then
81ecdfbb
RW
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9648$as_echo "$OBJDUMP" >&6; }
9a819804 9649else
81ecdfbb
RW
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9651$as_echo "no" >&6; }
9a819804
AO
9652fi
9653
81ecdfbb 9654
9a819804
AO
9655 done
9656fi
9657
9658for ncn_progname in objdump; do
05cbd757
PB
9659 if test -n "$ncn_tool_prefix"; then
9660 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9661set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9663$as_echo_n "checking for $ac_word... " >&6; }
9664if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9665 $as_echo_n "(cached) " >&6
859789af
AC
9666else
9667 if test -n "$OBJDUMP"; then
9668 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9669else
c6b750e1
DJ
9670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9671for as_dir in $PATH
9672do
9673 IFS=$as_save_IFS
9674 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9675 for ac_exec_ext in '' $ac_executable_extensions; do
9676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9677 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9679 break 2
9680 fi
9681done
81ecdfbb
RW
9682 done
9683IFS=$as_save_IFS
c6b750e1 9684
859789af
AC
9685fi
9686fi
c6b750e1 9687OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9688if test -n "$OBJDUMP"; then
81ecdfbb
RW
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9690$as_echo "$OBJDUMP" >&6; }
859789af 9691else
81ecdfbb
RW
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693$as_echo "no" >&6; }
859789af
AC
9694fi
9695
81ecdfbb 9696
05cbd757
PB
9697 fi
9698 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9699 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9700set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9702$as_echo_n "checking for $ac_word... " >&6; }
9703if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9704 $as_echo_n "(cached) " >&6
859789af 9705else
05cbd757
PB
9706 if test -n "$OBJDUMP"; then
9707 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9708else
c6b750e1
DJ
9709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710for as_dir in $PATH
9711do
9712 IFS=$as_save_IFS
9713 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9714 for ac_exec_ext in '' $ac_executable_extensions; do
9715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9716 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9718 break 2
9719 fi
9720done
81ecdfbb
RW
9721 done
9722IFS=$as_save_IFS
c6b750e1 9723
859789af
AC
9724fi
9725fi
c6b750e1 9726OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9727if test -n "$OBJDUMP"; then
81ecdfbb
RW
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9729$as_echo "$OBJDUMP" >&6; }
859789af 9730else
81ecdfbb
RW
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732$as_echo "no" >&6; }
859789af 9733fi
c6b750e1 9734
81ecdfbb 9735
05cbd757
PB
9736 fi
9737 test -n "$ac_cv_prog_OBJDUMP" && break
9738done
9739
9740if test -z "$ac_cv_prog_OBJDUMP" ; then
9741 set dummy objdump
9742 if test $build = $host ; then
9743 OBJDUMP="$2"
859789af 9744 else
05cbd757 9745 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9746 fi
859789af
AC
9747fi
9748
a0da8069
NN
9749
9750
b121d7d4
DD
9751if test -n "$READELF"; then
9752 ac_cv_prog_READELF=$READELF
9753elif test -n "$ac_cv_prog_READELF"; then
9754 READELF=$ac_cv_prog_READELF
9755fi
9756
9757if test -n "$ac_cv_prog_READELF"; then
9758 for ncn_progname in readelf; do
9759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9760set dummy ${ncn_progname}; ac_word=$2
9761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762$as_echo_n "checking for $ac_word... " >&6; }
9763if test "${ac_cv_prog_READELF+set}" = set; then :
9764 $as_echo_n "(cached) " >&6
9765else
9766 if test -n "$READELF"; then
9767 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9768else
9769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770for as_dir in $PATH
9771do
9772 IFS=$as_save_IFS
9773 test -z "$as_dir" && as_dir=.
9774 for ac_exec_ext in '' $ac_executable_extensions; do
9775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9776 ac_cv_prog_READELF="${ncn_progname}"
9777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9778 break 2
9779 fi
9780done
9781 done
9782IFS=$as_save_IFS
9783
9784fi
9785fi
9786READELF=$ac_cv_prog_READELF
9787if test -n "$READELF"; then
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9789$as_echo "$READELF" >&6; }
9790else
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9792$as_echo "no" >&6; }
9793fi
9794
9795
9796 done
9797fi
9798
9799for ncn_progname in readelf; do
9800 if test -n "$ncn_tool_prefix"; then
9801 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9802set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9804$as_echo_n "checking for $ac_word... " >&6; }
9805if test "${ac_cv_prog_READELF+set}" = set; then :
9806 $as_echo_n "(cached) " >&6
9807else
9808 if test -n "$READELF"; then
9809 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9810else
9811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812for as_dir in $PATH
9813do
9814 IFS=$as_save_IFS
9815 test -z "$as_dir" && as_dir=.
9816 for ac_exec_ext in '' $ac_executable_extensions; do
9817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9818 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9820 break 2
9821 fi
9822done
9823 done
9824IFS=$as_save_IFS
9825
9826fi
9827fi
9828READELF=$ac_cv_prog_READELF
9829if test -n "$READELF"; then
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9831$as_echo "$READELF" >&6; }
9832else
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9834$as_echo "no" >&6; }
9835fi
9836
9837
9838 fi
9839 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9841set dummy ${ncn_progname}; ac_word=$2
9842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9843$as_echo_n "checking for $ac_word... " >&6; }
9844if test "${ac_cv_prog_READELF+set}" = set; then :
9845 $as_echo_n "(cached) " >&6
9846else
9847 if test -n "$READELF"; then
9848 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9849else
9850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9851for as_dir in $PATH
9852do
9853 IFS=$as_save_IFS
9854 test -z "$as_dir" && as_dir=.
9855 for ac_exec_ext in '' $ac_executable_extensions; do
9856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9857 ac_cv_prog_READELF="${ncn_progname}"
9858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9859 break 2
9860 fi
9861done
9862 done
9863IFS=$as_save_IFS
9864
9865fi
9866fi
9867READELF=$ac_cv_prog_READELF
9868if test -n "$READELF"; then
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9870$as_echo "$READELF" >&6; }
9871else
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873$as_echo "no" >&6; }
9874fi
9875
9876
9877 fi
9878 test -n "$ac_cv_prog_READELF" && break
9879done
9880
9881if test -z "$ac_cv_prog_READELF" ; then
9882 set dummy readelf
9883 if test $build = $host ; then
9884 READELF="$2"
9885 else
9886 READELF="${ncn_tool_prefix}$2"
9887 fi
9888fi
9889
9890
9891
a0da8069
NN
9892
9893
9894
be01d343 9895# Target tools.
c6b750e1 9896
81ecdfbb
RW
9897# Check whether --with-build-time-tools was given.
9898if test "${with_build_time_tools+set}" = set; then :
9899 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9900 x/*) ;;
9901 *)
9902 with_build_time_tools=
81ecdfbb
RW
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9904$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9905 ;;
9906 esac
859789af 9907else
2429c060 9908 with_build_time_tools=
81ecdfbb
RW
9909fi
9910
859789af 9911
9a819804
AO
9912
9913
9914if test -n "$CC_FOR_TARGET"; then
9915 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9916elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9917 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9918fi
9919
9920if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9921 for ncn_progname in cc gcc; do
9922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9923set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9925$as_echo_n "checking for $ac_word... " >&6; }
9926if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9927 $as_echo_n "(cached) " >&6
9a819804
AO
9928else
9929 if test -n "$CC_FOR_TARGET"; then
9930 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9931else
9932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933for as_dir in $PATH
9934do
9935 IFS=$as_save_IFS
9936 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9937 for ac_exec_ext in '' $ac_executable_extensions; do
9938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9939 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9941 break 2
9942 fi
9943done
81ecdfbb
RW
9944 done
9945IFS=$as_save_IFS
9a819804
AO
9946
9947fi
9948fi
9949CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9950if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9952$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9953else
81ecdfbb
RW
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955$as_echo "no" >&6; }
9a819804
AO
9956fi
9957
81ecdfbb 9958
9a819804
AO
9959 done
9960fi
9961
9962if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9963 for ncn_progname in cc gcc; do
81ecdfbb
RW
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9965$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9966 if test -x $with_build_time_tools/${ncn_progname}; then
9967 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9969$as_echo "yes" >&6; }
cac3d6c4 9970 break
2429c060 9971 else
81ecdfbb
RW
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973$as_echo "no" >&6; }
cac3d6c4
CM
9974 fi
9975 done
55db4b87
PB
9976fi
9977
2429c060
PB
9978if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9979 for ncn_progname in cc gcc; do
9980 if test -n "$ncn_target_tool_prefix"; then
9981 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9982set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9984$as_echo_n "checking for $ac_word... " >&6; }
9985if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9986 $as_echo_n "(cached) " >&6
55db4b87
PB
9987else
9988 if test -n "$CC_FOR_TARGET"; then
9989 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9990else
c6b750e1
DJ
9991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9992for as_dir in $PATH
9993do
9994 IFS=$as_save_IFS
9995 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9996 for ac_exec_ext in '' $ac_executable_extensions; do
9997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9998 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10000 break 2
10001 fi
10002done
81ecdfbb
RW
10003 done
10004IFS=$as_save_IFS
c6b750e1 10005
55db4b87
PB
10006fi
10007fi
c6b750e1 10008CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10009if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10011$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10012else
81ecdfbb
RW
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014$as_echo "no" >&6; }
55db4b87
PB
10015fi
10016
81ecdfbb 10017
2429c060
PB
10018 fi
10019 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10021set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10023$as_echo_n "checking for $ac_word... " >&6; }
10024if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10025 $as_echo_n "(cached) " >&6
55db4b87 10026else
05cbd757
PB
10027 if test -n "$CC_FOR_TARGET"; then
10028 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10029else
c6b750e1
DJ
10030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031for as_dir in $PATH
10032do
10033 IFS=$as_save_IFS
10034 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10035 for ac_exec_ext in '' $ac_executable_extensions; do
10036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10037 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10039 break 2
10040 fi
10041done
81ecdfbb
RW
10042 done
10043IFS=$as_save_IFS
c6b750e1 10044
55db4b87
PB
10045fi
10046fi
c6b750e1 10047CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10048if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10050$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10051else
81ecdfbb
RW
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053$as_echo "no" >&6; }
55db4b87 10054fi
c6b750e1 10055
81ecdfbb 10056
2429c060
PB
10057 fi
10058 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10059 done
10060fi
c6b750e1 10061
05cbd757
PB
10062if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10063 set dummy cc gcc
10064 if test $build = $target ; then
10065 CC_FOR_TARGET="$2"
55db4b87 10066 else
05cbd757 10067 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10068 fi
d3f5afc4
MS
10069else
10070 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10071fi
10072
9a819804
AO
10073
10074
10075if test -n "$CXX_FOR_TARGET"; then
10076 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10077elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10078 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10079fi
10080
10081if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10082 for ncn_progname in c++ g++ cxx gxx; do
10083 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10084set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086$as_echo_n "checking for $ac_word... " >&6; }
10087if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10088 $as_echo_n "(cached) " >&6
9a819804
AO
10089else
10090 if test -n "$CXX_FOR_TARGET"; then
10091 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10092else
10093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094for as_dir in $PATH
10095do
10096 IFS=$as_save_IFS
10097 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10098 for ac_exec_ext in '' $ac_executable_extensions; do
10099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10100 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10102 break 2
10103 fi
10104done
81ecdfbb
RW
10105 done
10106IFS=$as_save_IFS
9a819804
AO
10107
10108fi
10109fi
10110CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10111if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10113$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10114else
81ecdfbb
RW
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116$as_echo "no" >&6; }
9a819804
AO
10117fi
10118
81ecdfbb 10119
9a819804
AO
10120 done
10121fi
10122
10123if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10124 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10126$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10127 if test -x $with_build_time_tools/${ncn_progname}; then
10128 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10130$as_echo "yes" >&6; }
2429c060
PB
10131 break
10132 else
81ecdfbb
RW
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10134$as_echo "no" >&6; }
2429c060
PB
10135 fi
10136 done
10137fi
10138
10139if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10140 for ncn_progname in c++ g++ cxx gxx; do
10141 if test -n "$ncn_target_tool_prefix"; then
10142 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10143set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145$as_echo_n "checking for $ac_word... " >&6; }
10146if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10147 $as_echo_n "(cached) " >&6
55db4b87
PB
10148else
10149 if test -n "$CXX_FOR_TARGET"; then
10150 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10151else
c6b750e1
DJ
10152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153for as_dir in $PATH
10154do
10155 IFS=$as_save_IFS
10156 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10157 for ac_exec_ext in '' $ac_executable_extensions; do
10158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10159 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10161 break 2
10162 fi
10163done
81ecdfbb
RW
10164 done
10165IFS=$as_save_IFS
c6b750e1 10166
55db4b87
PB
10167fi
10168fi
c6b750e1 10169CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10170if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10172$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10173else
81ecdfbb
RW
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175$as_echo "no" >&6; }
55db4b87
PB
10176fi
10177
81ecdfbb 10178
2429c060
PB
10179 fi
10180 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10182set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10184$as_echo_n "checking for $ac_word... " >&6; }
10185if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10186 $as_echo_n "(cached) " >&6
55db4b87 10187else
05cbd757
PB
10188 if test -n "$CXX_FOR_TARGET"; then
10189 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10190else
c6b750e1
DJ
10191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10192for as_dir in $PATH
10193do
10194 IFS=$as_save_IFS
10195 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10196 for ac_exec_ext in '' $ac_executable_extensions; do
10197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10198 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10200 break 2
10201 fi
10202done
81ecdfbb
RW
10203 done
10204IFS=$as_save_IFS
c6b750e1 10205
55db4b87
PB
10206fi
10207fi
c6b750e1 10208CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10209if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10211$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10212else
81ecdfbb
RW
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10214$as_echo "no" >&6; }
55db4b87 10215fi
c6b750e1 10216
81ecdfbb 10217
2429c060
PB
10218 fi
10219 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10220 done
10221fi
c6b750e1 10222
05cbd757
PB
10223if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10224 set dummy c++ g++ cxx gxx
10225 if test $build = $target ; then
10226 CXX_FOR_TARGET="$2"
55db4b87 10227 else
05cbd757 10228 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10229 fi
d3f5afc4
MS
10230else
10231 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10232fi
10233
9a819804
AO
10234
10235
10236if test -n "$GCC_FOR_TARGET"; then
10237 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10238elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10239 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10240fi
10241
10242if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10243 for ncn_progname in gcc; do
10244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10245set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247$as_echo_n "checking for $ac_word... " >&6; }
10248if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10249 $as_echo_n "(cached) " >&6
9a819804
AO
10250else
10251 if test -n "$GCC_FOR_TARGET"; then
10252 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10253else
10254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255for as_dir in $PATH
10256do
10257 IFS=$as_save_IFS
10258 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10259 for ac_exec_ext in '' $ac_executable_extensions; do
10260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10261 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10263 break 2
10264 fi
10265done
81ecdfbb
RW
10266 done
10267IFS=$as_save_IFS
9a819804
AO
10268
10269fi
10270fi
10271GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10272if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10274$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10275else
81ecdfbb
RW
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277$as_echo "no" >&6; }
9a819804
AO
10278fi
10279
81ecdfbb 10280
9a819804
AO
10281 done
10282fi
10283
10284if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10285 for ncn_progname in gcc; do
81ecdfbb
RW
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10287$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10288 if test -x $with_build_time_tools/${ncn_progname}; then
10289 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10291$as_echo "yes" >&6; }
2429c060
PB
10292 break
10293 else
81ecdfbb
RW
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10295$as_echo "no" >&6; }
2429c060
PB
10296 fi
10297 done
10298fi
10299
10300if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10301 for ncn_progname in gcc; do
10302 if test -n "$ncn_target_tool_prefix"; then
10303 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10304set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10306$as_echo_n "checking for $ac_word... " >&6; }
10307if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10308 $as_echo_n "(cached) " >&6
859789af 10309else
2429c060
PB
10310 if test -n "$GCC_FOR_TARGET"; then
10311 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10312else
c6b750e1
DJ
10313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314for as_dir in $PATH
10315do
10316 IFS=$as_save_IFS
10317 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10318 for ac_exec_ext in '' $ac_executable_extensions; do
10319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10320 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10322 break 2
10323 fi
10324done
81ecdfbb
RW
10325 done
10326IFS=$as_save_IFS
c6b750e1 10327
55db4b87
PB
10328fi
10329fi
c6b750e1 10330GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10331if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10333$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10334else
81ecdfbb
RW
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10336$as_echo "no" >&6; }
55db4b87
PB
10337fi
10338
81ecdfbb 10339
2429c060
PB
10340 fi
10341 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10343set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10345$as_echo_n "checking for $ac_word... " >&6; }
10346if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10347 $as_echo_n "(cached) " >&6
55db4b87 10348else
05cbd757
PB
10349 if test -n "$GCC_FOR_TARGET"; then
10350 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10351else
c6b750e1
DJ
10352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353for as_dir in $PATH
10354do
10355 IFS=$as_save_IFS
10356 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10357 for ac_exec_ext in '' $ac_executable_extensions; do
10358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10359 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10361 break 2
10362 fi
10363done
81ecdfbb
RW
10364 done
10365IFS=$as_save_IFS
c6b750e1 10366
55db4b87
PB
10367fi
10368fi
c6b750e1 10369GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10370if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10372$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10373else
81ecdfbb
RW
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375$as_echo "no" >&6; }
55db4b87 10376fi
c6b750e1 10377
81ecdfbb 10378
2429c060
PB
10379 fi
10380 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10381 done
10382fi
c6b750e1 10383
05cbd757
PB
10384if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10385 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10386else
10387 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10388fi
10389
9a819804
AO
10390
10391
10392if test -n "$GCJ_FOR_TARGET"; then
10393 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10394elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10395 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10396fi
10397
10398if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10399 for ncn_progname in gcj; do
10400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10401set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10403$as_echo_n "checking for $ac_word... " >&6; }
10404if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
9a819804
AO
10406else
10407 if test -n "$GCJ_FOR_TARGET"; then
10408 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10409else
10410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411for as_dir in $PATH
10412do
10413 IFS=$as_save_IFS
10414 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10415 for ac_exec_ext in '' $ac_executable_extensions; do
10416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10417 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10419 break 2
10420 fi
10421done
81ecdfbb
RW
10422 done
10423IFS=$as_save_IFS
9a819804
AO
10424
10425fi
10426fi
10427GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10428if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10430$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10431else
81ecdfbb
RW
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433$as_echo "no" >&6; }
9a819804
AO
10434fi
10435
81ecdfbb 10436
9a819804
AO
10437 done
10438fi
10439
10440if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10441 for ncn_progname in gcj; do
81ecdfbb
RW
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10443$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10444 if test -x $with_build_time_tools/${ncn_progname}; then
10445 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10447$as_echo "yes" >&6; }
2429c060
PB
10448 break
10449 else
81ecdfbb
RW
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10451$as_echo "no" >&6; }
2429c060
PB
10452 fi
10453 done
10454fi
10455
10456if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10457 for ncn_progname in gcj; do
10458 if test -n "$ncn_target_tool_prefix"; then
10459 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10460set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10462$as_echo_n "checking for $ac_word... " >&6; }
10463if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10464 $as_echo_n "(cached) " >&6
55db4b87
PB
10465else
10466 if test -n "$GCJ_FOR_TARGET"; then
10467 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10468else
c6b750e1
DJ
10469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470for as_dir in $PATH
10471do
10472 IFS=$as_save_IFS
10473 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10474 for ac_exec_ext in '' $ac_executable_extensions; do
10475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10476 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10478 break 2
10479 fi
10480done
81ecdfbb
RW
10481 done
10482IFS=$as_save_IFS
c6b750e1 10483
55db4b87
PB
10484fi
10485fi
9a819804
AO
10486GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10487if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10489$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10490else
81ecdfbb
RW
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10492$as_echo "no" >&6; }
9a819804
AO
10493fi
10494
81ecdfbb 10495
9a819804
AO
10496 fi
10497 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10499set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10501$as_echo_n "checking for $ac_word... " >&6; }
10502if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10503 $as_echo_n "(cached) " >&6
9a819804
AO
10504else
10505 if test -n "$GCJ_FOR_TARGET"; then
10506 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10507else
10508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509for as_dir in $PATH
10510do
10511 IFS=$as_save_IFS
10512 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10513 for ac_exec_ext in '' $ac_executable_extensions; do
10514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10515 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10517 break 2
10518 fi
10519done
81ecdfbb
RW
10520 done
10521IFS=$as_save_IFS
9a819804
AO
10522
10523fi
10524fi
10525GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10526if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10528$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10529else
81ecdfbb
RW
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531$as_echo "no" >&6; }
9a819804
AO
10532fi
10533
81ecdfbb 10534
9a819804
AO
10535 fi
10536 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10537 done
10538fi
10539
10540if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10541 set dummy gcj
10542 if test $build = $target ; then
10543 GCJ_FOR_TARGET="$2"
10544 else
10545 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10546 fi
d3f5afc4
MS
10547else
10548 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10549fi
10550
10551
10552
10553if test -n "$GFORTRAN_FOR_TARGET"; then
10554 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10555elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10556 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10557fi
10558
9a819804
AO
10559if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10560 for ncn_progname in gfortran; do
10561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10562set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10564$as_echo_n "checking for $ac_word... " >&6; }
10565if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10566 $as_echo_n "(cached) " >&6
55db4b87 10567else
9a819804
AO
10568 if test -n "$GFORTRAN_FOR_TARGET"; then
10569 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10570else
c6b750e1
DJ
10571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572for as_dir in $PATH
10573do
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10578 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10580 break 2
10581 fi
10582done
81ecdfbb
RW
10583 done
10584IFS=$as_save_IFS
c6b750e1 10585
55db4b87
PB
10586fi
10587fi
9a819804
AO
10588GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10589if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10591$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10592else
81ecdfbb
RW
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594$as_echo "no" >&6; }
55db4b87 10595fi
c6b750e1 10596
81ecdfbb 10597
2429c060
PB
10598 done
10599fi
c6b750e1 10600
9a819804 10601if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10602 for ncn_progname in gfortran; do
81ecdfbb
RW
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10604$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10605 if test -x $with_build_time_tools/${ncn_progname}; then
10606 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10608$as_echo "yes" >&6; }
2429c060
PB
10609 break
10610 else
81ecdfbb
RW
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10612$as_echo "no" >&6; }
2429c060
PB
10613 fi
10614 done
10615fi
10616
10617if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10618 for ncn_progname in gfortran; do
10619 if test -n "$ncn_target_tool_prefix"; then
10620 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10621set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10623$as_echo_n "checking for $ac_word... " >&6; }
10624if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10625 $as_echo_n "(cached) " >&6
55db4b87
PB
10626else
10627 if test -n "$GFORTRAN_FOR_TARGET"; then
10628 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10629else
c6b750e1
DJ
10630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10631for as_dir in $PATH
10632do
10633 IFS=$as_save_IFS
10634 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10635 for ac_exec_ext in '' $ac_executable_extensions; do
10636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10637 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10639 break 2
10640 fi
10641done
81ecdfbb
RW
10642 done
10643IFS=$as_save_IFS
c6b750e1 10644
55db4b87
PB
10645fi
10646fi
c6b750e1 10647GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10648if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10650$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10651else
81ecdfbb
RW
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653$as_echo "no" >&6; }
55db4b87
PB
10654fi
10655
81ecdfbb 10656
2429c060
PB
10657 fi
10658 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10660set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10662$as_echo_n "checking for $ac_word... " >&6; }
10663if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10664 $as_echo_n "(cached) " >&6
55db4b87 10665else
05cbd757 10666 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10667 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10668else
10669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670for as_dir in $PATH
10671do
10672 IFS=$as_save_IFS
10673 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10674 for ac_exec_ext in '' $ac_executable_extensions; do
10675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10676 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10678 break 2
10679 fi
10680done
81ecdfbb
RW
10681 done
10682IFS=$as_save_IFS
c6b750e1 10683
55db4b87
PB
10684fi
10685fi
c6b750e1 10686GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10687if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10689$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10690else
81ecdfbb
RW
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692$as_echo "no" >&6; }
55db4b87 10693fi
c6b750e1 10694
81ecdfbb 10695
2429c060
PB
10696 fi
10697 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10698 done
10699fi
c6b750e1 10700
05cbd757
PB
10701if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10702 set dummy gfortran
10703 if test $build = $target ; then
10704 GFORTRAN_FOR_TARGET="$2"
55db4b87 10705 else
05cbd757 10706 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10707 fi
d3f5afc4
MS
10708else
10709 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10710fi
10711
2429c060
PB
10712
10713
e552509b
ILT
10714if test -n "$GOC_FOR_TARGET"; then
10715 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10716elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10717 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10718fi
10719
10720if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10721 for ncn_progname in gccgo; do
10722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10723set dummy ${ncn_progname}; ac_word=$2
10724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10725$as_echo_n "checking for $ac_word... " >&6; }
10726if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10727 $as_echo_n "(cached) " >&6
10728else
10729 if test -n "$GOC_FOR_TARGET"; then
10730 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10731else
10732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10733for as_dir in $PATH
10734do
10735 IFS=$as_save_IFS
10736 test -z "$as_dir" && as_dir=.
10737 for ac_exec_ext in '' $ac_executable_extensions; do
10738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10739 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10741 break 2
10742 fi
10743done
10744 done
10745IFS=$as_save_IFS
10746
10747fi
10748fi
10749GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10750if test -n "$GOC_FOR_TARGET"; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10752$as_echo "$GOC_FOR_TARGET" >&6; }
10753else
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755$as_echo "no" >&6; }
10756fi
10757
10758
10759 done
10760fi
10761
10762if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10763 for ncn_progname in gccgo; do
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10765$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10766 if test -x $with_build_time_tools/${ncn_progname}; then
10767 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10769$as_echo "yes" >&6; }
10770 break
10771 else
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10773$as_echo "no" >&6; }
10774 fi
10775 done
10776fi
10777
10778if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10779 for ncn_progname in gccgo; do
10780 if test -n "$ncn_target_tool_prefix"; then
10781 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10782set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10784$as_echo_n "checking for $ac_word... " >&6; }
10785if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10786 $as_echo_n "(cached) " >&6
10787else
10788 if test -n "$GOC_FOR_TARGET"; then
10789 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10790else
10791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792for as_dir in $PATH
10793do
10794 IFS=$as_save_IFS
10795 test -z "$as_dir" && as_dir=.
10796 for ac_exec_ext in '' $ac_executable_extensions; do
10797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10798 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10800 break 2
10801 fi
10802done
10803 done
10804IFS=$as_save_IFS
10805
10806fi
10807fi
10808GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10809if test -n "$GOC_FOR_TARGET"; then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10811$as_echo "$GOC_FOR_TARGET" >&6; }
10812else
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814$as_echo "no" >&6; }
10815fi
10816
10817
10818 fi
10819 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10820 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10821set dummy ${ncn_progname}; ac_word=$2
10822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10823$as_echo_n "checking for $ac_word... " >&6; }
10824if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10825 $as_echo_n "(cached) " >&6
10826else
10827 if test -n "$GOC_FOR_TARGET"; then
10828 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10829else
10830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10831for as_dir in $PATH
10832do
10833 IFS=$as_save_IFS
10834 test -z "$as_dir" && as_dir=.
10835 for ac_exec_ext in '' $ac_executable_extensions; do
10836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10837 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10839 break 2
10840 fi
10841done
10842 done
10843IFS=$as_save_IFS
10844
10845fi
10846fi
10847GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10848if test -n "$GOC_FOR_TARGET"; then
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10850$as_echo "$GOC_FOR_TARGET" >&6; }
10851else
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853$as_echo "no" >&6; }
10854fi
10855
10856
10857 fi
10858 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10859 done
10860fi
10861
10862if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10863 set dummy gccgo
10864 if test $build = $target ; then
10865 GOC_FOR_TARGET="$2"
10866 else
10867 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10868 fi
10869else
10870 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10871fi
10872
10873
10874
2429c060
PB
10875cat > conftest.c << \EOF
10876#ifdef __GNUC__
10877 gcc_yay;
10878#endif
10879EOF
10880if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10881 have_gcc_for_target=yes
859789af 10882else
2429c060
PB
10883 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10884 have_gcc_for_target=no
859789af 10885fi
2429c060
PB
10886rm conftest.c
10887
10888
10889
859789af 10890
2429c060
PB
10891if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10892 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10894$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10895 if test -x $with_build_time_tools/ar; then
10896 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10897 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10899$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10900 else
81ecdfbb
RW
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10902$as_echo "no" >&6; }
3a35eeb3 10903 fi
2429c060
PB
10904 elif test $build != $host && test $have_gcc_for_target = yes; then
10905 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10906 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10907 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10908 fi
2429c060 10909fi
c6b750e1 10910if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10911 # Extract the first word of "ar", so it can be a program name with args.
10912set dummy ar; ac_word=$2
81ecdfbb
RW
10913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10914$as_echo_n "checking for $ac_word... " >&6; }
10915if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10916 $as_echo_n "(cached) " >&6
859789af 10917else
c6b750e1
DJ
10918 case $AR_FOR_TARGET in
10919 [\\/]* | ?:[\\/]*)
2429c060
PB
10920 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10921 ;;
2429c060 10922 *)
c6b750e1
DJ
10923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10924for as_dir in $gcc_cv_tool_dirs
10925do
10926 IFS=$as_save_IFS
10927 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10928 for ac_exec_ext in '' $ac_executable_extensions; do
10929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10930 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10932 break 2
10933 fi
10934done
81ecdfbb
RW
10935 done
10936IFS=$as_save_IFS
c6b750e1 10937
2429c060
PB
10938 ;;
10939esac
859789af 10940fi
c6b750e1 10941AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10942if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10944$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10945else
81ecdfbb
RW
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10947$as_echo "no" >&6; }
859789af 10948fi
05cbd757 10949
81ecdfbb 10950
2429c060
PB
10951fi
10952if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10953
10954
10955if test -n "$AR_FOR_TARGET"; then
10956 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10957elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10958 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10959fi
10960
10961if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10962 for ncn_progname in ar; do
10963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10964set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10966$as_echo_n "checking for $ac_word... " >&6; }
10967if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10968 $as_echo_n "(cached) " >&6
9a819804
AO
10969else
10970 if test -n "$AR_FOR_TARGET"; then
10971 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10972else
10973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974for as_dir in $PATH
10975do
10976 IFS=$as_save_IFS
10977 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10978 for ac_exec_ext in '' $ac_executable_extensions; do
10979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10980 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10982 break 2
10983 fi
10984done
81ecdfbb
RW
10985 done
10986IFS=$as_save_IFS
9a819804
AO
10987
10988fi
10989fi
10990AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10991if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10993$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10994else
81ecdfbb
RW
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996$as_echo "no" >&6; }
9a819804
AO
10997fi
10998
81ecdfbb 10999
9a819804
AO
11000 done
11001fi
11002
11003if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11004 for ncn_progname in ar; do
81ecdfbb
RW
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11006$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11007 if test -x $with_build_time_tools/${ncn_progname}; then
11008 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11010$as_echo "yes" >&6; }
2429c060
PB
11011 break
11012 else
81ecdfbb
RW
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11014$as_echo "no" >&6; }
2429c060
PB
11015 fi
11016 done
859789af
AC
11017fi
11018
2429c060
PB
11019if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11020 for ncn_progname in ar; do
11021 if test -n "$ncn_target_tool_prefix"; then
11022 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11023set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11025$as_echo_n "checking for $ac_word... " >&6; }
11026if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11027 $as_echo_n "(cached) " >&6
7e0f7140 11028else
2429c060
PB
11029 if test -n "$AR_FOR_TARGET"; then
11030 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 11031else
c6b750e1
DJ
11032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033for as_dir in $PATH
11034do
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11037 for ac_exec_ext in '' $ac_executable_extensions; do
11038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11039 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11041 break 2
11042 fi
11043done
81ecdfbb
RW
11044 done
11045IFS=$as_save_IFS
c6b750e1 11046
7e0f7140
GK
11047fi
11048fi
c6b750e1 11049AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11050if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11052$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11053else
81ecdfbb
RW
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11055$as_echo "no" >&6; }
7e0f7140
GK
11056fi
11057
81ecdfbb 11058
2429c060
PB
11059 fi
11060 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11061 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11062set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11064$as_echo_n "checking for $ac_word... " >&6; }
11065if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11066 $as_echo_n "(cached) " >&6
7e0f7140 11067else
2429c060
PB
11068 if test -n "$AR_FOR_TARGET"; then
11069 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 11070else
c6b750e1
DJ
11071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072for as_dir in $PATH
11073do
11074 IFS=$as_save_IFS
11075 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11076 for ac_exec_ext in '' $ac_executable_extensions; do
11077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11078 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11080 break 2
11081 fi
11082done
81ecdfbb
RW
11083 done
11084IFS=$as_save_IFS
c6b750e1 11085
7e0f7140
GK
11086fi
11087fi
c6b750e1 11088AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11089if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11091$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11092else
81ecdfbb
RW
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094$as_echo "no" >&6; }
7e0f7140 11095fi
c6b750e1 11096
81ecdfbb 11097
2429c060
PB
11098 fi
11099 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11100 done
11101fi
c6b750e1 11102
2429c060
PB
11103if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11104 set dummy ar
7e0f7140 11105 if test $build = $target ; then
2429c060 11106 AR_FOR_TARGET="$2"
7e0f7140 11107 else
2429c060 11108 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11109 fi
d3f5afc4
MS
11110else
11111 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11112fi
11113
3a35eeb3
PB
11114else
11115 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11116fi
11117
11118
11119
11120
11121if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11122 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11124$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11125 if test -x $with_build_time_tools/as; then
11126 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11127 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11129$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11130 else
81ecdfbb
RW
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11132$as_echo "no" >&6; }
3a35eeb3 11133 fi
2429c060
PB
11134 elif test $build != $host && test $have_gcc_for_target = yes; then
11135 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11136 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11137 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11138 fi
11139fi
c6b750e1 11140if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11141 # Extract the first word of "as", so it can be a program name with args.
11142set dummy as; ac_word=$2
81ecdfbb
RW
11143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11144$as_echo_n "checking for $ac_word... " >&6; }
11145if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11146 $as_echo_n "(cached) " >&6
2429c060 11147else
c6b750e1
DJ
11148 case $AS_FOR_TARGET in
11149 [\\/]* | ?:[\\/]*)
2429c060
PB
11150 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11151 ;;
2429c060 11152 *)
c6b750e1
DJ
11153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11154for as_dir in $gcc_cv_tool_dirs
11155do
11156 IFS=$as_save_IFS
11157 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11158 for ac_exec_ext in '' $ac_executable_extensions; do
11159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11160 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11162 break 2
11163 fi
11164done
81ecdfbb
RW
11165 done
11166IFS=$as_save_IFS
c6b750e1 11167
2429c060
PB
11168 ;;
11169esac
11170fi
c6b750e1 11171AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11172if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11174$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11175else
81ecdfbb
RW
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177$as_echo "no" >&6; }
2429c060
PB
11178fi
11179
81ecdfbb 11180
2429c060
PB
11181fi
11182if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11183
11184
11185if test -n "$AS_FOR_TARGET"; then
11186 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11187elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11188 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11189fi
11190
11191if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11192 for ncn_progname in as; do
11193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11194set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11196$as_echo_n "checking for $ac_word... " >&6; }
11197if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11198 $as_echo_n "(cached) " >&6
9a819804
AO
11199else
11200 if test -n "$AS_FOR_TARGET"; then
11201 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11202else
11203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204for as_dir in $PATH
11205do
11206 IFS=$as_save_IFS
11207 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11208 for ac_exec_ext in '' $ac_executable_extensions; do
11209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11210 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11212 break 2
11213 fi
11214done
81ecdfbb
RW
11215 done
11216IFS=$as_save_IFS
9a819804
AO
11217
11218fi
11219fi
11220AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11221if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11223$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11224else
81ecdfbb
RW
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226$as_echo "no" >&6; }
9a819804
AO
11227fi
11228
81ecdfbb 11229
9a819804
AO
11230 done
11231fi
11232
11233if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11234 for ncn_progname in as; do
81ecdfbb
RW
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11236$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11237 if test -x $with_build_time_tools/${ncn_progname}; then
11238 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11240$as_echo "yes" >&6; }
2429c060
PB
11241 break
11242 else
81ecdfbb
RW
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11244$as_echo "no" >&6; }
2429c060
PB
11245 fi
11246 done
11247fi
11248
11249if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11250 for ncn_progname in as; do
11251 if test -n "$ncn_target_tool_prefix"; then
11252 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11253set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11255$as_echo_n "checking for $ac_word... " >&6; }
11256if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11257 $as_echo_n "(cached) " >&6
2429c060
PB
11258else
11259 if test -n "$AS_FOR_TARGET"; then
11260 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11261else
c6b750e1
DJ
11262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263for as_dir in $PATH
11264do
11265 IFS=$as_save_IFS
11266 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11267 for ac_exec_ext in '' $ac_executable_extensions; do
11268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11269 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11271 break 2
11272 fi
11273done
81ecdfbb
RW
11274 done
11275IFS=$as_save_IFS
c6b750e1 11276
2429c060
PB
11277fi
11278fi
c6b750e1 11279AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11280if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11282$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11283else
81ecdfbb
RW
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285$as_echo "no" >&6; }
2429c060
PB
11286fi
11287
81ecdfbb 11288
2429c060
PB
11289 fi
11290 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11292set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11294$as_echo_n "checking for $ac_word... " >&6; }
11295if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11296 $as_echo_n "(cached) " >&6
2429c060
PB
11297else
11298 if test -n "$AS_FOR_TARGET"; then
11299 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11300else
c6b750e1
DJ
11301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302for as_dir in $PATH
11303do
11304 IFS=$as_save_IFS
11305 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11306 for ac_exec_ext in '' $ac_executable_extensions; do
11307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11308 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11310 break 2
11311 fi
11312done
81ecdfbb
RW
11313 done
11314IFS=$as_save_IFS
c6b750e1 11315
2429c060
PB
11316fi
11317fi
c6b750e1 11318AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11319if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11321$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11322else
81ecdfbb
RW
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11324$as_echo "no" >&6; }
2429c060 11325fi
c6b750e1 11326
81ecdfbb 11327
2429c060
PB
11328 fi
11329 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11330 done
11331fi
c6b750e1 11332
2429c060
PB
11333if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11334 set dummy as
11335 if test $build = $target ; then
11336 AS_FOR_TARGET="$2"
11337 else
11338 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11339 fi
d3f5afc4
MS
11340else
11341 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11342fi
11343
3a35eeb3
PB
11344else
11345 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11346fi
11347
11348
11349
11350
11351if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11352 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11354$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11355 if test -x $with_build_time_tools/dlltool; then
11356 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11357 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11359$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11360 else
81ecdfbb
RW
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362$as_echo "no" >&6; }
3a35eeb3 11363 fi
2429c060
PB
11364 elif test $build != $host && test $have_gcc_for_target = yes; then
11365 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11366 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11367 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11368 fi
11369fi
c6b750e1 11370if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11371 # Extract the first word of "dlltool", so it can be a program name with args.
11372set dummy dlltool; ac_word=$2
81ecdfbb
RW
11373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11374$as_echo_n "checking for $ac_word... " >&6; }
11375if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11376 $as_echo_n "(cached) " >&6
2429c060 11377else
c6b750e1
DJ
11378 case $DLLTOOL_FOR_TARGET in
11379 [\\/]* | ?:[\\/]*)
2429c060
PB
11380 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11381 ;;
2429c060 11382 *)
c6b750e1
DJ
11383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384for as_dir in $gcc_cv_tool_dirs
11385do
11386 IFS=$as_save_IFS
11387 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11388 for ac_exec_ext in '' $ac_executable_extensions; do
11389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11390 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11392 break 2
11393 fi
11394done
81ecdfbb
RW
11395 done
11396IFS=$as_save_IFS
c6b750e1 11397
2429c060
PB
11398 ;;
11399esac
11400fi
c6b750e1 11401DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11402if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11404$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11405else
81ecdfbb
RW
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11407$as_echo "no" >&6; }
2429c060
PB
11408fi
11409
81ecdfbb 11410
2429c060
PB
11411fi
11412if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11413
11414
11415if test -n "$DLLTOOL_FOR_TARGET"; then
11416 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11417elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11418 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11419fi
11420
11421if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11422 for ncn_progname in dlltool; do
11423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11424set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426$as_echo_n "checking for $ac_word... " >&6; }
11427if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11428 $as_echo_n "(cached) " >&6
9a819804
AO
11429else
11430 if test -n "$DLLTOOL_FOR_TARGET"; then
11431 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11432else
11433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434for as_dir in $PATH
11435do
11436 IFS=$as_save_IFS
11437 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11438 for ac_exec_ext in '' $ac_executable_extensions; do
11439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11440 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11442 break 2
11443 fi
11444done
81ecdfbb
RW
11445 done
11446IFS=$as_save_IFS
9a819804
AO
11447
11448fi
11449fi
11450DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11451if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11453$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11454else
81ecdfbb
RW
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456$as_echo "no" >&6; }
9a819804
AO
11457fi
11458
81ecdfbb 11459
9a819804
AO
11460 done
11461fi
11462
11463if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11464 for ncn_progname in dlltool; do
81ecdfbb
RW
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11466$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11467 if test -x $with_build_time_tools/${ncn_progname}; then
11468 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11470$as_echo "yes" >&6; }
2429c060
PB
11471 break
11472 else
81ecdfbb
RW
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474$as_echo "no" >&6; }
2429c060
PB
11475 fi
11476 done
11477fi
11478
11479if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11480 for ncn_progname in dlltool; do
11481 if test -n "$ncn_target_tool_prefix"; then
11482 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11483set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11485$as_echo_n "checking for $ac_word... " >&6; }
11486if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11487 $as_echo_n "(cached) " >&6
2429c060
PB
11488else
11489 if test -n "$DLLTOOL_FOR_TARGET"; then
11490 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11491else
c6b750e1
DJ
11492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11493for as_dir in $PATH
11494do
11495 IFS=$as_save_IFS
11496 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11497 for ac_exec_ext in '' $ac_executable_extensions; do
11498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11499 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11501 break 2
11502 fi
11503done
81ecdfbb
RW
11504 done
11505IFS=$as_save_IFS
c6b750e1 11506
2429c060
PB
11507fi
11508fi
c6b750e1 11509DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11510if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11512$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11513else
81ecdfbb
RW
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515$as_echo "no" >&6; }
2429c060
PB
11516fi
11517
81ecdfbb 11518
2429c060
PB
11519 fi
11520 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11522set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524$as_echo_n "checking for $ac_word... " >&6; }
11525if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11526 $as_echo_n "(cached) " >&6
2429c060
PB
11527else
11528 if test -n "$DLLTOOL_FOR_TARGET"; then
11529 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11530else
c6b750e1
DJ
11531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11532for as_dir in $PATH
11533do
11534 IFS=$as_save_IFS
11535 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11536 for ac_exec_ext in '' $ac_executable_extensions; do
11537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11538 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11540 break 2
11541 fi
11542done
81ecdfbb
RW
11543 done
11544IFS=$as_save_IFS
c6b750e1 11545
2429c060
PB
11546fi
11547fi
c6b750e1 11548DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11549if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11551$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11552else
81ecdfbb
RW
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554$as_echo "no" >&6; }
2429c060 11555fi
c6b750e1 11556
81ecdfbb 11557
2429c060
PB
11558 fi
11559 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11560 done
11561fi
c6b750e1 11562
2429c060
PB
11563if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11564 set dummy dlltool
11565 if test $build = $target ; then
11566 DLLTOOL_FOR_TARGET="$2"
11567 else
11568 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11569 fi
d3f5afc4
MS
11570else
11571 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11572fi
11573
3a35eeb3
PB
11574else
11575 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11576fi
11577
11578
11579
11580
11581if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11582 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11584$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11585 if test -x $with_build_time_tools/ld; then
11586 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11587 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11589$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11590 else
81ecdfbb
RW
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592$as_echo "no" >&6; }
3a35eeb3 11593 fi
2429c060
PB
11594 elif test $build != $host && test $have_gcc_for_target = yes; then
11595 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11596 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11597 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11598 fi
11599fi
c6b750e1 11600if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11601 # Extract the first word of "ld", so it can be a program name with args.
11602set dummy ld; ac_word=$2
81ecdfbb
RW
11603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11604$as_echo_n "checking for $ac_word... " >&6; }
11605if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11606 $as_echo_n "(cached) " >&6
2429c060 11607else
c6b750e1
DJ
11608 case $LD_FOR_TARGET in
11609 [\\/]* | ?:[\\/]*)
2429c060
PB
11610 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11611 ;;
2429c060 11612 *)
c6b750e1
DJ
11613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614for as_dir in $gcc_cv_tool_dirs
11615do
11616 IFS=$as_save_IFS
11617 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11618 for ac_exec_ext in '' $ac_executable_extensions; do
11619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11620 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11622 break 2
11623 fi
11624done
81ecdfbb
RW
11625 done
11626IFS=$as_save_IFS
c6b750e1 11627
2429c060
PB
11628 ;;
11629esac
11630fi
c6b750e1 11631LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11632if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11634$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11635else
81ecdfbb
RW
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637$as_echo "no" >&6; }
2429c060
PB
11638fi
11639
81ecdfbb 11640
2429c060
PB
11641fi
11642if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11643
11644
11645if test -n "$LD_FOR_TARGET"; then
11646 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11647elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11648 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11649fi
11650
11651if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11652 for ncn_progname in ld; do
11653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11654set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11656$as_echo_n "checking for $ac_word... " >&6; }
11657if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11658 $as_echo_n "(cached) " >&6
9a819804
AO
11659else
11660 if test -n "$LD_FOR_TARGET"; then
11661 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11662else
11663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664for as_dir in $PATH
11665do
11666 IFS=$as_save_IFS
11667 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11668 for ac_exec_ext in '' $ac_executable_extensions; do
11669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11670 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11672 break 2
11673 fi
11674done
81ecdfbb
RW
11675 done
11676IFS=$as_save_IFS
9a819804
AO
11677
11678fi
11679fi
11680LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11681if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11683$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11684else
81ecdfbb
RW
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686$as_echo "no" >&6; }
9a819804
AO
11687fi
11688
81ecdfbb 11689
9a819804
AO
11690 done
11691fi
11692
11693if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11694 for ncn_progname in ld; do
81ecdfbb
RW
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11696$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11697 if test -x $with_build_time_tools/${ncn_progname}; then
11698 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11700$as_echo "yes" >&6; }
2429c060
PB
11701 break
11702 else
81ecdfbb
RW
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704$as_echo "no" >&6; }
2429c060
PB
11705 fi
11706 done
11707fi
11708
11709if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11710 for ncn_progname in ld; do
11711 if test -n "$ncn_target_tool_prefix"; then
11712 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11713set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11715$as_echo_n "checking for $ac_word... " >&6; }
11716if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11717 $as_echo_n "(cached) " >&6
2429c060
PB
11718else
11719 if test -n "$LD_FOR_TARGET"; then
11720 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11721else
c6b750e1
DJ
11722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11723for as_dir in $PATH
11724do
11725 IFS=$as_save_IFS
11726 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11727 for ac_exec_ext in '' $ac_executable_extensions; do
11728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11729 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11731 break 2
11732 fi
11733done
81ecdfbb
RW
11734 done
11735IFS=$as_save_IFS
c6b750e1 11736
2429c060
PB
11737fi
11738fi
c6b750e1 11739LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11740if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11742$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11743else
81ecdfbb
RW
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745$as_echo "no" >&6; }
2429c060
PB
11746fi
11747
81ecdfbb 11748
2429c060
PB
11749 fi
11750 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11752set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11754$as_echo_n "checking for $ac_word... " >&6; }
11755if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11756 $as_echo_n "(cached) " >&6
2429c060
PB
11757else
11758 if test -n "$LD_FOR_TARGET"; then
11759 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11760else
c6b750e1
DJ
11761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11762for as_dir in $PATH
11763do
11764 IFS=$as_save_IFS
11765 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11766 for ac_exec_ext in '' $ac_executable_extensions; do
11767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11768 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11770 break 2
11771 fi
11772done
81ecdfbb
RW
11773 done
11774IFS=$as_save_IFS
c6b750e1 11775
2429c060
PB
11776fi
11777fi
c6b750e1 11778LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11779if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11781$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11782else
81ecdfbb
RW
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784$as_echo "no" >&6; }
2429c060 11785fi
c6b750e1 11786
81ecdfbb 11787
2429c060
PB
11788 fi
11789 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11790 done
11791fi
c6b750e1 11792
2429c060
PB
11793if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11794 set dummy ld
11795 if test $build = $target ; then
11796 LD_FOR_TARGET="$2"
11797 else
11798 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11799 fi
d3f5afc4
MS
11800else
11801 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11802fi
11803
3a35eeb3
PB
11804else
11805 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11806fi
11807
11808
11809
11810
11811if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11812 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11814$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11815 if test -x $with_build_time_tools/lipo; then
11816 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11817 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11819$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11820 else
81ecdfbb
RW
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822$as_echo "no" >&6; }
3a35eeb3 11823 fi
2429c060
PB
11824 elif test $build != $host && test $have_gcc_for_target = yes; then
11825 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11826 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11827 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11828 fi
11829fi
9a819804
AO
11830if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11831 # Extract the first word of "lipo", so it can be a program name with args.
11832set dummy lipo; ac_word=$2
81ecdfbb
RW
11833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11834$as_echo_n "checking for $ac_word... " >&6; }
11835if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11836 $as_echo_n "(cached) " >&6
9a819804
AO
11837else
11838 case $LIPO_FOR_TARGET in
11839 [\\/]* | ?:[\\/]*)
11840 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11841 ;;
11842 *)
11843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11844for as_dir in $gcc_cv_tool_dirs
11845do
11846 IFS=$as_save_IFS
11847 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11848 for ac_exec_ext in '' $ac_executable_extensions; do
11849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11850 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11852 break 2
11853 fi
11854done
81ecdfbb
RW
11855 done
11856IFS=$as_save_IFS
9a819804
AO
11857
11858 ;;
11859esac
11860fi
11861LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11862if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11864$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11865else
81ecdfbb
RW
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867$as_echo "no" >&6; }
9a819804
AO
11868fi
11869
81ecdfbb 11870
9a819804
AO
11871fi
11872if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11873
11874
11875if test -n "$LIPO_FOR_TARGET"; then
11876 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11877elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11878 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11879fi
11880
11881if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11882 for ncn_progname in lipo; do
11883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11884set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11886$as_echo_n "checking for $ac_word... " >&6; }
11887if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11888 $as_echo_n "(cached) " >&6
2429c060 11889else
9a819804
AO
11890 if test -n "$LIPO_FOR_TARGET"; then
11891 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11892else
11893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11894for as_dir in $PATH
c6b750e1
DJ
11895do
11896 IFS=$as_save_IFS
11897 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11898 for ac_exec_ext in '' $ac_executable_extensions; do
11899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11900 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11902 break 2
11903 fi
11904done
81ecdfbb
RW
11905 done
11906IFS=$as_save_IFS
c6b750e1 11907
2429c060 11908fi
9a819804
AO
11909fi
11910LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11911if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11913$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11914else
81ecdfbb
RW
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916$as_echo "no" >&6; }
2429c060
PB
11917fi
11918
81ecdfbb 11919
9a819804 11920 done
2429c060 11921fi
9a819804
AO
11922
11923if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11924 for ncn_progname in lipo; do
81ecdfbb
RW
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11926$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11927 if test -x $with_build_time_tools/${ncn_progname}; then
11928 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11930$as_echo "yes" >&6; }
2429c060
PB
11931 break
11932 else
81ecdfbb
RW
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934$as_echo "no" >&6; }
2429c060
PB
11935 fi
11936 done
11937fi
11938
11939if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11940 for ncn_progname in lipo; do
11941 if test -n "$ncn_target_tool_prefix"; then
11942 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11943set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11945$as_echo_n "checking for $ac_word... " >&6; }
11946if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11947 $as_echo_n "(cached) " >&6
2429c060
PB
11948else
11949 if test -n "$LIPO_FOR_TARGET"; then
11950 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11951else
c6b750e1
DJ
11952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11953for as_dir in $PATH
11954do
11955 IFS=$as_save_IFS
11956 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11957 for ac_exec_ext in '' $ac_executable_extensions; do
11958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11959 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11961 break 2
11962 fi
11963done
81ecdfbb
RW
11964 done
11965IFS=$as_save_IFS
c6b750e1 11966
2429c060
PB
11967fi
11968fi
c6b750e1 11969LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11970if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11972$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11973else
81ecdfbb
RW
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975$as_echo "no" >&6; }
2429c060
PB
11976fi
11977
81ecdfbb 11978
2429c060
PB
11979 fi
11980 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11982set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11984$as_echo_n "checking for $ac_word... " >&6; }
11985if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11986 $as_echo_n "(cached) " >&6
2429c060
PB
11987else
11988 if test -n "$LIPO_FOR_TARGET"; then
11989 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11990else
c6b750e1
DJ
11991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11992for as_dir in $PATH
11993do
11994 IFS=$as_save_IFS
11995 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11996 for ac_exec_ext in '' $ac_executable_extensions; do
11997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11998 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12000 break 2
12001 fi
12002done
81ecdfbb
RW
12003 done
12004IFS=$as_save_IFS
c6b750e1 12005
2429c060
PB
12006fi
12007fi
c6b750e1 12008LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12009if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12011$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12012else
81ecdfbb
RW
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014$as_echo "no" >&6; }
2429c060 12015fi
c6b750e1 12016
81ecdfbb 12017
2429c060
PB
12018 fi
12019 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12020 done
12021fi
c6b750e1 12022
2429c060
PB
12023if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12024 set dummy lipo
12025 if test $build = $target ; then
12026 LIPO_FOR_TARGET="$2"
12027 else
12028 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12029 fi
d3f5afc4
MS
12030else
12031 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
12032fi
12033
3a35eeb3
PB
12034else
12035 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
12036fi
12037
12038
12039
12040
12041if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12042 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12044$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12045 if test -x $with_build_time_tools/nm; then
12046 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12047 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12049$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 12050 else
81ecdfbb
RW
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052$as_echo "no" >&6; }
3a35eeb3 12053 fi
2429c060
PB
12054 elif test $build != $host && test $have_gcc_for_target = yes; then
12055 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
12056 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12057 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
12058 fi
12059fi
c6b750e1 12060if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12061 # Extract the first word of "nm", so it can be a program name with args.
12062set dummy nm; ac_word=$2
81ecdfbb
RW
12063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12064$as_echo_n "checking for $ac_word... " >&6; }
12065if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12066 $as_echo_n "(cached) " >&6
2429c060 12067else
c6b750e1
DJ
12068 case $NM_FOR_TARGET in
12069 [\\/]* | ?:[\\/]*)
2429c060
PB
12070 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12071 ;;
2429c060 12072 *)
c6b750e1
DJ
12073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12074for as_dir in $gcc_cv_tool_dirs
12075do
12076 IFS=$as_save_IFS
12077 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12078 for ac_exec_ext in '' $ac_executable_extensions; do
12079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12080 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12082 break 2
12083 fi
12084done
81ecdfbb
RW
12085 done
12086IFS=$as_save_IFS
c6b750e1 12087
2429c060
PB
12088 ;;
12089esac
12090fi
c6b750e1 12091NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12092if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12094$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12095else
81ecdfbb
RW
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12097$as_echo "no" >&6; }
2429c060
PB
12098fi
12099
81ecdfbb 12100
2429c060
PB
12101fi
12102if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12103
12104
12105if test -n "$NM_FOR_TARGET"; then
12106 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12107elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12108 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12109fi
12110
12111if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12112 for ncn_progname in nm; do
12113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12114set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12116$as_echo_n "checking for $ac_word... " >&6; }
12117if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12118 $as_echo_n "(cached) " >&6
9a819804
AO
12119else
12120 if test -n "$NM_FOR_TARGET"; then
12121 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12122else
12123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12124for as_dir in $PATH
12125do
12126 IFS=$as_save_IFS
12127 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12128 for ac_exec_ext in '' $ac_executable_extensions; do
12129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12130 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12132 break 2
12133 fi
12134done
81ecdfbb
RW
12135 done
12136IFS=$as_save_IFS
9a819804
AO
12137
12138fi
12139fi
12140NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12141if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12143$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12144else
81ecdfbb
RW
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146$as_echo "no" >&6; }
9a819804
AO
12147fi
12148
81ecdfbb 12149
9a819804
AO
12150 done
12151fi
12152
12153if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12154 for ncn_progname in nm; do
81ecdfbb
RW
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12156$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12157 if test -x $with_build_time_tools/${ncn_progname}; then
12158 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12160$as_echo "yes" >&6; }
2429c060
PB
12161 break
12162 else
81ecdfbb
RW
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164$as_echo "no" >&6; }
2429c060
PB
12165 fi
12166 done
12167fi
12168
12169if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12170 for ncn_progname in nm; do
12171 if test -n "$ncn_target_tool_prefix"; then
12172 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12173set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12175$as_echo_n "checking for $ac_word... " >&6; }
12176if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12177 $as_echo_n "(cached) " >&6
859789af 12178else
55db4b87
PB
12179 if test -n "$NM_FOR_TARGET"; then
12180 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12181else
c6b750e1
DJ
12182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183for as_dir in $PATH
12184do
12185 IFS=$as_save_IFS
12186 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12187 for ac_exec_ext in '' $ac_executable_extensions; do
12188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12189 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12191 break 2
12192 fi
12193done
81ecdfbb
RW
12194 done
12195IFS=$as_save_IFS
c6b750e1 12196
859789af
AC
12197fi
12198fi
c6b750e1 12199NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12200if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12202$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12203else
81ecdfbb
RW
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12205$as_echo "no" >&6; }
859789af
AC
12206fi
12207
81ecdfbb 12208
2429c060
PB
12209 fi
12210 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12212set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12214$as_echo_n "checking for $ac_word... " >&6; }
12215if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12216 $as_echo_n "(cached) " >&6
859789af 12217else
05cbd757
PB
12218 if test -n "$NM_FOR_TARGET"; then
12219 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12220else
c6b750e1
DJ
12221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12222for as_dir in $PATH
12223do
12224 IFS=$as_save_IFS
12225 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12226 for ac_exec_ext in '' $ac_executable_extensions; do
12227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12228 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12230 break 2
12231 fi
12232done
81ecdfbb
RW
12233 done
12234IFS=$as_save_IFS
c6b750e1 12235
859789af
AC
12236fi
12237fi
c6b750e1 12238NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12239if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12241$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12242else
81ecdfbb
RW
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12244$as_echo "no" >&6; }
859789af 12245fi
c6b750e1 12246
81ecdfbb 12247
2429c060
PB
12248 fi
12249 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12250 done
12251fi
c6b750e1 12252
05cbd757
PB
12253if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12254 set dummy nm
12255 if test $build = $target ; then
12256 NM_FOR_TARGET="$2"
859789af 12257 else
05cbd757 12258 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12259 fi
d3f5afc4
MS
12260else
12261 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12262fi
12263
3a35eeb3
PB
12264else
12265 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12266fi
12267
12268
12269
12270
6b91c541
AP
12271if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12272 if test -n "$with_build_time_tools"; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12274$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12275 if test -x $with_build_time_tools/objcopy; then
12276 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12277 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12279$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12280 else
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282$as_echo "no" >&6; }
12283 fi
12284 elif test $build != $host && test $have_gcc_for_target = yes; then
12285 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12286 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12287 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12288 fi
12289fi
12290if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12291 # Extract the first word of "objcopy", so it can be a program name with args.
12292set dummy objcopy; ac_word=$2
12293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12294$as_echo_n "checking for $ac_word... " >&6; }
12295if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12296 $as_echo_n "(cached) " >&6
12297else
12298 case $OBJCOPY_FOR_TARGET in
12299 [\\/]* | ?:[\\/]*)
12300 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12301 ;;
12302 *)
12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304for as_dir in $gcc_cv_tool_dirs
12305do
12306 IFS=$as_save_IFS
12307 test -z "$as_dir" && as_dir=.
12308 for ac_exec_ext in '' $ac_executable_extensions; do
12309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12310 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312 break 2
12313 fi
12314done
12315 done
12316IFS=$as_save_IFS
12317
12318 ;;
12319esac
12320fi
12321OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12322if test -n "$OBJCOPY_FOR_TARGET"; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12324$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12325else
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327$as_echo "no" >&6; }
12328fi
12329
12330
12331fi
12332if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12333
12334
12335if test -n "$OBJCOPY_FOR_TARGET"; then
12336 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12337elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12338 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12339fi
12340
12341if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12342 for ncn_progname in objcopy; do
12343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12344set dummy ${ncn_progname}; ac_word=$2
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12346$as_echo_n "checking for $ac_word... " >&6; }
12347if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12348 $as_echo_n "(cached) " >&6
12349else
12350 if test -n "$OBJCOPY_FOR_TARGET"; then
12351 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12352else
12353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354for as_dir in $PATH
12355do
12356 IFS=$as_save_IFS
12357 test -z "$as_dir" && as_dir=.
12358 for ac_exec_ext in '' $ac_executable_extensions; do
12359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12360 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362 break 2
12363 fi
12364done
12365 done
12366IFS=$as_save_IFS
12367
12368fi
12369fi
12370OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12371if test -n "$OBJCOPY_FOR_TARGET"; then
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12373$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12374else
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376$as_echo "no" >&6; }
12377fi
12378
12379
12380 done
12381fi
12382
12383if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12384 for ncn_progname in objcopy; do
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12386$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12387 if test -x $with_build_time_tools/${ncn_progname}; then
12388 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12390$as_echo "yes" >&6; }
12391 break
12392 else
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394$as_echo "no" >&6; }
12395 fi
12396 done
12397fi
12398
12399if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12400 for ncn_progname in objcopy; do
12401 if test -n "$ncn_target_tool_prefix"; then
12402 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12403set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405$as_echo_n "checking for $ac_word... " >&6; }
12406if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12407 $as_echo_n "(cached) " >&6
12408else
12409 if test -n "$OBJCOPY_FOR_TARGET"; then
12410 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12411else
12412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413for as_dir in $PATH
12414do
12415 IFS=$as_save_IFS
12416 test -z "$as_dir" && as_dir=.
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12419 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12421 break 2
12422 fi
12423done
12424 done
12425IFS=$as_save_IFS
12426
12427fi
12428fi
12429OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12430if test -n "$OBJCOPY_FOR_TARGET"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12432$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12433else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435$as_echo "no" >&6; }
12436fi
12437
12438
12439 fi
12440 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12442set dummy ${ncn_progname}; ac_word=$2
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12444$as_echo_n "checking for $ac_word... " >&6; }
12445if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12446 $as_echo_n "(cached) " >&6
12447else
12448 if test -n "$OBJCOPY_FOR_TARGET"; then
12449 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12450else
12451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12452for as_dir in $PATH
12453do
12454 IFS=$as_save_IFS
12455 test -z "$as_dir" && as_dir=.
12456 for ac_exec_ext in '' $ac_executable_extensions; do
12457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12458 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12460 break 2
12461 fi
12462done
12463 done
12464IFS=$as_save_IFS
12465
12466fi
12467fi
12468OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12469if test -n "$OBJCOPY_FOR_TARGET"; then
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12471$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12472else
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12474$as_echo "no" >&6; }
12475fi
12476
12477
12478 fi
12479 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12480 done
12481fi
12482
12483if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12484 set dummy objcopy
12485 if test $build = $target ; then
12486 OBJCOPY_FOR_TARGET="$2"
12487 else
12488 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12489 fi
12490else
12491 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12492fi
12493
12494else
12495 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12496fi
12497
12498
12499
12500
2429c060
PB
12501if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12502 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12504$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12505 if test -x $with_build_time_tools/objdump; then
12506 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12507 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12509$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12510 else
81ecdfbb
RW
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12512$as_echo "no" >&6; }
3a35eeb3 12513 fi
2429c060
PB
12514 elif test $build != $host && test $have_gcc_for_target = yes; then
12515 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12516 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12517 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12518 fi
12519fi
c6b750e1 12520if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12521 # Extract the first word of "objdump", so it can be a program name with args.
12522set dummy objdump; ac_word=$2
81ecdfbb
RW
12523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12524$as_echo_n "checking for $ac_word... " >&6; }
12525if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12526 $as_echo_n "(cached) " >&6
2429c060 12527else
c6b750e1
DJ
12528 case $OBJDUMP_FOR_TARGET in
12529 [\\/]* | ?:[\\/]*)
2429c060
PB
12530 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12531 ;;
2429c060 12532 *)
c6b750e1
DJ
12533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12534for as_dir in $gcc_cv_tool_dirs
12535do
12536 IFS=$as_save_IFS
12537 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12538 for ac_exec_ext in '' $ac_executable_extensions; do
12539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12540 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12542 break 2
12543 fi
12544done
81ecdfbb
RW
12545 done
12546IFS=$as_save_IFS
c6b750e1 12547
2429c060
PB
12548 ;;
12549esac
12550fi
c6b750e1 12551OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12552if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12554$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12555else
81ecdfbb
RW
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12557$as_echo "no" >&6; }
2429c060
PB
12558fi
12559
81ecdfbb 12560
2429c060
PB
12561fi
12562if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12563
12564
12565if test -n "$OBJDUMP_FOR_TARGET"; then
12566 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12567elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12568 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12569fi
12570
12571if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12572 for ncn_progname in objdump; do
12573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12574set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12576$as_echo_n "checking for $ac_word... " >&6; }
12577if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12578 $as_echo_n "(cached) " >&6
9a819804
AO
12579else
12580 if test -n "$OBJDUMP_FOR_TARGET"; then
12581 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12582else
12583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12584for as_dir in $PATH
12585do
12586 IFS=$as_save_IFS
12587 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12588 for ac_exec_ext in '' $ac_executable_extensions; do
12589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12590 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12592 break 2
12593 fi
12594done
81ecdfbb
RW
12595 done
12596IFS=$as_save_IFS
9a819804
AO
12597
12598fi
12599fi
12600OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12601if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12603$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12604else
81ecdfbb
RW
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606$as_echo "no" >&6; }
9a819804
AO
12607fi
12608
81ecdfbb 12609
9a819804
AO
12610 done
12611fi
12612
12613if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12614 for ncn_progname in objdump; do
81ecdfbb
RW
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12616$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12617 if test -x $with_build_time_tools/${ncn_progname}; then
12618 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12620$as_echo "yes" >&6; }
2429c060
PB
12621 break
12622 else
81ecdfbb
RW
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624$as_echo "no" >&6; }
2429c060
PB
12625 fi
12626 done
12627fi
12628
12629if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12630 for ncn_progname in objdump; do
12631 if test -n "$ncn_target_tool_prefix"; then
12632 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12633set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635$as_echo_n "checking for $ac_word... " >&6; }
12636if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12637 $as_echo_n "(cached) " >&6
5ae72758
DJ
12638else
12639 if test -n "$OBJDUMP_FOR_TARGET"; then
12640 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12641else
c6b750e1
DJ
12642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12643for as_dir in $PATH
12644do
12645 IFS=$as_save_IFS
12646 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12647 for ac_exec_ext in '' $ac_executable_extensions; do
12648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12649 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12651 break 2
12652 fi
12653done
81ecdfbb
RW
12654 done
12655IFS=$as_save_IFS
c6b750e1 12656
5ae72758
DJ
12657fi
12658fi
c6b750e1 12659OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12660if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12662$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12663else
81ecdfbb
RW
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665$as_echo "no" >&6; }
5ae72758
DJ
12666fi
12667
81ecdfbb 12668
2429c060
PB
12669 fi
12670 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12672set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12674$as_echo_n "checking for $ac_word... " >&6; }
12675if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12676 $as_echo_n "(cached) " >&6
5ae72758
DJ
12677else
12678 if test -n "$OBJDUMP_FOR_TARGET"; then
12679 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12680else
c6b750e1
DJ
12681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12682for as_dir in $PATH
12683do
12684 IFS=$as_save_IFS
12685 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12686 for ac_exec_ext in '' $ac_executable_extensions; do
12687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12688 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12690 break 2
12691 fi
12692done
81ecdfbb
RW
12693 done
12694IFS=$as_save_IFS
c6b750e1 12695
5ae72758
DJ
12696fi
12697fi
c6b750e1 12698OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12699if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12701$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12702else
81ecdfbb
RW
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704$as_echo "no" >&6; }
5ae72758 12705fi
c6b750e1 12706
81ecdfbb 12707
2429c060
PB
12708 fi
12709 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12710 done
12711fi
c6b750e1 12712
5ae72758
DJ
12713if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12714 set dummy objdump
12715 if test $build = $target ; then
12716 OBJDUMP_FOR_TARGET="$2"
12717 else
12718 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12719 fi
d3f5afc4
MS
12720else
12721 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12722fi
12723
3a35eeb3
PB
12724else
12725 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12726fi
12727
12728
12729
12730
12731if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12732 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12734$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12735 if test -x $with_build_time_tools/ranlib; then
12736 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12737 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12739$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12740 else
81ecdfbb
RW
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742$as_echo "no" >&6; }
3a35eeb3 12743 fi
2429c060
PB
12744 elif test $build != $host && test $have_gcc_for_target = yes; then
12745 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12746 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12747 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12748 fi
12749fi
c6b750e1 12750if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12751 # Extract the first word of "ranlib", so it can be a program name with args.
12752set dummy ranlib; ac_word=$2
81ecdfbb
RW
12753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12754$as_echo_n "checking for $ac_word... " >&6; }
12755if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12756 $as_echo_n "(cached) " >&6
2429c060 12757else
c6b750e1
DJ
12758 case $RANLIB_FOR_TARGET in
12759 [\\/]* | ?:[\\/]*)
2429c060
PB
12760 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12761 ;;
2429c060 12762 *)
c6b750e1
DJ
12763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764for as_dir in $gcc_cv_tool_dirs
12765do
12766 IFS=$as_save_IFS
12767 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12768 for ac_exec_ext in '' $ac_executable_extensions; do
12769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12770 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12772 break 2
12773 fi
12774done
81ecdfbb
RW
12775 done
12776IFS=$as_save_IFS
c6b750e1 12777
2429c060
PB
12778 ;;
12779esac
12780fi
c6b750e1 12781RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12782if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12784$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12785else
81ecdfbb
RW
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787$as_echo "no" >&6; }
2429c060
PB
12788fi
12789
81ecdfbb 12790
2429c060
PB
12791fi
12792if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12793
12794
12795if test -n "$RANLIB_FOR_TARGET"; then
12796 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12797elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12798 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12799fi
12800
12801if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12802 for ncn_progname in ranlib; do
12803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12804set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806$as_echo_n "checking for $ac_word... " >&6; }
12807if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12808 $as_echo_n "(cached) " >&6
9a819804
AO
12809else
12810 if test -n "$RANLIB_FOR_TARGET"; then
12811 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12812else
12813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814for as_dir in $PATH
12815do
12816 IFS=$as_save_IFS
12817 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12818 for ac_exec_ext in '' $ac_executable_extensions; do
12819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12820 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12822 break 2
12823 fi
12824done
81ecdfbb
RW
12825 done
12826IFS=$as_save_IFS
9a819804
AO
12827
12828fi
12829fi
12830RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12831if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12833$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12834else
81ecdfbb
RW
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836$as_echo "no" >&6; }
9a819804
AO
12837fi
12838
81ecdfbb 12839
9a819804
AO
12840 done
12841fi
12842
12843if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12844 for ncn_progname in ranlib; do
81ecdfbb
RW
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12846$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12847 if test -x $with_build_time_tools/${ncn_progname}; then
12848 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12850$as_echo "yes" >&6; }
2429c060
PB
12851 break
12852 else
81ecdfbb
RW
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12854$as_echo "no" >&6; }
2429c060
PB
12855 fi
12856 done
12857fi
12858
12859if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12860 for ncn_progname in ranlib; do
12861 if test -n "$ncn_target_tool_prefix"; then
12862 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12863set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865$as_echo_n "checking for $ac_word... " >&6; }
12866if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12867 $as_echo_n "(cached) " >&6
859789af 12868else
55db4b87
PB
12869 if test -n "$RANLIB_FOR_TARGET"; then
12870 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12871else
c6b750e1
DJ
12872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12873for as_dir in $PATH
12874do
12875 IFS=$as_save_IFS
12876 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12877 for ac_exec_ext in '' $ac_executable_extensions; do
12878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12879 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12881 break 2
12882 fi
12883done
81ecdfbb
RW
12884 done
12885IFS=$as_save_IFS
c6b750e1 12886
859789af
AC
12887fi
12888fi
c6b750e1 12889RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12890if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12892$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12893else
81ecdfbb
RW
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895$as_echo "no" >&6; }
859789af
AC
12896fi
12897
81ecdfbb 12898
2429c060
PB
12899 fi
12900 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12901 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12902set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12904$as_echo_n "checking for $ac_word... " >&6; }
12905if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12906 $as_echo_n "(cached) " >&6
859789af 12907else
05cbd757
PB
12908 if test -n "$RANLIB_FOR_TARGET"; then
12909 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12910else
c6b750e1
DJ
12911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12912for as_dir in $PATH
12913do
12914 IFS=$as_save_IFS
12915 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12916 for ac_exec_ext in '' $ac_executable_extensions; do
12917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12918 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12920 break 2
12921 fi
12922done
81ecdfbb
RW
12923 done
12924IFS=$as_save_IFS
c6b750e1 12925
859789af
AC
12926fi
12927fi
c6b750e1 12928RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12929if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12931$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12932else
81ecdfbb
RW
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934$as_echo "no" >&6; }
859789af 12935fi
c6b750e1 12936
81ecdfbb 12937
2429c060
PB
12938 fi
12939 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12940 done
12941fi
c6b750e1 12942
2429c060
PB
12943if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12944 set dummy ranlib
12945 if test $build = $target ; then
12946 RANLIB_FOR_TARGET="$2"
12947 else
12948 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12949 fi
d3f5afc4
MS
12950else
12951 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12952fi
05cbd757 12953
3a35eeb3
PB
12954else
12955 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12956fi
12957
2429c060
PB
12958
12959
12960
b121d7d4
DD
12961if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12962 if test -n "$with_build_time_tools"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12964$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12965 if test -x $with_build_time_tools/readelf; then
12966 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12967 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12969$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12970 else
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972$as_echo "no" >&6; }
12973 fi
12974 elif test $build != $host && test $have_gcc_for_target = yes; then
12975 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12976 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12977 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12978 fi
12979fi
12980if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12981 # Extract the first word of "readelf", so it can be a program name with args.
12982set dummy readelf; ac_word=$2
12983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12984$as_echo_n "checking for $ac_word... " >&6; }
12985if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12986 $as_echo_n "(cached) " >&6
12987else
12988 case $READELF_FOR_TARGET in
12989 [\\/]* | ?:[\\/]*)
12990 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12991 ;;
12992 *)
12993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12994for as_dir in $gcc_cv_tool_dirs
12995do
12996 IFS=$as_save_IFS
12997 test -z "$as_dir" && as_dir=.
12998 for ac_exec_ext in '' $ac_executable_extensions; do
12999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13000 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13002 break 2
13003 fi
13004done
13005 done
13006IFS=$as_save_IFS
13007
13008 ;;
13009esac
13010fi
13011READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13012if test -n "$READELF_FOR_TARGET"; then
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13014$as_echo "$READELF_FOR_TARGET" >&6; }
13015else
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017$as_echo "no" >&6; }
13018fi
13019
13020
13021fi
13022if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13023
13024
13025if test -n "$READELF_FOR_TARGET"; then
13026 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13027elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13028 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13029fi
13030
13031if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13032 for ncn_progname in readelf; do
13033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13034set dummy ${ncn_progname}; ac_word=$2
13035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13036$as_echo_n "checking for $ac_word... " >&6; }
13037if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13038 $as_echo_n "(cached) " >&6
13039else
13040 if test -n "$READELF_FOR_TARGET"; then
13041 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13042else
13043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044for as_dir in $PATH
13045do
13046 IFS=$as_save_IFS
13047 test -z "$as_dir" && as_dir=.
13048 for ac_exec_ext in '' $ac_executable_extensions; do
13049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13050 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13052 break 2
13053 fi
13054done
13055 done
13056IFS=$as_save_IFS
13057
13058fi
13059fi
13060READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13061if test -n "$READELF_FOR_TARGET"; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13063$as_echo "$READELF_FOR_TARGET" >&6; }
13064else
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066$as_echo "no" >&6; }
13067fi
13068
13069
13070 done
13071fi
13072
13073if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13074 for ncn_progname in readelf; do
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13076$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13077 if test -x $with_build_time_tools/${ncn_progname}; then
13078 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13080$as_echo "yes" >&6; }
13081 break
13082 else
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13084$as_echo "no" >&6; }
13085 fi
13086 done
13087fi
13088
13089if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13090 for ncn_progname in readelf; do
13091 if test -n "$ncn_target_tool_prefix"; then
13092 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13093set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13095$as_echo_n "checking for $ac_word... " >&6; }
13096if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13097 $as_echo_n "(cached) " >&6
13098else
13099 if test -n "$READELF_FOR_TARGET"; then
13100 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13101else
13102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13103for as_dir in $PATH
13104do
13105 IFS=$as_save_IFS
13106 test -z "$as_dir" && as_dir=.
13107 for ac_exec_ext in '' $ac_executable_extensions; do
13108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13109 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13111 break 2
13112 fi
13113done
13114 done
13115IFS=$as_save_IFS
13116
13117fi
13118fi
13119READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13120if test -n "$READELF_FOR_TARGET"; then
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13122$as_echo "$READELF_FOR_TARGET" >&6; }
13123else
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125$as_echo "no" >&6; }
13126fi
13127
13128
13129 fi
13130 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13131 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13132set dummy ${ncn_progname}; ac_word=$2
13133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13134$as_echo_n "checking for $ac_word... " >&6; }
13135if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13136 $as_echo_n "(cached) " >&6
13137else
13138 if test -n "$READELF_FOR_TARGET"; then
13139 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13140else
13141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13142for as_dir in $PATH
13143do
13144 IFS=$as_save_IFS
13145 test -z "$as_dir" && as_dir=.
13146 for ac_exec_ext in '' $ac_executable_extensions; do
13147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13148 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13150 break 2
13151 fi
13152done
13153 done
13154IFS=$as_save_IFS
13155
13156fi
13157fi
13158READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13159if test -n "$READELF_FOR_TARGET"; then
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13161$as_echo "$READELF_FOR_TARGET" >&6; }
13162else
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164$as_echo "no" >&6; }
13165fi
13166
13167
13168 fi
13169 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13170 done
13171fi
13172
13173if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13174 set dummy readelf
13175 if test $build = $target ; then
13176 READELF_FOR_TARGET="$2"
13177 else
13178 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13179 fi
13180else
13181 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13182fi
13183
13184else
13185 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13186fi
13187
13188
13189
13190
2429c060
PB
13191if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13192 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13194$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13195 if test -x $with_build_time_tools/strip; then
13196 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13197 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13199$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 13200 else
81ecdfbb
RW
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202$as_echo "no" >&6; }
3a35eeb3 13203 fi
2429c060
PB
13204 elif test $build != $host && test $have_gcc_for_target = yes; then
13205 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
13206 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13207 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13208 fi
13209fi
c6b750e1 13210if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13211 # Extract the first word of "strip", so it can be a program name with args.
13212set dummy strip; ac_word=$2
81ecdfbb
RW
13213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214$as_echo_n "checking for $ac_word... " >&6; }
13215if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13216 $as_echo_n "(cached) " >&6
2429c060 13217else
c6b750e1
DJ
13218 case $STRIP_FOR_TARGET in
13219 [\\/]* | ?:[\\/]*)
2429c060
PB
13220 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13221 ;;
2429c060 13222 *)
c6b750e1
DJ
13223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224for as_dir in $gcc_cv_tool_dirs
13225do
13226 IFS=$as_save_IFS
13227 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13228 for ac_exec_ext in '' $ac_executable_extensions; do
13229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13230 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13232 break 2
13233 fi
13234done
81ecdfbb
RW
13235 done
13236IFS=$as_save_IFS
c6b750e1 13237
2429c060
PB
13238 ;;
13239esac
13240fi
c6b750e1 13241STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13242if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13244$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13245else
81ecdfbb
RW
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13247$as_echo "no" >&6; }
2429c060
PB
13248fi
13249
81ecdfbb 13250
2429c060
PB
13251fi
13252if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13253
13254
13255if test -n "$STRIP_FOR_TARGET"; then
13256 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13257elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13258 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13259fi
13260
13261if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13262 for ncn_progname in strip; do
13263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13264set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266$as_echo_n "checking for $ac_word... " >&6; }
13267if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13268 $as_echo_n "(cached) " >&6
9a819804
AO
13269else
13270 if test -n "$STRIP_FOR_TARGET"; then
13271 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13272else
13273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274for as_dir in $PATH
13275do
13276 IFS=$as_save_IFS
13277 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13278 for ac_exec_ext in '' $ac_executable_extensions; do
13279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13280 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13282 break 2
13283 fi
13284done
81ecdfbb
RW
13285 done
13286IFS=$as_save_IFS
9a819804
AO
13287
13288fi
13289fi
13290STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13291if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13293$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13294else
81ecdfbb
RW
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296$as_echo "no" >&6; }
9a819804
AO
13297fi
13298
81ecdfbb 13299
9a819804
AO
13300 done
13301fi
13302
13303if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13304 for ncn_progname in strip; do
81ecdfbb
RW
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13306$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13307 if test -x $with_build_time_tools/${ncn_progname}; then
13308 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13310$as_echo "yes" >&6; }
2429c060
PB
13311 break
13312 else
81ecdfbb
RW
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314$as_echo "no" >&6; }
2429c060
PB
13315 fi
13316 done
13317fi
13318
13319if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13320 for ncn_progname in strip; do
13321 if test -n "$ncn_target_tool_prefix"; then
13322 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13323set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13325$as_echo_n "checking for $ac_word... " >&6; }
13326if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13327 $as_echo_n "(cached) " >&6
7e0f7140
GK
13328else
13329 if test -n "$STRIP_FOR_TARGET"; then
13330 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13331else
13332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13333for as_dir in $PATH
13334do
13335 IFS=$as_save_IFS
13336 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13337 for ac_exec_ext in '' $ac_executable_extensions; do
13338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13339 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13341 break 2
13342 fi
13343done
81ecdfbb
RW
13344 done
13345IFS=$as_save_IFS
c6b750e1 13346
7e0f7140
GK
13347fi
13348fi
c6b750e1 13349STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13350if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13352$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13353else
81ecdfbb
RW
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13355$as_echo "no" >&6; }
7e0f7140
GK
13356fi
13357
81ecdfbb 13358
2429c060
PB
13359 fi
13360 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13361 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13362set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364$as_echo_n "checking for $ac_word... " >&6; }
13365if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13366 $as_echo_n "(cached) " >&6
7e0f7140
GK
13367else
13368 if test -n "$STRIP_FOR_TARGET"; then
13369 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13370else
c6b750e1
DJ
13371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372for as_dir in $PATH
13373do
13374 IFS=$as_save_IFS
13375 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13376 for ac_exec_ext in '' $ac_executable_extensions; do
13377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13378 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13380 break 2
13381 fi
13382done
81ecdfbb
RW
13383 done
13384IFS=$as_save_IFS
c6b750e1 13385
7e0f7140
GK
13386fi
13387fi
c6b750e1 13388STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13389if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13391$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13392else
81ecdfbb
RW
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394$as_echo "no" >&6; }
7e0f7140 13395fi
c6b750e1 13396
81ecdfbb 13397
2429c060
PB
13398 fi
13399 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13400 done
13401fi
c6b750e1 13402
7e0f7140
GK
13403if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13404 set dummy strip
13405 if test $build = $target ; then
13406 STRIP_FOR_TARGET="$2"
13407 else
13408 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13409 fi
d3f5afc4
MS
13410else
13411 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13412fi
13413
3a35eeb3
PB
13414else
13415 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13416fi
13417
13418
13419
13420
13421if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13422 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13424$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13425 if test -x $with_build_time_tools/windres; then
13426 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13427 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13429$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13430 else
81ecdfbb
RW
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13432$as_echo "no" >&6; }
3a35eeb3 13433 fi
2429c060
PB
13434 elif test $build != $host && test $have_gcc_for_target = yes; then
13435 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13436 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13437 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13438 fi
13439fi
c6b750e1 13440if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13441 # Extract the first word of "windres", so it can be a program name with args.
13442set dummy windres; ac_word=$2
81ecdfbb
RW
13443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13444$as_echo_n "checking for $ac_word... " >&6; }
13445if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13446 $as_echo_n "(cached) " >&6
2429c060 13447else
c6b750e1
DJ
13448 case $WINDRES_FOR_TARGET in
13449 [\\/]* | ?:[\\/]*)
2429c060
PB
13450 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13451 ;;
2429c060 13452 *)
c6b750e1
DJ
13453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13454for as_dir in $gcc_cv_tool_dirs
13455do
13456 IFS=$as_save_IFS
13457 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13458 for ac_exec_ext in '' $ac_executable_extensions; do
13459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13460 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13462 break 2
13463 fi
13464done
81ecdfbb
RW
13465 done
13466IFS=$as_save_IFS
c6b750e1 13467
2429c060
PB
13468 ;;
13469esac
13470fi
c6b750e1 13471WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13472if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13474$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13475else
81ecdfbb
RW
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477$as_echo "no" >&6; }
2429c060
PB
13478fi
13479
81ecdfbb 13480
2429c060
PB
13481fi
13482if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13483
13484
13485if test -n "$WINDRES_FOR_TARGET"; then
13486 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13487elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13488 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13489fi
13490
13491if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13492 for ncn_progname in windres; do
13493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13494set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13496$as_echo_n "checking for $ac_word... " >&6; }
13497if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13498 $as_echo_n "(cached) " >&6
9a819804
AO
13499else
13500 if test -n "$WINDRES_FOR_TARGET"; then
13501 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13502else
13503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13504for as_dir in $PATH
13505do
13506 IFS=$as_save_IFS
13507 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13508 for ac_exec_ext in '' $ac_executable_extensions; do
13509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13510 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13512 break 2
13513 fi
13514done
81ecdfbb
RW
13515 done
13516IFS=$as_save_IFS
9a819804
AO
13517
13518fi
13519fi
13520WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13521if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13523$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13524else
81ecdfbb
RW
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526$as_echo "no" >&6; }
9a819804
AO
13527fi
13528
81ecdfbb 13529
9a819804
AO
13530 done
13531fi
13532
13533if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13534 for ncn_progname in windres; do
81ecdfbb
RW
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13536$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13537 if test -x $with_build_time_tools/${ncn_progname}; then
13538 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13540$as_echo "yes" >&6; }
2429c060
PB
13541 break
13542 else
81ecdfbb
RW
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13544$as_echo "no" >&6; }
2429c060
PB
13545 fi
13546 done
13547fi
13548
13549if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13550 for ncn_progname in windres; do
13551 if test -n "$ncn_target_tool_prefix"; then
13552 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13553set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13555$as_echo_n "checking for $ac_word... " >&6; }
13556if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13557 $as_echo_n "(cached) " >&6
859789af 13558else
55db4b87
PB
13559 if test -n "$WINDRES_FOR_TARGET"; then
13560 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13561else
c6b750e1
DJ
13562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13563for as_dir in $PATH
13564do
13565 IFS=$as_save_IFS
13566 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13567 for ac_exec_ext in '' $ac_executable_extensions; do
13568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13569 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13571 break 2
13572 fi
13573done
81ecdfbb
RW
13574 done
13575IFS=$as_save_IFS
c6b750e1 13576
859789af
AC
13577fi
13578fi
c6b750e1 13579WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13580if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13582$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13583else
81ecdfbb
RW
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585$as_echo "no" >&6; }
859789af
AC
13586fi
13587
81ecdfbb 13588
2429c060
PB
13589 fi
13590 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13592set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13594$as_echo_n "checking for $ac_word... " >&6; }
13595if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13596 $as_echo_n "(cached) " >&6
859789af 13597else
05cbd757
PB
13598 if test -n "$WINDRES_FOR_TARGET"; then
13599 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13600else
c6b750e1
DJ
13601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13602for as_dir in $PATH
13603do
13604 IFS=$as_save_IFS
13605 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13606 for ac_exec_ext in '' $ac_executable_extensions; do
13607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13608 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13610 break 2
13611 fi
13612done
81ecdfbb
RW
13613 done
13614IFS=$as_save_IFS
c6b750e1 13615
859789af
AC
13616fi
13617fi
c6b750e1 13618WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13619if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13621$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13622else
81ecdfbb
RW
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13624$as_echo "no" >&6; }
859789af 13625fi
c6b750e1 13626
81ecdfbb 13627
2429c060
PB
13628 fi
13629 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13630 done
13631fi
c6b750e1 13632
05cbd757
PB
13633if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13634 set dummy windres
13635 if test $build = $target ; then
13636 WINDRES_FOR_TARGET="$2"
859789af 13637 else
05cbd757 13638 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13639 fi
d3f5afc4
MS
13640else
13641 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13642fi
13643
3a35eeb3
PB
13644else
13645 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13646fi
13647
852e5f18 13648
0c24b341
NC
13649
13650
13651if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13652 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13654$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13655 if test -x $with_build_time_tools/windmc; then
13656 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13657 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13659$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13660 else
81ecdfbb
RW
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13662$as_echo "no" >&6; }
0c24b341
NC
13663 fi
13664 elif test $build != $host && test $have_gcc_for_target = yes; then
13665 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13666 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13667 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13668 fi
13669fi
13670if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13671 # Extract the first word of "windmc", so it can be a program name with args.
13672set dummy windmc; ac_word=$2
81ecdfbb
RW
13673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13674$as_echo_n "checking for $ac_word... " >&6; }
13675if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13676 $as_echo_n "(cached) " >&6
0c24b341
NC
13677else
13678 case $WINDMC_FOR_TARGET in
13679 [\\/]* | ?:[\\/]*)
13680 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13681 ;;
13682 *)
13683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13684for as_dir in $gcc_cv_tool_dirs
13685do
13686 IFS=$as_save_IFS
13687 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13688 for ac_exec_ext in '' $ac_executable_extensions; do
13689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13690 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13692 break 2
13693 fi
13694done
81ecdfbb
RW
13695 done
13696IFS=$as_save_IFS
0c24b341
NC
13697
13698 ;;
13699esac
13700fi
13701WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13702if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13704$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13705else
81ecdfbb
RW
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13707$as_echo "no" >&6; }
0c24b341
NC
13708fi
13709
81ecdfbb 13710
0c24b341
NC
13711fi
13712if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13713
13714
13715if test -n "$WINDMC_FOR_TARGET"; then
13716 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13717elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13718 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13719fi
13720
13721if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13722 for ncn_progname in windmc; do
13723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13724set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13726$as_echo_n "checking for $ac_word... " >&6; }
13727if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13728 $as_echo_n "(cached) " >&6
0c24b341
NC
13729else
13730 if test -n "$WINDMC_FOR_TARGET"; then
13731 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13732else
13733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734for as_dir in $PATH
13735do
13736 IFS=$as_save_IFS
13737 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13738 for ac_exec_ext in '' $ac_executable_extensions; do
13739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13740 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13742 break 2
13743 fi
13744done
81ecdfbb
RW
13745 done
13746IFS=$as_save_IFS
0c24b341
NC
13747
13748fi
13749fi
13750WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13751if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13753$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13754else
81ecdfbb
RW
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13756$as_echo "no" >&6; }
0c24b341
NC
13757fi
13758
81ecdfbb 13759
0c24b341
NC
13760 done
13761fi
13762
13763if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13764 for ncn_progname in windmc; do
81ecdfbb
RW
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13766$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13767 if test -x $with_build_time_tools/${ncn_progname}; then
13768 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13770$as_echo "yes" >&6; }
0c24b341
NC
13771 break
13772 else
81ecdfbb
RW
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774$as_echo "no" >&6; }
0c24b341
NC
13775 fi
13776 done
13777fi
13778
13779if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13780 for ncn_progname in windmc; do
13781 if test -n "$ncn_target_tool_prefix"; then
13782 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13783set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13785$as_echo_n "checking for $ac_word... " >&6; }
13786if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13787 $as_echo_n "(cached) " >&6
0c24b341
NC
13788else
13789 if test -n "$WINDMC_FOR_TARGET"; then
13790 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13791else
13792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13793for as_dir in $PATH
13794do
13795 IFS=$as_save_IFS
13796 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13797 for ac_exec_ext in '' $ac_executable_extensions; do
13798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13799 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13801 break 2
13802 fi
13803done
81ecdfbb
RW
13804 done
13805IFS=$as_save_IFS
0c24b341
NC
13806
13807fi
13808fi
13809WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13810if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13812$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13813else
81ecdfbb
RW
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13815$as_echo "no" >&6; }
0c24b341
NC
13816fi
13817
81ecdfbb 13818
0c24b341
NC
13819 fi
13820 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13822set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13824$as_echo_n "checking for $ac_word... " >&6; }
13825if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13826 $as_echo_n "(cached) " >&6
0c24b341
NC
13827else
13828 if test -n "$WINDMC_FOR_TARGET"; then
13829 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13830else
13831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13832for as_dir in $PATH
13833do
13834 IFS=$as_save_IFS
13835 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13836 for ac_exec_ext in '' $ac_executable_extensions; do
13837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13838 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13840 break 2
13841 fi
13842done
81ecdfbb
RW
13843 done
13844IFS=$as_save_IFS
0c24b341
NC
13845
13846fi
13847fi
13848WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13849if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13851$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13852else
81ecdfbb
RW
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13854$as_echo "no" >&6; }
0c24b341
NC
13855fi
13856
81ecdfbb 13857
0c24b341
NC
13858 fi
13859 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13860 done
13861fi
13862
13863if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13864 set dummy windmc
13865 if test $build = $target ; then
13866 WINDMC_FOR_TARGET="$2"
13867 else
13868 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13869 fi
13870else
13871 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13872fi
13873
13874else
13875 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13876fi
13877
13878
be01d343
PB
13879RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13880
81ecdfbb
RW
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13882$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13883if test "x${build}" != "x${host}" ; then
2429c060
PB
13884 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13885 # We already found the complete path
b8025f34 13886 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13888$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13889 else
13890 # Canadian cross, just use what we found
81ecdfbb
RW
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13892$as_echo "pre-installed" >&6; }
2429c060 13893 fi
be01d343
PB
13894else
13895 ok=yes
13896 case " ${configdirs} " in
13897 *" binutils "*) ;;
13898 *) ok=no ;;
13899 esac
c6b750e1 13900
be01d343
PB
13901 if test $ok = yes; then
13902 # An in-tree tool is available and we can use it
13903 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13905$as_echo "just compiled" >&6; }
2429c060
PB
13906 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13907 # We already found the complete path
b8025f34 13908 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13910$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13911 elif test "x$target" = "x$host"; then
13912 # We can use an host tool
13913 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13915$as_echo "host tool" >&6; }
be01d343
PB
13916 else
13917 # We need a cross tool
81ecdfbb
RW
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13919$as_echo "pre-installed" >&6; }
be01d343
PB
13920 fi
13921fi
4b900473 13922
81ecdfbb
RW
13923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13924$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13925if test "x${build}" != "x${host}" ; then
2429c060
PB
13926 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13927 # We already found the complete path
b8025f34 13928 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13930$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13931 else
13932 # Canadian cross, just use what we found
81ecdfbb
RW
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13934$as_echo "pre-installed" >&6; }
2429c060 13935 fi
be01d343
PB
13936else
13937 ok=yes
13938 case " ${configdirs} " in
13939 *" gas "*) ;;
13940 *) ok=no ;;
13941 esac
c6b750e1 13942
be01d343
PB
13943 if test $ok = yes; then
13944 # An in-tree tool is available and we can use it
13945 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13947$as_echo "just compiled" >&6; }
2429c060
PB
13948 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13949 # We already found the complete path
b8025f34 13950 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13952$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13953 elif test "x$target" = "x$host"; then
13954 # We can use an host tool
13955 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13957$as_echo "host tool" >&6; }
be01d343
PB
13958 else
13959 # We need a cross tool
81ecdfbb
RW
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13961$as_echo "pre-installed" >&6; }
be01d343
PB
13962 fi
13963fi
4b900473 13964
81ecdfbb
RW
13965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13966$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13967if test "x${build}" != "x${host}" ; then
2429c060
PB
13968 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13969 # We already found the complete path
b8025f34 13970 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13972$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13973 else
13974 # Canadian cross, just use what we found
81ecdfbb
RW
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13976$as_echo "pre-installed" >&6; }
2429c060 13977 fi
be01d343
PB
13978else
13979 ok=yes
13980 case " ${configdirs} " in
13981 *" gcc "*) ;;
13982 *) ok=no ;;
13983 esac
c6b750e1 13984
be01d343
PB
13985 if test $ok = yes; then
13986 # An in-tree tool is available and we can use it
13987 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13989$as_echo "just compiled" >&6; }
2429c060
PB
13990 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13991 # We already found the complete path
b8025f34 13992 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13994$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13995 elif test "x$target" = "x$host"; then
13996 # We can use an host tool
13997 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13999$as_echo "host tool" >&6; }
be01d343
PB
14000 else
14001 # We need a cross tool
81ecdfbb
RW
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14003$as_echo "pre-installed" >&6; }
be01d343
PB
14004 fi
14005fi
4b900473 14006
81ecdfbb
RW
14007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14008$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 14009if test "x${build}" != "x${host}" ; then
2429c060
PB
14010 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14011 # We already found the complete path
b8025f34 14012 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14014$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14015 else
14016 # Canadian cross, just use what we found
81ecdfbb
RW
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14018$as_echo "pre-installed" >&6; }
2429c060 14019 fi
be01d343
PB
14020else
14021 ok=yes
14022 case " ${configdirs} " in
14023 *" gcc "*) ;;
14024 *) ok=no ;;
14025 esac
14026 case ,${enable_languages}, in
14027 *,c++,*) ;;
14028 *) ok=no ;;
14029 esac
14030 if test $ok = yes; then
14031 # An in-tree tool is available and we can use it
95e43135 14032 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
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14034$as_echo "just compiled" >&6; }
2429c060
PB
14035 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14036 # We already found the complete path
b8025f34 14037 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14039$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14040 elif test "x$target" = "x$host"; then
14041 # We can use an host tool
14042 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14044$as_echo "host tool" >&6; }
be01d343
PB
14045 else
14046 # We need a cross tool
81ecdfbb
RW
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14048$as_echo "pre-installed" >&6; }
be01d343
PB
14049 fi
14050fi
4b900473 14051
81ecdfbb
RW
14052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14053$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 14054if test "x${build}" != "x${host}" ; then
2429c060
PB
14055 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14056 # We already found the complete path
b8025f34 14057 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14059$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14060 else
14061 # Canadian cross, just use what we found
81ecdfbb
RW
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14063$as_echo "pre-installed" >&6; }
2429c060 14064 fi
be01d343
PB
14065else
14066 ok=yes
14067 case " ${configdirs} " in
14068 *" gcc "*) ;;
14069 *) ok=no ;;
14070 esac
14071 case ,${enable_languages}, in
14072 *,c++,*) ;;
14073 *) ok=no ;;
14074 esac
14075 if test $ok = yes; then
14076 # An in-tree tool is available and we can use it
95e43135 14077 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
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14079$as_echo "just compiled" >&6; }
2429c060
PB
14080 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14081 # We already found the complete path
b8025f34 14082 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14084$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14085 elif test "x$target" = "x$host"; then
14086 # We can use an host tool
14087 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14089$as_echo "host tool" >&6; }
be01d343
PB
14090 else
14091 # We need a cross tool
81ecdfbb
RW
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14093$as_echo "pre-installed" >&6; }
be01d343
PB
14094 fi
14095fi
4b900473 14096
81ecdfbb
RW
14097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14098$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 14099if test "x${build}" != "x${host}" ; then
2429c060
PB
14100 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14101 # We already found the complete path
b8025f34 14102 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14104$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14105 else
14106 # Canadian cross, just use what we found
81ecdfbb
RW
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14108$as_echo "pre-installed" >&6; }
2429c060 14109 fi
be01d343
PB
14110else
14111 ok=yes
14112 case " ${configdirs} " in
14113 *" binutils "*) ;;
14114 *) ok=no ;;
14115 esac
c6b750e1 14116
be01d343
PB
14117 if test $ok = yes; then
14118 # An in-tree tool is available and we can use it
14119 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14121$as_echo "just compiled" >&6; }
2429c060
PB
14122 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14123 # We already found the complete path
b8025f34 14124 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14126$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14127 elif test "x$target" = "x$host"; then
14128 # We can use an host tool
14129 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14131$as_echo "host tool" >&6; }
be01d343
PB
14132 else
14133 # We need a cross tool
81ecdfbb
RW
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14135$as_echo "pre-installed" >&6; }
be01d343
PB
14136 fi
14137fi
4b900473 14138
81ecdfbb
RW
14139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14140$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 14141if test "x${build}" != "x${host}" ; then
2429c060
PB
14142 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14143 # We already found the complete path
b8025f34 14144 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14146$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14147 else
14148 # Canadian cross, just use what we found
81ecdfbb
RW
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14150$as_echo "pre-installed" >&6; }
2429c060 14151 fi
be01d343
PB
14152else
14153 ok=yes
14154 case " ${configdirs} " in
14155 *" gcc "*) ;;
14156 *) ok=no ;;
14157 esac
c6b750e1 14158
be01d343
PB
14159 if test $ok = yes; then
14160 # An in-tree tool is available and we can use it
14161 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14163$as_echo "just compiled" >&6; }
2429c060
PB
14164 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14165 # We already found the complete path
b8025f34 14166 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14168$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14169 elif test "x$target" = "x$host"; then
14170 # We can use an host tool
14171 GCC_FOR_TARGET='$()'
81ecdfbb
RW
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14173$as_echo "host tool" >&6; }
be01d343
PB
14174 else
14175 # We need a cross tool
81ecdfbb
RW
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14177$as_echo "pre-installed" >&6; }
be01d343
PB
14178 fi
14179fi
4b900473 14180
81ecdfbb
RW
14181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14182$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 14183if test "x${build}" != "x${host}" ; then
2429c060
PB
14184 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14185 # We already found the complete path
b8025f34 14186 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14188$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14189 else
14190 # Canadian cross, just use what we found
81ecdfbb
RW
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14192$as_echo "pre-installed" >&6; }
2429c060 14193 fi
be01d343
PB
14194else
14195 ok=yes
14196 case " ${configdirs} " in
14197 *" gcc "*) ;;
14198 *) ok=no ;;
14199 esac
14200 case ,${enable_languages}, in
14201 *,java,*) ;;
14202 *) ok=no ;;
14203 esac
14204 if test $ok = yes; then
14205 # An in-tree tool is available and we can use it
14206 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14208$as_echo "just compiled" >&6; }
2429c060
PB
14209 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14210 # We already found the complete path
b8025f34 14211 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14213$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14214 elif test "x$target" = "x$host"; then
14215 # We can use an host tool
14216 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14218$as_echo "host tool" >&6; }
be01d343
PB
14219 else
14220 # We need a cross tool
81ecdfbb
RW
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14222$as_echo "pre-installed" >&6; }
be01d343
PB
14223 fi
14224fi
4b900473 14225
81ecdfbb
RW
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14227$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 14228if test "x${build}" != "x${host}" ; then
2429c060
PB
14229 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14230 # We already found the complete path
b8025f34 14231 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14233$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14234 else
14235 # Canadian cross, just use what we found
81ecdfbb
RW
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14237$as_echo "pre-installed" >&6; }
2429c060 14238 fi
be01d343
PB
14239else
14240 ok=yes
14241 case " ${configdirs} " in
14242 *" gcc "*) ;;
14243 *) ok=no ;;
14244 esac
14245 case ,${enable_languages}, in
14246 *,fortran,*) ;;
14247 *) ok=no ;;
14248 esac
14249 if test $ok = yes; then
14250 # An in-tree tool is available and we can use it
14251 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14253$as_echo "just compiled" >&6; }
2429c060
PB
14254 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14255 # We already found the complete path
b8025f34 14256 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14258$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14259 elif test "x$target" = "x$host"; then
14260 # We can use an host tool
14261 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14263$as_echo "host tool" >&6; }
be01d343
PB
14264 else
14265 # We need a cross tool
81ecdfbb
RW
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14267$as_echo "pre-installed" >&6; }
be01d343
PB
14268 fi
14269fi
4b900473 14270
e552509b
ILT
14271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14272$as_echo_n "checking where to find the target gccgo... " >&6; }
14273if test "x${build}" != "x${host}" ; then
14274 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14275 # We already found the complete path
14276 ac_dir=`dirname $GOC_FOR_TARGET`
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14278$as_echo "pre-installed in $ac_dir" >&6; }
14279 else
14280 # Canadian cross, just use what we found
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14282$as_echo "pre-installed" >&6; }
14283 fi
14284else
14285 ok=yes
14286 case " ${configdirs} " in
14287 *" gcc "*) ;;
14288 *) ok=no ;;
14289 esac
14290 case ,${enable_languages}, in
14291 *,go,*) ;;
14292 *) ok=no ;;
14293 esac
14294 if test $ok = yes; then
14295 # An in-tree tool is available and we can use it
14296 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14298$as_echo "just compiled" >&6; }
14299 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14300 # We already found the complete path
14301 ac_dir=`dirname $GOC_FOR_TARGET`
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14303$as_echo "pre-installed in $ac_dir" >&6; }
14304 elif test "x$target" = "x$host"; then
14305 # We can use an host tool
14306 GOC_FOR_TARGET='$(GOC)'
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14308$as_echo "host tool" >&6; }
14309 else
14310 # We need a cross tool
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14312$as_echo "pre-installed" >&6; }
14313 fi
14314fi
14315
81ecdfbb
RW
14316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14317$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14318if test "x${build}" != "x${host}" ; then
2429c060
PB
14319 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14320 # We already found the complete path
b8025f34 14321 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14323$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14324 else
14325 # Canadian cross, just use what we found
81ecdfbb
RW
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14327$as_echo "pre-installed" >&6; }
2429c060 14328 fi
be01d343
PB
14329else
14330 ok=yes
14331 case " ${configdirs} " in
14332 *" ld "*) ;;
14333 *) ok=no ;;
14334 esac
c6b750e1 14335
be01d343
PB
14336 if test $ok = yes; then
14337 # An in-tree tool is available and we can use it
14338 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14340$as_echo "just compiled" >&6; }
2429c060
PB
14341 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14342 # We already found the complete path
b8025f34 14343 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14345$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14346 elif test "x$target" = "x$host"; then
14347 # We can use an host tool
14348 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14350$as_echo "host tool" >&6; }
be01d343
PB
14351 else
14352 # We need a cross tool
81ecdfbb
RW
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14354$as_echo "pre-installed" >&6; }
be01d343
PB
14355 fi
14356fi
4b900473 14357
81ecdfbb
RW
14358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14359$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14360if test "x${build}" != "x${host}" ; then
2429c060
PB
14361 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14362 # We already found the complete path
b8025f34 14363 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14365$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14366 else
14367 # Canadian cross, just use what we found
81ecdfbb
RW
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14369$as_echo "pre-installed" >&6; }
2429c060 14370 fi
be01d343 14371else
2429c060
PB
14372 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14373 # We already found the complete path
b8025f34 14374 ac_dir=`dirname $LIPO_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 14377 elif test "x$target" = "x$host"; then
be01d343
PB
14378 # We can use an host tool
14379 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14381$as_echo "host tool" >&6; }
be01d343
PB
14382 else
14383 # We need a cross tool
81ecdfbb
RW
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14385$as_echo "pre-installed" >&6; }
be01d343
PB
14386 fi
14387fi
4b900473 14388
81ecdfbb
RW
14389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14390$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14391if test "x${build}" != "x${host}" ; then
2429c060
PB
14392 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14393 # We already found the complete path
b8025f34 14394 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14396$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14397 else
14398 # Canadian cross, just use what we found
81ecdfbb
RW
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14400$as_echo "pre-installed" >&6; }
2429c060 14401 fi
be01d343
PB
14402else
14403 ok=yes
14404 case " ${configdirs} " in
14405 *" binutils "*) ;;
14406 *) ok=no ;;
14407 esac
c6b750e1 14408
be01d343
PB
14409 if test $ok = yes; then
14410 # An in-tree tool is available and we can use it
14411 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14413$as_echo "just compiled" >&6; }
2429c060
PB
14414 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14415 # We already found the complete path
b8025f34 14416 ac_dir=`dirname $NM_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; }
be01d343
PB
14419 elif test "x$target" = "x$host"; then
14420 # We can use an host tool
14421 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14423$as_echo "host tool" >&6; }
be01d343
PB
14424 else
14425 # We need a cross tool
81ecdfbb
RW
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14427$as_echo "pre-installed" >&6; }
be01d343
PB
14428 fi
14429fi
4b900473 14430
6b91c541
AP
14431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14432$as_echo_n "checking where to find the target objcopy... " >&6; }
14433if test "x${build}" != "x${host}" ; then
14434 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14435 # We already found the complete path
14436 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14438$as_echo "pre-installed in $ac_dir" >&6; }
14439 else
14440 # Canadian cross, just use what we found
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14442$as_echo "pre-installed" >&6; }
14443 fi
14444else
14445 ok=yes
14446 case " ${configdirs} " in
14447 *" binutils "*) ;;
14448 *) ok=no ;;
14449 esac
14450
14451 if test $ok = yes; then
14452 # An in-tree tool is available and we can use it
14453 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14455$as_echo "just compiled" >&6; }
14456 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14457 # We already found the complete path
14458 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14460$as_echo "pre-installed in $ac_dir" >&6; }
14461 elif test "x$target" = "x$host"; then
14462 # We can use an host tool
1b6c0831 14463 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14465$as_echo "host tool" >&6; }
14466 else
14467 # We need a cross tool
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14469$as_echo "pre-installed" >&6; }
14470 fi
14471fi
14472
81ecdfbb
RW
14473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14474$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14475if test "x${build}" != "x${host}" ; then
2429c060
PB
14476 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14477 # We already found the complete path
b8025f34 14478 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14480$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14481 else
14482 # Canadian cross, just use what we found
81ecdfbb
RW
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14484$as_echo "pre-installed" >&6; }
2429c060 14485 fi
be01d343
PB
14486else
14487 ok=yes
14488 case " ${configdirs} " in
14489 *" binutils "*) ;;
14490 *) ok=no ;;
14491 esac
c6b750e1 14492
be01d343
PB
14493 if test $ok = yes; then
14494 # An in-tree tool is available and we can use it
14495 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14497$as_echo "just compiled" >&6; }
2429c060
PB
14498 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14499 # We already found the complete path
b8025f34 14500 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14502$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14503 elif test "x$target" = "x$host"; then
14504 # We can use an host tool
14505 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14507$as_echo "host tool" >&6; }
be01d343
PB
14508 else
14509 # We need a cross tool
81ecdfbb
RW
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14511$as_echo "pre-installed" >&6; }
be01d343
PB
14512 fi
14513fi
4b900473 14514
81ecdfbb
RW
14515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14516$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14517if test "x${build}" != "x${host}" ; then
2429c060
PB
14518 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14519 # We already found the complete path
b8025f34 14520 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14522$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14523 else
14524 # Canadian cross, just use what we found
81ecdfbb
RW
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14526$as_echo "pre-installed" >&6; }
2429c060 14527 fi
be01d343
PB
14528else
14529 ok=yes
14530 case " ${configdirs} " in
14531 *" binutils "*) ;;
14532 *) ok=no ;;
14533 esac
c6b750e1 14534
be01d343
PB
14535 if test $ok = yes; then
14536 # An in-tree tool is available and we can use it
14537 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14539$as_echo "just compiled" >&6; }
2429c060
PB
14540 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14541 # We already found the complete path
b8025f34 14542 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14544$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14545 elif test "x$target" = "x$host"; then
14546 # We can use an host tool
14547 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14549$as_echo "host tool" >&6; }
be01d343
PB
14550 else
14551 # We need a cross tool
81ecdfbb
RW
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14553$as_echo "pre-installed" >&6; }
be01d343
PB
14554 fi
14555fi
4b900473 14556
b121d7d4
DD
14557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14558$as_echo_n "checking where to find the target readelf... " >&6; }
14559if test "x${build}" != "x${host}" ; then
14560 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14561 # We already found the complete path
14562 ac_dir=`dirname $READELF_FOR_TARGET`
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14564$as_echo "pre-installed in $ac_dir" >&6; }
14565 else
14566 # Canadian cross, just use what we found
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14568$as_echo "pre-installed" >&6; }
14569 fi
14570else
14571 ok=yes
14572 case " ${configdirs} " in
14573 *" binutils "*) ;;
14574 *) ok=no ;;
14575 esac
14576
14577 if test $ok = yes; then
14578 # An in-tree tool is available and we can use it
14579 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14581$as_echo "just compiled" >&6; }
14582 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14583 # We already found the complete path
14584 ac_dir=`dirname $READELF_FOR_TARGET`
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14586$as_echo "pre-installed in $ac_dir" >&6; }
14587 elif test "x$target" = "x$host"; then
14588 # We can use an host tool
14589 READELF_FOR_TARGET='$(READELF)'
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14591$as_echo "host tool" >&6; }
14592 else
14593 # We need a cross tool
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14595$as_echo "pre-installed" >&6; }
14596 fi
14597fi
14598
81ecdfbb
RW
14599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14600$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14601if test "x${build}" != "x${host}" ; then
2429c060
PB
14602 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14603 # We already found the complete path
b8025f34 14604 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14606$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14607 else
14608 # Canadian cross, just use what we found
81ecdfbb
RW
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14610$as_echo "pre-installed" >&6; }
2429c060 14611 fi
be01d343
PB
14612else
14613 ok=yes
14614 case " ${configdirs} " in
14615 *" binutils "*) ;;
14616 *) ok=no ;;
14617 esac
c6b750e1 14618
be01d343
PB
14619 if test $ok = yes; then
14620 # An in-tree tool is available and we can use it
9b980aa1 14621 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14623$as_echo "just compiled" >&6; }
2429c060
PB
14624 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14625 # We already found the complete path
b8025f34 14626 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14628$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14629 elif test "x$target" = "x$host"; then
14630 # We can use an host tool
14631 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14633$as_echo "host tool" >&6; }
be01d343
PB
14634 else
14635 # We need a cross tool
81ecdfbb
RW
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14637$as_echo "pre-installed" >&6; }
be01d343
PB
14638 fi
14639fi
4b900473 14640
81ecdfbb
RW
14641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14642$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14643if test "x${build}" != "x${host}" ; then
2429c060
PB
14644 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14645 # We already found the complete path
b8025f34 14646 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14648$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14649 else
14650 # Canadian cross, just use what we found
81ecdfbb
RW
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14652$as_echo "pre-installed" >&6; }
2429c060 14653 fi
be01d343
PB
14654else
14655 ok=yes
14656 case " ${configdirs} " in
14657 *" binutils "*) ;;
14658 *) ok=no ;;
14659 esac
c6b750e1 14660
be01d343
PB
14661 if test $ok = yes; then
14662 # An in-tree tool is available and we can use it
14663 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14665$as_echo "just compiled" >&6; }
2429c060
PB
14666 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14667 # We already found the complete path
b8025f34 14668 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14670$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14671 elif test "x$target" = "x$host"; then
14672 # We can use an host tool
14673 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14675$as_echo "host tool" >&6; }
be01d343
PB
14676 else
14677 # We need a cross tool
81ecdfbb
RW
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14679$as_echo "pre-installed" >&6; }
be01d343 14680 fi
a0da8069 14681fi
54752a6b 14682
81ecdfbb
RW
14683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14684$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14685if test "x${build}" != "x${host}" ; then
14686 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14687 # We already found the complete path
14688 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14690$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14691 else
14692 # Canadian cross, just use what we found
81ecdfbb
RW
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14694$as_echo "pre-installed" >&6; }
0c24b341
NC
14695 fi
14696else
14697 ok=yes
14698 case " ${configdirs} " in
14699 *" binutils "*) ;;
14700 *) ok=no ;;
14701 esac
14702
14703 if test $ok = yes; then
14704 # An in-tree tool is available and we can use it
14705 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14707$as_echo "just compiled" >&6; }
0c24b341
NC
14708 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14709 # We already found the complete path
14710 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14712$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14713 elif test "x$target" = "x$host"; then
14714 # We can use an host tool
14715 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14717$as_echo "host tool" >&6; }
0c24b341
NC
14718 else
14719 # We need a cross tool
81ecdfbb
RW
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14721$as_echo "pre-installed" >&6; }
0c24b341
NC
14722 fi
14723fi
14724
54752a6b
NN
14725
14726
be01d343 14727
4b900473 14728
a0da8069
NN
14729# Certain tools may need extra flags.
14730AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14731RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14732NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14733
be01d343
PB
14734# When building target libraries, except in a Canadian cross, we use
14735# the same toolchain as the compiler we just built.
14736COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14737COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14738COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14739if test $host = $build; then
14740 case " $configdirs " in
14741 *" gcc "*)
14742 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14743 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14744 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14745 ;;
14746 esac
14747fi
14748
14749
14750
14751
14752
81ecdfbb
RW
14753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14754$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14755# Check whether --enable-maintainer-mode was given.
14756if test "${enable_maintainer_mode+set}" = set; then :
14757 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14758else
14759 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14760fi
14761
14762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14763$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14764
14765
14766if test "$USE_MAINTAINER_MODE" = yes; then
14767 MAINTAINER_MODE_TRUE=
14768 MAINTAINER_MODE_FALSE='#'
14769else
14770 MAINTAINER_MODE_TRUE='#'
14771 MAINTAINER_MODE_FALSE=
c6b750e1 14772fi
3d5e36ae
AO
14773MAINT=$MAINTAINER_MODE_TRUE
14774
1d39f329
NN
14775# ---------------------
14776# GCC bootstrap support
14777# ---------------------
14778
14779# Stage specific cflags for build.
14780stage1_cflags="-g"
14781case $build in
14782 vax-*-*)
14783 case ${GCC} in
14784 yes) stage1_cflags="-g -Wa,-J" ;;
14785 *) stage1_cflags="-g -J" ;;
14786 esac ;;
1d39f329
NN
14787esac
14788
1d89b610 14789
1d39f329 14790
8a0d8a5c 14791# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14792# Check whether --enable-stage1-checking was given.
14793if test "${enable_stage1_checking+set}" = set; then :
14794 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14795else
5566c1fa 14796 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14797 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14798else
5566c1fa 14799 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14800fi
81ecdfbb 14801fi
8a0d8a5c
PB
14802
14803
c6b750e1 14804
81ecdfbb
RW
14805# Enable -Werror in bootstrap stage2 and later.
14806# Check whether --enable-werror was given.
14807if test "${enable_werror+set}" = set; then :
14808 enableval=$enable_werror;
1d39f329 14809else
a0323144 14810 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14811 enable_werror=yes
79fcd0ec
PB
14812else
14813 enable_werror=no
14814fi
81ecdfbb
RW
14815fi
14816
1a6f2dc7
NN
14817case ${enable_werror} in
14818 yes) stage2_werror_flag="--enable-werror-always" ;;
14819 *) stage2_werror_flag="" ;;
1d39f329
NN
14820esac
14821
14822
82033c9b
JBG
14823# Enable --enable-host-shared.
14824# Check whether --enable-host-shared was given.
14825if test "${enable_host_shared+set}" = set; then :
14826 enableval=$enable_host_shared; host_shared=$enableval
14827else
14828 host_shared=no
14829fi
14830
14831
14832
1b6c0831
L
14833# PR jit/64780: Require the user to explicitly specify
14834# --enable-host-shared if the jit is enabled, hinting
14835# that they might want to do a separate configure/build of
14836# the jit, to avoid users from slowing down the rest of the
14837# compiler by enabling the jit.
14838if test ${host_shared} = "no" ; then
14839 case "${enable_languages}" in
14840 *jit*)
14841 as_fn_error "
14842Enabling language \"jit\" requires --enable-host-shared.
14843
14844--enable-host-shared typically slows the rest of the compiler down by
14845a few %, so you must explicitly enable it.
14846
14847If you want to build both the jit and the regular compiler, it is often
14848best to do this via two separate configure/builds, in separate
14849directories, to avoid imposing the performance cost of
14850--enable-host-shared on the regular compiler." "$LINENO" 5
14851 ;;
14852 *)
14853 ;;
14854 esac
14855fi
14856
e8a5fa9c
RW
14857# Specify what files to not compare during bootstrap.
14858
14859compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14860case "$target" in
14861 hppa*64*-*-hpux*) ;;
14862 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
1488e230 14863 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14864esac
14865
14866
81ecdfbb
RW
14867ac_config_files="$ac_config_files Makefile"
14868
c6b750e1 14869cat >confcache <<\_ACEOF
a0da8069
NN
14870# This file is a shell script that caches the results of configure
14871# tests run on this system so they can be shared between configure
c6b750e1
DJ
14872# scripts and configure runs, see configure's option --config-cache.
14873# It is not useful on other systems. If it contains results you don't
14874# want to keep, you may remove or edit it.
a0da8069 14875#
c6b750e1
DJ
14876# config.status only pays attention to the cache file if you give it
14877# the --recheck option to rerun configure.
a0da8069 14878#
c6b750e1
DJ
14879# `ac_cv_env_foo' variables (set or unset) will be overridden when
14880# loading this file, other *unset* `ac_cv_foo' will be assigned the
14881# following values.
14882
14883_ACEOF
14884
a0da8069
NN
14885# The following way of writing the cache mishandles newlines in values,
14886# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14887# So, we kill variables containing newlines.
a0da8069
NN
14888# Ultrix sh set writes to stderr and can't be redirected directly,
14889# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14890(
14891 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14892 eval ac_val=\$$ac_var
14893 case $ac_val in #(
14894 *${as_nl}*)
14895 case $ac_var in #(
14896 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14897$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14898 esac
14899 case $ac_var in #(
14900 _ | IFS | as_nl) ;; #(
14901 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14902 *) { eval $ac_var=; unset $ac_var;} ;;
14903 esac ;;
14904 esac
14905 done
14906
c6b750e1 14907 (set) 2>&1 |
81ecdfbb
RW
14908 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14909 *${as_nl}ac_space=\ *)
14910 # `set' does not quote correctly, so add quotes: double-quote
14911 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14912 sed -n \
14913 "s/'/'\\\\''/g;
14914 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14915 ;; #(
c6b750e1
DJ
14916 *)
14917 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14918 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14919 ;;
81ecdfbb
RW
14920 esac |
14921 sort
14922) |
c6b750e1 14923 sed '
81ecdfbb 14924 /^ac_cv_env_/b end
c6b750e1 14925 t clear
81ecdfbb 14926 :clear
c6b750e1
DJ
14927 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14928 t end
81ecdfbb
RW
14929 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14930 :end' >>confcache
14931if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14932 if test -w "$cache_file"; then
14933 test "x$cache_file" != "x/dev/null" &&
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14935$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14936 cat confcache >$cache_file
a0da8069 14937 else
81ecdfbb
RW
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14939$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14940 fi
852e5f18 14941fi
a0da8069 14942rm -f confcache
852e5f18 14943
a0da8069
NN
14944test "x$prefix" = xNONE && prefix=$ac_default_prefix
14945# Let make expand exec_prefix.
14946test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14947
a0da8069
NN
14948# Transform confdefs.h into DEFS.
14949# Protect against shell expansion while executing Makefile rules.
14950# Protect against Makefile macro expansion.
c6b750e1
DJ
14951#
14952# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14953# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14954# look for a macro that doesn't take arguments.
81ecdfbb
RW
14955ac_script='
14956:mline
14957/\\$/{
14958 N
14959 s,\\\n,,
14960 b mline
14961}
c6b750e1 14962t clear
81ecdfbb
RW
14963:clear
14964s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14965t quote
81ecdfbb 14966s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14967t quote
81ecdfbb
RW
14968b any
14969:quote
14970s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14971s/\[/\\&/g
14972s/\]/\\&/g
14973s/\$/$$/g
14974H
14975:any
14976${
14977 g
14978 s/^\n//
14979 s/\n/ /g
14980 p
14981}
14982'
14983DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14984
14985
14986ac_libobjs=
14987ac_ltlibobjs=
14988for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14989 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14990 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14991 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14992 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14993 # will be set to the directory where LIBOBJS objects are built.
14994 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14995 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14996done
14997LIBOBJS=$ac_libobjs
852e5f18 14998
c6b750e1 14999LTLIBOBJS=$ac_ltlibobjs
376a0e54 15000
cac3d6c4 15001
c6b750e1
DJ
15002
15003: ${CONFIG_STATUS=./config.status}
81ecdfbb 15004ac_write_fail=0
c6b750e1
DJ
15005ac_clean_files_save=$ac_clean_files
15006ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15007{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15008$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15009as_write_fail=0
15010cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
15011#! $SHELL
15012# Generated by $as_me.
a0da8069 15013# Run this file to recreate the current configuration.
a0da8069 15014# Compiler output produced by configure, useful for debugging
c6b750e1 15015# configure, is in config.log if it exists.
376a0e54 15016
c6b750e1
DJ
15017debug=false
15018ac_cs_recheck=false
15019ac_cs_silent=false
c6b750e1 15020
81ecdfbb
RW
15021SHELL=\${CONFIG_SHELL-$SHELL}
15022export SHELL
15023_ASEOF
15024cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15025## -------------------- ##
15026## M4sh Initialization. ##
15027## -------------------- ##
15028
15029# Be more Bourne compatible
15030DUALCASE=1; export DUALCASE # for MKS sh
15031if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
15032 emulate sh
15033 NULLCMD=:
81ecdfbb 15034 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
15035 # is contrary to our usage. Disable this feature.
15036 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15037 setopt NO_GLOB_SUBST
15038else
15039 case `(set -o) 2>/dev/null` in #(
15040 *posix*) :
15041 set -o posix ;; #(
15042 *) :
15043 ;;
15044esac
c6b750e1 15045fi
c6b750e1 15046
81ecdfbb
RW
15047
15048as_nl='
15049'
15050export as_nl
15051# Printing a long string crashes Solaris 7 /usr/bin/printf.
15052as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15053as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15054as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15055# Prefer a ksh shell builtin over an external printf program on Solaris,
15056# but without wasting forks for bash or zsh.
15057if test -z "$BASH_VERSION$ZSH_VERSION" \
15058 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15059 as_echo='print -r --'
15060 as_echo_n='print -rn --'
15061elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15062 as_echo='printf %s\n'
15063 as_echo_n='printf %s'
15064else
15065 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15066 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15067 as_echo_n='/usr/ucb/echo -n'
15068 else
15069 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15070 as_echo_n_body='eval
15071 arg=$1;
15072 case $arg in #(
15073 *"$as_nl"*)
15074 expr "X$arg" : "X\\(.*\\)$as_nl";
15075 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15076 esac;
15077 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15078 '
15079 export as_echo_n_body
15080 as_echo_n='sh -c $as_echo_n_body as_echo'
15081 fi
15082 export as_echo_body
15083 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
15084fi
15085
81ecdfbb
RW
15086# The user is always right.
15087if test "${PATH_SEPARATOR+set}" != set; then
15088 PATH_SEPARATOR=:
15089 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15090 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15091 PATH_SEPARATOR=';'
15092 }
15093fi
15094
15095
15096# IFS
15097# We need space, tab and new line, in precisely that order. Quoting is
15098# there to prevent editors from complaining about space-tab.
15099# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15100# splitting by setting IFS to empty value.)
15101IFS=" "" $as_nl"
15102
15103# Find who we are. Look in the path if we contain no directory separator.
15104case $0 in #((
15105 *[\\/]* ) as_myself=$0 ;;
15106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15107for as_dir in $PATH
15108do
15109 IFS=$as_save_IFS
15110 test -z "$as_dir" && as_dir=.
15111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15112 done
15113IFS=$as_save_IFS
15114
15115 ;;
15116esac
15117# We did not find ourselves, most probably we were run as `sh COMMAND'
15118# in which case we are not to be found in the path.
15119if test "x$as_myself" = x; then
15120 as_myself=$0
15121fi
15122if test ! -f "$as_myself"; then
15123 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15124 exit 1
15125fi
c6b750e1 15126
81ecdfbb
RW
15127# Unset variables that we do not need and which cause bugs (e.g. in
15128# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15129# suppresses any "Segmentation fault" message there. '((' could
15130# trigger a bug in pdksh 5.2.14.
15131for as_var in BASH_ENV ENV MAIL MAILPATH
15132do eval test x\${$as_var+set} = xset \
15133 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15134done
c6b750e1
DJ
15135PS1='$ '
15136PS2='> '
15137PS4='+ '
15138
15139# NLS nuisances.
81ecdfbb
RW
15140LC_ALL=C
15141export LC_ALL
15142LANGUAGE=C
15143export LANGUAGE
15144
15145# CDPATH.
15146(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15147
15148
15149# as_fn_error ERROR [LINENO LOG_FD]
15150# ---------------------------------
15151# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15152# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15153# script with status $?, using 1 if that was 0.
15154as_fn_error ()
15155{
15156 as_status=$?; test $as_status -eq 0 && as_status=1
15157 if test "$3"; then
15158 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15159 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 15160 fi
81ecdfbb
RW
15161 $as_echo "$as_me: error: $1" >&2
15162 as_fn_exit $as_status
15163} # as_fn_error
15164
15165
15166# as_fn_set_status STATUS
15167# -----------------------
15168# Set $? to STATUS, without forking.
15169as_fn_set_status ()
15170{
15171 return $1
15172} # as_fn_set_status
15173
15174# as_fn_exit STATUS
15175# -----------------
15176# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15177as_fn_exit ()
15178{
15179 set +e
15180 as_fn_set_status $1
15181 exit $1
15182} # as_fn_exit
15183
15184# as_fn_unset VAR
15185# ---------------
15186# Portably unset VAR.
15187as_fn_unset ()
15188{
15189 { eval $1=; unset $1;}
15190}
15191as_unset=as_fn_unset
15192# as_fn_append VAR VALUE
15193# ----------------------
15194# Append the text in VALUE to the end of the definition contained in VAR. Take
15195# advantage of any shell optimizations that allow amortized linear growth over
15196# repeated appends, instead of the typical quadratic growth present in naive
15197# implementations.
15198if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15199 eval 'as_fn_append ()
15200 {
15201 eval $1+=\$2
15202 }'
15203else
15204 as_fn_append ()
15205 {
15206 eval $1=\$$1\$2
15207 }
15208fi # as_fn_append
15209
15210# as_fn_arith ARG...
15211# ------------------
15212# Perform arithmetic evaluation on the ARGs, and store the result in the
15213# global $as_val. Take advantage of shells that can avoid forks. The arguments
15214# must be portable across $(()) and expr.
15215if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15216 eval 'as_fn_arith ()
15217 {
15218 as_val=$(( $* ))
15219 }'
15220else
15221 as_fn_arith ()
15222 {
15223 as_val=`expr "$@" || test $? -eq 1`
15224 }
15225fi # as_fn_arith
15226
c6b750e1 15227
81ecdfbb
RW
15228if expr a : '\(a\)' >/dev/null 2>&1 &&
15229 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
15230 as_expr=expr
15231else
15232 as_expr=false
15233fi
15234
81ecdfbb 15235if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
15236 as_basename=basename
15237else
15238 as_basename=false
15239fi
15240
81ecdfbb
RW
15241if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15242 as_dirname=dirname
15243else
15244 as_dirname=false
15245fi
c6b750e1 15246
81ecdfbb 15247as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15248$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15249 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15250 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15251$as_echo X/"$0" |
15252 sed '/^.*\/\([^/][^/]*\)\/*$/{
15253 s//\1/
15254 q
15255 }
15256 /^X\/\(\/\/\)$/{
15257 s//\1/
15258 q
15259 }
15260 /^X\/\(\/\).*/{
15261 s//\1/
15262 q
15263 }
15264 s/.*/./; q'`
c6b750e1 15265
c6b750e1
DJ
15266# Avoid depending upon Character Ranges.
15267as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15268as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15269as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15270as_cr_digits='0123456789'
15271as_cr_alnum=$as_cr_Letters$as_cr_digits
15272
81ecdfbb
RW
15273ECHO_C= ECHO_N= ECHO_T=
15274case `echo -n x` in #(((((
15275-n*)
15276 case `echo 'xy\c'` in
15277 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15278 xy) ECHO_C='\c';;
15279 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15280 ECHO_T=' ';;
15281 esac;;
15282*)
15283 ECHO_N='-n';;
c6b750e1
DJ
15284esac
15285
81ecdfbb
RW
15286rm -f conf$$ conf$$.exe conf$$.file
15287if test -d conf$$.dir; then
15288 rm -f conf$$.dir/conf$$.file
c6b750e1 15289else
81ecdfbb
RW
15290 rm -f conf$$.dir
15291 mkdir conf$$.dir 2>/dev/null
c6b750e1 15292fi
81ecdfbb
RW
15293if (echo >conf$$.file) 2>/dev/null; then
15294 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15295 as_ln_s='ln -s'
81ecdfbb
RW
15296 # ... but there are two gotchas:
15297 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15298 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15299 # In both cases, we have to default to `cp -p'.
15300 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15301 as_ln_s='cp -p'
15302 elif ln conf$$.file conf$$ 2>/dev/null; then
15303 as_ln_s=ln
15304 else
15305 as_ln_s='cp -p'
c6b750e1 15306 fi
c6b750e1
DJ
15307else
15308 as_ln_s='cp -p'
15309fi
81ecdfbb
RW
15310rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15311rmdir conf$$.dir 2>/dev/null
15312
15313
15314# as_fn_mkdir_p
15315# -------------
15316# Create "$as_dir" as a directory, including parents if necessary.
15317as_fn_mkdir_p ()
15318{
15319
15320 case $as_dir in #(
15321 -*) as_dir=./$as_dir;;
15322 esac
15323 test -d "$as_dir" || eval $as_mkdir_p || {
15324 as_dirs=
15325 while :; do
15326 case $as_dir in #(
15327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15328 *) as_qdir=$as_dir;;
15329 esac
15330 as_dirs="'$as_qdir' $as_dirs"
15331 as_dir=`$as_dirname -- "$as_dir" ||
15332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15333 X"$as_dir" : 'X\(//\)[^/]' \| \
15334 X"$as_dir" : 'X\(//\)$' \| \
15335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15336$as_echo X"$as_dir" |
15337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15338 s//\1/
15339 q
15340 }
15341 /^X\(\/\/\)[^/].*/{
15342 s//\1/
15343 q
15344 }
15345 /^X\(\/\/\)$/{
15346 s//\1/
15347 q
15348 }
15349 /^X\(\/\).*/{
15350 s//\1/
15351 q
15352 }
15353 s/.*/./; q'`
15354 test -d "$as_dir" && break
15355 done
15356 test -z "$as_dirs" || eval "mkdir $as_dirs"
15357 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15358
c6b750e1 15359
81ecdfbb 15360} # as_fn_mkdir_p
c6b750e1 15361if mkdir -p . 2>/dev/null; then
81ecdfbb 15362 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15363else
15364 test -d ./-p && rmdir ./-p
15365 as_mkdir_p=false
15366fi
15367
81ecdfbb
RW
15368if test -x / >/dev/null 2>&1; then
15369 as_test_x='test -x'
15370else
15371 if ls -dL / >/dev/null 2>&1; then
15372 as_ls_L_option=L
15373 else
15374 as_ls_L_option=
15375 fi
15376 as_test_x='
15377 eval sh -c '\''
15378 if test -d "$1"; then
15379 test -d "$1/.";
15380 else
15381 case $1 in #(
15382 -*)set "./$1";;
15383 esac;
15384 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15385 ???[sx]*):;;*)false;;esac;fi
15386 '\'' sh
15387 '
15388fi
15389as_executable_p=$as_test_x
c6b750e1
DJ
15390
15391# Sed expression to map a string onto a valid CPP name.
15392as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15393
15394# Sed expression to map a string onto a valid variable name.
15395as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15396
15397
c6b750e1 15398exec 6>&1
81ecdfbb
RW
15399## ----------------------------------- ##
15400## Main body of $CONFIG_STATUS script. ##
15401## ----------------------------------- ##
15402_ASEOF
15403test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15404
15405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15406# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15407# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15408# values after options handling.
15409ac_log="
c6b750e1 15410This file was extended by $as_me, which was
81ecdfbb 15411generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
15412
15413 CONFIG_FILES = $CONFIG_FILES
15414 CONFIG_HEADERS = $CONFIG_HEADERS
15415 CONFIG_LINKS = $CONFIG_LINKS
15416 CONFIG_COMMANDS = $CONFIG_COMMANDS
15417 $ $0 $@
15418
81ecdfbb
RW
15419on `(hostname || uname -n) 2>/dev/null | sed 1q`
15420"
15421
c6b750e1
DJ
15422_ACEOF
15423
81ecdfbb
RW
15424case $ac_config_files in *"
15425"*) set x $ac_config_files; shift; ac_config_files=$*;;
15426esac
c6b750e1 15427
c6b750e1 15428
c6b750e1 15429
81ecdfbb
RW
15430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15431# Files that config.status was made for.
15432config_files="$ac_config_files"
c6b750e1 15433
81ecdfbb 15434_ACEOF
c6b750e1 15435
81ecdfbb 15436cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15437ac_cs_usage="\
81ecdfbb
RW
15438\`$as_me' instantiates files and other configuration actions
15439from templates according to the current configuration. Unless the files
15440and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15441
81ecdfbb 15442Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15443
15444 -h, --help print this help, then exit
81ecdfbb
RW
15445 -V, --version print version number and configuration settings, then exit
15446 -q, --quiet, --silent
15447 do not print progress messages
c6b750e1
DJ
15448 -d, --debug don't remove temporary files
15449 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15450 --file=FILE[:TEMPLATE]
15451 instantiate the configuration file FILE
c6b750e1
DJ
15452
15453Configuration files:
15454$config_files
15455
81ecdfbb 15456Report bugs to the package provider."
c6b750e1 15457
81ecdfbb
RW
15458_ACEOF
15459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
15460ac_cs_version="\\
15461config.status
81ecdfbb
RW
15462configured by $0, generated by GNU Autoconf 2.64,
15463 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 15464
81ecdfbb 15465Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
15466This config.status script is free software; the Free Software Foundation
15467gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15468
15469ac_pwd='$ac_pwd'
15470srcdir='$srcdir'
15471INSTALL='$INSTALL'
8e957354 15472AWK='$AWK'
81ecdfbb 15473test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15474_ACEOF
15475
81ecdfbb
RW
15476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15477# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15478ac_need_defaults=:
15479while test $# != 0
a0da8069 15480do
c6b750e1
DJ
15481 case $1 in
15482 --*=*)
81ecdfbb
RW
15483 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15484 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15485 ac_shift=:
15486 ;;
81ecdfbb 15487 *)
c6b750e1
DJ
15488 ac_option=$1
15489 ac_optarg=$2
15490 ac_shift=shift
15491 ;;
c6b750e1
DJ
15492 esac
15493
15494 case $ac_option in
15495 # Handling of the options.
a0da8069 15496 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15497 ac_cs_recheck=: ;;
81ecdfbb
RW
15498 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15499 $as_echo "$ac_cs_version"; exit ;;
15500 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15501 debug=: ;;
15502 --file | --fil | --fi | --f )
15503 $ac_shift
81ecdfbb
RW
15504 case $ac_optarg in
15505 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15506 esac
15507 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15508 ac_need_defaults=false;;
81ecdfbb
RW
15509 --he | --h | --help | --hel | -h )
15510 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15511 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15512 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15513 ac_cs_silent=: ;;
15514
15515 # This is an error.
81ecdfbb
RW
15516 -*) as_fn_error "unrecognized option: \`$1'
15517Try \`$0 --help' for more information." ;;
c6b750e1 15518
81ecdfbb
RW
15519 *) as_fn_append ac_config_targets " $1"
15520 ac_need_defaults=false ;;
c6b750e1 15521
376a0e54 15522 esac
c6b750e1 15523 shift
376a0e54
CM
15524done
15525
c6b750e1 15526ac_configure_extra_args=
376a0e54 15527
c6b750e1
DJ
15528if $ac_cs_silent; then
15529 exec 6>/dev/null
15530 ac_configure_extra_args="$ac_configure_extra_args --silent"
15531fi
376a0e54 15532
c6b750e1 15533_ACEOF
81ecdfbb 15534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15535if \$ac_cs_recheck; then
81ecdfbb
RW
15536 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15537 shift
15538 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15539 CONFIG_SHELL='$SHELL'
15540 export CONFIG_SHELL
15541 exec "\$@"
c6b750e1
DJ
15542fi
15543
15544_ACEOF
81ecdfbb
RW
15545cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15546exec 5>>config.log
15547{
15548 echo
15549 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15550## Running $as_me. ##
15551_ASBOX
15552 $as_echo "$ac_log"
15553} >&5
c6b750e1 15554
81ecdfbb
RW
15555_ACEOF
15556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15557#
15558# INIT-COMMANDS
15559#
15560extrasub_build="$extrasub_build"
15561 extrasub_host="$extrasub_host"
15562 extrasub_target="$extrasub_target"
15563
81ecdfbb 15564_ACEOF
c6b750e1 15565
81ecdfbb 15566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15567
81ecdfbb 15568# Handling of arguments.
c6b750e1
DJ
15569for ac_config_target in $ac_config_targets
15570do
81ecdfbb
RW
15571 case $ac_config_target in
15572 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15573
15574 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15575 esac
15576done
15577
81ecdfbb 15578
c6b750e1
DJ
15579# If the user did not use the arguments to specify the items to instantiate,
15580# then the envvar interface is used. Set only those that are not.
15581# We use the long form for the default assignment because of an extremely
15582# bizarre bug on SunOS 4.1.3.
15583if $ac_need_defaults; then
15584 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15585fi
15586
15587# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15588# simply because there is no reason against having it here, and in addition,
c6b750e1 15589# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15590# Hook for its removal unless debugging.
15591# Note that there is a small window in which the directory will not be cleaned:
15592# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15593$debug ||
15594{
81ecdfbb
RW
15595 tmp=
15596 trap 'exit_status=$?
15597 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15598' 0
15599 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15600}
c6b750e1
DJ
15601# Create a (secure) tmp directory for tmp files.
15602
15603{
81ecdfbb 15604 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
15605 test -n "$tmp" && test -d "$tmp"
15606} ||
15607{
81ecdfbb
RW
15608 tmp=./conf$$-$RANDOM
15609 (umask 077 && mkdir "$tmp")
15610} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15611
15612# Set up the scripts for CONFIG_FILES section.
15613# No need to generate them if there are no CONFIG_FILES.
15614# This happens for instance with `./config.status config.h'.
15615if test -n "$CONFIG_FILES"; then
15616
15617if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15618 ac_cs_awk_getline=:
15619 ac_cs_awk_pipe_init=
15620 ac_cs_awk_read_file='
15621 while ((getline aline < (F[key])) > 0)
15622 print(aline)
15623 close(F[key])'
15624 ac_cs_awk_pipe_fini=
15625else
15626 ac_cs_awk_getline=false
15627 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15628 ac_cs_awk_read_file='
15629 print "|#_!!_#|"
15630 print "cat " F[key] " &&"
15631 '$ac_cs_awk_pipe_init
15632 # The final `:' finishes the AND list.
15633 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15634fi
15635ac_cr=`echo X | tr X '\015'`
15636# On cygwin, bash can eat \r inside `` if the user requested igncr.
15637# But we know of no other shell where ac_cr would be empty at this
15638# point, so we can use a bashism as a fallback.
15639if test "x$ac_cr" = x; then
15640 eval ac_cr=\$\'\\r\'
15641fi
15642ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15643if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15644 ac_cs_awk_cr='\r'
15645else
15646 ac_cs_awk_cr=$ac_cr
15647fi
15648
15649echo 'BEGIN {' >"$tmp/subs1.awk" &&
15650_ACEOF
15651
15652# Create commands to substitute file output variables.
c6b750e1 15653{
81ecdfbb
RW
15654 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15655 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15656 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15657 echo "_ACAWK" &&
15658 echo "_ACEOF"
15659} >conf$$files.sh &&
15660. ./conf$$files.sh ||
15661 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15662rm -f conf$$files.sh
c6b750e1 15663
81ecdfbb
RW
15664{
15665 echo "cat >conf$$subs.awk <<_ACEOF" &&
15666 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15667 echo "_ACEOF"
15668} >conf$$subs.sh ||
15669 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15670ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15671ac_delim='%!_!# '
15672for ac_last_try in false false false false false :; do
15673 . ./conf$$subs.sh ||
15674 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15675
15676 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15677 if test $ac_delim_n = $ac_delim_num; then
15678 break
15679 elif $ac_last_try; then
15680 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15681 else
15682 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15683 fi
15684done
15685rm -f conf$$subs.sh
15686
15687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15688cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15689_ACEOF
81ecdfbb
RW
15690sed -n '
15691h
15692s/^/S["/; s/!.*/"]=/
15693p
15694g
15695s/^[^!]*!//
15696:repl
15697t repl
15698s/'"$ac_delim"'$//
15699t delim
15700:nl
15701h
15702s/\(.\{148\}\).*/\1/
15703t more1
15704s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15705p
15706n
15707b repl
15708:more1
15709s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15710p
15711g
15712s/.\{148\}//
15713t nl
15714:delim
15715h
15716s/\(.\{148\}\).*/\1/
15717t more2
15718s/["\\]/\\&/g; s/^/"/; s/$/"/
15719p
15720b
15721:more2
15722s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15723p
15724g
15725s/.\{148\}//
15726t delim
15727' <conf$$subs.awk | sed '
15728/^[^""]/{
15729 N
15730 s/\n//
15731}
15732' >>$CONFIG_STATUS || ac_write_fail=1
15733rm -f conf$$subs.awk
15734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15735_ACAWK
15736cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15737 for (key in S) S_is_set[key] = 1
15738 FS = "\a"
15739 \$ac_cs_awk_pipe_init
15740}
15741{
15742 line = $ 0
15743 nfields = split(line, field, "@")
15744 substed = 0
15745 len = length(field[1])
15746 for (i = 2; i < nfields; i++) {
15747 key = field[i]
15748 keylen = length(key)
15749 if (S_is_set[key]) {
15750 value = S[key]
15751 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15752 len += length(value) + length(field[++i])
15753 substed = 1
15754 } else
15755 len += 1 + keylen
15756 }
15757 if (nfields == 3 && !substed) {
15758 key = field[2]
15759 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15760 \$ac_cs_awk_read_file
15761 next
15762 }
15763 }
15764 print line
15765}
15766\$ac_cs_awk_pipe_fini
15767_ACAWK
15768_ACEOF
15769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15770if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15771 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15772else
15773 cat
15774fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15775 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15776_ACEOF
15777
15778# VPATH may cause trouble with some makes, so we remove $(srcdir),
15779# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15780# trailing colons and then remove the whole line if VPATH becomes empty
15781# (actually we leave an empty line to preserve line numbers).
15782if test "x$srcdir" = x.; then
15783 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15784s/:*\$(srcdir):*/:/
15785s/:*\${srcdir}:*/:/
15786s/:*@srcdir@:*/:/
15787s/^\([^=]*=[ ]*\):*/\1/
15788s/:*$//
15789s/^[^=]*=[ ]*$//
15790}'
15791fi
c6b750e1 15792
81ecdfbb
RW
15793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15794fi # test -n "$CONFIG_FILES"
c6b750e1 15795
c6b750e1 15796
81ecdfbb
RW
15797eval set X " :F $CONFIG_FILES "
15798shift
15799for ac_tag
15800do
15801 case $ac_tag in
15802 :[FHLC]) ac_mode=$ac_tag; continue;;
15803 esac
15804 case $ac_mode$ac_tag in
15805 :[FHL]*:*);;
15806 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15807 :[FH]-) ac_tag=-:-;;
15808 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15809 esac
15810 ac_save_IFS=$IFS
15811 IFS=:
15812 set x $ac_tag
15813 IFS=$ac_save_IFS
15814 shift
15815 ac_file=$1
15816 shift
252b5132 15817
81ecdfbb
RW
15818 case $ac_mode in
15819 :L) ac_source=$1;;
15820 :[FH])
15821 ac_file_inputs=
15822 for ac_f
15823 do
15824 case $ac_f in
15825 -) ac_f="$tmp/stdin";;
15826 *) # Look for the file first in the build tree, then in the source tree
15827 # (if the path is not absolute). The absolute path cannot be DOS-style,
15828 # because $ac_f cannot contain `:'.
15829 test -f "$ac_f" ||
15830 case $ac_f in
15831 [\\/$]*) false;;
15832 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15833 esac ||
15834 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15835 esac
15836 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15837 as_fn_append ac_file_inputs " '$ac_f'"
15838 done
c6b750e1 15839
81ecdfbb
RW
15840 # Let's still pretend it is `configure' which instantiates (i.e., don't
15841 # use $as_me), people would be surprised to read:
15842 # /* config.h. Generated by config.status. */
15843 configure_input='Generated from '`
15844 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15845 `' by configure.'
15846 if test x"$ac_file" != x-; then
15847 configure_input="$ac_file. $configure_input"
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15849$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15850 fi
81ecdfbb
RW
15851 # Neutralize special characters interpreted by sed in replacement strings.
15852 case $configure_input in #(
15853 *\&* | *\|* | *\\* )
15854 ac_sed_conf_input=`$as_echo "$configure_input" |
15855 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15856 *) ac_sed_conf_input=$configure_input;;
15857 esac
cac3d6c4 15858
81ecdfbb
RW
15859 case $ac_tag in
15860 *:-:* | *:-) cat >"$tmp/stdin" \
15861 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15862 esac
15863 ;;
a0da8069 15864 esac
252b5132 15865
81ecdfbb 15866 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15867$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15868 X"$ac_file" : 'X\(//\)[^/]' \| \
15869 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15870 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15871$as_echo X"$ac_file" |
15872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15873 s//\1/
15874 q
15875 }
15876 /^X\(\/\/\)[^/].*/{
15877 s//\1/
15878 q
15879 }
15880 /^X\(\/\/\)$/{
15881 s//\1/
15882 q
15883 }
15884 /^X\(\/\).*/{
15885 s//\1/
15886 q
15887 }
15888 s/.*/./; q'`
15889 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15890 ac_builddir=.
252b5132 15891
81ecdfbb
RW
15892case "$ac_dir" in
15893.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15894*)
15895 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15896 # A ".." for each directory in $ac_dir_suffix.
15897 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15898 case $ac_top_builddir_sub in
15899 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15900 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15901 esac ;;
15902esac
15903ac_abs_top_builddir=$ac_pwd
15904ac_abs_builddir=$ac_pwd$ac_dir_suffix
15905# for backward compatibility:
15906ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15907
15908case $srcdir in
81ecdfbb 15909 .) # We are building in place.
c6b750e1 15910 ac_srcdir=.
81ecdfbb
RW
15911 ac_top_srcdir=$ac_top_builddir_sub
15912 ac_abs_top_srcdir=$ac_pwd ;;
15913 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15914 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15915 ac_top_srcdir=$srcdir
15916 ac_abs_top_srcdir=$srcdir ;;
15917 *) # Relative name.
15918 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15919 ac_top_srcdir=$ac_top_build_prefix$srcdir
15920 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15921esac
81ecdfbb 15922ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15923
252b5132 15924
81ecdfbb
RW
15925 case $ac_mode in
15926 :F)
15927 #
15928 # CONFIG_FILE
15929 #
c6b750e1
DJ
15930
15931 case $INSTALL in
15932 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15933 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15934 esac
81ecdfbb 15935_ACEOF
252b5132 15936
81ecdfbb
RW
15937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15938# If the template does not know about datarootdir, expand it.
15939# FIXME: This hack should be removed a few years after 2.60.
15940ac_datarootdir_hack=; ac_datarootdir_seen=
15941ac_sed_dataroot='
15942/datarootdir/ {
15943 p
15944 q
15945}
15946/@datadir@/p
15947/@docdir@/p
15948/@infodir@/p
15949/@localedir@/p
15950/@mandir@/p'
15951case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15952*datarootdir*) ac_datarootdir_seen=yes;;
15953*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15955$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15956_ACEOF
81ecdfbb
RW
15957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15958 ac_datarootdir_hack='
15959 s&@datadir@&$datadir&g
15960 s&@docdir@&$docdir&g
15961 s&@infodir@&$infodir&g
15962 s&@localedir@&$localedir&g
15963 s&@mandir@&$mandir&g
15964 s&\\\${datarootdir}&$datarootdir&g' ;;
15965esac
15966_ACEOF
15967
15968# Neutralize VPATH when `$srcdir' = `.'.
15969# Shell code in configure.ac might set extrasub.
15970# FIXME: do we really want to maintain this feature?
15971cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15972ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15973$extrasub
15974_ACEOF
81ecdfbb 15975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15976:t
15977/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15978s|@configure_input@|$ac_sed_conf_input|;t t
15979s&@top_builddir@&$ac_top_builddir_sub&;t t
15980s&@top_build_prefix@&$ac_top_build_prefix&;t t
15981s&@srcdir@&$ac_srcdir&;t t
15982s&@abs_srcdir@&$ac_abs_srcdir&;t t
15983s&@top_srcdir@&$ac_top_srcdir&;t t
15984s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15985s&@builddir@&$ac_builddir&;t t
15986s&@abs_builddir@&$ac_abs_builddir&;t t
15987s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15988s&@INSTALL@&$ac_INSTALL&;t t
15989$ac_datarootdir_hack
15990"
15991eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15992if $ac_cs_awk_getline; then
15993 $AWK -f "$tmp/subs.awk"
15994else
15995 $AWK -f "$tmp/subs.awk" | $SHELL
15996fi >$tmp/out \
15997 || as_fn_error "could not create $ac_file" "$LINENO" 5
15998
15999test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16000 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16001 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16003which seems to be undefined. Please make sure it is defined." >&5
16004$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16005which seems to be undefined. Please make sure it is defined." >&2;}
16006
16007 rm -f "$tmp/stdin"
16008 case $ac_file in
16009 -) cat "$tmp/out" && rm -f "$tmp/out";;
16010 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16011 esac \
16012 || as_fn_error "could not create $ac_file" "$LINENO" 5
16013 ;;
c148b4cb 16014
c148b4cb 16015
c148b4cb 16016
81ecdfbb
RW
16017 esac
16018
06a51eac
RW
16019
16020 case $ac_file$ac_mode in
16021 "Makefile":F) sed "$extrasub_build" Makefile |
16022 sed "$extrasub_host" |
16023 sed "$extrasub_target" > mf$$
16024 mv -f mf$$ Makefile ;;
16025
16026 esac
81ecdfbb
RW
16027done # for ac_tag
16028
16029
16030as_fn_exit 0
c6b750e1 16031_ACEOF
c6b750e1
DJ
16032ac_clean_files=$ac_clean_files_save
16033
81ecdfbb
RW
16034test $ac_write_fail = 0 ||
16035 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16036
c6b750e1
DJ
16037
16038# configure is writing to config.log, and then calls config.status.
16039# config.status does its own redirection, appending to config.log.
16040# Unfortunately, on DOS this fails, as config.log is still kept open
16041# by configure, so config.status won't be able to write to it; its
16042# output is simply discarded. So we exec the FD to /dev/null,
16043# effectively closing config.log, so it can be properly (re)opened and
16044# appended to by config.status. When coming back to configure, we
16045# need to make the FD available again.
16046if test "$no_create" != yes; then
16047 ac_cs_success=:
16048 ac_config_status_args=
16049 test "$silent" = yes &&
16050 ac_config_status_args="$ac_config_status_args --quiet"
16051 exec 5>/dev/null
16052 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16053 exec 5>>config.log
16054 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16055 # would make configure fail if this is the last instruction.
81ecdfbb
RW
16056 $ac_cs_success || as_fn_exit $?
16057fi
16058if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16060$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 16061fi
c148b4cb 16062
This page took 3.527979 seconds and 4 git commands to generate.