xtensa: fix gas trampolines regression
[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 ;;
93cc359e 3779 hppa*64*-*-linux*)
a0da8069 3780 ;;
f0ff0f90 3781 hppa*-*-linux*)
5dcac624 3782 ;;
a0da8069 3783 hppa*-*-*elf* | \
a0da8069
NN
3784 hppa*-*-lites* | \
3785 hppa*-*-openbsd* | \
3786 hppa*64*-*-*)
4f0ef2d8
CD
3787 ;;
3788 hppa*-hp-hpux11*)
0377a422 3789 noconfigdirs="$noconfigdirs ld"
a0da8069 3790 ;;
691bb5a1 3791 hppa*-*-pro*)
691bb5a1 3792 ;;
a0da8069 3793 hppa*-*-*)
9863d716 3794 noconfigdirs="$noconfigdirs ld"
a0da8069 3795 ;;
b07c2aad 3796 i960-*-*)
b2f14e4a 3797 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3798 ;;
a0da8069
NN
3799 ia64*-*-elf*)
3800 # No gdb support yet.
0377a422 3801 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3802 ;;
3803 ia64*-**-hpux*)
92c9a463 3804 # No ld support yet.
9863d716 3805 noconfigdirs="$noconfigdirs libgui itcl ld"
a0da8069 3806 ;;
19e99079 3807 ia64*-*-*vms*)
7ec59b9e
L
3808 # No ld support yet.
3809 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3810 ;;
1f53ca9a 3811 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3812 ;;
3813 i[3456789]86-*-mingw*)
45055374 3814 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3815 ;;
a0da8069
NN
3816 *-*-cygwin*)
3817 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3818 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3819 # always build newlib if winsup directory is present.
45055374 3820 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3821 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3822 elif test -d "$srcdir/newlib"; then
45055374 3823 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3824 fi
c6b750e1 3825 ;;
ec11bdc6 3826 i[3456789]86-*-pe)
782cb41f 3827 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3828 ;;
ec11bdc6 3829 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3830 # The linker does not yet know about weak symbols in COFF,
3831 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3832 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3833 ;;
ec11bdc6 3834 i[3456789]86-*-sco*)
b2f14e4a 3835 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3836 ;;
cff32a7c 3837 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3838 noconfigdirs="$noconfigdirs target-libgloss"
3839 ;;
ec11bdc6 3840 i[3456789]86-*-sysv4*)
b2f14e4a 3841 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3842 ;;
ec11bdc6 3843 i[3456789]86-*-beos*)
c7e4b184 3844 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3845 ;;
b59bea8a 3846 i[3456789]86-*-rdos*)
c7e4b184 3847 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3848 ;;
a0da8069 3849 mmix-*-*)
9863d716 3850 noconfigdirs="$noconfigdirs gdb"
a0da8069 3851 ;;
4970f871 3852 mt-*-*)
cdb9b172
AH
3853 noconfigdirs="$noconfigdirs sim"
3854 ;;
a0da8069
NN
3855 powerpc-*-aix*)
3856 # copied from rs6000-*-* entry
c7e4b184 3857 noconfigdirs="$noconfigdirs gprof"
a0da8069 3858 ;;
93cc359e 3859 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3860 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3861 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3862 # always build newlib.
3863 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3864 ;;
3865 # This is temporary until we can link against shared libraries
3866 powerpcle-*-solaris*)
b2f14e4a 3867 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3868 ;;
3869 powerpc-*-beos*)
c7e4b184 3870 noconfigdirs="$noconfigdirs gdb"
a0da8069 3871 ;;
a0da8069 3872 rs6000-*-lynxos*)
c7e4b184 3873 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3874 ;;
3875 rs6000-*-aix*)
c7e4b184 3876 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3877 ;;
3878 rs6000-*-*)
9863d716 3879 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3880 ;;
3881 m68k-apollo-*)
b2f14e4a 3882 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3883 ;;
25a07265 3884 microblaze*)
9863d716 3885 noconfigdirs="$noconfigdirs gprof"
25a07265 3886 ;;
a9d58c06 3887 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
3888 if test x$with_newlib = xyes; then
3889 noconfigdirs="$noconfigdirs gprof"
3890 fi
5bd8be13 3891 ;;
a0da8069 3892 mips*-*-irix5*)
b2f14e4a 3893 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3894 ;;
3895 mips*-*-irix6*)
9863d716 3896 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3897 ;;
a0da8069 3898 mips*-*-bsd*)
e8044f35 3899 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3900 ;;
a0da8069 3901 mips*-*-linux*)
a0da8069 3902 ;;
e8044f35
RS
3903 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3904 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3905 noconfigdirs="$noconfigdirs ld gas gprof"
3906 ;;
a0da8069 3907 mips*-*-*)
9863d716 3908 noconfigdirs="$noconfigdirs gprof"
a0da8069 3909 ;;
b25b5cef
CJW
3910 nds32*-*-*)
3911 noconfigdirs="$noconfigdirs gdb"
3912 ;;
1b6c0831
L
3913 nvptx*-*-*)
3914 # nvptx is just a compiler
3915 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3916 ;;
cfbc1a6c
JS
3917 or1k*-*-*)
3918 noconfigdirs="$noconfigdirs gdb"
3919 ;;
dbf85af7 3920 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3921 case "${target}" in
3922 sh*-*-elf)
9863d716 3923 ;;
e8a5fa9c 3924 *)
9863d716 3925 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3926 esac
a0da8069 3927 ;;
a0da8069 3928 sparc-*-sunos4*)
c7e4b184 3929 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3930 use_gnu_ld=no
3931 fi
3932 ;;
619a3713 3933 tic6x-*-*)
40ae9136 3934 noconfigdirs="$noconfigdirs sim"
619a3713 3935 ;;
68d122bb 3936 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
3937 noconfigdirs="$noconfigdirs sim"
3938 ;;
a0da8069 3939 v810-*-*)
b2f14e4a 3940 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3941 ;;
3942 vax-*-*)
9863d716 3943 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3944 ;;
a0da8069 3945esac
252b5132 3946
a0da8069
NN
3947# If we aren't building newlib, then don't build libgloss, since libgloss
3948# depends upon some newlib header files.
3949case "${noconfigdirs}" in
3950 *target-libgloss*) ;;
3951 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3952esac
3953
a0da8069 3954# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3955host_makefile_frag=/dev/null
3956if test -d ${srcdir}/config ; then
3957case "${host}" in
ec11bdc6 3958 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3959 host_makefile_frag="config/mh-djgpp"
3960 ;;
3961 *-cygwin*)
e33b51a6 3962
81ecdfbb
RW
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3964$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3965echo a >cygwin-cat-check
1f53ca9a 3966if test `cat cygwin-cat-check` = a ; then
8ade07e9 3967 rm cygwin-cat-check
81ecdfbb
RW
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3969$as_echo "yes" >&6; }
e33b51a6 3970else
8ade07e9 3971 rm cygwin-cat-check
81ecdfbb
RW
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973$as_echo "no" >&6; }
3974 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3975 Please either mount the build directory in binary mode or run the following
3976 commands before running any configure script:
3977set -o igncr
3978export SHELLOPTS
81ecdfbb 3979 " "$LINENO" 5
e33b51a6 3980fi
e33b51a6 3981
a0da8069
NN
3982 host_makefile_frag="config/mh-cygwin"
3983 ;;
8a1599ab 3984 *-mingw*)
84e7906e 3985 host_makefile_frag="config/mh-mingw"
2d1e8239 3986 ;;
da888c87 3987 hppa*-hp-hpux10*)
da888c87 3988 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3989 ;;
3516a403 3990 hppa*-hp-hpux*)
da888c87
PB
3991 host_makefile_frag="config/mh-pa"
3992 ;;
3993 hppa*-*)
3994 host_makefile_frag="config/mh-pa"
3995 ;;
e552509b
ILT
3996 *-*-darwin*)
3997 host_makefile_frag="config/mh-darwin"
0df3d27f 3998 ;;
f6d183c0
PB
3999 powerpc-*-aix*)
4000 host_makefile_frag="config/mh-ppc-aix"
4001 ;;
4002 rs6000-*-aix*)
4003 host_makefile_frag="config/mh-ppc-aix"
4004 ;;
a0da8069
NN
4005esac
4006fi
4007
9e07f89d 4008if test "${build}" != "${host}" ; then
1576798e
PB
4009 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4010 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 4011 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
4012 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4013 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4014 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 4015 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
4016 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4017 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4018 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4019 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4020 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4021 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4022else
4023 AR_FOR_BUILD="\$(AR)"
4024 AS_FOR_BUILD="\$(AS)"
512b7dfb 4025 CC_FOR_BUILD="\$(CC)"
1576798e
PB
4026 CXX_FOR_BUILD="\$(CXX)"
4027 GCJ_FOR_BUILD="\$(GCJ)"
4028 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 4029 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
4030 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4031 LD_FOR_BUILD="\$(LD)"
4032 NM_FOR_BUILD="\$(NM)"
4033 RANLIB_FOR_BUILD="\$(RANLIB)"
4034 WINDRES_FOR_BUILD="\$(WINDRES)"
4035 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
4036fi
4037
4038ac_ext=c
c6b750e1
DJ
4039ac_cpp='$CPP $CPPFLAGS'
4040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043if test -n "$ac_tool_prefix"; then
4044 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4045set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047$as_echo_n "checking for $ac_word... " >&6; }
4048if test "${ac_cv_prog_CC+set}" = set; then :
4049 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4050else
4051 if test -n "$CC"; then
4052 ac_cv_prog_CC="$CC" # Let the user override the test.
4053else
4054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055for as_dir in $PATH
4056do
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4061 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4063 break 2
4064 fi
4065done
81ecdfbb
RW
4066 done
4067IFS=$as_save_IFS
c6b750e1
DJ
4068
4069fi
4070fi
4071CC=$ac_cv_prog_CC
4072if test -n "$CC"; then
81ecdfbb
RW
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4074$as_echo "$CC" >&6; }
c6b750e1 4075else
81ecdfbb
RW
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077$as_echo "no" >&6; }
c6b750e1
DJ
4078fi
4079
81ecdfbb 4080
c6b750e1
DJ
4081fi
4082if test -z "$ac_cv_prog_CC"; then
4083 ac_ct_CC=$CC
6a9cf61e 4084 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4085set dummy gcc; ac_word=$2
81ecdfbb
RW
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087$as_echo_n "checking for $ac_word... " >&6; }
4088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4090else
4091 if test -n "$ac_ct_CC"; then
4092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4093else
4094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095for as_dir in $PATH
4096do
4097 IFS=$as_save_IFS
4098 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4101 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4103 break 2
4104 fi
4105done
81ecdfbb
RW
4106 done
4107IFS=$as_save_IFS
c6b750e1
DJ
4108
4109fi
4110fi
4111ac_ct_CC=$ac_cv_prog_ac_ct_CC
4112if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4114$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4115else
81ecdfbb
RW
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117$as_echo "no" >&6; }
c6b750e1
DJ
4118fi
4119
81ecdfbb
RW
4120 if test "x$ac_ct_CC" = x; then
4121 CC=""
4122 else
4123 case $cross_compiling:$ac_tool_warned in
4124yes:)
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4127ac_tool_warned=yes ;;
4128esac
4129 CC=$ac_ct_CC
4130 fi
c6b750e1
DJ
4131else
4132 CC="$ac_cv_prog_CC"
4133fi
4134
4135if test -z "$CC"; then
81ecdfbb
RW
4136 if test -n "$ac_tool_prefix"; then
4137 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4138set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140$as_echo_n "checking for $ac_word... " >&6; }
4141if test "${ac_cv_prog_CC+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
9e07f89d
NN
4143else
4144 if test -n "$CC"; then
4145 ac_cv_prog_CC="$CC" # Let the user override the test.
4146else
c6b750e1
DJ
4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148for as_dir in $PATH
4149do
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4154 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4156 break 2
4157 fi
4158done
81ecdfbb
RW
4159 done
4160IFS=$as_save_IFS
c6b750e1 4161
9e07f89d
NN
4162fi
4163fi
c6b750e1 4164CC=$ac_cv_prog_CC
9e07f89d 4165if test -n "$CC"; then
81ecdfbb
RW
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4167$as_echo "$CC" >&6; }
c6b750e1 4168else
81ecdfbb
RW
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170$as_echo "no" >&6; }
c6b750e1
DJ
4171fi
4172
c6b750e1 4173
81ecdfbb 4174 fi
c6b750e1 4175fi
9e07f89d
NN
4176if test -z "$CC"; then
4177 # Extract the first word of "cc", so it can be a program name with args.
4178set dummy cc; ac_word=$2
81ecdfbb
RW
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180$as_echo_n "checking for $ac_word... " >&6; }
4181if test "${ac_cv_prog_CC+set}" = set; then :
4182 $as_echo_n "(cached) " >&6
9e07f89d
NN
4183else
4184 if test -n "$CC"; then
4185 ac_cv_prog_CC="$CC" # Let the user override the test.
4186else
9e07f89d 4187 ac_prog_rejected=no
c6b750e1
DJ
4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in $PATH
4190do
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
4195 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4196 ac_prog_rejected=yes
4197 continue
4198 fi
4199 ac_cv_prog_CC="cc"
81ecdfbb 4200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4201 break 2
4202 fi
4203done
81ecdfbb
RW
4204 done
4205IFS=$as_save_IFS
c6b750e1 4206
9e07f89d
NN
4207if test $ac_prog_rejected = yes; then
4208 # We found a bogon in the path, so make sure we never use it.
4209 set dummy $ac_cv_prog_CC
4210 shift
c6b750e1 4211 if test $# != 0; then
9e07f89d
NN
4212 # We chose a different compiler from the bogus one.
4213 # However, it has the same basename, so the bogon will be chosen
4214 # first if we set CC to just the basename; use the full file name.
4215 shift
c6b750e1 4216 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4217 fi
4218fi
4219fi
4220fi
c6b750e1 4221CC=$ac_cv_prog_CC
9e07f89d 4222if test -n "$CC"; then
81ecdfbb
RW
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224$as_echo "$CC" >&6; }
9e07f89d 4225else
81ecdfbb
RW
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227$as_echo "no" >&6; }
9e07f89d
NN
4228fi
4229
81ecdfbb 4230
c6b750e1
DJ
4231fi
4232if test -z "$CC"; then
4233 if test -n "$ac_tool_prefix"; then
81ecdfbb 4234 for ac_prog in cl.exe
c6b750e1
DJ
4235 do
4236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4237set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239$as_echo_n "checking for $ac_word... " >&6; }
4240if test "${ac_cv_prog_CC+set}" = set; then :
4241 $as_echo_n "(cached) " >&6
9e07f89d
NN
4242else
4243 if test -n "$CC"; then
4244 ac_cv_prog_CC="$CC" # Let the user override the test.
4245else
c6b750e1
DJ
4246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247for as_dir in $PATH
4248do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4253 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4255 break 2
376a0e54 4256 fi
c6b750e1 4257done
81ecdfbb
RW
4258 done
4259IFS=$as_save_IFS
cac3d6c4 4260
c6b750e1
DJ
4261fi
4262fi
4263CC=$ac_cv_prog_CC
4264if test -n "$CC"; then
81ecdfbb
RW
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4266$as_echo "$CC" >&6; }
cac3d6c4 4267else
81ecdfbb
RW
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269$as_echo "no" >&6; }
9e07f89d 4270fi
cac3d6c4 4271
81ecdfbb 4272
c6b750e1
DJ
4273 test -n "$CC" && break
4274 done
cac3d6c4 4275fi
c6b750e1
DJ
4276if test -z "$CC"; then
4277 ac_ct_CC=$CC
81ecdfbb 4278 for ac_prog in cl.exe
c6b750e1
DJ
4279do
4280 # Extract the first word of "$ac_prog", so it can be a program name with args.
4281set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283$as_echo_n "checking for $ac_word... " >&6; }
4284if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4285 $as_echo_n "(cached) " >&6
cac3d6c4 4286else
c6b750e1
DJ
4287 if test -n "$ac_ct_CC"; then
4288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4289else
c6b750e1
DJ
4290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291for as_dir in $PATH
4292do
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4297 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4299 break 2
4300 fi
4301done
81ecdfbb
RW
4302 done
4303IFS=$as_save_IFS
c6b750e1 4304
cac3d6c4
CM
4305fi
4306fi
c6b750e1
DJ
4307ac_ct_CC=$ac_cv_prog_ac_ct_CC
4308if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4310$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4311else
81ecdfbb
RW
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313$as_echo "no" >&6; }
cac3d6c4 4314fi
376a0e54 4315
81ecdfbb 4316
c6b750e1
DJ
4317 test -n "$ac_ct_CC" && break
4318done
4319
81ecdfbb
RW
4320 if test "x$ac_ct_CC" = x; then
4321 CC=""
4322 else
4323 case $cross_compiling:$ac_tool_warned in
4324yes:)
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4327ac_tool_warned=yes ;;
4328esac
4329 CC=$ac_ct_CC
4330 fi
c6b750e1
DJ
4331fi
4332
4333fi
4334
4335
81ecdfbb
RW
4336test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4338as_fn_error "no acceptable C compiler found in \$PATH
4339See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4340
4341# Provide some information about the compiler.
81ecdfbb
RW
4342$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4343set X $ac_compile
4344ac_compiler=$2
4345for ac_option in --version -v -V -qversion; do
4346 { { ac_try="$ac_compiler $ac_option >&5"
4347case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350esac
4351eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352$as_echo "$ac_try_echo"; } >&5
4353 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4354 ac_status=$?
81ecdfbb
RW
4355 if test -s conftest.err; then
4356 sed '10a\
4357... rest of stderr output deleted ...
4358 10q' conftest.err >conftest.er1
4359 cat conftest.er1 >&5
4360 rm -f conftest.er1 conftest.err
4361 fi
4362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4363 test $ac_status = 0; }
4364done
c6b750e1 4365
81ecdfbb 4366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4367/* end confdefs.h. */
4368
4369int
4370main ()
4371{
4372
4373 ;
4374 return 0;
4375}
4376_ACEOF
4377ac_clean_files_save=$ac_clean_files
81ecdfbb 4378ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4379# Try to create an executable without -o first, disregard a.out.
4380# It will help us diagnose broken compilers, and finding out an intuition
4381# of exeext.
81ecdfbb
RW
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4383$as_echo_n "checking for C compiler default output file name... " >&6; }
4384ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4385
4386# The possible output files:
4387ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4388
4389ac_rmfiles=
4390for ac_file in $ac_files
4391do
4392 case $ac_file in
4393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4394 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4395 esac
4396done
4397rm -f $ac_rmfiles
4398
4399if { { ac_try="$ac_link_default"
4400case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403esac
4404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4405$as_echo "$ac_try_echo"; } >&5
4406 (eval "$ac_link_default") 2>&5
c6b750e1 4407 ac_status=$?
81ecdfbb
RW
4408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4409 test $ac_status = 0; }; then :
4410 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4411# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4412# in a Makefile. We should not override ac_cv_exeext if it was cached,
4413# so that the user can short-circuit this test for compilers unknown to
4414# Autoconf.
4415for ac_file in $ac_files ''
c6b750e1
DJ
4416do
4417 test -f "$ac_file" || continue
4418 case $ac_file in
81ecdfbb 4419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4420 ;;
4421 [ab].out )
4422 # We found the default executable, but exeext='' is most
4423 # certainly right.
4424 break;;
4425 *.* )
81ecdfbb
RW
4426 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4427 then :; else
4428 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4429 fi
4430 # We set ac_cv_exeext here because the later test for it is not
4431 # safe: cross compilers may not add the suffix if given an `-o'
4432 # argument, so we may need to know it at that point already.
4433 # Even if this section looks crufty: it has the advantage of
4434 # actually working.
c6b750e1
DJ
4435 break;;
4436 * )
4437 break;;
4438 esac
4439done
81ecdfbb
RW
4440test "$ac_cv_exeext" = no && ac_cv_exeext=
4441
c6b750e1 4442else
81ecdfbb
RW
4443 ac_file=''
4444fi
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4446$as_echo "$ac_file" >&6; }
4447if test -z "$ac_file"; then :
4448 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4449sed 's/^/| /' conftest.$ac_ext >&5
4450
81ecdfbb
RW
4451{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4453{ as_fn_set_status 77
4454as_fn_error "C compiler cannot create executables
4455See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4456fi
c6b750e1 4457ac_exeext=$ac_cv_exeext
c6b750e1 4458
81ecdfbb 4459# Check that the compiler produces executables we can run. If not, either
c6b750e1 4460# the compiler is broken, or we cross compile.
81ecdfbb
RW
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4462$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4463# If not cross compiling, check that we can run a simple program.
4464if test "$cross_compiling" != yes; then
4465 if { ac_try='./$ac_file'
81ecdfbb
RW
4466 { { case "(($ac_try" in
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4469esac
4470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4471$as_echo "$ac_try_echo"; } >&5
4472 (eval "$ac_try") 2>&5
c6b750e1 4473 ac_status=$?
81ecdfbb
RW
4474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4475 test $ac_status = 0; }; }; then
c6b750e1
DJ
4476 cross_compiling=no
4477 else
4478 if test "$cross_compiling" = maybe; then
4479 cross_compiling=yes
4480 else
81ecdfbb
RW
4481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4483as_fn_error "cannot run C compiled programs.
c6b750e1 4484If you meant to cross compile, use \`--host'.
81ecdfbb 4485See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4486 fi
4487 fi
4488fi
81ecdfbb
RW
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4490$as_echo "yes" >&6; }
c6b750e1 4491
81ecdfbb 4492rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4493ac_clean_files=$ac_clean_files_save
81ecdfbb 4494# Check that the compiler produces executables we can run. If not, either
c6b750e1 4495# the compiler is broken, or we cross compile.
81ecdfbb
RW
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4497$as_echo_n "checking whether we are cross compiling... " >&6; }
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4499$as_echo "$cross_compiling" >&6; }
4500
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4502$as_echo_n "checking for suffix of executables... " >&6; }
4503if { { ac_try="$ac_link"
4504case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507esac
4508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509$as_echo "$ac_try_echo"; } >&5
4510 (eval "$ac_link") 2>&5
c6b750e1 4511 ac_status=$?
81ecdfbb
RW
4512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513 test $ac_status = 0; }; then :
c6b750e1
DJ
4514 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4515# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4516# work properly (i.e., refer to `conftest.exe'), while it won't with
4517# `rm'.
4518for ac_file in conftest.exe conftest conftest.*; do
4519 test -f "$ac_file" || continue
4520 case $ac_file in
81ecdfbb 4521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4522 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4523 break;;
4524 * ) break;;
4525 esac
4526done
4527else
81ecdfbb
RW
4528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4530as_fn_error "cannot compute suffix of executables: cannot compile and link
4531See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4532fi
c6b750e1 4533rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4535$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4536
4537rm -f conftest.$ac_ext
4538EXEEXT=$ac_cv_exeext
4539ac_exeext=$EXEEXT
81ecdfbb
RW
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4541$as_echo_n "checking for suffix of object files... " >&6; }
4542if test "${ac_cv_objext+set}" = set; then :
4543 $as_echo_n "(cached) " >&6
c6b750e1 4544else
81ecdfbb 4545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4546/* end confdefs.h. */
4547
4548int
4549main ()
4550{
4551
4552 ;
4553 return 0;
4554}
4555_ACEOF
4556rm -f conftest.o conftest.obj
81ecdfbb
RW
4557if { { ac_try="$ac_compile"
4558case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561esac
4562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4563$as_echo "$ac_try_echo"; } >&5
4564 (eval "$ac_compile") 2>&5
c6b750e1 4565 ac_status=$?
81ecdfbb
RW
4566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4567 test $ac_status = 0; }; then :
4568 for ac_file in conftest.o conftest.obj conftest.*; do
4569 test -f "$ac_file" || continue;
c6b750e1 4570 case $ac_file in
81ecdfbb 4571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4572 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4573 break;;
4574 esac
4575done
cac3d6c4 4576else
81ecdfbb 4577 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4578sed 's/^/| /' conftest.$ac_ext >&5
4579
81ecdfbb
RW
4580{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4582as_fn_error "cannot compute suffix of object files: cannot compile
4583See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4584fi
c6b750e1
DJ
4585rm -f conftest.$ac_cv_objext conftest.$ac_ext
4586fi
81ecdfbb
RW
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4588$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4589OBJEXT=$ac_cv_objext
4590ac_objext=$OBJEXT
81ecdfbb
RW
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4592$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4593if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
c6b750e1 4595else
81ecdfbb 4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4597/* end confdefs.h. */
4598
4599int
4600main ()
4601{
4602#ifndef __GNUC__
4603 choke me
4604#endif
4605
4606 ;
4607 return 0;
4608}
4609_ACEOF
81ecdfbb 4610if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4611 ac_compiler_gnu=yes
4612else
81ecdfbb 4613 ac_compiler_gnu=no
c6b750e1 4614fi
81ecdfbb 4615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4616ac_cv_c_compiler_gnu=$ac_compiler_gnu
4617
4618fi
81ecdfbb
RW
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4620$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4621if test $ac_compiler_gnu = yes; then
4622 GCC=yes
4623else
4624 GCC=
4625fi
c6b750e1
DJ
4626ac_test_CFLAGS=${CFLAGS+set}
4627ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4629$as_echo_n "checking whether $CC accepts -g... " >&6; }
4630if test "${ac_cv_prog_cc_g+set}" = set; then :
4631 $as_echo_n "(cached) " >&6
4632else
4633 ac_save_c_werror_flag=$ac_c_werror_flag
4634 ac_c_werror_flag=yes
4635 ac_cv_prog_cc_g=no
4636 CFLAGS="-g"
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4638/* end confdefs.h. */
4639
4640int
4641main ()
4642{
4643
4644 ;
4645 return 0;
4646}
4647_ACEOF
81ecdfbb 4648if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4649 ac_cv_prog_cc_g=yes
4650else
81ecdfbb
RW
4651 CFLAGS=""
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653/* end confdefs.h. */
4654
4655int
4656main ()
4657{
4658
4659 ;
4660 return 0;
4661}
4662_ACEOF
4663if ac_fn_c_try_compile "$LINENO"; then :
4664
4665else
4666 ac_c_werror_flag=$ac_save_c_werror_flag
4667 CFLAGS="-g"
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669/* end confdefs.h. */
cac3d6c4 4670
81ecdfbb
RW
4671int
4672main ()
4673{
4674
4675 ;
4676 return 0;
4677}
4678_ACEOF
4679if ac_fn_c_try_compile "$LINENO"; then :
4680 ac_cv_prog_cc_g=yes
4681fi
4682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4683fi
81ecdfbb 4684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4685fi
81ecdfbb
RW
4686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687 ac_c_werror_flag=$ac_save_c_werror_flag
4688fi
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4690$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4691if test "$ac_test_CFLAGS" = set; then
c6b750e1 4692 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4693elif test $ac_cv_prog_cc_g = yes; then
4694 if test "$GCC" = yes; then
4695 CFLAGS="-g -O2"
4696 else
4697 CFLAGS="-g"
4698 fi
4699else
4700 if test "$GCC" = yes; then
4701 CFLAGS="-O2"
4702 else
4703 CFLAGS=
4704 fi
4705fi
81ecdfbb
RW
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4707$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4708if test "${ac_cv_prog_cc_c89+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
c6b750e1 4710else
81ecdfbb 4711 ac_cv_prog_cc_c89=no
c6b750e1 4712ac_save_CC=$CC
81ecdfbb 4713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4714/* end confdefs.h. */
4715#include <stdarg.h>
4716#include <stdio.h>
4717#include <sys/types.h>
4718#include <sys/stat.h>
4719/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4720struct buf { int x; };
4721FILE * (*rcsopen) (struct buf *, struct stat *, int);
4722static char *e (p, i)
4723 char **p;
4724 int i;
4725{
4726 return p[i];
4727}
4728static char *f (char * (*g) (char **, int), char **p, ...)
4729{
4730 char *s;
4731 va_list v;
4732 va_start (v,p);
4733 s = g (p, va_arg (v,int));
4734 va_end (v);
4735 return s;
4736}
4737
4738/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4739 function prototypes and stuff, but not '\xHH' hex character constants.
4740 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4741 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4743 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4744 that's true only with -std. */
c6b750e1
DJ
4745int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4746
81ecdfbb
RW
4747/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4748 inside strings and character constants. */
4749#define FOO(x) 'x'
4750int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4751
c6b750e1
DJ
4752int test (int i, double x);
4753struct s1 {int (*f) (int a);};
4754struct s2 {int (*f) (double a);};
4755int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4756int argc;
4757char **argv;
4758int
4759main ()
4760{
4761return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4762 ;
4763 return 0;
4764}
4765_ACEOF
81ecdfbb
RW
4766for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4767 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4768do
4769 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4772fi
81ecdfbb
RW
4773rm -f core conftest.err conftest.$ac_objext
4774 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4775done
81ecdfbb 4776rm -f conftest.$ac_ext
c6b750e1
DJ
4777CC=$ac_save_CC
4778
4779fi
81ecdfbb
RW
4780# AC_CACHE_VAL
4781case "x$ac_cv_prog_cc_c89" in
4782 x)
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4784$as_echo "none needed" >&6; } ;;
4785 xno)
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4787$as_echo "unsupported" >&6; } ;;
c6b750e1 4788 *)
81ecdfbb
RW
4789 CC="$CC $ac_cv_prog_cc_c89"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4791$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4792esac
81ecdfbb 4793if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4794
c6b750e1
DJ
4795fi
4796
c6b750e1
DJ
4797ac_ext=c
4798ac_cpp='$CPP $CPPFLAGS'
4799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4802
81ecdfbb 4803ac_ext=cpp
18f6b6ee
PB
4804ac_cpp='$CXXCPP $CPPFLAGS'
4805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4808if test -z "$CXX"; then
4809 if test -n "$CCC"; then
4810 CXX=$CCC
4811 else
4812 if test -n "$ac_tool_prefix"; then
4813 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4814 do
4815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4816set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818$as_echo_n "checking for $ac_word... " >&6; }
4819if test "${ac_cv_prog_CXX+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4821else
4822 if test -n "$CXX"; then
4823 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4824else
4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4832 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4834 break 2
4835 fi
4836done
81ecdfbb
RW
4837 done
4838IFS=$as_save_IFS
512b7dfb 4839
18f6b6ee
PB
4840fi
4841fi
4842CXX=$ac_cv_prog_CXX
4843if test -n "$CXX"; then
81ecdfbb
RW
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4845$as_echo "$CXX" >&6; }
18f6b6ee 4846else
81ecdfbb
RW
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848$as_echo "no" >&6; }
18f6b6ee
PB
4849fi
4850
81ecdfbb 4851
18f6b6ee
PB
4852 test -n "$CXX" && break
4853 done
4854fi
4855if test -z "$CXX"; then
4856 ac_ct_CXX=$CXX
81ecdfbb 4857 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4858do
4859 # Extract the first word of "$ac_prog", so it can be a program name with args.
4860set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862$as_echo_n "checking for $ac_word... " >&6; }
4863if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4865else
4866 if test -n "$ac_ct_CXX"; then
4867 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4868else
4869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4876 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4878 break 2
512b7dfb 4879 fi
18f6b6ee 4880done
81ecdfbb
RW
4881 done
4882IFS=$as_save_IFS
512b7dfb 4883
18f6b6ee
PB
4884fi
4885fi
4886ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4887if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4889$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4890else
81ecdfbb
RW
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892$as_echo "no" >&6; }
18f6b6ee
PB
4893fi
4894
81ecdfbb 4895
18f6b6ee
PB
4896 test -n "$ac_ct_CXX" && break
4897done
18f6b6ee 4898
81ecdfbb
RW
4899 if test "x$ac_ct_CXX" = x; then
4900 CXX="g++"
4901 else
4902 case $cross_compiling:$ac_tool_warned in
4903yes:)
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906ac_tool_warned=yes ;;
4907esac
4908 CXX=$ac_ct_CXX
4909 fi
18f6b6ee
PB
4910fi
4911
81ecdfbb
RW
4912 fi
4913fi
18f6b6ee 4914# Provide some information about the compiler.
81ecdfbb
RW
4915$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4916set X $ac_compile
4917ac_compiler=$2
4918for ac_option in --version -v -V -qversion; do
4919 { { ac_try="$ac_compiler $ac_option >&5"
4920case "(($ac_try" in
4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922 *) ac_try_echo=$ac_try;;
4923esac
4924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4925$as_echo "$ac_try_echo"; } >&5
4926 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4927 ac_status=$?
81ecdfbb
RW
4928 if test -s conftest.err; then
4929 sed '10a\
4930... rest of stderr output deleted ...
4931 10q' conftest.err >conftest.er1
4932 cat conftest.er1 >&5
4933 rm -f conftest.er1 conftest.err
4934 fi
4935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4936 test $ac_status = 0; }
4937done
18f6b6ee 4938
81ecdfbb
RW
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4940$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4941if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4942 $as_echo_n "(cached) " >&6
18f6b6ee 4943else
81ecdfbb 4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4945/* end confdefs.h. */
4946
4947int
4948main ()
4949{
4950#ifndef __GNUC__
4951 choke me
4952#endif
4953
4954 ;
4955 return 0;
4956}
4957_ACEOF
81ecdfbb 4958if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4959 ac_compiler_gnu=yes
4960else
81ecdfbb 4961 ac_compiler_gnu=no
18f6b6ee 4962fi
81ecdfbb 4963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4964ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4965
4966fi
81ecdfbb
RW
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4968$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4969if test $ac_compiler_gnu = yes; then
4970 GXX=yes
4971else
4972 GXX=
4973fi
18f6b6ee
PB
4974ac_test_CXXFLAGS=${CXXFLAGS+set}
4975ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4977$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4978if test "${ac_cv_prog_cxx_g+set}" = set; then :
4979 $as_echo_n "(cached) " >&6
4980else
4981 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4982 ac_cxx_werror_flag=yes
4983 ac_cv_prog_cxx_g=no
4984 CXXFLAGS="-g"
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4986/* end confdefs.h. */
4987
4988int
4989main ()
4990{
4991
4992 ;
4993 return 0;
4994}
4995_ACEOF
81ecdfbb 4996if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4997 ac_cv_prog_cxx_g=yes
4998else
81ecdfbb
RW
4999 CXXFLAGS=""
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5001/* end confdefs.h. */
81ecdfbb 5002
18f6b6ee
PB
5003int
5004main ()
5005{
81ecdfbb 5006
18f6b6ee
PB
5007 ;
5008 return 0;
5009}
5010_ACEOF
81ecdfbb 5011if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 5012
81ecdfbb
RW
5013else
5014 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5015 CXXFLAGS="-g"
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5017/* end confdefs.h. */
81ecdfbb 5018
18f6b6ee
PB
5019int
5020main ()
5021{
81ecdfbb 5022
18f6b6ee
PB
5023 ;
5024 return 0;
5025}
5026_ACEOF
81ecdfbb
RW
5027if ac_fn_cxx_try_compile "$LINENO"; then :
5028 ac_cv_prog_cxx_g=yes
18f6b6ee 5029fi
81ecdfbb
RW
5030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031fi
5032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033fi
5034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5036fi
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5038$as_echo "$ac_cv_prog_cxx_g" >&6; }
5039if test "$ac_test_CXXFLAGS" = set; then
5040 CXXFLAGS=$ac_save_CXXFLAGS
5041elif test $ac_cv_prog_cxx_g = yes; then
5042 if test "$GXX" = yes; then
5043 CXXFLAGS="-g -O2"
5044 else
5045 CXXFLAGS="-g"
5046 fi
5047else
5048 if test "$GXX" = yes; then
5049 CXXFLAGS="-O2"
5050 else
5051 CXXFLAGS=
5052 fi
18f6b6ee 5053fi
18f6b6ee
PB
5054ac_ext=c
5055ac_cpp='$CPP $CPPFLAGS'
5056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058ac_compiler_gnu=$ac_cv_c_compiler_gnu
5059
5060
5061# We must set the default linker to the linker used by gcc for the correct
5062# operation of libtool. If LD is not defined and we are using gcc, try to
5063# set the LD default to the ld used by gcc.
5064if test -z "$LD"; then
5065 if test "$GCC" = yes; then
5066 case $build in
5067 *-*-mingw*)
5068 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5069 *)
5070 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5071 esac
5072 case $gcc_prog_ld in
5073 # Accept absolute paths.
5074 [\\/]* | [A-Za-z]:[\\/]*)
5075 LD="$gcc_prog_ld" ;;
5076 esac
5077 fi
512b7dfb
PB
5078fi
5079
b3676d82
EB
5080# Check whether -static-libstdc++ -static-libgcc is supported.
5081have_static_libs=no
5082if test "$GCC" = yes; then
5083 saved_LDFLAGS="$LDFLAGS"
5084
5085 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5087$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5088 ac_ext=cpp
5089ac_cpp='$CXXCPP $CPPFLAGS'
5090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5093
5094
5095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096/* end confdefs.h. */
a882be68
EB
5097
5098#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5099#error -static-libstdc++ not implemented
5100#endif
b3676d82
EB
5101int main() {}
5102_ACEOF
5103if ac_fn_cxx_try_link "$LINENO"; then :
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5105$as_echo "yes" >&6; }; have_static_libs=yes
5106else
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108$as_echo "no" >&6; }
5109fi
5110rm -f core conftest.err conftest.$ac_objext \
5111 conftest$ac_exeext conftest.$ac_ext
5112 ac_ext=c
5113ac_cpp='$CPP $CPPFLAGS'
5114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116ac_compiler_gnu=$ac_cv_c_compiler_gnu
5117
5118
5119 LDFLAGS="$saved_LDFLAGS"
5120fi
5121
512b7dfb
PB
5122
5123
5124
c6b750e1 5125if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5126 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5127set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129$as_echo_n "checking for $ac_word... " >&6; }
5130if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5131 $as_echo_n "(cached) " >&6
9e07f89d 5132else
512b7dfb
PB
5133 if test -n "$GNATBIND"; then
5134 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5135else
c6b750e1
DJ
5136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137for as_dir in $PATH
5138do
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5143 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5145 break 2
5146 fi
5147done
81ecdfbb
RW
5148 done
5149IFS=$as_save_IFS
c6b750e1 5150
9e07f89d
NN
5151fi
5152fi
512b7dfb
PB
5153GNATBIND=$ac_cv_prog_GNATBIND
5154if test -n "$GNATBIND"; then
81ecdfbb
RW
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5156$as_echo "$GNATBIND" >&6; }
9e07f89d 5157else
81ecdfbb
RW
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159$as_echo "no" >&6; }
9e07f89d
NN
5160fi
5161
81ecdfbb 5162
c6b750e1 5163fi
512b7dfb
PB
5164if test -z "$ac_cv_prog_GNATBIND"; then
5165 ac_ct_GNATBIND=$GNATBIND
5166 # Extract the first word of "gnatbind", so it can be a program name with args.
5167set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169$as_echo_n "checking for $ac_word... " >&6; }
5170if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5171 $as_echo_n "(cached) " >&6
9e07f89d 5172else
512b7dfb
PB
5173 if test -n "$ac_ct_GNATBIND"; then
5174 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5175else
c6b750e1
DJ
5176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177for as_dir in $PATH
5178do
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5183 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5185 break 2
5186 fi
5187done
81ecdfbb
RW
5188 done
5189IFS=$as_save_IFS
c6b750e1 5190
9e07f89d
NN
5191fi
5192fi
512b7dfb
PB
5193ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5194if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5196$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5197else
81ecdfbb
RW
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199$as_echo "no" >&6; }
9e07f89d
NN
5200fi
5201
81ecdfbb
RW
5202 if test "x$ac_ct_GNATBIND" = x; then
5203 GNATBIND="no"
5204 else
5205 case $cross_compiling:$ac_tool_warned in
5206yes:)
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5209ac_tool_warned=yes ;;
5210esac
5211 GNATBIND=$ac_ct_GNATBIND
5212 fi
24ff9987 5213else
512b7dfb 5214 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5215fi
5216
7df2cd5d 5217if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5218 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5219set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221$as_echo_n "checking for $ac_word... " >&6; }
5222if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
7df2cd5d 5224else
512b7dfb
PB
5225 if test -n "$GNATMAKE"; then
5226 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5227else
5228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229for as_dir in $PATH
5230do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5235 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5237 break 2
5238 fi
5239done
81ecdfbb
RW
5240 done
5241IFS=$as_save_IFS
7df2cd5d
PB
5242
5243fi
5244fi
512b7dfb
PB
5245GNATMAKE=$ac_cv_prog_GNATMAKE
5246if test -n "$GNATMAKE"; then
81ecdfbb
RW
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5248$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5249else
81ecdfbb
RW
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251$as_echo "no" >&6; }
7df2cd5d
PB
5252fi
5253
81ecdfbb 5254
7df2cd5d 5255fi
512b7dfb
PB
5256if test -z "$ac_cv_prog_GNATMAKE"; then
5257 ac_ct_GNATMAKE=$GNATMAKE
5258 # Extract the first word of "gnatmake", so it can be a program name with args.
5259set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261$as_echo_n "checking for $ac_word... " >&6; }
5262if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
7df2cd5d 5264else
512b7dfb
PB
5265 if test -n "$ac_ct_GNATMAKE"; then
5266 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5267else
5268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269for as_dir in $PATH
5270do
5271 IFS=$as_save_IFS
5272 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5275 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5277 break 2
5278 fi
5279done
81ecdfbb
RW
5280 done
5281IFS=$as_save_IFS
7df2cd5d 5282
7df2cd5d
PB
5283fi
5284fi
512b7dfb
PB
5285ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5286if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5288$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5289else
81ecdfbb
RW
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291$as_echo "no" >&6; }
7df2cd5d
PB
5292fi
5293
81ecdfbb
RW
5294 if test "x$ac_ct_GNATMAKE" = x; then
5295 GNATMAKE="no"
5296 else
5297 case $cross_compiling:$ac_tool_warned in
5298yes:)
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5301ac_tool_warned=yes ;;
5302esac
5303 GNATMAKE=$ac_ct_GNATMAKE
5304 fi
7df2cd5d 5305else
512b7dfb 5306 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5307fi
5308
81ecdfbb
RW
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5310$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5311if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
9e07f89d
NN
5313else
5314 cat >conftest.adb <<EOF
5315procedure conftest is begin null; end conftest;
5316EOF
5317acx_cv_cc_gcc_supports_ada=no
5318# There is a bug in old released versions of GCC which causes the
5319# driver to exit successfully when the appropriate language module
5320# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5321# Therefore we must check for the error message as well as an
5322# unsuccessful exit.
b8908782
DD
5323# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5324# given a .adb file, but produce no object file. So we must check
5325# if an object file was really produced to guard against this.
9e07f89d 5326errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5327if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5328 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5329fi
5330rm -f conftest.*
5331fi
81ecdfbb
RW
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5333$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5334
64b986c0 5335if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5336 have_gnat=yes
5337else
5338 have_gnat=no
5339fi
5340
81ecdfbb
RW
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5342$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5343if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
b8908782
DD
5345else
5346 echo abfoo >t1
5347 echo cdfoo >t2
5348 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5349 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5350 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5351 :
5352 else
5353 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5354 fi
5355 fi
b8908782
DD
5356 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5357 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5358 :
b8908782
DD
5359 else
5360 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5361 fi
5362 fi
5363 rm t1 t2
5364
5365fi
81ecdfbb
RW
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5367$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5368do_compare="$gcc_cv_prog_cmp_skip"
5369
5370
9e07f89d 5371
ffdd6afc
ILT
5372# Check whether --enable-bootstrap was given.
5373if test "${enable_bootstrap+set}" = set; then :
5374 enableval=$enable_bootstrap;
5375else
5376 enable_bootstrap=default
5377fi
5378
5379
5380# Issue errors and warnings for invalid/strange bootstrap combinations.
5381if test -r $srcdir/gcc/configure; then
5382 have_compiler=yes
5383else
5384 have_compiler=no
5385fi
5386
5387case "$have_compiler:$host:$target:$enable_bootstrap" in
5388 *:*:*:no) ;;
5389
5390 # Default behavior. Enable bootstrap if we have a compiler
5391 # and we are in a native configuration.
5392 yes:$build:$build:default)
5393 enable_bootstrap=yes ;;
5394
5395 *:*:*:default)
5396 enable_bootstrap=no ;;
5397
5398 # We have a compiler and we are in a native configuration, bootstrap is ok
5399 yes:$build:$build:yes)
5400 ;;
5401
5402 # Other configurations, but we have a compiler. Assume the user knows
5403 # what he's doing.
5404 yes:*:*:yes)
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5406$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5407 ;;
5408
5409 # No compiler: if they passed --enable-bootstrap explicitly, fail
5410 no:*:*:yes)
5411 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5412
5413 # Fail if wrong command line
5414 *)
5415 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5416 ;;
5417esac
5418
d5f2ee2e
KG
5419# Used for setting $lt_cv_objdir
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5421$as_echo_n "checking for objdir... " >&6; }
5422if test "${lt_cv_objdir+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5424else
5425 rm -f .libs 2>/dev/null
5426mkdir .libs 2>/dev/null
5427if test -d .libs; then
5428 lt_cv_objdir=.libs
5429else
5430 # MS-DOS does not allow filenames that begin with a dot.
5431 lt_cv_objdir=_libs
5432fi
5433rmdir .libs 2>/dev/null
5434fi
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5436$as_echo "$lt_cv_objdir" >&6; }
5437objdir=$lt_cv_objdir
5438
5439
5440
5441
5442
5443cat >>confdefs.h <<_ACEOF
5444#define LT_OBJDIR "$lt_cv_objdir/"
5445_ACEOF
5446
5447
5448
e8a5fa9c 5449# Check for GMP, MPFR and MPC
d9b76ff9 5450gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5451gmpinc=
4b900473 5452have_gmp=no
e8a5fa9c
RW
5453
5454# Specify a location for mpc
5455# check for this first so it ends up on the link line before mpfr.
5456
81ecdfbb
RW
5457# Check whether --with-mpc was given.
5458if test "${with_mpc+set}" = set; then :
5459 withval=$with_mpc;
5460fi
e8a5fa9c 5461
e8a5fa9c 5462
e552509b 5463# Check whether --with-mpc-include was given.
81ecdfbb
RW
5464if test "${with_mpc_include+set}" = set; then :
5465 withval=$with_mpc_include;
5466fi
e8a5fa9c 5467
e8a5fa9c 5468
e552509b 5469# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5470if test "${with_mpc_lib+set}" = set; then :
5471 withval=$with_mpc_lib;
5472fi
e8a5fa9c 5473
e8a5fa9c
RW
5474
5475if test "x$with_mpc" != x; then
d9b76ff9
KG
5476 gmplibs="-L$with_mpc/lib $gmplibs"
5477 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5478fi
5479if test "x$with_mpc_include" != x; then
d9b76ff9 5480 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5481fi
5482if test "x$with_mpc_lib" != x; then
d9b76ff9 5483 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5484fi
5485if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5486 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5487 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5488 # Do not test the mpc version. Assume that it is sufficient, since
5489 # it is in the source tree, and the library has not been built yet
5490 # but it would be included on the link line in the version check below
5491 # hence making the test fail.
d9b76ff9 5492 have_gmp=yes
e8a5fa9c 5493fi
4b900473 5494
11b04d1f
DD
5495# Specify a location for mpfr
5496# check for this first so it ends up on the link line before gmp.
c6b750e1 5497
81ecdfbb
RW
5498# Check whether --with-mpfr-dir was given.
5499if test "${with_mpfr_dir+set}" = set; then :
5500 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5501Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5502fi
5503
11b04d1f
DD
5504
5505
81ecdfbb
RW
5506# Check whether --with-mpfr was given.
5507if test "${with_mpfr+set}" = set; then :
5508 withval=$with_mpfr;
5509fi
c6b750e1 5510
11b04d1f 5511
e552509b 5512# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5513if test "${with_mpfr_include+set}" = set; then :
5514 withval=$with_mpfr_include;
5515fi
c6b750e1 5516
8a0d8a5c 5517
e552509b 5518# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5519if test "${with_mpfr_lib+set}" = set; then :
5520 withval=$with_mpfr_lib;
5521fi
8a0d8a5c 5522
11b04d1f
DD
5523
5524if test "x$with_mpfr" != x; then
5525 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5526 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5527fi
8a0d8a5c 5528if test "x$with_mpfr_include" != x; then
d9b76ff9 5529 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5530fi
5531if test "x$with_mpfr_lib" != x; then
5532 gmplibs="-L$with_mpfr_lib $gmplibs"
5533fi
4b900473 5534if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21
NC
5535 # MPFR v3.1.0 moved the sources into a src sub-directory.
5536 if test -d ${srcdir}/mpfr/src; then
5537 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5538 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5539 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5540 else
5541 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5542 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5543 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5544 fi
4b900473
PB
5545 # Do not test the mpfr version. Assume that it is sufficient, since
5546 # it is in the source tree, and the library has not been built yet
5547 # but it would be included on the link line in the version check below
5548 # hence making the test fail.
5549 have_gmp=yes
5550fi
11b04d1f 5551
4b1cb4fe 5552# Specify a location for gmp
c6b750e1 5553
81ecdfbb
RW
5554# Check whether --with-gmp-dir was given.
5555if test "${with_gmp_dir+set}" = set; then :
5556 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5557Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5558fi
5559
4b1cb4fe
DD
5560
5561
81ecdfbb
RW
5562# Check whether --with-gmp was given.
5563if test "${with_gmp+set}" = set; then :
5564 withval=$with_gmp;
5565fi
c6b750e1 5566
4b1cb4fe 5567
e552509b 5568# Check whether --with-gmp-include was given.
81ecdfbb
RW
5569if test "${with_gmp_include+set}" = set; then :
5570 withval=$with_gmp_include;
5571fi
c6b750e1 5572
8a0d8a5c 5573
e552509b 5574# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5575if test "${with_gmp_lib+set}" = set; then :
5576 withval=$with_gmp_lib;
5577fi
8a0d8a5c
PB
5578
5579
4b1cb4fe 5580
11b04d1f
DD
5581if test "x$with_gmp" != x; then
5582 gmplibs="-L$with_gmp/lib $gmplibs"
5583 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5584fi
8a0d8a5c
PB
5585if test "x$with_gmp_include" != x; then
5586 gmpinc="-I$with_gmp_include $gmpinc"
5587fi
5588if test "x$with_gmp_lib" != x; then
5589 gmplibs="-L$with_gmp_lib $gmplibs"
5590fi
4b900473 5591if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5592 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5593 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5594 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5595 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5596 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5597 # Do not test the gmp version. Assume that it is sufficient, since
5598 # it is in the source tree, and the library has not been built yet
5599 # but it would be included on the link line in the version check below
5600 # hence making the test fail.
5601 have_gmp=yes
5602fi
4b1cb4fe 5603
ceb92e78 5604if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5605 have_gmp=yes
5606 saved_CFLAGS="$CFLAGS"
5607 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5608 # Check for the recommended and required versions of GMP.
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5610$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5611
5612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5613/* end confdefs.h. */
5614#include "gmp.h"
5615int
5616main ()
5617{
5618
5619 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5620 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5621 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5622 choke me
5623 #endif
5624
5625 ;
5626 return 0;
5627}
5628_ACEOF
5629if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5631/* end confdefs.h. */
a6b5846e 5632#include <gmp.h>
c6b750e1
DJ
5633int
5634main ()
5635{
4b1cb4fe 5636
a6b5846e
KG
5637 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5638 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5639 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5640 choke me
5641 #endif
c6b750e1
DJ
5642
5643 ;
5644 return 0;
5645}
5646_ACEOF
81ecdfbb
RW
5647if ac_fn_c_try_compile "$LINENO"; then :
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5649$as_echo "yes" >&6; }
a6b5846e
KG
5650else
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5652$as_echo "buggy but acceptable" >&6; }
5653fi
5654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5655else
81ecdfbb
RW
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5658fi
81ecdfbb 5659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5660
e8a5fa9c 5661 # If we have GMP, check the MPFR version.
4b900473 5662 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5663 # Check for the recommended and required versions of MPFR.
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5665$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5667/* end confdefs.h. */
9b134994 5668#include <gmp.h>
4b900473 5669 #include <mpfr.h>
c6b750e1
DJ
5670int
5671main ()
5672{
9b134994 5673
7ec59b9e 5674 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5675 choke me
5676 #endif
c6b750e1
DJ
5677
5678 ;
5679 return 0;
5680}
5681_ACEOF
81ecdfbb
RW
5682if ac_fn_c_try_compile "$LINENO"; then :
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5684/* end confdefs.h. */
4b1cb4fe 5685#include <gmp.h>
4b900473 5686 #include <mpfr.h>
c6b750e1
DJ
5687int
5688main ()
5689{
9dbaa842 5690
a6b5846e 5691 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5692 choke me
5693 #endif
e8a5fa9c
RW
5694
5695 ;
5696 return 0;
5697}
5698_ACEOF
81ecdfbb
RW
5699if ac_fn_c_try_compile "$LINENO"; then :
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5701$as_echo "yes" >&6; }
e8a5fa9c 5702else
81ecdfbb
RW
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5704$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5705fi
81ecdfbb 5706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5707else
81ecdfbb
RW
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5710fi
81ecdfbb 5711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5712 fi
5713
5714 # Check for the MPC header version.
d9b76ff9 5715 if test x"$have_gmp" = xyes ; then
a6b5846e 5716 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5718$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5720/* end confdefs.h. */
5721#include <mpc.h>
5722int
5723main ()
5724{
5725
a6b5846e
KG
5726 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5727 choke me
5728 #endif
5729
5730 ;
5731 return 0;
5732}
5733_ACEOF
5734if ac_fn_c_try_compile "$LINENO"; then :
5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736/* end confdefs.h. */
5737#include <mpc.h>
5738int
5739main ()
5740{
5741
5742 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5743 choke me
5744 #endif
5745
5746 ;
5747 return 0;
5748}
5749_ACEOF
81ecdfbb
RW
5750if ac_fn_c_try_compile "$LINENO"; then :
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5752$as_echo "yes" >&6; }
a6b5846e
KG
5753else
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5755$as_echo "buggy but acceptable" >&6; }
5756fi
5757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5758else
81ecdfbb 5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5760$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5761fi
81ecdfbb 5762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5763 fi
5764
5765 # Now check the MPFR library.
5766 if test x"$have_gmp" = xyes; then
5767 saved_LIBS="$LIBS"
5768 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5770$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5772/* end confdefs.h. */
d9b76ff9 5773#include <mpc.h>
e8a5fa9c
RW
5774int
5775main ()
5776{
5777
5778 mpfr_t n;
5779 mpfr_t x;
d9b76ff9 5780 mpc_t c;
e8a5fa9c
RW
5781 int t;
5782 mpfr_init (n);
5783 mpfr_init (x);
5784 mpfr_atan2 (n, n, x, GMP_RNDN);
5785 mpfr_erfc (n, x, GMP_RNDN);
5786 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5787 mpfr_clear(n);
5788 mpfr_clear(x);
5789 mpc_init2 (c, 53);
5790 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5791 mpc_cosh (c, c, MPC_RNDNN);
5792 mpc_pow (c, c, c, MPC_RNDNN);
5793 mpc_acosh (c, c, MPC_RNDNN);
5794 mpc_clear (c);
c6b750e1
DJ
5795
5796 ;
5797 return 0;
5798}
5799_ACEOF
81ecdfbb
RW
5800if ac_fn_c_try_link "$LINENO"; then :
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5802$as_echo "yes" >&6; }
c6b750e1 5803else
81ecdfbb
RW
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5806fi
81ecdfbb
RW
5807rm -f core conftest.err conftest.$ac_objext \
5808 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5809 LIBS="$saved_LIBS"
5810 fi
5811
4b900473 5812 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5813
a6b5846e
KG
5814# The library versions listed in the error message below should match
5815# the HARD-minimums enforced above.
4b900473 5816 if test x$have_gmp != xyes; then
7ec59b9e 5817 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5818Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5819their locations. Source code for these libraries can be found at
5820their respective hosting sites as well as at
5821ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5822http://gcc.gnu.org/install/prerequisites.html for additional info. If
5823you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5824make sure that you have installed both the libraries and the header
5825files. They may be located in separate packages." "$LINENO" 5
4b900473 5826 fi
9dbaa842
DD
5827fi
5828
e8a5fa9c
RW
5829# Flags needed for both GMP, MPFR and/or MPC.
5830
5831
5832
4b1cb4fe
DD
5833
5834
5835
7ec59b9e 5836
29383458
JM
5837# Allow host libstdc++ to be specified for static linking with PPL.
5838
81ecdfbb
RW
5839# Check whether --with-host-libstdcxx was given.
5840if test "${with_host_libstdcxx+set}" = set; then :
5841 withval=$with_host_libstdcxx;
5842fi
29383458 5843
29383458
JM
5844
5845case $with_host_libstdcxx in
5846 no|yes)
81ecdfbb 5847 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5848 ;;
5849esac
e28c595f 5850
b3676d82 5851# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 5852
b3676d82
EB
5853# Check whether --with-stage1-libs was given.
5854if test "${with_stage1_libs+set}" = set; then :
5855 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5856 stage1_libs=
e8a5fa9c 5857 else
b3676d82 5858 stage1_libs=$withval
e8a5fa9c
RW
5859 fi
5860else
b3676d82 5861 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5862fi
5863
e8a5fa9c
RW
5864
5865
b3676d82 5866# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 5867
b3676d82
EB
5868# Check whether --with-stage1-ldflags was given.
5869if test "${with_stage1_ldflags+set}" = set; then :
5870 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5871 stage1_ldflags=
e8a5fa9c 5872 else
b3676d82 5873 stage1_ldflags=$withval
e8a5fa9c
RW
5874 fi
5875else
b3676d82
EB
5876 stage1_ldflags=
5877 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5878 # if supported. But if the user explicitly specified the libraries to use,
5879 # trust that they are doing what they want.
5880 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5881 stage1_ldflags="-static-libstdc++ -static-libgcc"
5882 fi
81ecdfbb
RW
5883fi
5884
e8a5fa9c
RW
5885
5886
e8a5fa9c
RW
5887# Libraries to use for stage2 and later builds. This defaults to the
5888# argument passed to --with-host-libstdcxx.
5889
81ecdfbb
RW
5890# Check whether --with-boot-libs was given.
5891if test "${with_boot_libs+set}" = set; then :
5892 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5893 poststage1_libs=
5894 else
5895 poststage1_libs=$withval
5896 fi
5897else
5898 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5899fi
5900
e8a5fa9c
RW
5901
5902
143754cd
NC
5903# Linker flags to use for stage2 and later builds.
5904
5905# Check whether --with-boot-ldflags was given.
5906if test "${with_boot_ldflags+set}" = set; then :
5907 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5908 poststage1_ldflags=
5909 else
5910 poststage1_ldflags=$withval
5911 fi
5912else
5913 poststage1_ldflags=
4f11b223
ILT
5914 # In stages 2 and 3, default to linking libstdc++ and libgcc
5915 # statically. But if the user explicitly specified the libraries to
5916 # use, trust that they are doing what they want.
5917 if test "$poststage1_libs" = ""; then
143754cd
NC
5918 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5919 fi
5920fi
5921
5922
5923
1b6c0831
L
5924# GCC GRAPHITE dependency ISL.
5925# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
5926
5927
7ec59b9e
L
5928# Check whether --with-isl was given.
5929if test "${with_isl+set}" = set; then :
5930 withval=$with_isl;
81ecdfbb 5931fi
e28c595f 5932
e28c595f 5933
1b6c0831 5934# Treat --without-isl as a request to disable
8e71395b 5935# GRAPHITE support and skip all following checks.
1b6c0831 5936if test "x$with_isl" != "xno"; then
8e71395b
L
5937 # Check for ISL
5938
5939
7ec59b9e
L
5940# Check whether --with-isl-include was given.
5941if test "${with_isl_include+set}" = set; then :
5942 withval=$with_isl_include;
81ecdfbb
RW
5943fi
5944
e28c595f 5945
7ec59b9e
L
5946# Check whether --with-isl-lib was given.
5947if test "${with_isl_lib+set}" = set; then :
5948 withval=$with_isl_lib;
81ecdfbb 5949fi
e28c595f 5950
e28c595f 5951
7ec59b9e
L
5952 # Check whether --enable-isl-version-check was given.
5953if test "${enable_isl_version_check+set}" = set; then :
5954 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5955else
5956 ENABLE_ISL_CHECK=yes
b123da99
SP
5957fi
5958
5959
7ec59b9e
L
5960 # Initialize isllibs and islinc.
5961 case $with_isl in
5962 no)
5963 isllibs=
5964 islinc=
5965 ;;
5966 "" | yes)
5967 ;;
5968 *)
5969 isllibs="-L$with_isl/lib"
5970 islinc="-I$with_isl/include"
5971 ;;
5972 esac
5973 if test "x${with_isl_include}" != x ; then
5974 islinc="-I$with_isl_include"
5975 fi
5976 if test "x${with_isl_lib}" != x; then
5977 isllibs="-L$with_isl_lib"
5978 fi
5979 if test "x${islinc}" = x && test "x${isllibs}" = x \
5980 && test -d ${srcdir}/isl; then
5981 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5982 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5983 ENABLE_ISL_CHECK=no
3dae1673
JBG
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5985$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
7ec59b9e 5986 fi
b123da99 5987
1b6c0831 5988 isllibs="${isllibs} -lisl"
b123da99 5989
e28c595f 5990
b3fc79f8
JBG
5991
5992 if test "${ENABLE_ISL_CHECK}" = yes ; then
5993 _isl_saved_CFLAGS=$CFLAGS
5994 _isl_saved_LDFLAGS=$LDFLAGS
5995 _isl_saved_LIBS=$LIBS
5996
5997 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5998 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5999 LIBS="${_isl_saved_LIBS} -lisl"
6000
1b6c0831
L
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
6002$as_echo_n "checking for compatible ISL... " >&6; }
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 6004/* end confdefs.h. */
1b6c0831 6005#include <isl/val.h>
b3fc79f8
JBG
6006int
6007main ()
6008{
1b6c0831 6009;
b3fc79f8
JBG
6010 ;
6011 return 0;
6012}
6013_ACEOF
1b6c0831 6014if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
6015 gcc_cv_isl=yes
6016else
6017 gcc_cv_isl=no
6018fi
1b6c0831
L
6019rm -f core conftest.err conftest.$ac_objext \
6020 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6022$as_echo "$gcc_cv_isl" >&6; }
6023
6024 CFLAGS=$_isl_saved_CFLAGS
6025 LDFLAGS=$_isl_saved_LDFLAGS
6026 LIBS=$_isl_saved_LIBS
6027 fi
6028
6029
e28c595f 6030
e28c595f 6031
7ec59b9e
L
6032
6033
7ec59b9e
L
6034 if test "x${with_isl}" = xno; then
6035 graphite_requested=no
6036 elif test "x${with_isl}" != x \
6037 || test "x${with_isl_include}" != x \
6038 || test "x${with_isl_lib}" != x ; then
6039 graphite_requested=yes
6040 else
6041 graphite_requested=no
b123da99 6042 fi
e28c595f 6043
e28c595f
JM
6044
6045
7ec59b9e
L
6046 if test "${gcc_cv_isl}" = no ; then
6047 isllibs=
6048 islinc=
6049 fi
e28c595f 6050
7ec59b9e
L
6051 if test "${graphite_requested}" = yes \
6052 && test "x${isllibs}" = x \
6053 && test "x${islinc}" = x ; then
e28c595f 6054
7ec59b9e
L
6055 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6056 fi
e552509b 6057
e28c595f 6058
e552509b
ILT
6059fi
6060
1b6c0831 6061# If the ISL check failed, disable builds of in-tree variant of ISL
8e71395b 6062if test "x$with_isl" = xno ||
8e71395b 6063 test "x$gcc_cv_isl" = xno; then
1b6c0831 6064 noconfigdirs="$noconfigdirs isl"
8e71395b 6065 islinc=
7ec59b9e
L
6066fi
6067
8e71395b
L
6068
6069
6070
700d40ca
ILT
6071# Check for LTO support.
6072# Check whether --enable-lto was given.
6073if test "${enable_lto+set}" = set; then :
6074 enableval=$enable_lto; enable_lto=$enableval
6075else
6076 enable_lto=yes; default_enable_lto=yes
6077fi
6078
6079
143754cd 6080
e49e5c92
DK
6081
6082
6083target_elf=no
6084case $target in
6085 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6086 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
6087 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6088 nvptx-*-none)
e49e5c92
DK
6089 target_elf=no
6090 ;;
6091 *)
6092 target_elf=yes
6093 ;;
6094esac
6095
6096if test $target_elf = yes; then :
74cea91b
DK
6097 # ELF platforms build the lto-plugin always.
6098 build_lto_plugin=yes
e49e5c92 6099
e49e5c92
DK
6100else
6101 if test x"$default_enable_lto" = x"yes" ; then
29821356 6102 case $target in
899b04ef 6103 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
74cea91b 6104 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6105 *) enable_lto=no ;;
6106 esac
e49e5c92 6107 else
29821356
RW
6108 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6109 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6110 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6111 # warn during gcc/ subconfigure; unless you're bootstrapping with
6112 # -flto it won't be needed until after installation anyway.
6113 case $target in
a8eb3f0a 6114 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6115 *) if test x"$enable_lto" = x"yes"; then
6116 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6117 fi
6118 ;;
6119 esac
6120 fi
a8eb3f0a 6121 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6122 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6123 case $target in
74cea91b 6124 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6125 *) ;;
6126 esac
74cea91b 6127
e49e5c92
DK
6128fi
6129
700d40ca 6130
1b6c0831
L
6131# Check whether --enable-linker-plugin-configure-flags was given.
6132if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6133 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6134else
6135 extra_linker_plugin_configure_flags=
6136fi
6137
6138
6139# Check whether --enable-linker-plugin-flags was given.
6140if test "${enable_linker_plugin_flags+set}" = set; then :
6141 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6142else
6143 extra_linker_plugin_flags=
6144fi
6145
6146
6147
e28c595f 6148
7ec59b9e 6149# By default, C and C++ are the only stage 1 languages.
9b134994 6150stage1_languages=,c,
1d39f329 6151
e8a5fa9c 6152# Target libraries that we bootstrap.
2aa2364a 6153bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6154
9e07f89d
NN
6155# Figure out what language subdirectories are present.
6156# Look if the user specified --enable-languages="..."; if not, use
6157# the environment variable $LANGUAGES if defined. $LANGUAGES might
6158# go away some day.
6159# NB: embedded tabs in this IF block -- do not untabify
6160if test -d ${srcdir}/gcc; then
6161 if test x"${enable_languages+set}" != xset; then
6162 if test x"${LANGUAGES+set}" = xset; then
6163 enable_languages="${LANGUAGES}"
6164 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6165 else
6166 enable_languages=all
6167 fi
6168 else
6169 if test x"${enable_languages}" = x ||
6170 test x"${enable_languages}" = xyes;
6171 then
6172 echo configure.in: --enable-languages needs at least one language argument 1>&2
6173 exit 1
6174 fi
6175 fi
6176 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6177
096f7d00
DE
6178 # 'f95' is the old name for the 'fortran' language. We issue a warning
6179 # and make the substitution.
6180 case ,${enable_languages}, in
6181 *,f95,*)
6182 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6183 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6184 ;;
6185 esac
6186
7ec59b9e
L
6187 # If bootstrapping, C++ must be enabled.
6188 case ",$enable_languages,:$enable_bootstrap" in
6189 *,c++,*:*) ;;
6190 *:yes)
ffdd6afc
ILT
6191 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6192 enable_languages="${enable_languages},c++"
6193 else
7ec59b9e 6194 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6195 fi
6196 ;;
6197 esac
6198
9e07f89d
NN
6199 # First scan to see if an enabled language requires some other language.
6200 # We assume that a given config-lang.in will list all the language
6201 # front ends it requires, even if some are required indirectly.
6202 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6203 case ${lang_frag} in
6204 ..) ;;
6205 # The odd quoting in the next line works around
6206 # an apparent bug in bash 1.12 on linux.
6207 ${srcdir}/gcc/[*]/config-lang.in) ;;
6208 *)
e552509b
ILT
6209 # From the config-lang.in, get $language, $lang_requires, and
6210 # $lang_requires_boot_languages.
9e07f89d
NN
6211 language=
6212 lang_requires=
e552509b 6213 lang_requires_boot_languages=
9e07f89d 6214 . ${lang_frag}
e552509b 6215 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6216 case ,${enable_languages}, in
6217 *,$other,*) ;;
6218 *,all,*) ;;
6219 *,$language,*)
6220 echo " \`$other' language required by \`$language'; enabling" 1>&2
6221 enable_languages="${enable_languages},${other}"
6222 ;;
6223 esac
6224 done
e552509b
ILT
6225 for other in ${lang_requires_boot_languages} ; do
6226 if test "$other" != "c"; then
6227 case ,${enable_stage1_languages}, in
6228 *,$other,*) ;;
6229 *,all,*) ;;
6230 *)
6231 case ,${enable_languages}, in
6232 *,$language,*)
6233 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6234 enable_stage1_languages="$enable_stage1_languages,${other}"
6235 ;;
6236 esac
6237 ;;
6238 esac
6239 fi
6240 done
9e07f89d
NN
6241 ;;
6242 esac
6243 done
6244
9b134994 6245 new_enable_languages=,c,
700d40ca
ILT
6246
6247 # If LTO is enabled, add the LTO front end.
700d40ca 6248 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6249 case ,${enable_languages}, in
6250 *,lto,*) ;;
6251 *) enable_languages="${enable_languages},lto" ;;
6252 esac
a8eb3f0a 6253 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 6254 configdirs="$configdirs lto-plugin"
700d40ca
ILT
6255 fi
6256 fi
6257
1b6c0831
L
6258 # If we're building an offloading compiler, add the LTO front end.
6259 if test x"$enable_as_accelerator_for" != x ; then
6260 case ,${enable_languages}, in
6261 *,lto,*) ;;
6262 *) enable_languages="${enable_languages},lto" ;;
6263 esac
6264 fi
700d40ca 6265
9e07f89d 6266 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6267 potential_languages=,c,
9e07f89d 6268
9e1a94f4
ILT
6269 enabled_target_libs=
6270 disabled_target_libs=
6271
9e07f89d
NN
6272 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6273 case ${lang_frag} in
6274 ..) ;;
6275 # The odd quoting in the next line works around
6276 # an apparent bug in bash 1.12 on linux.
6277 ${srcdir}/gcc/[*]/config-lang.in) ;;
6278 *)
c6b750e1 6279 # From the config-lang.in, get $language, $target_libs,
1d39f329 6280 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6281 language=
6282 target_libs=
6283 lang_dirs=
64ce424c 6284 subdir_requires=
9b134994
PB
6285 boot_language=no
6286 build_by_default=yes
9e07f89d 6287 . ${lang_frag}
9b134994
PB
6288 if test x${language} = x; then
6289 echo "${lang_frag} doesn't set \$language." 1>&2
6290 exit 1
6291 fi
6292
ffdd6afc 6293 if test "$language" = "c++"; then
7ec59b9e 6294 boot_language=yes
e8a5fa9c
RW
6295 fi
6296
8e71395b 6297 add_this_lang=no
9b134994
PB
6298 case ,${enable_languages}, in
6299 *,${language},*)
7ec59b9e
L
6300 # Language was explicitly selected; include it
6301 # unless it is C, which is enabled by default.
6302 if test "$language" != "c"; then
6303 add_this_lang=yes
6304 fi
9e07f89d 6305 ;;
9b134994
PB
6306 *,all,*)
6307 # 'all' was selected, select it if it is a default language
8e71395b
L
6308 if test "$language" != "c"; then
6309 add_this_lang=${build_by_default}
6310 fi
9e07f89d
NN
6311 ;;
6312 esac
4b1cb4fe 6313
64ce424c 6314 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6315 for i in $subdir_requires; do
3d3adb43 6316 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6317 case ,${enable_languages}, in
6318 *,${language},*)
6319 # Specifically requested language; tell them.
81ecdfbb 6320 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6321 ;;
6322 *)
6323 # Silently disable.
9b134994 6324 add_this_lang=unsupported
64ce424c
PB
6325 ;;
6326 esac
6327 done
6328
9b134994
PB
6329 # Disable Ada if no preexisting GNAT is available.
6330 case ,${enable_languages},:${language}:${have_gnat} in
6331 *,${language},*:ada:no)
6332 # Specifically requested language; tell them.
81ecdfbb 6333 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6334 ;;
6335 *:ada:no)
6336 # Silently disable.
6337 add_this_lang=unsupported
6338 ;;
6339 esac
6340
59f7ec45
HPN
6341 # Disable a language that is unsupported by the target.
6342 case " $unsupported_languages " in
6343 *" $language "*)
9b134994 6344 add_this_lang=unsupported
59f7ec45
HPN
6345 ;;
6346 esac
6347
4b1cb4fe 6348 case $add_this_lang in
9b134994 6349 unsupported)
9e07f89d 6350 # Remove language-dependent dirs.
9e1a94f4
ILT
6351 disabled_target_libs="$disabled_target_libs $target_libs"
6352 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6353 ;;
9b134994
PB
6354 no)
6355 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6356 disabled_target_libs="$disabled_target_libs $target_libs"
6357 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6358 potential_languages="${potential_languages}${language},"
6359 ;;
6360 yes)
6361 new_enable_languages="${new_enable_languages}${language},"
6362 potential_languages="${potential_languages}${language},"
1d39f329 6363 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6364 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6365 case "${boot_language}:,$enable_stage1_languages," in
6366 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6367 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6368 case ",$stage1_languages," in
6369 *,$language,* | ,yes, | ,all,) ;;
6370 *) stage1_languages="${stage1_languages}${language}," ;;
6371 esac
e8a5fa9c
RW
6372 # We need to bootstrap any supporting libraries.
6373 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6374 ;;
6375 esac
6376 ;;
9e07f89d
NN
6377 esac
6378 ;;
6379 esac
6380 done
6381
9e1a94f4
ILT
6382 # Add target libraries which are only needed for disabled languages
6383 # to noconfigdirs.
6384 if test -n "$disabled_target_libs"; then
6385 for dir in $disabled_target_libs; do
6386 case " $enabled_target_libs " in
6387 *" ${dir} "*) ;;
6388 *) noconfigdirs="$noconfigdirs $dir" ;;
6389 esac
6390 done
6391 fi
6392
81ecdfbb
RW
6393 # Check whether --enable-stage1-languages was given.
6394if test "${enable_stage1_languages+set}" = set; then :
6395 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6396 ,no,|,,)
6397 # Set it to something that will have no effect in the loop below
6398 enable_stage1_languages=c ;;
6399 ,yes,)
6400 enable_stage1_languages=`echo $new_enable_languages | \
6401 sed -e "s/^,//" -e "s/,$//" ` ;;
6402 *,all,*)
6403 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6404 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6405 esac
6406
6407 # Add "good" languages from enable_stage1_languages to stage1_languages,
6408 # while "bad" languages go in missing_languages. Leave no duplicates.
6409 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6410 case $potential_languages in
6411 *,$i,*)
6412 case $stage1_languages in
6413 *,$i,*) ;;
6414 *) stage1_languages="$stage1_languages$i," ;;
6415 esac ;;
6416 *)
6417 case $missing_languages in
6418 *,$i,*) ;;
6419 *) missing_languages="$missing_languages$i," ;;
6420 esac ;;
6421 esac
6422 done
81ecdfbb
RW
6423fi
6424
9b134994
PB
6425
6426 # Remove leading/trailing commas that were added for simplicity
6427 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6428 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6429 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6430 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6431
9e07f89d 6432 if test "x$missing_languages" != x; then
81ecdfbb 6433 as_fn_error "
27258dd4 6434The following requested languages could not be built: ${missing_languages}
81ecdfbb 6435Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6436 fi
9e07f89d
NN
6437 if test "x$new_enable_languages" != "x$enable_languages"; then
6438 echo The following languages will be built: ${new_enable_languages}
9b134994 6439 enable_languages="$new_enable_languages"
9e07f89d 6440 fi
9b134994 6441
c6b750e1 6442
81ec575a 6443 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6444fi
6445
a6df5a19
PB
6446# Handle --disable-<component> generically.
6447for dir in $configdirs $build_configdirs $target_configdirs ; do
6448 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6449 varname=`echo $dirname | sed -e s/+/_/g`
6450 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6451 noconfigdirs="$noconfigdirs $dir"
6452 fi
6453done
6454
4f0ef2d8 6455# Check for Boehm's garbage collector
81ecdfbb
RW
6456# Check whether --enable-objc-gc was given.
6457if test "${enable_objc_gc+set}" = set; then :
6458 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6459 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6460 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6461 ;;
6462esac
81ecdfbb
RW
6463fi
6464
4f0ef2d8
CD
6465
6466# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6467case ,${enable_languages},:${enable_objc_gc} in
6468 *,objc,*:yes)
4f0ef2d8
CD
6469 # Keep target-boehm-gc if requested for Objective-C.
6470 ;;
4f0ef2d8 6471 *)
d42c4017
DA
6472 # Otherwise remove target-boehm-gc depending on target-libjava.
6473 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6474 noconfigdirs="$noconfigdirs target-boehm-gc"
6475 fi
4f0ef2d8
CD
6476 ;;
6477esac
6478
1b6c0831 6479# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
7ec59b9e 6480case ,${enable_languages}, in
1b6c0831
L
6481 *,c++,*)
6482 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6483 case "${noconfigdirs}" in
6484 *target-libstdc++-v3*)
6485 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6486 ;;
6487 *) ;;
6488 esac
6489 ;;
7ec59b9e 6490 *)
1b6c0831 6491 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6492 ;;
6493esac
6494
caeba88f
AL
6495# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6496# $build_configdirs and $target_configdirs.
9e07f89d
NN
6497# If we have the source for $noconfigdirs entries, add them to $notsupp.
6498
6499notsupp=""
6500for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6501 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6502 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6503 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6504 if test -r $srcdir/$dirname/configure ; then
6505 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6506 true
6507 else
6508 notsupp="$notsupp $dir"
6509 fi
6510 fi
6511 fi
caeba88f
AL
6512 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6513 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6514 if test -r $srcdir/$dirname/configure ; then
6515 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6516 true
6517 else
6518 notsupp="$notsupp $dir"
6519 fi
6520 fi
6521 fi
9e07f89d
NN
6522 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6523 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6524 if test -r $srcdir/$dirname/configure ; then
6525 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6526 true
6527 else
6528 notsupp="$notsupp $dir"
6529 fi
6530 fi
6531 fi
6532done
6533
9e07f89d
NN
6534# Quietly strip out all directories which aren't configurable in this tree.
6535# This relies on all configurable subdirectories being autoconfiscated, which
6536# is now the case.
6a9cf61e
PB
6537build_configdirs_all="$build_configdirs"
6538build_configdirs=
6539for i in ${build_configdirs_all} ; do
c6b750e1 6540 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6541 if test -f ${srcdir}/$j/configure ; then
6542 build_configdirs="${build_configdirs} $i"
6543 fi
6544done
6545
9e07f89d
NN
6546configdirs_all="$configdirs"
6547configdirs=
6548for i in ${configdirs_all} ; do
6549 if test -f ${srcdir}/$i/configure ; then
6550 configdirs="${configdirs} $i"
6551 fi
6552done
6a9cf61e 6553
9e07f89d
NN
6554target_configdirs_all="$target_configdirs"
6555target_configdirs=
6556for i in ${target_configdirs_all} ; do
c6b750e1 6557 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6558 if test -f ${srcdir}/$j/configure ; then
6559 target_configdirs="${target_configdirs} $i"
6560 fi
6561done
6562
091021fa
L
6563# Exclude target-zlib if target-libjava isn't built.
6564case ${target_configdirs} in
6565*target-libjava*)
6566 ;;
6567*)
6568 target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6569 ;;
6570esac
6571
1b6c0831
L
6572# libiberty-linker-plugin is special: it doesn't have its own source directory,
6573# so we have to add it after the preceding checks.
6574if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6575then
6576 case " $configdirs " in
6577 *" libiberty "*)
6578 # If we can build libiberty, we can also build libiberty-linker-plugin.
6579 configdirs="$configdirs libiberty-linker-plugin"
6580 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6581 --with-libiberty=../libiberty-linker-plugin";;
6582 *)
6583 as_fn_error "libiberty missing" "$LINENO" 5;;
6584 esac
6585fi
6586
6587# Sometimes we have special requirements for the host libiberty.
6588extra_host_libiberty_configure_flags=
e81d5d05 6589extra_host_zlib_configure_flags=
1b6c0831
L
6590case " $configdirs " in
6591 *" lto-plugin "* | *" libcc1 "*)
6592 # When these are to be built as shared libraries, the same applies to
6593 # libiberty.
6594 extra_host_libiberty_configure_flags=--enable-shared
6595 ;;
e81d5d05
L
6596 *" bfd "*)
6597 # When bfd is to be built as a shared library, the same applies to
6598 # zlib.
6599 if test "$enable_shared" = "yes"; then
6600 extra_host_zlib_configure_flags=--enable-host-shared
6601 fi
6602 ;;
1b6c0831
L
6603esac
6604
6605
e81d5d05 6606
9e07f89d
NN
6607# Produce a warning message for the subdirs we can't configure.
6608# This isn't especially interesting in the Cygnus tree, but in the individual
6609# FSF releases, it's important to let people know when their machine isn't
6610# supported by the one or two programs in a package.
6611
6612if test -n "${notsupp}" && test -z "${norecursion}" ; then
6613 # If $appdirs is non-empty, at least one of those directories must still
6614 # be configured, or we error out. (E.g., if the gas release supports a
6615 # specified target in some subdirs but not the gas subdir, we shouldn't
6616 # pretend that all is well.)
6617 if test -n "$appdirs" ; then
6618 for dir in $appdirs ; do
6619 if test -r $dir/Makefile.in ; then
6620 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6621 appdirs=""
6622 break
6623 fi
6a9cf61e 6624 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6625 appdirs=""
6626 break
6627 fi
6628 fi
6629 done
6630 if test -n "$appdirs" ; then
6631 echo "*** This configuration is not supported by this package." 1>&2
6632 exit 1
6633 fi
6634 fi
6635 # Okay, some application will build, or we don't care to check. Still
6636 # notify of subdirs not getting built.
6637 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6638 echo " ${notsupp}" 1>&2
6639 echo " (Any other directories should still work fine.)" 1>&2
6640fi
6641
6642case "$host" in
6643 *msdosdjgpp*)
6644 enable_gdbtk=no ;;
6645esac
6646
18f6b6ee
PB
6647# To find our prefix, in gcc_cv_tool_prefix.
6648
6649# The user is always right.
6650if test "${PATH_SEPARATOR+set}" != set; then
6651 echo "#! /bin/sh" >conf$$.sh
6652 echo "exit 0" >>conf$$.sh
6653 chmod +x conf$$.sh
6654 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6655 PATH_SEPARATOR=';'
6656 else
6657 PATH_SEPARATOR=:
6658 fi
6659 rm -f conf$$.sh
6660fi
6661
6662
6663
6664if test "x$exec_prefix" = xNONE; then
6665 if test "x$prefix" = xNONE; then
6666 gcc_cv_tool_prefix=$ac_default_prefix
6667 else
6668 gcc_cv_tool_prefix=$prefix
6669 fi
6670else
6671 gcc_cv_tool_prefix=$exec_prefix
6672fi
6673
6674# If there is no compiler in the tree, use the PATH only. In any
6675# case, if there is no compiler in the tree nobody should use
6676# AS_FOR_TARGET and LD_FOR_TARGET.
6677if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6678 gcc_version=`cat $srcdir/gcc/BASE-VER`
6679 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6680 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6681 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6682 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6683 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6684 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6685else
6686 gcc_cv_tool_dirs=
6687fi
6688
6689if test x$build = x$target && test -n "$md_exec_prefix"; then
6690 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6691fi
6692
6693
6694
9e07f89d
NN
6695copy_dirs=
6696
c6b750e1 6697
81ecdfbb
RW
6698# Check whether --with-build-sysroot was given.
6699if test "${with_build_sysroot+set}" = set; then :
6700 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6701 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6702 fi
6703else
6704 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6705fi
a19b6204
MM
6706
6707
8a6ee3ab 6708
81ecdfbb
RW
6709
6710# Check whether --with-debug-prefix-map was given.
6711if test "${with_debug_prefix_map+set}" = set; then :
6712 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6713 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6714 for debug_map in $withval; do
6715 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6716 done
6717 fi
6718else
6719 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6720fi
6721
8a6ee3ab
JM
6722
6723
7f6ef0c0
PB
6724# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6725# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6726# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6727# We want to ensure that TARGET libraries (which we know are built with
6728# gcc) are built with "-O2 -g", so include those options when setting
6729# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6730if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6731 if test "x${is_cross_compiler}" = xyes; then
6732 CFLAGS_FOR_TARGET="-g -O2"
6733 else
6734 CFLAGS_FOR_TARGET=$CFLAGS
6735 case " $CFLAGS " in
6736 *" -O2 "*) ;;
6737 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6738 esac
6739 case " $CFLAGS " in
6740 *" -g "* | *" -g3 "*) ;;
6741 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6742 esac
6743 fi
7f6ef0c0
PB
6744fi
6745
6746
6747if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6748 if test "x${is_cross_compiler}" = xyes; then
6749 CXXFLAGS_FOR_TARGET="-g -O2"
6750 else
6751 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6752 case " $CXXFLAGS " in
6753 *" -O2 "*) ;;
6754 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6755 esac
6756 case " $CXXFLAGS " in
6757 *" -g "* | *" -g3 "*) ;;
6758 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6759 esac
6760 fi
7f6ef0c0
PB
6761fi
6762
6763
91c1f14c
DK
6764
6765
9e07f89d
NN
6766# Handle --with-headers=XXX. If the value is not "yes", the contents of
6767# the named directory are copied to $(tooldir)/sys-include.
6768if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6769 if test x${is_cross_compiler} = xno ; then
6770 echo 1>&2 '***' --with-headers is only supported when cross compiling
6771 exit 1
6772 fi
6773 if test x"${with_headers}" != xyes ; then
18f6b6ee 6774 x=${gcc_cv_tool_prefix}
c6b750e1 6775 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6776 fi
6777fi
6778
6779# Handle --with-libs=XXX. If the value is not "yes", the contents of
6780# the name directories are copied to $(tooldir)/lib. Multiple directories
6781# are permitted.
6782if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6783 if test x${is_cross_compiler} = xno ; then
6784 echo 1>&2 '***' --with-libs is only supported when cross compiling
6785 exit 1
6786 fi
6787 if test x"${with_libs}" != xyes ; then
6788 # Copy the libraries in reverse order, so that files in the first named
6789 # library override files in subsequent libraries.
18f6b6ee 6790 x=${gcc_cv_tool_prefix}
9e07f89d 6791 for l in ${with_libs}; do
c6b750e1 6792 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6793 done
6794 fi
6795fi
6796
700d40ca 6797# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6798#
6799# This is done by determining whether or not the appropriate directory
6800# is available, and by checking whether or not specific configurations
6801# have requested that this magic not happen.
c6b750e1
DJ
6802#
6803# The command line options always override the explicit settings in
2429c060
PB
6804# configure.in, and the settings in configure.in override this magic.
6805#
c6b750e1 6806# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6807# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6808# --without-gnu-ld options for the configure script. Similarly, if
6809# the default is to use the included zlib and you don't want to do that,
6810# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6811
6812if test x${use_gnu_as} = x &&
6813 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6814 with_gnu_as=yes
6815 extra_host_args="$extra_host_args --with-gnu-as"
6816fi
6817
6818if test x${use_gnu_ld} = x &&
93f9b408 6819 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6820 with_gnu_ld=yes
6821 extra_host_args="$extra_host_args --with-gnu-ld"
6822fi
6823
700d40ca
ILT
6824if test x${use_included_zlib} = x &&
6825 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6826 :
6827else
6828 with_system_zlib=yes
6829 extra_host_args="$extra_host_args --with-system-zlib"
6830fi
6831
2429c060
PB
6832# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6833# can detect this case.
6834
6835if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6836 with_newlib=yes
6837 extra_host_args="$extra_host_args --with-newlib"
6838fi
6839
9e07f89d
NN
6840# Handle ${copy_dirs}
6841set fnord ${copy_dirs}
6842shift
6843while test $# != 0 ; do
6844 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6845 :
6846 else
6847 echo Copying $1 to $2
6848
6849 # Use the install script to create the directory and all required
6850 # parent directories.
6851 if test -d $2 ; then
6852 :
6853 else
6854 echo >config.temp
6855 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6856 fi
6857
6858 # Copy the directory, assuming we have tar.
6859 # FIXME: Should we use B in the second tar? Not all systems support it.
6860 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6861
6862 # It is the responsibility of the user to correctly adjust all
6863 # symlinks. If somebody can figure out how to handle them correctly
6864 # here, feel free to add the code.
6865
6866 echo $1 > $2/COPIED
6867 fi
6868 shift; shift
6869done
6870
2429c060
PB
6871# Determine a target-dependent exec_prefix that the installed
6872# gcc will search in. Keep this list sorted by triplet, with
6873# the *-*-osname triplets last.
6874md_exec_prefix=
6875case "${target}" in
521ec477 6876 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6877 md_exec_prefix=/dev/env/DJDIR/bin
6878 ;;
2429c060 6879 *-*-hpux* | \
2429c060 6880 *-*-nto-qnx* | \
1f111696 6881 *-*-solaris2*)
2429c060
PB
6882 md_exec_prefix=/usr/ccs/bin
6883 ;;
6884esac
6885
a0da8069
NN
6886extra_arflags_for_target=
6887extra_nmflags_for_target=
6888extra_ranlibflags_for_target=
6889target_makefile_frag=/dev/null
6890case "${target}" in
77d7106f
AM
6891 spu-*-*)
6892 target_makefile_frag="config/mt-spu"
6893 ;;
a9d58c06 6894 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
6895 target_makefile_frag="config/mt-sde"
6896 ;;
f3b1e08e
RS
6897 mipsisa*-*-elfoabi*)
6898 target_makefile_frag="config/mt-mips-elfoabi"
6899 ;;
e7c8859c
RS
6900 mips*-*-*linux* | mips*-*-gnu*)
6901 target_makefile_frag="config/mt-mips-gnu"
6902 ;;
d9e042ac
SL
6903 nios2-*-elf*)
6904 target_makefile_frag="config/mt-nios2-elf"
6905 ;;
29383458 6906 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6907 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6908 ;;
6909 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6910 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6911 # commands to handle both 32-bit and 64-bit objects. These flags are
6912 # harmless if we're using GNU nm or ar.
6913 extra_arflags_for_target=" -X32_64"
6914 extra_nmflags_for_target=" -B -X32_64"
6915 ;;
a0da8069
NN
6916esac
6917
6918alphaieee_frag=/dev/null
6919case $target in
6920 alpha*-*-*)
6921 # This just makes sure to use the -mieee option to build target libs.
6922 # This should probably be set individually by each library.
6923 alphaieee_frag="config/mt-alphaieee"
6924 ;;
6925esac
6926
6927# If --enable-target-optspace always use -Os instead of -O2 to build
6928# the target libraries, similarly if it is not specified, use -Os
6929# on selected platforms.
6930ospace_frag=/dev/null
6931case "${enable_target_optspace}:${target}" in
6932 yes:*)
6933 ospace_frag="config/mt-ospace"
6934 ;;
6935 :d30v-*)
6936 ospace_frag="config/mt-d30v"
6937 ;;
6938 :m32r-* | :d10v-* | :fr30-*)
6939 ospace_frag="config/mt-ospace"
6940 ;;
6941 no:* | :*)
6942 ;;
6943 *)
6944 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6945 ;;
6946esac
6947
a0da8069
NN
6948# Some systems (e.g., one of the i386-aix systems the gas testers are
6949# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6950tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6951build_tooldir=${tooldir}
6952
a0da8069
NN
6953# Create a .gdbinit file which runs the one in srcdir
6954# and tells GDB to look there for source files.
6955
6956if test -r ${srcdir}/.gdbinit ; then
6957 case ${srcdir} in
6958 .) ;;
6959 *) cat > ./.gdbinit <<EOF
6960# ${NO_EDIT}
6961dir ${srcdir}
6962dir .
6963source ${srcdir}/.gdbinit
6964EOF
6965 ;;
6966 esac
6967fi
6968
a0da8069
NN
6969# Make sure that the compiler is able to generate an executable. If it
6970# can't, we are probably in trouble. We don't care whether we can run the
6971# executable--we might be using a cross compiler--we only care whether it
6972# can be created. At this point the main configure script has set CC.
6973we_are_ok=no
6974echo "int main () { return 0; }" > conftest.c
6975${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6976if test $? = 0 ; then
6977 if test -s conftest || test -s conftest.exe ; then
6978 we_are_ok=yes
6979 fi
c6b750e1 6980fi
a0da8069
NN
6981case $we_are_ok in
6982 no)
6983 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6984 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6985 rm -f conftest*
6986 exit 1
6987 ;;
6988esac
6989rm -f conftest*
6990
3bbd2f8f 6991# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6992case "${host}" in
6993 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 6994 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6995 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6996 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6997esac
6998
3bbd2f8f 6999# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7000# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7001# built executables to PATH.
3bbd2f8f
AL
7002if test "$RPATH_ENVVAR" = PATH; then
7003 GCC_SHLIB_SUBDIR=/shlib
7004else
7005 GCC_SHLIB_SUBDIR=
7006fi
7007
730af8ee 7008# Adjust the toplevel makefile according to whether bootstrap was selected.
7009case $enable_bootstrap in
7010 yes)
7011 bootstrap_suffix=bootstrap
7012 BUILD_CONFIG=bootstrap-debug
7013 ;;
7014 no)
7015 bootstrap_suffix=no-bootstrap
7016 BUILD_CONFIG=
7017 ;;
7018esac
7019
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7021$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7022
7023
7024# Check whether --with-build-config was given.
7025if test "${with_build_config+set}" = set; then :
7026 withval=$with_build_config; case $with_build_config in
7027 yes) with_build_config= ;;
7028 no) with_build_config= BUILD_CONFIG= ;;
7029 esac
7030fi
7031
7032
7033if test "x${with_build_config}" != x; then
7034 BUILD_CONFIG=$with_build_config
7035else
7036 case $BUILD_CONFIG in
7037 bootstrap-debug)
7038 if echo "int f (void) { return 0; }" > conftest.c &&
7039 ${CC} -c conftest.c &&
7040 mv conftest.o conftest.o.g0 &&
7041 ${CC} -c -g conftest.c &&
7042 mv conftest.o conftest.o.g &&
7043 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7044 :
7045 else
7046 BUILD_CONFIG=
7047 fi
7048 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7049 ;;
7050 esac
7051fi
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7053$as_echo "$BUILD_CONFIG" >&6; }
7054
7055
7056# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7058$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7059# Check whether --enable-vtable-verify was given.
7060if test "${enable_vtable_verify+set}" = set; then :
7061 enableval=$enable_vtable_verify; case "$enableval" in
7062 yes) enable_vtable_verify=yes ;;
7063 no) enable_vtable_verify=no ;;
7064 *) enable_vtable_verify=no;;
7065 esac
7066else
7067 enable_vtable_verify=no
7068fi
7069
7070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7071$as_echo "$enable_vtable_verify" >&6; }
7072
a0da8069
NN
7073# Record target_configdirs and the configure arguments for target and
7074# build configuration in Makefile.
7075target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7076build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7077bootstrap_fixincludes=no
a0da8069 7078
2aa2364a
JR
7079# If we are building libgomp, bootstrap it.
7080if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7081 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7082fi
7083
730af8ee 7084# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7085# or bootstrap-ubsan, bootstrap it.
7086if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7087 case "$BUILD_CONFIG" in
7088 *bootstrap-asan* | *bootstrap-ubsan* )
7089 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7090 bootstrap_fixincludes=yes
730af8ee 7091 ;;
7092 esac
5eb08693
L
7093fi
7094
730af8ee 7095# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7096if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7097 test "$enable_vtable_verify" != no; then
95e43135
JBG
7098 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7099fi
7100
1b6c0831
L
7101# If we are building libmpx, bootstrap it.
7102if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7103 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7104fi
7105
a0da8069
NN
7106# Determine whether gdb needs tk/tcl or not.
7107# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7108# and in that case we want gdb to be built without tk. Ugh!
7109# In fact I believe gdb is the *only* package directly dependent on tk,
7110# so we should be able to put the 'maybe's in unconditionally and
7111# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7112# 100% sure that that's safe though.
c180f501 7113
675c6968 7114gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7115case "$enable_gdbtk" in
7116 no)
7117 GDB_TK="" ;;
c180f501
AC
7118 yes)
7119 GDB_TK="${gdb_tk}" ;;
a0da8069 7120 *)
c180f501
AC
7121 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7122 # distro. Eventually someone will fix this and move Insight, nee
7123 # gdbtk to a separate directory.
7124 if test -d ${srcdir}/gdb/gdbtk ; then
7125 GDB_TK="${gdb_tk}"
7126 else
7127 GDB_TK=""
7128 fi
7129 ;;
a0da8069 7130esac
907be67c
DJ
7131CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7132INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7133
6bd3dfaa 7134# Strip out unwanted targets.
dd12c3a8
NN
7135
7136# While at that, we remove Makefiles if we were started for recursive
7137# configuration, so that the top-level Makefile reconfigures them,
7138# like we used to do when configure itself was recursive.
dd12c3a8 7139
06a51eac
RW
7140# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7141# but now we're fixing up the Makefile ourselves with the additional
7142# commands passed to AC_CONFIG_FILES. Use separate variables
7143# extrasub-{build,host,target} not because there is any reason to split
7144# the substitutions up that way, but only to remain below the limit of
7145# 99 commands in a script, for HP-UX sed.
7146# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7147
16b1ad29
RW
7148case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7149 yes:yes:*\ gold\ *:*,c++,*) ;;
7150 yes:yes:*\ gold\ *:*)
7151 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7152 ;;
7153esac
7154
06a51eac 7155extrasub_build=
6a9cf61e 7156for module in ${build_configdirs} ; do
498d4a71
CF
7157 if test -z "${no_recursion}" \
7158 && test -f ${build_subdir}/${module}/Makefile; then
7159 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7160 rm -f ${build_subdir}/${module}/Makefile
7161 fi
06a51eac 7162 extrasub_build="$extrasub_build
498d4a71
CF
7163/^@if build-$module\$/d
7164/^@endif build-$module\$/d
7165/^@if build-$module-$bootstrap_suffix\$/d
7166/^@endif build-$module-$bootstrap_suffix\$/d"
7167done
06a51eac 7168extrasub_host=
498d4a71 7169for module in ${configdirs} ; do
80911fe1 7170 if test -z "${no_recursion}"; then
8cf39b1b 7171 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7172 if test -f ${file}; then
7173 echo 1>&2 "*** removing ${file} to force reconfigure"
7174 rm -f ${file}
7175 fi
7176 done
498d4a71 7177 fi
201f096f 7178 case ${module},${bootstrap_fixincludes} in
7179 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7180 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7181 esac
06a51eac 7182 extrasub_host="$extrasub_host
498d4a71
CF
7183/^@if $module\$/d
7184/^@endif $module\$/d
201f096f 7185/^@if $module-$host_bootstrap_suffix\$/d
7186/^@endif $module-$host_bootstrap_suffix\$/d"
498d4a71 7187done
06a51eac 7188extrasub_target=
498d4a71
CF
7189for module in ${target_configdirs} ; do
7190 if test -z "${no_recursion}" \
7191 && test -f ${target_subdir}/${module}/Makefile; then
7192 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7193 rm -f ${target_subdir}/${module}/Makefile
7194 fi
e8a5fa9c
RW
7195
7196 # We only bootstrap target libraries listed in bootstrap_target_libs.
7197 case $bootstrap_target_libs in
7198 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7199 *) target_bootstrap_suffix=no-bootstrap ;;
7200 esac
7201
06a51eac 7202 extrasub_target="$extrasub_target
498d4a71
CF
7203/^@if target-$module\$/d
7204/^@endif target-$module\$/d
e8a5fa9c
RW
7205/^@if target-$module-$target_bootstrap_suffix\$/d
7206/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7207done
7208
06a51eac
RW
7209# Do the final fixup along with target modules.
7210extrasub_target="$extrasub_target
6bd3dfaa 7211/^@if /,/^@endif /d"
a0da8069
NN
7212
7213# Create the serialization dependencies. This uses a temporary file.
7214
81ecdfbb
RW
7215# Check whether --enable-serial-configure was given.
7216if test "${enable_serial_configure+set}" = set; then :
7217 enableval=$enable_serial_configure;
7218fi
e6bfb94a
AO
7219
7220
1047cb91
DD
7221case ${enable_serial_configure} in
7222 yes)
7223 enable_serial_build_configure=yes
7224 enable_serial_host_configure=yes
7225 enable_serial_target_configure=yes
7226 ;;
7227esac
7228
a0da8069
NN
7229# These force 'configure's to be done one at a time, to avoid problems
7230# with contention over a shared config.cache.
7231rm -f serdep.tmp
e6bfb94a 7232echo '# serdep.tmp' > serdep.tmp
a0da8069 7233olditem=
1047cb91 7234test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7235for item in ${build_configdirs} ; do
7236 case ${olditem} in
7237 "") ;;
e6bfb94a 7238 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7239 esac
7240 olditem=${item}
7241done
7242olditem=
1047cb91 7243test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7244for item in ${configdirs} ; do
7245 case ${olditem} in
7246 "") ;;
e6bfb94a 7247 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7248 esac
7249 olditem=${item}
7250done
7251olditem=
1047cb91 7252test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7253for item in ${target_configdirs} ; do
7254 case ${olditem} in
7255 "") ;;
e6bfb94a 7256 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7257 esac
7258 olditem=${item}
7259done
7260serialization_dependencies=serdep.tmp
7261
7262
e6bfb94a 7263# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7264# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7265# might not want to pass down to subconfigures. The exception being
7266# --cache-file=/dev/null, which is used to turn off the use of cache
7267# files altogether, and which should be passed on to subconfigures.
7268# Also strip program-prefix, program-suffix, and program-transform-name,
7269# so that we can pass down a consistent program-transform-name.
c6b750e1 7270baseargs=
65b4571a 7271tbaseargs=
c6b750e1
DJ
7272keep_next=no
7273skip_next=no
7274eval "set -- $ac_configure_args"
18f6b6ee
PB
7275for ac_arg
7276do
c6b750e1
DJ
7277 if test X"$skip_next" = X"yes"; then
7278 skip_next=no
7279 continue
7280 fi
7281 if test X"$keep_next" = X"yes"; then
7282 case $ac_arg in
7283 *\'*)
7284 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7285 esac
7286 baseargs="$baseargs '$ac_arg'"
65b4571a 7287 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7288 keep_next=no
7289 continue
7290 fi
7291
7292 # Handle separated arguments. Based on the logic generated by
7293 # autoconf 2.59.
7294 case $ac_arg in
7295 *=* | --config-cache | -C | -disable-* | --disable-* \
7296 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7297 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7298 | -with-* | --with-* | -without-* | --without-* | --x)
7299 separate_arg=no
7300 ;;
7301 -*)
7302 separate_arg=yes
7303 ;;
7304 *)
7305 separate_arg=no
7306 ;;
7307 esac
7308
65b4571a
AO
7309 skip_targ=no
7310 case $ac_arg in
7311
7312 --with-* | --without-*)
7313 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7314
7315 case $libopt in
7316 *[-_]include)
7317 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7318 ;;
7319 *[-_]lib)
7320 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7321 ;;
7322 *)
7323 lib=$libopt
7324 ;;
7325 esac
7326
7327
7328 case $lib in
1b6c0831 7329 mpc | mpfr | gmp | isl)
65b4571a
AO
7330 # If we're processing --with-$lib, --with-$lib-include or
7331 # --with-$lib-lib, for one of the libs above, and target is
7332 # different from host, don't pass the current argument to any
7333 # target library's configure.
7334 if test x$is_cross_compiler = xyes; then
7335 skip_targ=yes
7336 fi
7337 ;;
7338 esac
7339 ;;
7340 esac
7341
c6b750e1 7342 case "$ac_arg" in
30167e0a
NC
7343 --cache-file=/dev/null | \
7344 -cache-file=/dev/null )
7345 # Handled here to avoid the test to skip args below.
7346 baseargs="$baseargs '$ac_arg'"
65b4571a 7347 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7348 # Assert: $separate_arg should always be no.
7349 keep_next=$separate_arg
7350 ;;
c6b750e1
DJ
7351 --no*)
7352 continue
7353 ;;
7354 --c* | \
7355 --sr* | \
7356 --ho* | \
7357 --bu* | \
7358 --t* | \
7359 --program-* | \
7360 -cache_file* | \
7361 -srcdir* | \
7362 -host* | \
7363 -build* | \
7364 -target* | \
7365 -program-prefix* | \
7366 -program-suffix* | \
7367 -program-transform-name* )
7368 skip_next=$separate_arg
7369 continue
7370 ;;
7371 -*)
7372 # An option. Add it.
7373 case $ac_arg in
7374 *\'*)
7375 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7376 esac
7377 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7378 if test X"$skip_targ" = Xno; then
7379 tbaseargs="$tbaseargs '$ac_arg'"
7380 fi
c6b750e1
DJ
7381 keep_next=$separate_arg
7382 ;;
7383 *)
7384 # Either a variable assignment, or a nonopt (triplet). Don't
7385 # pass it down; let the Makefile handle this.
7386 continue
7387 ;;
7388 esac
7389done
7390# Remove the initial space we just introduced and, as these will be
7391# expanded by make, quote '$'.
7392baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7393
f27d4f92
DJ
7394# Add in --program-transform-name, after --program-prefix and
7395# --program-suffix have been applied to it. Autoconf has already
7396# doubled dollar signs and backslashes in program_transform_name; we want
7397# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7398# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7399# Also, because we want to override the logic in subdir configure scripts to
7400# choose program_transform_name, replace any s,x,x, with s,y,y,.
7401sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7402${program_transform_name}
7403EOF_SED
7404gcc_transform_name=`cat conftestsed.out`
7405rm -f conftestsed.out
7406baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7407tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7408if test "$silent" = yes; then
7409 baseargs="$baseargs --silent"
65b4571a 7410 tbaseargs="$tbaseargs --silent"
2444379b 7411fi
34a0f3cf 7412baseargs="$baseargs --disable-option-checking"
65b4571a 7413tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7414
4074d5f2
RW
7415# Record and document user additions to sub configure arguments.
7416
7417
7418
7419
a0da8069
NN
7420# For the build-side libraries, we just need to pretend we're native,
7421# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
7422# desired. We can't even use the same cache file for all build-side
7423# libraries, as they're compiled differently; some with C, some with
7424# C++ or with different feature-enabling options.
7425build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
a0da8069
NN
7426
7427# For host modules, accept cache file option, or specification as blank.
7428case "${cache_file}" in
7429"") # empty
7430 cache_file_option="" ;;
7431/* | [A-Za-z]:[\\/]* ) # absolute path
7432 cache_file_option="--cache-file=${cache_file}" ;;
7433*) # relative path
7434 cache_file_option="--cache-file=../${cache_file}" ;;
7435esac
7436
82252c06
NN
7437# Host dirs don't like to share a cache file either, horribly enough.
7438# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7439host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7440
65b4571a 7441target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7442
7443# Passing a --with-cross-host argument lets the target libraries know
7444# whether they are being built with a cross-compiler or being built
7445# native. However, it would be better to use other mechanisms to make the
7446# sorts of decisions they want to make on this basis. Please consider
7447# this option to be deprecated. FIXME.
7448if test x${is_cross_compiler} = xyes ; then
c6b750e1 7449 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7450fi
7451
afc0578d 7452# Special user-friendly check for native x86_64-linux build, if
7453# multilib is not explicitly enabled.
7454case "$target:$have_compiler:$host:$target:$enable_multilib" in
7455 x86_64-*linux*:yes:$build:$build:)
7456 # Make sure we have a developement environment that handles 32-bit
7457 dev64=no
7458 echo "int main () { return 0; }" > conftest.c
7459 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7460 if test $? = 0 ; then
7461 if test -s conftest || test -s conftest.exe ; then
7462 dev64=yes
7463 fi
7464 fi
7465 rm -f conftest*
7466 if test x${dev64} != xyes ; then
7467 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
7468 fi
7469 ;;
7470esac
7471
938d2b74
RW
7472# Default to --enable-multilib.
7473if test x${enable_multilib} = x ; then
a0da8069 7474 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7475fi
a0da8069
NN
7476
7477# Pass --with-newlib if appropriate. Note that target_configdirs has
7478# changed from the earlier setting of with_newlib.
7479if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7480 target_configargs="--with-newlib ${target_configargs}"
7481fi
7482
95036d20
NN
7483# Different target subdirs use different values of certain variables
7484# (notably CXX). Worse, multilibs use *lots* of different values.
7485# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7486# it doesn't automatically accept command-line overrides of them.
7487# This means it's not safe for target subdirs to share a cache file,
7488# which is disgusting, but there you have it. Hopefully this can be
7489# fixed in future. It's still worthwhile to use a cache file for each
7490# directory. I think.
7491
ae380b45
MS
7492# Pass the appropriate --build, --host, --target and --cache-file arguments.
7493# We need to pass --target, as newer autoconf's requires consistency
7494# for target_alias and gcc doesn't manage it consistently.
4b900473 7495target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7496
a0da8069
NN
7497FLAGS_FOR_TARGET=
7498case " $target_configdirs " in
7499 *" newlib "*)
7500 case " $target_configargs " in
7501 *" --with-newlib "*)
7502 case "$target" in
1f53ca9a 7503 *-cygwin*)
6d94c122 7504 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7505 ;;
a0da8069
NN
7506 esac
7507
7508 # If we're not building GCC, don't discard standard headers.
7509 if test -d ${srcdir}/gcc; then
7510 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7511
7512 if test "${build}" != "${host}"; then
7513 # On Canadian crosses, CC_FOR_TARGET will have already been set
7514 # by `configure', so we won't have an opportunity to add -Bgcc/
7515 # to it. This is right: we don't want to search that directory
7516 # for binaries, but we want the header files in there, so add
7517 # them explicitly.
e552509b 7518 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7519
7520 # Someone might think of using the pre-installed headers on
7521 # Canadian crosses, in case the installed compiler is not fully
7522 # compatible with the compiler being built. In this case, it
7523 # would be better to flag an error than risking having
7524 # incompatible object files being constructed. We can't
7525 # guarantee that an error will be flagged, but let's hope the
7526 # compiler will do it, when presented with incompatible header
7527 # files.
7528 fi
7529 fi
7530
7531 case "${target}-${is_cross_compiler}" in
ec11bdc6 7532 i[3456789]86-*-linux*-no)
a0da8069
NN
7533 # Here host == target, so we don't need to build gcc,
7534 # so we don't want to discard standard headers.
7535 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7536 ;;
7537 *)
7538 # If we're building newlib, use its generic headers last, but search
7539 # for any libc-related directories first (so make it the last -B
7540 # switch).
7541 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
7542
7543 # If we're building libgloss, find the startup file, simulator library
7544 # and linker script.
7545 case " $target_configdirs " in
7546 *" libgloss "*)
7547 # Look for startup file, simulator library and maybe linker script.
7548 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7549 # Look for libnosys.a in case the target needs it.
7550 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7551 # Most targets have the linker script in the source directory.
7552 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7553 ;;
7554 esac
a0da8069
NN
7555 ;;
7556 esac
7557 ;;
7558 esac
7559 ;;
7560esac
1f53ca9a 7561
45055374 7562case "$target" in
1f53ca9a
AO
7563 x86_64-*mingw* | *-w64-mingw*)
7564 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7565 # however, use a symlink named 'mingw' in ${prefix} .
7566 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7567 ;;
7568 *-mingw*)
7569 # MinGW can't be handled as Cygwin above since it does not use newlib.
7570 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'
7571 ;;
45055374 7572esac
a0da8069 7573
5fbad20a
DD
7574# Allow the user to override the flags for
7575# our build compiler if desired.
c66487f8
NC
7576if test x"${build}" = x"${host}" ; then
7577 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7578 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7579 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7580fi
5fbad20a 7581
a0da8069
NN
7582# On Canadian crosses, we'll be searching the right directories for
7583# the previously-installed cross compiler, so don't bother to add
7584# flags for directories within the install tree of the compiler
7585# being built; programs in there won't even run.
7586if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7587 # Search for pre-installed headers if nothing else fits.
bba45b8b 7588 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
7589fi
7590
7591if test "x${use_gnu_ld}" = x &&
7592 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7593 # Arrange for us to find uninstalled linker scripts.
b00612cc 7594 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7595fi
7596
a481dbb7
DD
7597# Search for other target-specific linker scripts and such.
7598case "${target}" in
4e206d7e
DB
7599 mep*)
7600 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7601 ;;
7602esac
7603
a0da8069 7604# Makefile fragments.
3e707e94
PB
7605for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7606do
7607 eval fragval=\$$frag
7608 if test $fragval != /dev/null; then
7609 eval $frag=${srcdir}/$fragval
7610 fi
7611done
a0da8069
NN
7612
7613
7614
7615
7616
7617# Miscellanea: directories, flags, etc.
7618
7619
7620
7621
7622
7623
7624
3bbd2f8f 7625
6a9cf61e 7626# Build module lists & subconfigure args.
a0da8069
NN
7627
7628
7629
be01d343
PB
7630# Host module lists & subconfigure args.
7631
7632
7633
911e63d0 7634
be01d343
PB
7635# Target module lists & subconfigure args.
7636
7637
7638
7639# Build tools.
7640
7641
7642
1576798e
PB
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
be01d343
PB
7657# Generate default definitions for YACC, M4, LEX and other programs that run
7658# on the build machine. These are used if the Makefile can't locate these
7659# programs in objdir.
7660MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7661
7662for ac_prog in 'bison -y' byacc yacc
7663do
c6b750e1 7664 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7665set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667$as_echo_n "checking for $ac_word... " >&6; }
7668if test "${ac_cv_prog_YACC+set}" = set; then :
7669 $as_echo_n "(cached) " >&6
be01d343
PB
7670else
7671 if test -n "$YACC"; then
7672 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7673else
c6b750e1
DJ
7674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675for as_dir in $PATH
7676do
7677 IFS=$as_save_IFS
7678 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7681 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7683 break 2
7684 fi
7685done
81ecdfbb
RW
7686 done
7687IFS=$as_save_IFS
c6b750e1 7688
be01d343
PB
7689fi
7690fi
c6b750e1 7691YACC=$ac_cv_prog_YACC
be01d343 7692if test -n "$YACC"; then
81ecdfbb
RW
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7694$as_echo "$YACC" >&6; }
be01d343 7695else
81ecdfbb
RW
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697$as_echo "no" >&6; }
be01d343
PB
7698fi
7699
81ecdfbb 7700
c6b750e1 7701 test -n "$YACC" && break
be01d343
PB
7702done
7703test -n "$YACC" || YACC="$MISSING bison -y"
7704
7705case " $build_configdirs " in
7706 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7707esac
7708
7709for ac_prog in bison
7710do
c6b750e1 7711 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7712set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714$as_echo_n "checking for $ac_word... " >&6; }
7715if test "${ac_cv_prog_BISON+set}" = set; then :
7716 $as_echo_n "(cached) " >&6
be01d343
PB
7717else
7718 if test -n "$BISON"; then
7719 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7720else
c6b750e1
DJ
7721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722for as_dir in $PATH
7723do
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7728 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7730 break 2
7731 fi
7732done
81ecdfbb
RW
7733 done
7734IFS=$as_save_IFS
c6b750e1 7735
be01d343
PB
7736fi
7737fi
c6b750e1 7738BISON=$ac_cv_prog_BISON
be01d343 7739if test -n "$BISON"; then
81ecdfbb
RW
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7741$as_echo "$BISON" >&6; }
be01d343 7742else
81ecdfbb
RW
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744$as_echo "no" >&6; }
be01d343
PB
7745fi
7746
81ecdfbb 7747
c6b750e1 7748 test -n "$BISON" && break
be01d343
PB
7749done
7750test -n "$BISON" || BISON="$MISSING bison"
7751
7752case " $build_configdirs " in
7753 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7754esac
7755
7756for ac_prog in gm4 gnum4 m4
7757do
c6b750e1 7758 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7759set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761$as_echo_n "checking for $ac_word... " >&6; }
7762if test "${ac_cv_prog_M4+set}" = set; then :
7763 $as_echo_n "(cached) " >&6
be01d343
PB
7764else
7765 if test -n "$M4"; then
7766 ac_cv_prog_M4="$M4" # Let the user override the test.
7767else
c6b750e1
DJ
7768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769for as_dir in $PATH
7770do
7771 IFS=$as_save_IFS
7772 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7775 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7777 break 2
7778 fi
7779done
81ecdfbb
RW
7780 done
7781IFS=$as_save_IFS
c6b750e1 7782
be01d343
PB
7783fi
7784fi
c6b750e1 7785M4=$ac_cv_prog_M4
be01d343 7786if test -n "$M4"; then
81ecdfbb
RW
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7788$as_echo "$M4" >&6; }
be01d343 7789else
81ecdfbb
RW
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791$as_echo "no" >&6; }
be01d343
PB
7792fi
7793
81ecdfbb 7794
c6b750e1 7795 test -n "$M4" && break
be01d343
PB
7796done
7797test -n "$M4" || M4="$MISSING m4"
7798
7799case " $build_configdirs " in
7800 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7801esac
7802
7803for ac_prog in flex lex
7804do
c6b750e1 7805 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7806set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808$as_echo_n "checking for $ac_word... " >&6; }
7809if test "${ac_cv_prog_LEX+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
be01d343
PB
7811else
7812 if test -n "$LEX"; then
7813 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7814else
c6b750e1
DJ
7815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7822 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7824 break 2
7825 fi
7826done
81ecdfbb
RW
7827 done
7828IFS=$as_save_IFS
c6b750e1 7829
be01d343
PB
7830fi
7831fi
c6b750e1 7832LEX=$ac_cv_prog_LEX
be01d343 7833if test -n "$LEX"; then
81ecdfbb
RW
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7835$as_echo "$LEX" >&6; }
be01d343 7836else
81ecdfbb
RW
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838$as_echo "no" >&6; }
be01d343
PB
7839fi
7840
81ecdfbb 7841
c6b750e1 7842 test -n "$LEX" && break
be01d343
PB
7843done
7844test -n "$LEX" || LEX="$MISSING flex"
7845
7846case " $build_configdirs " in
7847 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7848 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7849esac
7850
7851for ac_prog in flex
7852do
c6b750e1 7853 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7854set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856$as_echo_n "checking for $ac_word... " >&6; }
7857if test "${ac_cv_prog_FLEX+set}" = set; then :
7858 $as_echo_n "(cached) " >&6
be01d343
PB
7859else
7860 if test -n "$FLEX"; then
7861 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7862else
c6b750e1
DJ
7863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864for as_dir in $PATH
7865do
7866 IFS=$as_save_IFS
7867 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7870 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7872 break 2
7873 fi
7874done
81ecdfbb
RW
7875 done
7876IFS=$as_save_IFS
c6b750e1 7877
be01d343
PB
7878fi
7879fi
c6b750e1 7880FLEX=$ac_cv_prog_FLEX
be01d343 7881if test -n "$FLEX"; then
81ecdfbb
RW
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7883$as_echo "$FLEX" >&6; }
be01d343 7884else
81ecdfbb
RW
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886$as_echo "no" >&6; }
be01d343
PB
7887fi
7888
81ecdfbb 7889
c6b750e1 7890 test -n "$FLEX" && break
be01d343
PB
7891done
7892test -n "$FLEX" || FLEX="$MISSING flex"
7893
7894case " $build_configdirs " in
7895 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7896esac
7897
7898for ac_prog in makeinfo
7899do
c6b750e1 7900 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7901set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903$as_echo_n "checking for $ac_word... " >&6; }
7904if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
be01d343
PB
7906else
7907 if test -n "$MAKEINFO"; then
7908 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7909else
c6b750e1
DJ
7910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911for as_dir in $PATH
7912do
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7917 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7919 break 2
7920 fi
7921done
81ecdfbb
RW
7922 done
7923IFS=$as_save_IFS
c6b750e1 7924
be01d343
PB
7925fi
7926fi
c6b750e1 7927MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7928if test -n "$MAKEINFO"; then
81ecdfbb
RW
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7930$as_echo "$MAKEINFO" >&6; }
be01d343 7931else
81ecdfbb
RW
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933$as_echo "no" >&6; }
be01d343
PB
7934fi
7935
81ecdfbb 7936
c6b750e1 7937 test -n "$MAKEINFO" && break
be01d343
PB
7938done
7939test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7940
7941case " $build_configdirs " in
7942 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7943 *)
7944
10ad8ef3 7945 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7946 # higher, else we use the "missing" dummy.
7947 if ${MAKEINFO} --version \
10ad8ef3 7948 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7949 :
7950 else
7951 MAKEINFO="$MISSING makeinfo"
7952 fi
7953 ;;
7954
7955esac
a0da8069 7956
be01d343 7957# FIXME: expect and dejagnu may become build tools?
a0da8069 7958
be01d343
PB
7959for ac_prog in expect
7960do
c6b750e1 7961 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7962set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964$as_echo_n "checking for $ac_word... " >&6; }
7965if test "${ac_cv_prog_EXPECT+set}" = set; then :
7966 $as_echo_n "(cached) " >&6
be01d343
PB
7967else
7968 if test -n "$EXPECT"; then
7969 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7970else
c6b750e1
DJ
7971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972for as_dir in $PATH
7973do
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7978 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7980 break 2
7981 fi
7982done
81ecdfbb
RW
7983 done
7984IFS=$as_save_IFS
c6b750e1 7985
be01d343
PB
7986fi
7987fi
c6b750e1 7988EXPECT=$ac_cv_prog_EXPECT
be01d343 7989if test -n "$EXPECT"; then
81ecdfbb
RW
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7991$as_echo "$EXPECT" >&6; }
be01d343 7992else
81ecdfbb
RW
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994$as_echo "no" >&6; }
be01d343 7995fi
a0da8069 7996
81ecdfbb 7997
c6b750e1 7998 test -n "$EXPECT" && break
be01d343
PB
7999done
8000test -n "$EXPECT" || EXPECT="expect"
a0da8069 8001
be01d343
PB
8002case " $configdirs " in
8003 *" expect "*)
8004 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8005 ;;
8006esac
a0da8069 8007
be01d343
PB
8008for ac_prog in runtest
8009do
c6b750e1 8010 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8011set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013$as_echo_n "checking for $ac_word... " >&6; }
8014if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8015 $as_echo_n "(cached) " >&6
be01d343
PB
8016else
8017 if test -n "$RUNTEST"; then
8018 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8019else
c6b750e1
DJ
8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8027 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8029 break 2
8030 fi
8031done
81ecdfbb
RW
8032 done
8033IFS=$as_save_IFS
c6b750e1 8034
be01d343
PB
8035fi
8036fi
c6b750e1 8037RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8038if test -n "$RUNTEST"; then
81ecdfbb
RW
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8040$as_echo "$RUNTEST" >&6; }
be01d343 8041else
81ecdfbb
RW
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043$as_echo "no" >&6; }
be01d343 8044fi
a0da8069 8045
81ecdfbb 8046
c6b750e1 8047 test -n "$RUNTEST" && break
be01d343
PB
8048done
8049test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8050
be01d343
PB
8051case " $configdirs " in
8052 *" dejagnu "*)
6b89cc21 8053 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8054 ;;
8055esac
a0da8069
NN
8056
8057
a0da8069 8058# Host tools.
859789af
AC
8059ncn_tool_prefix=
8060test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8061ncn_target_tool_prefix=
8062test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8063
9a819804
AO
8064
8065
8066if test -n "$AR"; then
8067 ac_cv_prog_AR=$AR
8068elif test -n "$ac_cv_prog_AR"; then
8069 AR=$ac_cv_prog_AR
8070fi
8071
8072if test -n "$ac_cv_prog_AR"; then
8073 for ncn_progname in ar; do
8074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8075set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077$as_echo_n "checking for $ac_word... " >&6; }
8078if test "${ac_cv_prog_AR+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
9a819804
AO
8080else
8081 if test -n "$AR"; then
8082 ac_cv_prog_AR="$AR" # Let the user override the test.
8083else
8084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085for as_dir in $PATH
8086do
8087 IFS=$as_save_IFS
8088 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8091 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8093 break 2
8094 fi
8095done
81ecdfbb
RW
8096 done
8097IFS=$as_save_IFS
9a819804
AO
8098
8099fi
8100fi
8101AR=$ac_cv_prog_AR
8102if test -n "$AR"; then
81ecdfbb
RW
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8104$as_echo "$AR" >&6; }
9a819804 8105else
81ecdfbb
RW
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107$as_echo "no" >&6; }
9a819804
AO
8108fi
8109
81ecdfbb 8110
9a819804
AO
8111 done
8112fi
8113
8114for ncn_progname in ar; do
05cbd757
PB
8115 if test -n "$ncn_tool_prefix"; then
8116 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8117set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119$as_echo_n "checking for $ac_word... " >&6; }
8120if test "${ac_cv_prog_AR+set}" = set; then :
8121 $as_echo_n "(cached) " >&6
859789af
AC
8122else
8123 if test -n "$AR"; then
8124 ac_cv_prog_AR="$AR" # Let the user override the test.
8125else
c6b750e1
DJ
8126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127for as_dir in $PATH
8128do
8129 IFS=$as_save_IFS
8130 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8133 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8135 break 2
8136 fi
8137done
81ecdfbb
RW
8138 done
8139IFS=$as_save_IFS
c6b750e1 8140
859789af
AC
8141fi
8142fi
c6b750e1 8143AR=$ac_cv_prog_AR
859789af 8144if test -n "$AR"; then
81ecdfbb
RW
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8146$as_echo "$AR" >&6; }
859789af 8147else
81ecdfbb
RW
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149$as_echo "no" >&6; }
859789af
AC
8150fi
8151
81ecdfbb 8152
05cbd757
PB
8153 fi
8154 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8156set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158$as_echo_n "checking for $ac_word... " >&6; }
8159if test "${ac_cv_prog_AR+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
859789af 8161else
05cbd757
PB
8162 if test -n "$AR"; then
8163 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8164else
c6b750e1
DJ
8165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166for as_dir in $PATH
8167do
8168 IFS=$as_save_IFS
8169 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8172 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8174 break 2
8175 fi
8176done
81ecdfbb
RW
8177 done
8178IFS=$as_save_IFS
c6b750e1 8179
859789af
AC
8180fi
8181fi
c6b750e1 8182AR=$ac_cv_prog_AR
05cbd757 8183if test -n "$AR"; then
81ecdfbb
RW
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8185$as_echo "$AR" >&6; }
859789af 8186else
81ecdfbb
RW
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188$as_echo "no" >&6; }
859789af 8189fi
c6b750e1 8190
81ecdfbb 8191
05cbd757
PB
8192 fi
8193 test -n "$ac_cv_prog_AR" && break
8194done
8195
8196if test -z "$ac_cv_prog_AR" ; then
8197 set dummy ar
8198 if test $build = $host ; then
8199 AR="$2"
859789af 8200 else
05cbd757 8201 AR="${ncn_tool_prefix}$2"
859789af 8202 fi
859789af
AC
8203fi
8204
9a819804
AO
8205
8206
8207if test -n "$AS"; then
8208 ac_cv_prog_AS=$AS
8209elif test -n "$ac_cv_prog_AS"; then
8210 AS=$ac_cv_prog_AS
8211fi
8212
8213if test -n "$ac_cv_prog_AS"; then
8214 for ncn_progname in as; do
8215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8216set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218$as_echo_n "checking for $ac_word... " >&6; }
8219if test "${ac_cv_prog_AS+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
9a819804
AO
8221else
8222 if test -n "$AS"; then
8223 ac_cv_prog_AS="$AS" # Let the user override the test.
8224else
8225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226for as_dir in $PATH
8227do
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8232 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8234 break 2
8235 fi
8236done
81ecdfbb
RW
8237 done
8238IFS=$as_save_IFS
9a819804
AO
8239
8240fi
8241fi
8242AS=$ac_cv_prog_AS
8243if test -n "$AS"; then
81ecdfbb
RW
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8245$as_echo "$AS" >&6; }
9a819804 8246else
81ecdfbb
RW
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248$as_echo "no" >&6; }
9a819804
AO
8249fi
8250
81ecdfbb 8251
9a819804
AO
8252 done
8253fi
8254
8255for ncn_progname in as; do
05cbd757
PB
8256 if test -n "$ncn_tool_prefix"; then
8257 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8258set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260$as_echo_n "checking for $ac_word... " >&6; }
8261if test "${ac_cv_prog_AS+set}" = set; then :
8262 $as_echo_n "(cached) " >&6
859789af
AC
8263else
8264 if test -n "$AS"; then
8265 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8266else
8267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268for as_dir in $PATH
8269do
8270 IFS=$as_save_IFS
8271 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8272 for ac_exec_ext in '' $ac_executable_extensions; do
8273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8274 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8276 break 2
8277 fi
8278done
81ecdfbb
RW
8279 done
8280IFS=$as_save_IFS
c6b750e1 8281
859789af
AC
8282fi
8283fi
c6b750e1 8284AS=$ac_cv_prog_AS
859789af 8285if test -n "$AS"; then
81ecdfbb
RW
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8287$as_echo "$AS" >&6; }
859789af 8288else
81ecdfbb
RW
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290$as_echo "no" >&6; }
859789af
AC
8291fi
8292
81ecdfbb 8293
05cbd757
PB
8294 fi
8295 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8297set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8299$as_echo_n "checking for $ac_word... " >&6; }
8300if test "${ac_cv_prog_AS+set}" = set; then :
8301 $as_echo_n "(cached) " >&6
859789af 8302else
05cbd757
PB
8303 if test -n "$AS"; then
8304 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8305else
c6b750e1
DJ
8306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307for as_dir in $PATH
8308do
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8313 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8315 break 2
8316 fi
8317done
81ecdfbb
RW
8318 done
8319IFS=$as_save_IFS
c6b750e1 8320
859789af
AC
8321fi
8322fi
c6b750e1 8323AS=$ac_cv_prog_AS
05cbd757 8324if test -n "$AS"; then
81ecdfbb
RW
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8326$as_echo "$AS" >&6; }
859789af 8327else
81ecdfbb
RW
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329$as_echo "no" >&6; }
859789af 8330fi
c6b750e1 8331
81ecdfbb 8332
05cbd757
PB
8333 fi
8334 test -n "$ac_cv_prog_AS" && break
8335done
8336
8337if test -z "$ac_cv_prog_AS" ; then
8338 set dummy as
8339 if test $build = $host ; then
8340 AS="$2"
859789af 8341 else
05cbd757 8342 AS="${ncn_tool_prefix}$2"
859789af 8343 fi
859789af
AC
8344fi
8345
9a819804
AO
8346
8347
8348if test -n "$DLLTOOL"; then
8349 ac_cv_prog_DLLTOOL=$DLLTOOL
8350elif test -n "$ac_cv_prog_DLLTOOL"; then
8351 DLLTOOL=$ac_cv_prog_DLLTOOL
8352fi
8353
8354if test -n "$ac_cv_prog_DLLTOOL"; then
8355 for ncn_progname in dlltool; do
8356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8357set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359$as_echo_n "checking for $ac_word... " >&6; }
8360if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8361 $as_echo_n "(cached) " >&6
9a819804
AO
8362else
8363 if test -n "$DLLTOOL"; then
8364 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8365else
8366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367for as_dir in $PATH
8368do
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8373 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8375 break 2
8376 fi
8377done
81ecdfbb
RW
8378 done
8379IFS=$as_save_IFS
9a819804
AO
8380
8381fi
8382fi
8383DLLTOOL=$ac_cv_prog_DLLTOOL
8384if test -n "$DLLTOOL"; then
81ecdfbb
RW
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8386$as_echo "$DLLTOOL" >&6; }
9a819804 8387else
81ecdfbb
RW
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389$as_echo "no" >&6; }
9a819804
AO
8390fi
8391
81ecdfbb 8392
9a819804
AO
8393 done
8394fi
8395
8396for ncn_progname in dlltool; do
05cbd757
PB
8397 if test -n "$ncn_tool_prefix"; then
8398 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8399set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8401$as_echo_n "checking for $ac_word... " >&6; }
8402if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8403 $as_echo_n "(cached) " >&6
859789af
AC
8404else
8405 if test -n "$DLLTOOL"; then
8406 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8407else
c6b750e1
DJ
8408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409for as_dir in $PATH
8410do
8411 IFS=$as_save_IFS
8412 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8415 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8417 break 2
8418 fi
8419done
81ecdfbb
RW
8420 done
8421IFS=$as_save_IFS
c6b750e1 8422
859789af
AC
8423fi
8424fi
c6b750e1 8425DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8426if test -n "$DLLTOOL"; then
81ecdfbb
RW
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8428$as_echo "$DLLTOOL" >&6; }
859789af 8429else
81ecdfbb
RW
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431$as_echo "no" >&6; }
859789af
AC
8432fi
8433
81ecdfbb 8434
05cbd757
PB
8435 fi
8436 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8438set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440$as_echo_n "checking for $ac_word... " >&6; }
8441if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8442 $as_echo_n "(cached) " >&6
859789af 8443else
05cbd757
PB
8444 if test -n "$DLLTOOL"; then
8445 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8446else
c6b750e1
DJ
8447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448for as_dir in $PATH
8449do
8450 IFS=$as_save_IFS
8451 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8454 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8456 break 2
8457 fi
8458done
81ecdfbb
RW
8459 done
8460IFS=$as_save_IFS
c6b750e1 8461
859789af
AC
8462fi
8463fi
c6b750e1 8464DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8465if test -n "$DLLTOOL"; then
81ecdfbb
RW
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8467$as_echo "$DLLTOOL" >&6; }
859789af 8468else
81ecdfbb
RW
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470$as_echo "no" >&6; }
859789af 8471fi
c6b750e1 8472
81ecdfbb 8473
05cbd757
PB
8474 fi
8475 test -n "$ac_cv_prog_DLLTOOL" && break
8476done
8477
8478if test -z "$ac_cv_prog_DLLTOOL" ; then
8479 set dummy dlltool
8480 if test $build = $host ; then
8481 DLLTOOL="$2"
859789af 8482 else
05cbd757 8483 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8484 fi
859789af
AC
8485fi
8486
9a819804
AO
8487
8488
8489if test -n "$LD"; then
8490 ac_cv_prog_LD=$LD
8491elif test -n "$ac_cv_prog_LD"; then
8492 LD=$ac_cv_prog_LD
8493fi
8494
8495if test -n "$ac_cv_prog_LD"; then
8496 for ncn_progname in ld; do
8497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8498set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500$as_echo_n "checking for $ac_word... " >&6; }
8501if test "${ac_cv_prog_LD+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
9a819804
AO
8503else
8504 if test -n "$LD"; then
8505 ac_cv_prog_LD="$LD" # Let the user override the test.
8506else
8507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508for as_dir in $PATH
8509do
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8514 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8516 break 2
8517 fi
8518done
81ecdfbb
RW
8519 done
8520IFS=$as_save_IFS
9a819804
AO
8521
8522fi
8523fi
8524LD=$ac_cv_prog_LD
8525if test -n "$LD"; then
81ecdfbb
RW
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8527$as_echo "$LD" >&6; }
9a819804 8528else
81ecdfbb
RW
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530$as_echo "no" >&6; }
9a819804
AO
8531fi
8532
81ecdfbb 8533
9a819804
AO
8534 done
8535fi
8536
8537for ncn_progname in ld; do
05cbd757
PB
8538 if test -n "$ncn_tool_prefix"; then
8539 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8540set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542$as_echo_n "checking for $ac_word... " >&6; }
8543if test "${ac_cv_prog_LD+set}" = set; then :
8544 $as_echo_n "(cached) " >&6
859789af
AC
8545else
8546 if test -n "$LD"; then
8547 ac_cv_prog_LD="$LD" # Let the user override the test.
8548else
c6b750e1
DJ
8549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550for as_dir in $PATH
8551do
8552 IFS=$as_save_IFS
8553 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8554 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8556 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8558 break 2
8559 fi
8560done
81ecdfbb
RW
8561 done
8562IFS=$as_save_IFS
c6b750e1 8563
859789af
AC
8564fi
8565fi
c6b750e1 8566LD=$ac_cv_prog_LD
859789af 8567if test -n "$LD"; then
81ecdfbb
RW
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8569$as_echo "$LD" >&6; }
859789af 8570else
81ecdfbb
RW
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572$as_echo "no" >&6; }
859789af
AC
8573fi
8574
81ecdfbb 8575
05cbd757
PB
8576 fi
8577 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8579set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581$as_echo_n "checking for $ac_word... " >&6; }
8582if test "${ac_cv_prog_LD+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
859789af 8584else
05cbd757
PB
8585 if test -n "$LD"; then
8586 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8587else
c6b750e1
DJ
8588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589for as_dir in $PATH
8590do
8591 IFS=$as_save_IFS
8592 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8593 for ac_exec_ext in '' $ac_executable_extensions; do
8594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8595 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8597 break 2
8598 fi
8599done
81ecdfbb
RW
8600 done
8601IFS=$as_save_IFS
c6b750e1 8602
859789af
AC
8603fi
8604fi
c6b750e1 8605LD=$ac_cv_prog_LD
05cbd757 8606if test -n "$LD"; then
81ecdfbb
RW
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8608$as_echo "$LD" >&6; }
859789af 8609else
81ecdfbb
RW
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611$as_echo "no" >&6; }
859789af 8612fi
c6b750e1 8613
81ecdfbb 8614
05cbd757
PB
8615 fi
8616 test -n "$ac_cv_prog_LD" && break
8617done
8618
8619if test -z "$ac_cv_prog_LD" ; then
8620 set dummy ld
8621 if test $build = $host ; then
8622 LD="$2"
859789af 8623 else
05cbd757 8624 LD="${ncn_tool_prefix}$2"
859789af 8625 fi
859789af
AC
8626fi
8627
9a819804
AO
8628
8629
8630if test -n "$LIPO"; then
8631 ac_cv_prog_LIPO=$LIPO
8632elif test -n "$ac_cv_prog_LIPO"; then
8633 LIPO=$ac_cv_prog_LIPO
8634fi
8635
8636if test -n "$ac_cv_prog_LIPO"; then
8637 for ncn_progname in lipo; do
8638 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8639set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641$as_echo_n "checking for $ac_word... " >&6; }
8642if test "${ac_cv_prog_LIPO+set}" = set; then :
8643 $as_echo_n "(cached) " >&6
9a819804
AO
8644else
8645 if test -n "$LIPO"; then
8646 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8647else
8648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649for as_dir in $PATH
8650do
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8655 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8657 break 2
8658 fi
8659done
81ecdfbb
RW
8660 done
8661IFS=$as_save_IFS
9a819804
AO
8662
8663fi
8664fi
8665LIPO=$ac_cv_prog_LIPO
8666if test -n "$LIPO"; then
81ecdfbb
RW
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8668$as_echo "$LIPO" >&6; }
9a819804 8669else
81ecdfbb
RW
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671$as_echo "no" >&6; }
9a819804
AO
8672fi
8673
81ecdfbb 8674
9a819804
AO
8675 done
8676fi
8677
8678for ncn_progname in lipo; do
be01d343
PB
8679 if test -n "$ncn_tool_prefix"; then
8680 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8681set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8683$as_echo_n "checking for $ac_word... " >&6; }
8684if test "${ac_cv_prog_LIPO+set}" = set; then :
8685 $as_echo_n "(cached) " >&6
be01d343
PB
8686else
8687 if test -n "$LIPO"; then
8688 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8689else
c6b750e1
DJ
8690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691for as_dir in $PATH
8692do
8693 IFS=$as_save_IFS
8694 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8695 for ac_exec_ext in '' $ac_executable_extensions; do
8696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8697 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8699 break 2
8700 fi
8701done
81ecdfbb
RW
8702 done
8703IFS=$as_save_IFS
c6b750e1 8704
be01d343
PB
8705fi
8706fi
c6b750e1 8707LIPO=$ac_cv_prog_LIPO
be01d343 8708if test -n "$LIPO"; then
81ecdfbb
RW
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8710$as_echo "$LIPO" >&6; }
be01d343 8711else
81ecdfbb
RW
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8713$as_echo "no" >&6; }
be01d343
PB
8714fi
8715
81ecdfbb 8716
be01d343
PB
8717 fi
8718 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8720set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722$as_echo_n "checking for $ac_word... " >&6; }
8723if test "${ac_cv_prog_LIPO+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
be01d343
PB
8725else
8726 if test -n "$LIPO"; then
8727 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8728else
c6b750e1
DJ
8729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730for as_dir in $PATH
8731do
8732 IFS=$as_save_IFS
8733 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8736 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8738 break 2
8739 fi
8740done
81ecdfbb
RW
8741 done
8742IFS=$as_save_IFS
c6b750e1 8743
be01d343
PB
8744fi
8745fi
c6b750e1 8746LIPO=$ac_cv_prog_LIPO
be01d343 8747if test -n "$LIPO"; then
81ecdfbb
RW
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8749$as_echo "$LIPO" >&6; }
be01d343 8750else
81ecdfbb
RW
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752$as_echo "no" >&6; }
be01d343 8753fi
c6b750e1 8754
81ecdfbb 8755
be01d343
PB
8756 fi
8757 test -n "$ac_cv_prog_LIPO" && break
8758done
8759
8760if test -z "$ac_cv_prog_LIPO" ; then
8761 set dummy lipo
8762 if test $build = $host ; then
8763 LIPO="$2"
8764 else
8765 LIPO="${ncn_tool_prefix}$2"
8766 fi
8767fi
8768
9a819804
AO
8769
8770
8771if test -n "$NM"; then
8772 ac_cv_prog_NM=$NM
8773elif test -n "$ac_cv_prog_NM"; then
8774 NM=$ac_cv_prog_NM
8775fi
8776
8777if test -n "$ac_cv_prog_NM"; then
8778 for ncn_progname in nm; do
8779 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8780set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782$as_echo_n "checking for $ac_word... " >&6; }
8783if test "${ac_cv_prog_NM+set}" = set; then :
8784 $as_echo_n "(cached) " >&6
859789af
AC
8785else
8786 if test -n "$NM"; then
8787 ac_cv_prog_NM="$NM" # Let the user override the test.
8788else
c6b750e1
DJ
8789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790for as_dir in $PATH
8791do
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8796 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8798 break 2
8799 fi
8800done
81ecdfbb
RW
8801 done
8802IFS=$as_save_IFS
c6b750e1 8803
859789af
AC
8804fi
8805fi
c6b750e1 8806NM=$ac_cv_prog_NM
859789af 8807if test -n "$NM"; then
81ecdfbb
RW
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8809$as_echo "$NM" >&6; }
859789af 8810else
81ecdfbb
RW
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
859789af
AC
8813fi
8814
81ecdfbb 8815
9a819804
AO
8816 done
8817fi
8818
8819for ncn_progname in nm; do
8820 if test -n "$ncn_tool_prefix"; then
8821 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8822set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8824$as_echo_n "checking for $ac_word... " >&6; }
8825if test "${ac_cv_prog_NM+set}" = set; then :
8826 $as_echo_n "(cached) " >&6
859789af 8827else
05cbd757
PB
8828 if test -n "$NM"; then
8829 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8830else
c6b750e1
DJ
8831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832for as_dir in $PATH
8833do
8834 IFS=$as_save_IFS
8835 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8836 for ac_exec_ext in '' $ac_executable_extensions; do
8837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8838 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8840 break 2
8841 fi
8842done
81ecdfbb
RW
8843 done
8844IFS=$as_save_IFS
c6b750e1 8845
859789af
AC
8846fi
8847fi
c6b750e1 8848NM=$ac_cv_prog_NM
05cbd757 8849if test -n "$NM"; then
81ecdfbb
RW
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8851$as_echo "$NM" >&6; }
859789af 8852else
81ecdfbb
RW
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854$as_echo "no" >&6; }
859789af 8855fi
c6b750e1 8856
81ecdfbb 8857
05cbd757 8858 fi
9a819804
AO
8859 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8861set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863$as_echo_n "checking for $ac_word... " >&6; }
8864if test "${ac_cv_prog_NM+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
9a819804
AO
8866else
8867 if test -n "$NM"; then
8868 ac_cv_prog_NM="$NM" # Let the user override the test.
8869else
8870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8871for as_dir in $PATH
8872do
8873 IFS=$as_save_IFS
8874 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8877 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8879 break 2
8880 fi
8881done
81ecdfbb
RW
8882 done
8883IFS=$as_save_IFS
9a819804
AO
8884
8885fi
8886fi
8887NM=$ac_cv_prog_NM
8888if test -n "$NM"; then
81ecdfbb
RW
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8890$as_echo "$NM" >&6; }
9a819804 8891else
81ecdfbb
RW
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893$as_echo "no" >&6; }
9a819804
AO
8894fi
8895
81ecdfbb 8896
9a819804
AO
8897 fi
8898 test -n "$ac_cv_prog_NM" && break
8899done
8900
8901if test -z "$ac_cv_prog_NM" ; then
8902 set dummy nm
8903 if test $build = $host ; then
8904 NM="$2"
8905 else
8906 NM="${ncn_tool_prefix}$2"
8907 fi
8908fi
8909
8910
8911
8912if test -n "$RANLIB"; then
8913 ac_cv_prog_RANLIB=$RANLIB
8914elif test -n "$ac_cv_prog_RANLIB"; then
8915 RANLIB=$ac_cv_prog_RANLIB
8916fi
8917
8918if test -n "$ac_cv_prog_RANLIB"; then
8919 for ncn_progname in ranlib; do
8920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8921set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923$as_echo_n "checking for $ac_word... " >&6; }
8924if test "${ac_cv_prog_RANLIB+set}" = set; then :
8925 $as_echo_n "(cached) " >&6
9a819804
AO
8926else
8927 if test -n "$RANLIB"; then
8928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8929else
8930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931for as_dir in $PATH
8932do
8933 IFS=$as_save_IFS
8934 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8935 for ac_exec_ext in '' $ac_executable_extensions; do
8936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8937 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8939 break 2
8940 fi
8941done
81ecdfbb
RW
8942 done
8943IFS=$as_save_IFS
9a819804
AO
8944
8945fi
8946fi
8947RANLIB=$ac_cv_prog_RANLIB
8948if test -n "$RANLIB"; then
81ecdfbb
RW
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8950$as_echo "$RANLIB" >&6; }
9a819804 8951else
81ecdfbb
RW
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953$as_echo "no" >&6; }
9a819804
AO
8954fi
8955
81ecdfbb 8956
9a819804
AO
8957 done
8958fi
859789af 8959
9a819804 8960for ncn_progname in ranlib; do
05cbd757
PB
8961 if test -n "$ncn_tool_prefix"; then
8962 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8963set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965$as_echo_n "checking for $ac_word... " >&6; }
8966if test "${ac_cv_prog_RANLIB+set}" = set; then :
8967 $as_echo_n "(cached) " >&6
859789af
AC
8968else
8969 if test -n "$RANLIB"; then
8970 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8971else
c6b750e1
DJ
8972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973for as_dir in $PATH
8974do
8975 IFS=$as_save_IFS
8976 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8977 for ac_exec_ext in '' $ac_executable_extensions; do
8978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8979 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8981 break 2
8982 fi
8983done
81ecdfbb
RW
8984 done
8985IFS=$as_save_IFS
c6b750e1 8986
859789af
AC
8987fi
8988fi
c6b750e1 8989RANLIB=$ac_cv_prog_RANLIB
859789af 8990if test -n "$RANLIB"; then
81ecdfbb
RW
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8992$as_echo "$RANLIB" >&6; }
859789af 8993else
81ecdfbb
RW
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995$as_echo "no" >&6; }
859789af
AC
8996fi
8997
81ecdfbb 8998
05cbd757
PB
8999 fi
9000 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9002set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9004$as_echo_n "checking for $ac_word... " >&6; }
9005if test "${ac_cv_prog_RANLIB+set}" = set; then :
9006 $as_echo_n "(cached) " >&6
859789af 9007else
05cbd757
PB
9008 if test -n "$RANLIB"; then
9009 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9010else
c6b750e1
DJ
9011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9012for as_dir in $PATH
9013do
9014 IFS=$as_save_IFS
9015 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9016 for ac_exec_ext in '' $ac_executable_extensions; do
9017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9018 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9020 break 2
9021 fi
9022done
81ecdfbb
RW
9023 done
9024IFS=$as_save_IFS
c6b750e1 9025
859789af
AC
9026fi
9027fi
c6b750e1 9028RANLIB=$ac_cv_prog_RANLIB
05cbd757 9029if test -n "$RANLIB"; then
81ecdfbb
RW
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9031$as_echo "$RANLIB" >&6; }
859789af 9032else
81ecdfbb
RW
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9034$as_echo "no" >&6; }
859789af 9035fi
c6b750e1 9036
81ecdfbb 9037
859789af 9038 fi
05cbd757
PB
9039 test -n "$ac_cv_prog_RANLIB" && break
9040done
9041
9042if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9043 RANLIB="true"
859789af
AC
9044fi
9045
9a819804
AO
9046
9047
9048if test -n "$STRIP"; then
9049 ac_cv_prog_STRIP=$STRIP
9050elif test -n "$ac_cv_prog_STRIP"; then
9051 STRIP=$ac_cv_prog_STRIP
9052fi
9053
9054if test -n "$ac_cv_prog_STRIP"; then
9055 for ncn_progname in strip; do
9056 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9057set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059$as_echo_n "checking for $ac_word... " >&6; }
9060if test "${ac_cv_prog_STRIP+set}" = set; then :
9061 $as_echo_n "(cached) " >&6
9a819804
AO
9062else
9063 if test -n "$STRIP"; then
9064 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9065else
9066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9067for as_dir in $PATH
9068do
9069 IFS=$as_save_IFS
9070 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9071 for ac_exec_ext in '' $ac_executable_extensions; do
9072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9073 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9075 break 2
9076 fi
9077done
81ecdfbb
RW
9078 done
9079IFS=$as_save_IFS
9a819804
AO
9080
9081fi
9082fi
9083STRIP=$ac_cv_prog_STRIP
9084if test -n "$STRIP"; then
81ecdfbb
RW
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9086$as_echo "$STRIP" >&6; }
9a819804 9087else
81ecdfbb
RW
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089$as_echo "no" >&6; }
9a819804
AO
9090fi
9091
81ecdfbb 9092
9a819804
AO
9093 done
9094fi
9095
9096for ncn_progname in strip; do
be01d343
PB
9097 if test -n "$ncn_tool_prefix"; then
9098 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9099set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9101$as_echo_n "checking for $ac_word... " >&6; }
9102if test "${ac_cv_prog_STRIP+set}" = set; then :
9103 $as_echo_n "(cached) " >&6
be01d343
PB
9104else
9105 if test -n "$STRIP"; then
9106 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9107else
c6b750e1
DJ
9108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9109for as_dir in $PATH
9110do
9111 IFS=$as_save_IFS
9112 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9113 for ac_exec_ext in '' $ac_executable_extensions; do
9114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9115 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9117 break 2
9118 fi
9119done
81ecdfbb
RW
9120 done
9121IFS=$as_save_IFS
c6b750e1 9122
be01d343
PB
9123fi
9124fi
c6b750e1 9125STRIP=$ac_cv_prog_STRIP
be01d343 9126if test -n "$STRIP"; then
81ecdfbb
RW
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9128$as_echo "$STRIP" >&6; }
be01d343 9129else
81ecdfbb
RW
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9131$as_echo "no" >&6; }
be01d343
PB
9132fi
9133
81ecdfbb 9134
be01d343
PB
9135 fi
9136 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9138set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9140$as_echo_n "checking for $ac_word... " >&6; }
9141if test "${ac_cv_prog_STRIP+set}" = set; then :
9142 $as_echo_n "(cached) " >&6
be01d343
PB
9143else
9144 if test -n "$STRIP"; then
9145 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9146else
c6b750e1
DJ
9147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148for as_dir in $PATH
9149do
9150 IFS=$as_save_IFS
9151 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9152 for ac_exec_ext in '' $ac_executable_extensions; do
9153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9154 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9156 break 2
9157 fi
9158done
81ecdfbb
RW
9159 done
9160IFS=$as_save_IFS
c6b750e1 9161
be01d343
PB
9162fi
9163fi
c6b750e1 9164STRIP=$ac_cv_prog_STRIP
be01d343 9165if test -n "$STRIP"; then
81ecdfbb
RW
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9167$as_echo "$STRIP" >&6; }
be01d343 9168else
81ecdfbb
RW
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9170$as_echo "no" >&6; }
be01d343 9171fi
c6b750e1 9172
81ecdfbb 9173
be01d343
PB
9174 fi
9175 test -n "$ac_cv_prog_STRIP" && break
9176done
9177
9178if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9179 STRIP="true"
be01d343
PB
9180fi
9181
9a819804
AO
9182
9183
9184if test -n "$WINDRES"; then
9185 ac_cv_prog_WINDRES=$WINDRES
9186elif test -n "$ac_cv_prog_WINDRES"; then
9187 WINDRES=$ac_cv_prog_WINDRES
9188fi
9189
9190if test -n "$ac_cv_prog_WINDRES"; then
9191 for ncn_progname in windres; do
9192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9193set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9195$as_echo_n "checking for $ac_word... " >&6; }
9196if test "${ac_cv_prog_WINDRES+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
9a819804
AO
9198else
9199 if test -n "$WINDRES"; then
9200 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9201else
9202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9203for as_dir in $PATH
9204do
9205 IFS=$as_save_IFS
9206 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9207 for ac_exec_ext in '' $ac_executable_extensions; do
9208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9209 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9211 break 2
9212 fi
9213done
81ecdfbb
RW
9214 done
9215IFS=$as_save_IFS
9a819804
AO
9216
9217fi
9218fi
9219WINDRES=$ac_cv_prog_WINDRES
9220if test -n "$WINDRES"; then
81ecdfbb
RW
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9222$as_echo "$WINDRES" >&6; }
9a819804 9223else
81ecdfbb
RW
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9225$as_echo "no" >&6; }
9a819804
AO
9226fi
9227
81ecdfbb 9228
9a819804
AO
9229 done
9230fi
9231
9232for ncn_progname in windres; do
05cbd757
PB
9233 if test -n "$ncn_tool_prefix"; then
9234 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9235set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9237$as_echo_n "checking for $ac_word... " >&6; }
9238if test "${ac_cv_prog_WINDRES+set}" = set; then :
9239 $as_echo_n "(cached) " >&6
859789af
AC
9240else
9241 if test -n "$WINDRES"; then
9242 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9243else
c6b750e1
DJ
9244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9245for as_dir in $PATH
9246do
9247 IFS=$as_save_IFS
9248 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9249 for ac_exec_ext in '' $ac_executable_extensions; do
9250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9251 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9253 break 2
9254 fi
9255done
81ecdfbb
RW
9256 done
9257IFS=$as_save_IFS
c6b750e1 9258
859789af
AC
9259fi
9260fi
c6b750e1 9261WINDRES=$ac_cv_prog_WINDRES
859789af 9262if test -n "$WINDRES"; then
81ecdfbb
RW
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9264$as_echo "$WINDRES" >&6; }
859789af 9265else
81ecdfbb
RW
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9267$as_echo "no" >&6; }
859789af
AC
9268fi
9269
81ecdfbb 9270
05cbd757
PB
9271 fi
9272 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9274set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9276$as_echo_n "checking for $ac_word... " >&6; }
9277if test "${ac_cv_prog_WINDRES+set}" = set; then :
9278 $as_echo_n "(cached) " >&6
859789af 9279else
05cbd757
PB
9280 if test -n "$WINDRES"; then
9281 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9282else
c6b750e1
DJ
9283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9284for as_dir in $PATH
9285do
9286 IFS=$as_save_IFS
9287 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9288 for ac_exec_ext in '' $ac_executable_extensions; do
9289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9290 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9292 break 2
9293 fi
9294done
81ecdfbb
RW
9295 done
9296IFS=$as_save_IFS
c6b750e1 9297
859789af
AC
9298fi
9299fi
c6b750e1 9300WINDRES=$ac_cv_prog_WINDRES
05cbd757 9301if test -n "$WINDRES"; then
81ecdfbb
RW
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9303$as_echo "$WINDRES" >&6; }
859789af 9304else
81ecdfbb
RW
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9306$as_echo "no" >&6; }
859789af 9307fi
c6b750e1 9308
81ecdfbb 9309
05cbd757
PB
9310 fi
9311 test -n "$ac_cv_prog_WINDRES" && break
9312done
9313
9314if test -z "$ac_cv_prog_WINDRES" ; then
9315 set dummy windres
9316 if test $build = $host ; then
9317 WINDRES="$2"
859789af 9318 else
05cbd757 9319 WINDRES="${ncn_tool_prefix}$2"
859789af 9320 fi
859789af
AC
9321fi
9322
9a819804
AO
9323
9324
0c24b341
NC
9325if test -n "$WINDMC"; then
9326 ac_cv_prog_WINDMC=$WINDMC
9327elif test -n "$ac_cv_prog_WINDMC"; then
9328 WINDMC=$ac_cv_prog_WINDMC
9329fi
9330
9331if test -n "$ac_cv_prog_WINDMC"; then
9332 for ncn_progname in windmc; do
9333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9334set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336$as_echo_n "checking for $ac_word... " >&6; }
9337if test "${ac_cv_prog_WINDMC+set}" = set; then :
9338 $as_echo_n "(cached) " >&6
0c24b341
NC
9339else
9340 if test -n "$WINDMC"; then
9341 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9342else
9343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344for as_dir in $PATH
9345do
9346 IFS=$as_save_IFS
9347 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9348 for ac_exec_ext in '' $ac_executable_extensions; do
9349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9350 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9352 break 2
9353 fi
9354done
81ecdfbb
RW
9355 done
9356IFS=$as_save_IFS
0c24b341
NC
9357
9358fi
9359fi
9360WINDMC=$ac_cv_prog_WINDMC
9361if test -n "$WINDMC"; then
81ecdfbb
RW
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9363$as_echo "$WINDMC" >&6; }
0c24b341 9364else
81ecdfbb
RW
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366$as_echo "no" >&6; }
0c24b341
NC
9367fi
9368
81ecdfbb 9369
0c24b341
NC
9370 done
9371fi
9372
9373for ncn_progname in windmc; do
9374 if test -n "$ncn_tool_prefix"; then
9375 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9376set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9378$as_echo_n "checking for $ac_word... " >&6; }
9379if test "${ac_cv_prog_WINDMC+set}" = set; then :
9380 $as_echo_n "(cached) " >&6
0c24b341
NC
9381else
9382 if test -n "$WINDMC"; then
9383 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9384else
9385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386for as_dir in $PATH
9387do
9388 IFS=$as_save_IFS
9389 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9390 for ac_exec_ext in '' $ac_executable_extensions; do
9391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9392 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9394 break 2
9395 fi
9396done
81ecdfbb
RW
9397 done
9398IFS=$as_save_IFS
0c24b341
NC
9399
9400fi
9401fi
9402WINDMC=$ac_cv_prog_WINDMC
9403if test -n "$WINDMC"; then
81ecdfbb
RW
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9405$as_echo "$WINDMC" >&6; }
0c24b341 9406else
81ecdfbb
RW
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9408$as_echo "no" >&6; }
0c24b341
NC
9409fi
9410
81ecdfbb 9411
0c24b341
NC
9412 fi
9413 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9415set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9417$as_echo_n "checking for $ac_word... " >&6; }
9418if test "${ac_cv_prog_WINDMC+set}" = set; then :
9419 $as_echo_n "(cached) " >&6
0c24b341
NC
9420else
9421 if test -n "$WINDMC"; then
9422 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9423else
9424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9425for as_dir in $PATH
9426do
9427 IFS=$as_save_IFS
9428 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9429 for ac_exec_ext in '' $ac_executable_extensions; do
9430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9431 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9433 break 2
9434 fi
9435done
81ecdfbb
RW
9436 done
9437IFS=$as_save_IFS
0c24b341
NC
9438
9439fi
9440fi
9441WINDMC=$ac_cv_prog_WINDMC
9442if test -n "$WINDMC"; then
81ecdfbb
RW
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9444$as_echo "$WINDMC" >&6; }
0c24b341 9445else
81ecdfbb
RW
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447$as_echo "no" >&6; }
0c24b341
NC
9448fi
9449
81ecdfbb 9450
0c24b341
NC
9451 fi
9452 test -n "$ac_cv_prog_WINDMC" && break
9453done
9454
9455if test -z "$ac_cv_prog_WINDMC" ; then
9456 set dummy windmc
9457 if test $build = $host ; then
9458 WINDMC="$2"
9459 else
9460 WINDMC="${ncn_tool_prefix}$2"
9461 fi
9462fi
9463
9464
9465
9a819804
AO
9466if test -n "$OBJCOPY"; then
9467 ac_cv_prog_OBJCOPY=$OBJCOPY
9468elif test -n "$ac_cv_prog_OBJCOPY"; then
9469 OBJCOPY=$ac_cv_prog_OBJCOPY
9470fi
9471
9472if test -n "$ac_cv_prog_OBJCOPY"; then
9473 for ncn_progname in objcopy; do
9474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9475set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9477$as_echo_n "checking for $ac_word... " >&6; }
9478if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9a819804
AO
9480else
9481 if test -n "$OBJCOPY"; then
9482 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9483else
9484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9485for as_dir in $PATH
9486do
9487 IFS=$as_save_IFS
9488 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9489 for ac_exec_ext in '' $ac_executable_extensions; do
9490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9491 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9493 break 2
9494 fi
9495done
81ecdfbb
RW
9496 done
9497IFS=$as_save_IFS
9a819804
AO
9498
9499fi
9500fi
9501OBJCOPY=$ac_cv_prog_OBJCOPY
9502if test -n "$OBJCOPY"; then
81ecdfbb
RW
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9504$as_echo "$OBJCOPY" >&6; }
9a819804 9505else
81ecdfbb
RW
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507$as_echo "no" >&6; }
9a819804
AO
9508fi
9509
81ecdfbb 9510
9a819804
AO
9511 done
9512fi
9513
9514for ncn_progname in objcopy; do
05cbd757
PB
9515 if test -n "$ncn_tool_prefix"; then
9516 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9517set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9519$as_echo_n "checking for $ac_word... " >&6; }
9520if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9521 $as_echo_n "(cached) " >&6
859789af
AC
9522else
9523 if test -n "$OBJCOPY"; then
9524 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9525else
c6b750e1
DJ
9526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9527for as_dir in $PATH
9528do
9529 IFS=$as_save_IFS
9530 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9531 for ac_exec_ext in '' $ac_executable_extensions; do
9532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9533 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9535 break 2
9536 fi
9537done
81ecdfbb
RW
9538 done
9539IFS=$as_save_IFS
c6b750e1 9540
859789af
AC
9541fi
9542fi
c6b750e1 9543OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9544if test -n "$OBJCOPY"; then
81ecdfbb
RW
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9546$as_echo "$OBJCOPY" >&6; }
859789af 9547else
81ecdfbb
RW
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9549$as_echo "no" >&6; }
859789af
AC
9550fi
9551
81ecdfbb 9552
05cbd757
PB
9553 fi
9554 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9556set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9558$as_echo_n "checking for $ac_word... " >&6; }
9559if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9560 $as_echo_n "(cached) " >&6
859789af 9561else
05cbd757
PB
9562 if test -n "$OBJCOPY"; then
9563 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9564else
c6b750e1
DJ
9565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9566for as_dir in $PATH
9567do
9568 IFS=$as_save_IFS
9569 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9570 for ac_exec_ext in '' $ac_executable_extensions; do
9571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9572 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9574 break 2
9575 fi
9576done
81ecdfbb
RW
9577 done
9578IFS=$as_save_IFS
c6b750e1 9579
859789af
AC
9580fi
9581fi
c6b750e1 9582OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9583if test -n "$OBJCOPY"; then
81ecdfbb
RW
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9585$as_echo "$OBJCOPY" >&6; }
859789af 9586else
81ecdfbb
RW
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588$as_echo "no" >&6; }
859789af 9589fi
c6b750e1 9590
81ecdfbb 9591
05cbd757
PB
9592 fi
9593 test -n "$ac_cv_prog_OBJCOPY" && break
9594done
9595
9596if test -z "$ac_cv_prog_OBJCOPY" ; then
9597 set dummy objcopy
9598 if test $build = $host ; then
9599 OBJCOPY="$2"
859789af 9600 else
05cbd757 9601 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9602 fi
859789af
AC
9603fi
9604
9a819804
AO
9605
9606
9607if test -n "$OBJDUMP"; then
9608 ac_cv_prog_OBJDUMP=$OBJDUMP
9609elif test -n "$ac_cv_prog_OBJDUMP"; then
9610 OBJDUMP=$ac_cv_prog_OBJDUMP
9611fi
9612
9613if test -n "$ac_cv_prog_OBJDUMP"; then
9614 for ncn_progname in objdump; do
9615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9616set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9618$as_echo_n "checking for $ac_word... " >&6; }
9619if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
9a819804
AO
9621else
9622 if test -n "$OBJDUMP"; then
9623 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9624else
9625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626for as_dir in $PATH
9627do
9628 IFS=$as_save_IFS
9629 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9632 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9634 break 2
9635 fi
9636done
81ecdfbb
RW
9637 done
9638IFS=$as_save_IFS
9a819804
AO
9639
9640fi
9641fi
9642OBJDUMP=$ac_cv_prog_OBJDUMP
9643if test -n "$OBJDUMP"; then
81ecdfbb
RW
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9645$as_echo "$OBJDUMP" >&6; }
9a819804 9646else
81ecdfbb
RW
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9648$as_echo "no" >&6; }
9a819804
AO
9649fi
9650
81ecdfbb 9651
9a819804
AO
9652 done
9653fi
9654
9655for ncn_progname in objdump; do
05cbd757
PB
9656 if test -n "$ncn_tool_prefix"; then
9657 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9658set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9660$as_echo_n "checking for $ac_word... " >&6; }
9661if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9662 $as_echo_n "(cached) " >&6
859789af
AC
9663else
9664 if test -n "$OBJDUMP"; then
9665 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9666else
c6b750e1
DJ
9667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9668for as_dir in $PATH
9669do
9670 IFS=$as_save_IFS
9671 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9672 for ac_exec_ext in '' $ac_executable_extensions; do
9673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9674 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9676 break 2
9677 fi
9678done
81ecdfbb
RW
9679 done
9680IFS=$as_save_IFS
c6b750e1 9681
859789af
AC
9682fi
9683fi
c6b750e1 9684OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9685if test -n "$OBJDUMP"; then
81ecdfbb
RW
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9687$as_echo "$OBJDUMP" >&6; }
859789af 9688else
81ecdfbb
RW
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9690$as_echo "no" >&6; }
859789af
AC
9691fi
9692
81ecdfbb 9693
05cbd757
PB
9694 fi
9695 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9697set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9699$as_echo_n "checking for $ac_word... " >&6; }
9700if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9701 $as_echo_n "(cached) " >&6
859789af 9702else
05cbd757
PB
9703 if test -n "$OBJDUMP"; then
9704 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9705else
c6b750e1
DJ
9706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9707for as_dir in $PATH
9708do
9709 IFS=$as_save_IFS
9710 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9711 for ac_exec_ext in '' $ac_executable_extensions; do
9712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9713 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9715 break 2
9716 fi
9717done
81ecdfbb
RW
9718 done
9719IFS=$as_save_IFS
c6b750e1 9720
859789af
AC
9721fi
9722fi
c6b750e1 9723OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9724if test -n "$OBJDUMP"; then
81ecdfbb
RW
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9726$as_echo "$OBJDUMP" >&6; }
859789af 9727else
81ecdfbb
RW
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729$as_echo "no" >&6; }
859789af 9730fi
c6b750e1 9731
81ecdfbb 9732
05cbd757
PB
9733 fi
9734 test -n "$ac_cv_prog_OBJDUMP" && break
9735done
9736
9737if test -z "$ac_cv_prog_OBJDUMP" ; then
9738 set dummy objdump
9739 if test $build = $host ; then
9740 OBJDUMP="$2"
859789af 9741 else
05cbd757 9742 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9743 fi
859789af
AC
9744fi
9745
a0da8069
NN
9746
9747
b121d7d4
DD
9748if test -n "$READELF"; then
9749 ac_cv_prog_READELF=$READELF
9750elif test -n "$ac_cv_prog_READELF"; then
9751 READELF=$ac_cv_prog_READELF
9752fi
9753
9754if test -n "$ac_cv_prog_READELF"; then
9755 for ncn_progname in readelf; do
9756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9757set dummy ${ncn_progname}; ac_word=$2
9758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759$as_echo_n "checking for $ac_word... " >&6; }
9760if test "${ac_cv_prog_READELF+set}" = set; then :
9761 $as_echo_n "(cached) " >&6
9762else
9763 if test -n "$READELF"; then
9764 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9765else
9766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767for as_dir in $PATH
9768do
9769 IFS=$as_save_IFS
9770 test -z "$as_dir" && as_dir=.
9771 for ac_exec_ext in '' $ac_executable_extensions; do
9772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9773 ac_cv_prog_READELF="${ncn_progname}"
9774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9775 break 2
9776 fi
9777done
9778 done
9779IFS=$as_save_IFS
9780
9781fi
9782fi
9783READELF=$ac_cv_prog_READELF
9784if test -n "$READELF"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9786$as_echo "$READELF" >&6; }
9787else
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789$as_echo "no" >&6; }
9790fi
9791
9792
9793 done
9794fi
9795
9796for ncn_progname in readelf; do
9797 if test -n "$ncn_tool_prefix"; then
9798 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9799set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9801$as_echo_n "checking for $ac_word... " >&6; }
9802if test "${ac_cv_prog_READELF+set}" = set; then :
9803 $as_echo_n "(cached) " >&6
9804else
9805 if test -n "$READELF"; then
9806 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9807else
9808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9809for as_dir in $PATH
9810do
9811 IFS=$as_save_IFS
9812 test -z "$as_dir" && as_dir=.
9813 for ac_exec_ext in '' $ac_executable_extensions; do
9814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9815 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9817 break 2
9818 fi
9819done
9820 done
9821IFS=$as_save_IFS
9822
9823fi
9824fi
9825READELF=$ac_cv_prog_READELF
9826if test -n "$READELF"; then
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9828$as_echo "$READELF" >&6; }
9829else
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9831$as_echo "no" >&6; }
9832fi
9833
9834
9835 fi
9836 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9837 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9838set dummy ${ncn_progname}; ac_word=$2
9839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9840$as_echo_n "checking for $ac_word... " >&6; }
9841if test "${ac_cv_prog_READELF+set}" = set; then :
9842 $as_echo_n "(cached) " >&6
9843else
9844 if test -n "$READELF"; then
9845 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9846else
9847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9848for as_dir in $PATH
9849do
9850 IFS=$as_save_IFS
9851 test -z "$as_dir" && as_dir=.
9852 for ac_exec_ext in '' $ac_executable_extensions; do
9853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9854 ac_cv_prog_READELF="${ncn_progname}"
9855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9856 break 2
9857 fi
9858done
9859 done
9860IFS=$as_save_IFS
9861
9862fi
9863fi
9864READELF=$ac_cv_prog_READELF
9865if test -n "$READELF"; then
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9867$as_echo "$READELF" >&6; }
9868else
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870$as_echo "no" >&6; }
9871fi
9872
9873
9874 fi
9875 test -n "$ac_cv_prog_READELF" && break
9876done
9877
9878if test -z "$ac_cv_prog_READELF" ; then
9879 set dummy readelf
9880 if test $build = $host ; then
9881 READELF="$2"
9882 else
9883 READELF="${ncn_tool_prefix}$2"
9884 fi
9885fi
9886
9887
9888
a0da8069
NN
9889
9890
9891
be01d343 9892# Target tools.
c6b750e1 9893
81ecdfbb
RW
9894# Check whether --with-build-time-tools was given.
9895if test "${with_build_time_tools+set}" = set; then :
9896 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9897 x/*) ;;
9898 *)
9899 with_build_time_tools=
81ecdfbb
RW
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9901$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9902 ;;
9903 esac
859789af 9904else
2429c060 9905 with_build_time_tools=
81ecdfbb
RW
9906fi
9907
859789af 9908
9a819804
AO
9909
9910
9911if test -n "$CC_FOR_TARGET"; then
9912 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9913elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9914 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9915fi
9916
9917if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9918 for ncn_progname in cc gcc; do
9919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9920set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9922$as_echo_n "checking for $ac_word... " >&6; }
9923if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9924 $as_echo_n "(cached) " >&6
9a819804
AO
9925else
9926 if test -n "$CC_FOR_TARGET"; then
9927 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9928else
9929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930for as_dir in $PATH
9931do
9932 IFS=$as_save_IFS
9933 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9934 for ac_exec_ext in '' $ac_executable_extensions; do
9935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9936 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9938 break 2
9939 fi
9940done
81ecdfbb
RW
9941 done
9942IFS=$as_save_IFS
9a819804
AO
9943
9944fi
9945fi
9946CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9947if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9949$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9950else
81ecdfbb
RW
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952$as_echo "no" >&6; }
9a819804
AO
9953fi
9954
81ecdfbb 9955
9a819804
AO
9956 done
9957fi
9958
9959if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9960 for ncn_progname in cc gcc; do
81ecdfbb
RW
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9962$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9963 if test -x $with_build_time_tools/${ncn_progname}; then
9964 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9966$as_echo "yes" >&6; }
cac3d6c4 9967 break
2429c060 9968 else
81ecdfbb
RW
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970$as_echo "no" >&6; }
cac3d6c4
CM
9971 fi
9972 done
55db4b87
PB
9973fi
9974
2429c060
PB
9975if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9976 for ncn_progname in cc gcc; do
9977 if test -n "$ncn_target_tool_prefix"; then
9978 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9979set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9981$as_echo_n "checking for $ac_word... " >&6; }
9982if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9983 $as_echo_n "(cached) " >&6
55db4b87
PB
9984else
9985 if test -n "$CC_FOR_TARGET"; then
9986 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9987else
c6b750e1
DJ
9988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989for as_dir in $PATH
9990do
9991 IFS=$as_save_IFS
9992 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9993 for ac_exec_ext in '' $ac_executable_extensions; do
9994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9995 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9997 break 2
9998 fi
9999done
81ecdfbb
RW
10000 done
10001IFS=$as_save_IFS
c6b750e1 10002
55db4b87
PB
10003fi
10004fi
c6b750e1 10005CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10006if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10008$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10009else
81ecdfbb
RW
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10011$as_echo "no" >&6; }
55db4b87
PB
10012fi
10013
81ecdfbb 10014
2429c060
PB
10015 fi
10016 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10017 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10018set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020$as_echo_n "checking for $ac_word... " >&6; }
10021if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10022 $as_echo_n "(cached) " >&6
55db4b87 10023else
05cbd757
PB
10024 if test -n "$CC_FOR_TARGET"; then
10025 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10026else
c6b750e1
DJ
10027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028for as_dir in $PATH
10029do
10030 IFS=$as_save_IFS
10031 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10032 for ac_exec_ext in '' $ac_executable_extensions; do
10033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10034 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10036 break 2
10037 fi
10038done
81ecdfbb
RW
10039 done
10040IFS=$as_save_IFS
c6b750e1 10041
55db4b87
PB
10042fi
10043fi
c6b750e1 10044CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10045if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10047$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10048else
81ecdfbb
RW
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10050$as_echo "no" >&6; }
55db4b87 10051fi
c6b750e1 10052
81ecdfbb 10053
2429c060
PB
10054 fi
10055 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10056 done
10057fi
c6b750e1 10058
05cbd757
PB
10059if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10060 set dummy cc gcc
10061 if test $build = $target ; then
10062 CC_FOR_TARGET="$2"
55db4b87 10063 else
05cbd757 10064 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10065 fi
d3f5afc4
MS
10066else
10067 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10068fi
10069
9a819804
AO
10070
10071
10072if test -n "$CXX_FOR_TARGET"; then
10073 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10074elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10075 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10076fi
10077
10078if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10079 for ncn_progname in c++ g++ cxx gxx; do
10080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10081set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10083$as_echo_n "checking for $ac_word... " >&6; }
10084if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10085 $as_echo_n "(cached) " >&6
9a819804
AO
10086else
10087 if test -n "$CXX_FOR_TARGET"; then
10088 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10089else
10090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091for as_dir in $PATH
10092do
10093 IFS=$as_save_IFS
10094 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10095 for ac_exec_ext in '' $ac_executable_extensions; do
10096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10097 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10099 break 2
10100 fi
10101done
81ecdfbb
RW
10102 done
10103IFS=$as_save_IFS
9a819804
AO
10104
10105fi
10106fi
10107CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10108if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10110$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10111else
81ecdfbb
RW
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113$as_echo "no" >&6; }
9a819804
AO
10114fi
10115
81ecdfbb 10116
9a819804
AO
10117 done
10118fi
10119
10120if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10121 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10123$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10124 if test -x $with_build_time_tools/${ncn_progname}; then
10125 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10127$as_echo "yes" >&6; }
2429c060
PB
10128 break
10129 else
81ecdfbb
RW
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10131$as_echo "no" >&6; }
2429c060
PB
10132 fi
10133 done
10134fi
10135
10136if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10137 for ncn_progname in c++ g++ cxx gxx; do
10138 if test -n "$ncn_target_tool_prefix"; then
10139 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10140set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10142$as_echo_n "checking for $ac_word... " >&6; }
10143if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10144 $as_echo_n "(cached) " >&6
55db4b87
PB
10145else
10146 if test -n "$CXX_FOR_TARGET"; then
10147 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10148else
c6b750e1
DJ
10149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10150for as_dir in $PATH
10151do
10152 IFS=$as_save_IFS
10153 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10154 for ac_exec_ext in '' $ac_executable_extensions; do
10155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10156 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10158 break 2
10159 fi
10160done
81ecdfbb
RW
10161 done
10162IFS=$as_save_IFS
c6b750e1 10163
55db4b87
PB
10164fi
10165fi
c6b750e1 10166CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10167if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10169$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10170else
81ecdfbb
RW
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10172$as_echo "no" >&6; }
55db4b87
PB
10173fi
10174
81ecdfbb 10175
2429c060
PB
10176 fi
10177 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10179set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10181$as_echo_n "checking for $ac_word... " >&6; }
10182if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10183 $as_echo_n "(cached) " >&6
55db4b87 10184else
05cbd757
PB
10185 if test -n "$CXX_FOR_TARGET"; then
10186 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10187else
c6b750e1
DJ
10188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10189for as_dir in $PATH
10190do
10191 IFS=$as_save_IFS
10192 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10193 for ac_exec_ext in '' $ac_executable_extensions; do
10194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10195 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10197 break 2
10198 fi
10199done
81ecdfbb
RW
10200 done
10201IFS=$as_save_IFS
c6b750e1 10202
55db4b87
PB
10203fi
10204fi
c6b750e1 10205CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10206if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10208$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10209else
81ecdfbb
RW
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211$as_echo "no" >&6; }
55db4b87 10212fi
c6b750e1 10213
81ecdfbb 10214
2429c060
PB
10215 fi
10216 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10217 done
10218fi
c6b750e1 10219
05cbd757
PB
10220if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10221 set dummy c++ g++ cxx gxx
10222 if test $build = $target ; then
10223 CXX_FOR_TARGET="$2"
55db4b87 10224 else
05cbd757 10225 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10226 fi
d3f5afc4
MS
10227else
10228 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10229fi
10230
9a819804
AO
10231
10232
10233if test -n "$GCC_FOR_TARGET"; then
10234 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10235elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10236 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10237fi
10238
10239if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10240 for ncn_progname in gcc; do
10241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10242set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10244$as_echo_n "checking for $ac_word... " >&6; }
10245if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10246 $as_echo_n "(cached) " >&6
9a819804
AO
10247else
10248 if test -n "$GCC_FOR_TARGET"; then
10249 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10250else
10251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252for as_dir in $PATH
10253do
10254 IFS=$as_save_IFS
10255 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10256 for ac_exec_ext in '' $ac_executable_extensions; do
10257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10258 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10260 break 2
10261 fi
10262done
81ecdfbb
RW
10263 done
10264IFS=$as_save_IFS
9a819804
AO
10265
10266fi
10267fi
10268GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10269if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10271$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10272else
81ecdfbb
RW
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10274$as_echo "no" >&6; }
9a819804
AO
10275fi
10276
81ecdfbb 10277
9a819804
AO
10278 done
10279fi
10280
10281if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10282 for ncn_progname in gcc; do
81ecdfbb
RW
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10284$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10285 if test -x $with_build_time_tools/${ncn_progname}; then
10286 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10288$as_echo "yes" >&6; }
2429c060
PB
10289 break
10290 else
81ecdfbb
RW
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292$as_echo "no" >&6; }
2429c060
PB
10293 fi
10294 done
10295fi
10296
10297if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10298 for ncn_progname in gcc; do
10299 if test -n "$ncn_target_tool_prefix"; then
10300 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10301set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10303$as_echo_n "checking for $ac_word... " >&6; }
10304if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10305 $as_echo_n "(cached) " >&6
859789af 10306else
2429c060
PB
10307 if test -n "$GCC_FOR_TARGET"; then
10308 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10309else
c6b750e1
DJ
10310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10311for as_dir in $PATH
10312do
10313 IFS=$as_save_IFS
10314 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10315 for ac_exec_ext in '' $ac_executable_extensions; do
10316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10317 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10319 break 2
10320 fi
10321done
81ecdfbb
RW
10322 done
10323IFS=$as_save_IFS
c6b750e1 10324
55db4b87
PB
10325fi
10326fi
c6b750e1 10327GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10328if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10330$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10331else
81ecdfbb
RW
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333$as_echo "no" >&6; }
55db4b87
PB
10334fi
10335
81ecdfbb 10336
2429c060
PB
10337 fi
10338 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10340set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10342$as_echo_n "checking for $ac_word... " >&6; }
10343if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10344 $as_echo_n "(cached) " >&6
55db4b87 10345else
05cbd757
PB
10346 if test -n "$GCC_FOR_TARGET"; then
10347 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10348else
c6b750e1
DJ
10349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350for as_dir in $PATH
10351do
10352 IFS=$as_save_IFS
10353 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10354 for ac_exec_ext in '' $ac_executable_extensions; do
10355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10356 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10358 break 2
10359 fi
10360done
81ecdfbb
RW
10361 done
10362IFS=$as_save_IFS
c6b750e1 10363
55db4b87
PB
10364fi
10365fi
c6b750e1 10366GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10367if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10369$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10370else
81ecdfbb
RW
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372$as_echo "no" >&6; }
55db4b87 10373fi
c6b750e1 10374
81ecdfbb 10375
2429c060
PB
10376 fi
10377 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10378 done
10379fi
c6b750e1 10380
05cbd757
PB
10381if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10382 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10383else
10384 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10385fi
10386
9a819804
AO
10387
10388
10389if test -n "$GCJ_FOR_TARGET"; then
10390 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10391elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10392 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10393fi
10394
10395if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10396 for ncn_progname in gcj; do
10397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10398set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10400$as_echo_n "checking for $ac_word... " >&6; }
10401if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10402 $as_echo_n "(cached) " >&6
9a819804
AO
10403else
10404 if test -n "$GCJ_FOR_TARGET"; then
10405 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10406else
10407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10408for as_dir in $PATH
10409do
10410 IFS=$as_save_IFS
10411 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10412 for ac_exec_ext in '' $ac_executable_extensions; do
10413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10414 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10416 break 2
10417 fi
10418done
81ecdfbb
RW
10419 done
10420IFS=$as_save_IFS
9a819804
AO
10421
10422fi
10423fi
10424GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10425if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10427$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10428else
81ecdfbb
RW
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10430$as_echo "no" >&6; }
9a819804
AO
10431fi
10432
81ecdfbb 10433
9a819804
AO
10434 done
10435fi
10436
10437if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10438 for ncn_progname in gcj; do
81ecdfbb
RW
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10440$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10441 if test -x $with_build_time_tools/${ncn_progname}; then
10442 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10444$as_echo "yes" >&6; }
2429c060
PB
10445 break
10446 else
81ecdfbb
RW
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10448$as_echo "no" >&6; }
2429c060
PB
10449 fi
10450 done
10451fi
10452
10453if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10454 for ncn_progname in gcj; do
10455 if test -n "$ncn_target_tool_prefix"; then
10456 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10457set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10459$as_echo_n "checking for $ac_word... " >&6; }
10460if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10461 $as_echo_n "(cached) " >&6
55db4b87
PB
10462else
10463 if test -n "$GCJ_FOR_TARGET"; then
10464 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10465else
c6b750e1
DJ
10466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10467for as_dir in $PATH
10468do
10469 IFS=$as_save_IFS
10470 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10471 for ac_exec_ext in '' $ac_executable_extensions; do
10472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10473 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10475 break 2
10476 fi
10477done
81ecdfbb
RW
10478 done
10479IFS=$as_save_IFS
c6b750e1 10480
55db4b87
PB
10481fi
10482fi
9a819804
AO
10483GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10484if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10486$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10487else
81ecdfbb
RW
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489$as_echo "no" >&6; }
9a819804
AO
10490fi
10491
81ecdfbb 10492
9a819804
AO
10493 fi
10494 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10495 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10496set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10498$as_echo_n "checking for $ac_word... " >&6; }
10499if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10500 $as_echo_n "(cached) " >&6
9a819804
AO
10501else
10502 if test -n "$GCJ_FOR_TARGET"; then
10503 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10504else
10505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10506for as_dir in $PATH
10507do
10508 IFS=$as_save_IFS
10509 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10510 for ac_exec_ext in '' $ac_executable_extensions; do
10511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10512 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10514 break 2
10515 fi
10516done
81ecdfbb
RW
10517 done
10518IFS=$as_save_IFS
9a819804
AO
10519
10520fi
10521fi
10522GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10523if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10525$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10526else
81ecdfbb
RW
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528$as_echo "no" >&6; }
9a819804
AO
10529fi
10530
81ecdfbb 10531
9a819804
AO
10532 fi
10533 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10534 done
10535fi
10536
10537if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10538 set dummy gcj
10539 if test $build = $target ; then
10540 GCJ_FOR_TARGET="$2"
10541 else
10542 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10543 fi
d3f5afc4
MS
10544else
10545 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10546fi
10547
10548
10549
10550if test -n "$GFORTRAN_FOR_TARGET"; then
10551 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10552elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10553 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10554fi
10555
9a819804
AO
10556if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10557 for ncn_progname in gfortran; do
10558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10559set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10561$as_echo_n "checking for $ac_word... " >&6; }
10562if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10563 $as_echo_n "(cached) " >&6
55db4b87 10564else
9a819804
AO
10565 if test -n "$GFORTRAN_FOR_TARGET"; then
10566 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10567else
c6b750e1
DJ
10568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569for as_dir in $PATH
10570do
10571 IFS=$as_save_IFS
10572 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10573 for ac_exec_ext in '' $ac_executable_extensions; do
10574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10575 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10577 break 2
10578 fi
10579done
81ecdfbb
RW
10580 done
10581IFS=$as_save_IFS
c6b750e1 10582
55db4b87
PB
10583fi
10584fi
9a819804
AO
10585GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10586if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10588$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10589else
81ecdfbb
RW
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591$as_echo "no" >&6; }
55db4b87 10592fi
c6b750e1 10593
81ecdfbb 10594
2429c060
PB
10595 done
10596fi
c6b750e1 10597
9a819804 10598if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10599 for ncn_progname in gfortran; do
81ecdfbb
RW
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10601$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10602 if test -x $with_build_time_tools/${ncn_progname}; then
10603 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10605$as_echo "yes" >&6; }
2429c060
PB
10606 break
10607 else
81ecdfbb
RW
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609$as_echo "no" >&6; }
2429c060
PB
10610 fi
10611 done
10612fi
10613
10614if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10615 for ncn_progname in gfortran; do
10616 if test -n "$ncn_target_tool_prefix"; then
10617 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10618set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10620$as_echo_n "checking for $ac_word... " >&6; }
10621if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10622 $as_echo_n "(cached) " >&6
55db4b87
PB
10623else
10624 if test -n "$GFORTRAN_FOR_TARGET"; then
10625 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10626else
c6b750e1
DJ
10627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10628for as_dir in $PATH
10629do
10630 IFS=$as_save_IFS
10631 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10632 for ac_exec_ext in '' $ac_executable_extensions; do
10633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10634 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10636 break 2
10637 fi
10638done
81ecdfbb
RW
10639 done
10640IFS=$as_save_IFS
c6b750e1 10641
55db4b87
PB
10642fi
10643fi
c6b750e1 10644GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10645if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10647$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10648else
81ecdfbb
RW
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10650$as_echo "no" >&6; }
55db4b87
PB
10651fi
10652
81ecdfbb 10653
2429c060
PB
10654 fi
10655 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10657set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10659$as_echo_n "checking for $ac_word... " >&6; }
10660if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10661 $as_echo_n "(cached) " >&6
55db4b87 10662else
05cbd757 10663 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10664 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10665else
10666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667for as_dir in $PATH
10668do
10669 IFS=$as_save_IFS
10670 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10671 for ac_exec_ext in '' $ac_executable_extensions; do
10672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10673 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10675 break 2
10676 fi
10677done
81ecdfbb
RW
10678 done
10679IFS=$as_save_IFS
c6b750e1 10680
55db4b87
PB
10681fi
10682fi
c6b750e1 10683GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10684if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10686$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10687else
81ecdfbb
RW
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10689$as_echo "no" >&6; }
55db4b87 10690fi
c6b750e1 10691
81ecdfbb 10692
2429c060
PB
10693 fi
10694 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10695 done
10696fi
c6b750e1 10697
05cbd757
PB
10698if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10699 set dummy gfortran
10700 if test $build = $target ; then
10701 GFORTRAN_FOR_TARGET="$2"
55db4b87 10702 else
05cbd757 10703 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10704 fi
d3f5afc4
MS
10705else
10706 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10707fi
10708
2429c060
PB
10709
10710
e552509b
ILT
10711if test -n "$GOC_FOR_TARGET"; then
10712 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10713elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10714 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10715fi
10716
10717if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10718 for ncn_progname in gccgo; do
10719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10720set dummy ${ncn_progname}; ac_word=$2
10721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10722$as_echo_n "checking for $ac_word... " >&6; }
10723if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10724 $as_echo_n "(cached) " >&6
10725else
10726 if test -n "$GOC_FOR_TARGET"; then
10727 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10728else
10729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730for as_dir in $PATH
10731do
10732 IFS=$as_save_IFS
10733 test -z "$as_dir" && as_dir=.
10734 for ac_exec_ext in '' $ac_executable_extensions; do
10735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10736 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10738 break 2
10739 fi
10740done
10741 done
10742IFS=$as_save_IFS
10743
10744fi
10745fi
10746GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10747if test -n "$GOC_FOR_TARGET"; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10749$as_echo "$GOC_FOR_TARGET" >&6; }
10750else
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752$as_echo "no" >&6; }
10753fi
10754
10755
10756 done
10757fi
10758
10759if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10760 for ncn_progname in gccgo; do
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10762$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10763 if test -x $with_build_time_tools/${ncn_progname}; then
10764 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10766$as_echo "yes" >&6; }
10767 break
10768 else
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770$as_echo "no" >&6; }
10771 fi
10772 done
10773fi
10774
10775if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10776 for ncn_progname in gccgo; do
10777 if test -n "$ncn_target_tool_prefix"; then
10778 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10779set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781$as_echo_n "checking for $ac_word... " >&6; }
10782if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10783 $as_echo_n "(cached) " >&6
10784else
10785 if test -n "$GOC_FOR_TARGET"; then
10786 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10787else
10788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789for as_dir in $PATH
10790do
10791 IFS=$as_save_IFS
10792 test -z "$as_dir" && as_dir=.
10793 for ac_exec_ext in '' $ac_executable_extensions; do
10794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10795 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10797 break 2
10798 fi
10799done
10800 done
10801IFS=$as_save_IFS
10802
10803fi
10804fi
10805GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10806if test -n "$GOC_FOR_TARGET"; then
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10808$as_echo "$GOC_FOR_TARGET" >&6; }
10809else
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811$as_echo "no" >&6; }
10812fi
10813
10814
10815 fi
10816 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10818set dummy ${ncn_progname}; ac_word=$2
10819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10820$as_echo_n "checking for $ac_word... " >&6; }
10821if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10822 $as_echo_n "(cached) " >&6
10823else
10824 if test -n "$GOC_FOR_TARGET"; then
10825 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10826else
10827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828for as_dir in $PATH
10829do
10830 IFS=$as_save_IFS
10831 test -z "$as_dir" && as_dir=.
10832 for ac_exec_ext in '' $ac_executable_extensions; do
10833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10834 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10836 break 2
10837 fi
10838done
10839 done
10840IFS=$as_save_IFS
10841
10842fi
10843fi
10844GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10845if test -n "$GOC_FOR_TARGET"; then
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10847$as_echo "$GOC_FOR_TARGET" >&6; }
10848else
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10850$as_echo "no" >&6; }
10851fi
10852
10853
10854 fi
10855 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10856 done
10857fi
10858
10859if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10860 set dummy gccgo
10861 if test $build = $target ; then
10862 GOC_FOR_TARGET="$2"
10863 else
10864 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10865 fi
10866else
10867 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10868fi
10869
10870
10871
2429c060
PB
10872cat > conftest.c << \EOF
10873#ifdef __GNUC__
10874 gcc_yay;
10875#endif
10876EOF
10877if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10878 have_gcc_for_target=yes
859789af 10879else
2429c060
PB
10880 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10881 have_gcc_for_target=no
859789af 10882fi
2429c060
PB
10883rm conftest.c
10884
10885
10886
859789af 10887
2429c060
PB
10888if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10889 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10891$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10892 if test -x $with_build_time_tools/ar; then
10893 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10894 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10896$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10897 else
81ecdfbb
RW
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899$as_echo "no" >&6; }
3a35eeb3 10900 fi
2429c060
PB
10901 elif test $build != $host && test $have_gcc_for_target = yes; then
10902 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10903 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10904 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10905 fi
2429c060 10906fi
c6b750e1 10907if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10908 # Extract the first word of "ar", so it can be a program name with args.
10909set dummy ar; ac_word=$2
81ecdfbb
RW
10910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10911$as_echo_n "checking for $ac_word... " >&6; }
10912if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10913 $as_echo_n "(cached) " >&6
859789af 10914else
c6b750e1
DJ
10915 case $AR_FOR_TARGET in
10916 [\\/]* | ?:[\\/]*)
2429c060
PB
10917 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10918 ;;
2429c060 10919 *)
c6b750e1
DJ
10920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921for as_dir in $gcc_cv_tool_dirs
10922do
10923 IFS=$as_save_IFS
10924 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10925 for ac_exec_ext in '' $ac_executable_extensions; do
10926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10927 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10929 break 2
10930 fi
10931done
81ecdfbb
RW
10932 done
10933IFS=$as_save_IFS
c6b750e1 10934
2429c060
PB
10935 ;;
10936esac
859789af 10937fi
c6b750e1 10938AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10939if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10941$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10942else
81ecdfbb
RW
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10944$as_echo "no" >&6; }
859789af 10945fi
05cbd757 10946
81ecdfbb 10947
2429c060
PB
10948fi
10949if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10950
10951
10952if test -n "$AR_FOR_TARGET"; then
10953 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10954elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10955 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10956fi
10957
10958if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10959 for ncn_progname in ar; do
10960 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10961set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10963$as_echo_n "checking for $ac_word... " >&6; }
10964if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10965 $as_echo_n "(cached) " >&6
9a819804
AO
10966else
10967 if test -n "$AR_FOR_TARGET"; then
10968 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10969else
10970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971for as_dir in $PATH
10972do
10973 IFS=$as_save_IFS
10974 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10975 for ac_exec_ext in '' $ac_executable_extensions; do
10976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10977 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10979 break 2
10980 fi
10981done
81ecdfbb
RW
10982 done
10983IFS=$as_save_IFS
9a819804
AO
10984
10985fi
10986fi
10987AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10988if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10990$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10991else
81ecdfbb
RW
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993$as_echo "no" >&6; }
9a819804
AO
10994fi
10995
81ecdfbb 10996
9a819804
AO
10997 done
10998fi
10999
11000if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11001 for ncn_progname in ar; do
81ecdfbb
RW
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11003$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11004 if test -x $with_build_time_tools/${ncn_progname}; then
11005 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11007$as_echo "yes" >&6; }
2429c060
PB
11008 break
11009 else
81ecdfbb
RW
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11011$as_echo "no" >&6; }
2429c060
PB
11012 fi
11013 done
859789af
AC
11014fi
11015
2429c060
PB
11016if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11017 for ncn_progname in ar; do
11018 if test -n "$ncn_target_tool_prefix"; then
11019 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11020set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11022$as_echo_n "checking for $ac_word... " >&6; }
11023if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11024 $as_echo_n "(cached) " >&6
7e0f7140 11025else
2429c060
PB
11026 if test -n "$AR_FOR_TARGET"; then
11027 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 11028else
c6b750e1
DJ
11029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030for as_dir in $PATH
11031do
11032 IFS=$as_save_IFS
11033 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11034 for ac_exec_ext in '' $ac_executable_extensions; do
11035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11036 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11038 break 2
11039 fi
11040done
81ecdfbb
RW
11041 done
11042IFS=$as_save_IFS
c6b750e1 11043
7e0f7140
GK
11044fi
11045fi
c6b750e1 11046AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11047if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11049$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11050else
81ecdfbb
RW
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052$as_echo "no" >&6; }
7e0f7140
GK
11053fi
11054
81ecdfbb 11055
2429c060
PB
11056 fi
11057 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11059set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11061$as_echo_n "checking for $ac_word... " >&6; }
11062if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11063 $as_echo_n "(cached) " >&6
7e0f7140 11064else
2429c060
PB
11065 if test -n "$AR_FOR_TARGET"; then
11066 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 11067else
c6b750e1
DJ
11068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11069for as_dir in $PATH
11070do
11071 IFS=$as_save_IFS
11072 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11073 for ac_exec_ext in '' $ac_executable_extensions; do
11074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11075 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11077 break 2
11078 fi
11079done
81ecdfbb
RW
11080 done
11081IFS=$as_save_IFS
c6b750e1 11082
7e0f7140
GK
11083fi
11084fi
c6b750e1 11085AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11086if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11088$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11089else
81ecdfbb
RW
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091$as_echo "no" >&6; }
7e0f7140 11092fi
c6b750e1 11093
81ecdfbb 11094
2429c060
PB
11095 fi
11096 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11097 done
11098fi
c6b750e1 11099
2429c060
PB
11100if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11101 set dummy ar
7e0f7140 11102 if test $build = $target ; then
2429c060 11103 AR_FOR_TARGET="$2"
7e0f7140 11104 else
2429c060 11105 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11106 fi
d3f5afc4
MS
11107else
11108 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11109fi
11110
3a35eeb3
PB
11111else
11112 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11113fi
11114
11115
11116
11117
11118if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11119 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11121$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11122 if test -x $with_build_time_tools/as; then
11123 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11124 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11126$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11127 else
81ecdfbb
RW
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129$as_echo "no" >&6; }
3a35eeb3 11130 fi
2429c060
PB
11131 elif test $build != $host && test $have_gcc_for_target = yes; then
11132 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11133 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11134 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11135 fi
11136fi
c6b750e1 11137if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11138 # Extract the first word of "as", so it can be a program name with args.
11139set dummy as; ac_word=$2
81ecdfbb
RW
11140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11141$as_echo_n "checking for $ac_word... " >&6; }
11142if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11143 $as_echo_n "(cached) " >&6
2429c060 11144else
c6b750e1
DJ
11145 case $AS_FOR_TARGET in
11146 [\\/]* | ?:[\\/]*)
2429c060
PB
11147 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11148 ;;
2429c060 11149 *)
c6b750e1
DJ
11150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151for as_dir in $gcc_cv_tool_dirs
11152do
11153 IFS=$as_save_IFS
11154 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11155 for ac_exec_ext in '' $ac_executable_extensions; do
11156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11157 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11159 break 2
11160 fi
11161done
81ecdfbb
RW
11162 done
11163IFS=$as_save_IFS
c6b750e1 11164
2429c060
PB
11165 ;;
11166esac
11167fi
c6b750e1 11168AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11169if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11171$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11172else
81ecdfbb
RW
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174$as_echo "no" >&6; }
2429c060
PB
11175fi
11176
81ecdfbb 11177
2429c060
PB
11178fi
11179if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11180
11181
11182if test -n "$AS_FOR_TARGET"; then
11183 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11184elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11185 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11186fi
11187
11188if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11189 for ncn_progname in as; do
11190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11191set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11193$as_echo_n "checking for $ac_word... " >&6; }
11194if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11195 $as_echo_n "(cached) " >&6
9a819804
AO
11196else
11197 if test -n "$AS_FOR_TARGET"; then
11198 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11199else
11200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201for as_dir in $PATH
11202do
11203 IFS=$as_save_IFS
11204 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11205 for ac_exec_ext in '' $ac_executable_extensions; do
11206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11207 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11209 break 2
11210 fi
11211done
81ecdfbb
RW
11212 done
11213IFS=$as_save_IFS
9a819804
AO
11214
11215fi
11216fi
11217AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11218if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11220$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11221else
81ecdfbb
RW
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223$as_echo "no" >&6; }
9a819804
AO
11224fi
11225
81ecdfbb 11226
9a819804
AO
11227 done
11228fi
11229
11230if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11231 for ncn_progname in as; do
81ecdfbb
RW
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11233$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11234 if test -x $with_build_time_tools/${ncn_progname}; then
11235 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11237$as_echo "yes" >&6; }
2429c060
PB
11238 break
11239 else
81ecdfbb
RW
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11241$as_echo "no" >&6; }
2429c060
PB
11242 fi
11243 done
11244fi
11245
11246if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11247 for ncn_progname in as; do
11248 if test -n "$ncn_target_tool_prefix"; then
11249 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11250set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252$as_echo_n "checking for $ac_word... " >&6; }
11253if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11254 $as_echo_n "(cached) " >&6
2429c060
PB
11255else
11256 if test -n "$AS_FOR_TARGET"; then
11257 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11258else
c6b750e1
DJ
11259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260for as_dir in $PATH
11261do
11262 IFS=$as_save_IFS
11263 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11264 for ac_exec_ext in '' $ac_executable_extensions; do
11265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11266 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11268 break 2
11269 fi
11270done
81ecdfbb
RW
11271 done
11272IFS=$as_save_IFS
c6b750e1 11273
2429c060
PB
11274fi
11275fi
c6b750e1 11276AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11277if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11279$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11280else
81ecdfbb
RW
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282$as_echo "no" >&6; }
2429c060
PB
11283fi
11284
81ecdfbb 11285
2429c060
PB
11286 fi
11287 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11289set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11291$as_echo_n "checking for $ac_word... " >&6; }
11292if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11293 $as_echo_n "(cached) " >&6
2429c060
PB
11294else
11295 if test -n "$AS_FOR_TARGET"; then
11296 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11297else
c6b750e1
DJ
11298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11299for as_dir in $PATH
11300do
11301 IFS=$as_save_IFS
11302 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11303 for ac_exec_ext in '' $ac_executable_extensions; do
11304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11305 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11307 break 2
11308 fi
11309done
81ecdfbb
RW
11310 done
11311IFS=$as_save_IFS
c6b750e1 11312
2429c060
PB
11313fi
11314fi
c6b750e1 11315AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11316if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11318$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11319else
81ecdfbb
RW
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321$as_echo "no" >&6; }
2429c060 11322fi
c6b750e1 11323
81ecdfbb 11324
2429c060
PB
11325 fi
11326 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11327 done
11328fi
c6b750e1 11329
2429c060
PB
11330if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11331 set dummy as
11332 if test $build = $target ; then
11333 AS_FOR_TARGET="$2"
11334 else
11335 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11336 fi
d3f5afc4
MS
11337else
11338 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11339fi
11340
3a35eeb3
PB
11341else
11342 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11343fi
11344
11345
11346
11347
11348if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11349 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11351$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11352 if test -x $with_build_time_tools/dlltool; then
11353 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11354 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11356$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11357 else
81ecdfbb
RW
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359$as_echo "no" >&6; }
3a35eeb3 11360 fi
2429c060
PB
11361 elif test $build != $host && test $have_gcc_for_target = yes; then
11362 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11363 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11364 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11365 fi
11366fi
c6b750e1 11367if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11368 # Extract the first word of "dlltool", so it can be a program name with args.
11369set dummy dlltool; ac_word=$2
81ecdfbb
RW
11370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11371$as_echo_n "checking for $ac_word... " >&6; }
11372if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11373 $as_echo_n "(cached) " >&6
2429c060 11374else
c6b750e1
DJ
11375 case $DLLTOOL_FOR_TARGET in
11376 [\\/]* | ?:[\\/]*)
2429c060
PB
11377 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11378 ;;
2429c060 11379 *)
c6b750e1
DJ
11380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381for as_dir in $gcc_cv_tool_dirs
11382do
11383 IFS=$as_save_IFS
11384 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11385 for ac_exec_ext in '' $ac_executable_extensions; do
11386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11387 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11389 break 2
11390 fi
11391done
81ecdfbb
RW
11392 done
11393IFS=$as_save_IFS
c6b750e1 11394
2429c060
PB
11395 ;;
11396esac
11397fi
c6b750e1 11398DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11399if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11401$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11402else
81ecdfbb
RW
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404$as_echo "no" >&6; }
2429c060
PB
11405fi
11406
81ecdfbb 11407
2429c060
PB
11408fi
11409if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11410
11411
11412if test -n "$DLLTOOL_FOR_TARGET"; then
11413 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11414elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11415 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11416fi
11417
11418if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11419 for ncn_progname in dlltool; do
11420 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11421set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11423$as_echo_n "checking for $ac_word... " >&6; }
11424if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11425 $as_echo_n "(cached) " >&6
9a819804
AO
11426else
11427 if test -n "$DLLTOOL_FOR_TARGET"; then
11428 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11429else
11430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11431for as_dir in $PATH
11432do
11433 IFS=$as_save_IFS
11434 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11435 for ac_exec_ext in '' $ac_executable_extensions; do
11436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11437 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11439 break 2
11440 fi
11441done
81ecdfbb
RW
11442 done
11443IFS=$as_save_IFS
9a819804
AO
11444
11445fi
11446fi
11447DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11448if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11450$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11451else
81ecdfbb
RW
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453$as_echo "no" >&6; }
9a819804
AO
11454fi
11455
81ecdfbb 11456
9a819804
AO
11457 done
11458fi
11459
11460if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11461 for ncn_progname in dlltool; do
81ecdfbb
RW
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11463$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11464 if test -x $with_build_time_tools/${ncn_progname}; then
11465 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11467$as_echo "yes" >&6; }
2429c060
PB
11468 break
11469 else
81ecdfbb
RW
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471$as_echo "no" >&6; }
2429c060
PB
11472 fi
11473 done
11474fi
11475
11476if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11477 for ncn_progname in dlltool; do
11478 if test -n "$ncn_target_tool_prefix"; then
11479 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11480set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11482$as_echo_n "checking for $ac_word... " >&6; }
11483if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11484 $as_echo_n "(cached) " >&6
2429c060
PB
11485else
11486 if test -n "$DLLTOOL_FOR_TARGET"; then
11487 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11488else
c6b750e1
DJ
11489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490for as_dir in $PATH
11491do
11492 IFS=$as_save_IFS
11493 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11494 for ac_exec_ext in '' $ac_executable_extensions; do
11495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11496 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11498 break 2
11499 fi
11500done
81ecdfbb
RW
11501 done
11502IFS=$as_save_IFS
c6b750e1 11503
2429c060
PB
11504fi
11505fi
c6b750e1 11506DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11507if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11509$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11510else
81ecdfbb
RW
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512$as_echo "no" >&6; }
2429c060
PB
11513fi
11514
81ecdfbb 11515
2429c060
PB
11516 fi
11517 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11519set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11521$as_echo_n "checking for $ac_word... " >&6; }
11522if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11523 $as_echo_n "(cached) " >&6
2429c060
PB
11524else
11525 if test -n "$DLLTOOL_FOR_TARGET"; then
11526 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11527else
c6b750e1
DJ
11528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11529for as_dir in $PATH
11530do
11531 IFS=$as_save_IFS
11532 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11533 for ac_exec_ext in '' $ac_executable_extensions; do
11534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11535 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11537 break 2
11538 fi
11539done
81ecdfbb
RW
11540 done
11541IFS=$as_save_IFS
c6b750e1 11542
2429c060
PB
11543fi
11544fi
c6b750e1 11545DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11546if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11548$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11549else
81ecdfbb
RW
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551$as_echo "no" >&6; }
2429c060 11552fi
c6b750e1 11553
81ecdfbb 11554
2429c060
PB
11555 fi
11556 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11557 done
11558fi
c6b750e1 11559
2429c060
PB
11560if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11561 set dummy dlltool
11562 if test $build = $target ; then
11563 DLLTOOL_FOR_TARGET="$2"
11564 else
11565 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11566 fi
d3f5afc4
MS
11567else
11568 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11569fi
11570
3a35eeb3
PB
11571else
11572 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11573fi
11574
11575
11576
11577
11578if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11579 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11581$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11582 if test -x $with_build_time_tools/ld; then
11583 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11584 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11586$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11587 else
81ecdfbb
RW
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11589$as_echo "no" >&6; }
3a35eeb3 11590 fi
2429c060
PB
11591 elif test $build != $host && test $have_gcc_for_target = yes; then
11592 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11593 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11594 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11595 fi
11596fi
c6b750e1 11597if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11598 # Extract the first word of "ld", so it can be a program name with args.
11599set dummy ld; ac_word=$2
81ecdfbb
RW
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601$as_echo_n "checking for $ac_word... " >&6; }
11602if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11603 $as_echo_n "(cached) " >&6
2429c060 11604else
c6b750e1
DJ
11605 case $LD_FOR_TARGET in
11606 [\\/]* | ?:[\\/]*)
2429c060
PB
11607 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11608 ;;
2429c060 11609 *)
c6b750e1
DJ
11610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611for as_dir in $gcc_cv_tool_dirs
11612do
11613 IFS=$as_save_IFS
11614 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11615 for ac_exec_ext in '' $ac_executable_extensions; do
11616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11617 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11619 break 2
11620 fi
11621done
81ecdfbb
RW
11622 done
11623IFS=$as_save_IFS
c6b750e1 11624
2429c060
PB
11625 ;;
11626esac
11627fi
c6b750e1 11628LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11629if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11631$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11632else
81ecdfbb
RW
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634$as_echo "no" >&6; }
2429c060
PB
11635fi
11636
81ecdfbb 11637
2429c060
PB
11638fi
11639if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11640
11641
11642if test -n "$LD_FOR_TARGET"; then
11643 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11644elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11645 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11646fi
11647
11648if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11649 for ncn_progname in ld; do
11650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11651set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11653$as_echo_n "checking for $ac_word... " >&6; }
11654if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11655 $as_echo_n "(cached) " >&6
9a819804
AO
11656else
11657 if test -n "$LD_FOR_TARGET"; then
11658 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11659else
11660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661for as_dir in $PATH
11662do
11663 IFS=$as_save_IFS
11664 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11665 for ac_exec_ext in '' $ac_executable_extensions; do
11666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11667 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11669 break 2
11670 fi
11671done
81ecdfbb
RW
11672 done
11673IFS=$as_save_IFS
9a819804
AO
11674
11675fi
11676fi
11677LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11678if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11680$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11681else
81ecdfbb
RW
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683$as_echo "no" >&6; }
9a819804
AO
11684fi
11685
81ecdfbb 11686
9a819804
AO
11687 done
11688fi
11689
11690if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11691 for ncn_progname in ld; do
81ecdfbb
RW
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11693$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11694 if test -x $with_build_time_tools/${ncn_progname}; then
11695 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11697$as_echo "yes" >&6; }
2429c060
PB
11698 break
11699 else
81ecdfbb
RW
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701$as_echo "no" >&6; }
2429c060
PB
11702 fi
11703 done
11704fi
11705
11706if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11707 for ncn_progname in ld; do
11708 if test -n "$ncn_target_tool_prefix"; then
11709 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11710set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712$as_echo_n "checking for $ac_word... " >&6; }
11713if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11714 $as_echo_n "(cached) " >&6
2429c060
PB
11715else
11716 if test -n "$LD_FOR_TARGET"; then
11717 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11718else
c6b750e1
DJ
11719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720for as_dir in $PATH
11721do
11722 IFS=$as_save_IFS
11723 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11726 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11728 break 2
11729 fi
11730done
81ecdfbb
RW
11731 done
11732IFS=$as_save_IFS
c6b750e1 11733
2429c060
PB
11734fi
11735fi
c6b750e1 11736LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11737if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11739$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11740else
81ecdfbb
RW
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742$as_echo "no" >&6; }
2429c060
PB
11743fi
11744
81ecdfbb 11745
2429c060
PB
11746 fi
11747 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11749set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11751$as_echo_n "checking for $ac_word... " >&6; }
11752if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11753 $as_echo_n "(cached) " >&6
2429c060
PB
11754else
11755 if test -n "$LD_FOR_TARGET"; then
11756 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11757else
c6b750e1
DJ
11758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11759for as_dir in $PATH
11760do
11761 IFS=$as_save_IFS
11762 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11763 for ac_exec_ext in '' $ac_executable_extensions; do
11764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11765 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11767 break 2
11768 fi
11769done
81ecdfbb
RW
11770 done
11771IFS=$as_save_IFS
c6b750e1 11772
2429c060
PB
11773fi
11774fi
c6b750e1 11775LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11776if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11778$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11779else
81ecdfbb
RW
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781$as_echo "no" >&6; }
2429c060 11782fi
c6b750e1 11783
81ecdfbb 11784
2429c060
PB
11785 fi
11786 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11787 done
11788fi
c6b750e1 11789
2429c060
PB
11790if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11791 set dummy ld
11792 if test $build = $target ; then
11793 LD_FOR_TARGET="$2"
11794 else
11795 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11796 fi
d3f5afc4
MS
11797else
11798 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11799fi
11800
3a35eeb3
PB
11801else
11802 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11803fi
11804
11805
11806
11807
11808if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11809 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11811$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11812 if test -x $with_build_time_tools/lipo; then
11813 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11814 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11816$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11817 else
81ecdfbb
RW
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819$as_echo "no" >&6; }
3a35eeb3 11820 fi
2429c060
PB
11821 elif test $build != $host && test $have_gcc_for_target = yes; then
11822 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11823 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11824 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11825 fi
11826fi
9a819804
AO
11827if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11828 # Extract the first word of "lipo", so it can be a program name with args.
11829set dummy lipo; ac_word=$2
81ecdfbb
RW
11830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11831$as_echo_n "checking for $ac_word... " >&6; }
11832if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11833 $as_echo_n "(cached) " >&6
9a819804
AO
11834else
11835 case $LIPO_FOR_TARGET in
11836 [\\/]* | ?:[\\/]*)
11837 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11838 ;;
11839 *)
11840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841for as_dir in $gcc_cv_tool_dirs
11842do
11843 IFS=$as_save_IFS
11844 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11845 for ac_exec_ext in '' $ac_executable_extensions; do
11846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11847 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11849 break 2
11850 fi
11851done
81ecdfbb
RW
11852 done
11853IFS=$as_save_IFS
9a819804
AO
11854
11855 ;;
11856esac
11857fi
11858LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11859if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11861$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11862else
81ecdfbb
RW
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864$as_echo "no" >&6; }
9a819804
AO
11865fi
11866
81ecdfbb 11867
9a819804
AO
11868fi
11869if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11870
11871
11872if test -n "$LIPO_FOR_TARGET"; then
11873 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11874elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11875 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11876fi
11877
11878if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11879 for ncn_progname in lipo; do
11880 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11881set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11883$as_echo_n "checking for $ac_word... " >&6; }
11884if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11885 $as_echo_n "(cached) " >&6
2429c060 11886else
9a819804
AO
11887 if test -n "$LIPO_FOR_TARGET"; then
11888 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11889else
11890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891for as_dir in $PATH
c6b750e1
DJ
11892do
11893 IFS=$as_save_IFS
11894 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11895 for ac_exec_ext in '' $ac_executable_extensions; do
11896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11897 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11899 break 2
11900 fi
11901done
81ecdfbb
RW
11902 done
11903IFS=$as_save_IFS
c6b750e1 11904
2429c060 11905fi
9a819804
AO
11906fi
11907LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11908if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11910$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11911else
81ecdfbb
RW
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913$as_echo "no" >&6; }
2429c060
PB
11914fi
11915
81ecdfbb 11916
9a819804 11917 done
2429c060 11918fi
9a819804
AO
11919
11920if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11921 for ncn_progname in lipo; do
81ecdfbb
RW
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11923$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11924 if test -x $with_build_time_tools/${ncn_progname}; then
11925 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11927$as_echo "yes" >&6; }
2429c060
PB
11928 break
11929 else
81ecdfbb
RW
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931$as_echo "no" >&6; }
2429c060
PB
11932 fi
11933 done
11934fi
11935
11936if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11937 for ncn_progname in lipo; do
11938 if test -n "$ncn_target_tool_prefix"; then
11939 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11940set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942$as_echo_n "checking for $ac_word... " >&6; }
11943if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11944 $as_echo_n "(cached) " >&6
2429c060
PB
11945else
11946 if test -n "$LIPO_FOR_TARGET"; then
11947 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11948else
c6b750e1
DJ
11949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950for as_dir in $PATH
11951do
11952 IFS=$as_save_IFS
11953 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11954 for ac_exec_ext in '' $ac_executable_extensions; do
11955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11956 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11958 break 2
11959 fi
11960done
81ecdfbb
RW
11961 done
11962IFS=$as_save_IFS
c6b750e1 11963
2429c060
PB
11964fi
11965fi
c6b750e1 11966LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11967if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11969$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11970else
81ecdfbb
RW
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972$as_echo "no" >&6; }
2429c060
PB
11973fi
11974
81ecdfbb 11975
2429c060
PB
11976 fi
11977 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11979set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11981$as_echo_n "checking for $ac_word... " >&6; }
11982if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11983 $as_echo_n "(cached) " >&6
2429c060
PB
11984else
11985 if test -n "$LIPO_FOR_TARGET"; then
11986 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11987else
c6b750e1
DJ
11988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989for as_dir in $PATH
11990do
11991 IFS=$as_save_IFS
11992 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11993 for ac_exec_ext in '' $ac_executable_extensions; do
11994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11995 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11997 break 2
11998 fi
11999done
81ecdfbb
RW
12000 done
12001IFS=$as_save_IFS
c6b750e1 12002
2429c060
PB
12003fi
12004fi
c6b750e1 12005LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12006if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12008$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12009else
81ecdfbb
RW
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12011$as_echo "no" >&6; }
2429c060 12012fi
c6b750e1 12013
81ecdfbb 12014
2429c060
PB
12015 fi
12016 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12017 done
12018fi
c6b750e1 12019
2429c060
PB
12020if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12021 set dummy lipo
12022 if test $build = $target ; then
12023 LIPO_FOR_TARGET="$2"
12024 else
12025 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12026 fi
d3f5afc4
MS
12027else
12028 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
12029fi
12030
3a35eeb3
PB
12031else
12032 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
12033fi
12034
12035
12036
12037
12038if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12039 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12041$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12042 if test -x $with_build_time_tools/nm; then
12043 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12044 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12046$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 12047 else
81ecdfbb
RW
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12049$as_echo "no" >&6; }
3a35eeb3 12050 fi
2429c060
PB
12051 elif test $build != $host && test $have_gcc_for_target = yes; then
12052 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
12053 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12054 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
12055 fi
12056fi
c6b750e1 12057if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12058 # Extract the first word of "nm", so it can be a program name with args.
12059set dummy nm; ac_word=$2
81ecdfbb
RW
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061$as_echo_n "checking for $ac_word... " >&6; }
12062if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12063 $as_echo_n "(cached) " >&6
2429c060 12064else
c6b750e1
DJ
12065 case $NM_FOR_TARGET in
12066 [\\/]* | ?:[\\/]*)
2429c060
PB
12067 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12068 ;;
2429c060 12069 *)
c6b750e1
DJ
12070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071for as_dir in $gcc_cv_tool_dirs
12072do
12073 IFS=$as_save_IFS
12074 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12075 for ac_exec_ext in '' $ac_executable_extensions; do
12076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12077 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12079 break 2
12080 fi
12081done
81ecdfbb
RW
12082 done
12083IFS=$as_save_IFS
c6b750e1 12084
2429c060
PB
12085 ;;
12086esac
12087fi
c6b750e1 12088NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12089if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12091$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12092else
81ecdfbb
RW
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094$as_echo "no" >&6; }
2429c060
PB
12095fi
12096
81ecdfbb 12097
2429c060
PB
12098fi
12099if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12100
12101
12102if test -n "$NM_FOR_TARGET"; then
12103 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12104elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12105 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12106fi
12107
12108if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12109 for ncn_progname in nm; do
12110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12111set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12113$as_echo_n "checking for $ac_word... " >&6; }
12114if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12115 $as_echo_n "(cached) " >&6
9a819804
AO
12116else
12117 if test -n "$NM_FOR_TARGET"; then
12118 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12119else
12120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12121for as_dir in $PATH
12122do
12123 IFS=$as_save_IFS
12124 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12125 for ac_exec_ext in '' $ac_executable_extensions; do
12126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12127 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12129 break 2
12130 fi
12131done
81ecdfbb
RW
12132 done
12133IFS=$as_save_IFS
9a819804
AO
12134
12135fi
12136fi
12137NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12138if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12140$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12141else
81ecdfbb
RW
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143$as_echo "no" >&6; }
9a819804
AO
12144fi
12145
81ecdfbb 12146
9a819804
AO
12147 done
12148fi
12149
12150if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12151 for ncn_progname in nm; do
81ecdfbb
RW
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12153$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12154 if test -x $with_build_time_tools/${ncn_progname}; then
12155 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12157$as_echo "yes" >&6; }
2429c060
PB
12158 break
12159 else
81ecdfbb
RW
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12161$as_echo "no" >&6; }
2429c060
PB
12162 fi
12163 done
12164fi
12165
12166if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12167 for ncn_progname in nm; do
12168 if test -n "$ncn_target_tool_prefix"; then
12169 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12170set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12172$as_echo_n "checking for $ac_word... " >&6; }
12173if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12174 $as_echo_n "(cached) " >&6
859789af 12175else
55db4b87
PB
12176 if test -n "$NM_FOR_TARGET"; then
12177 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12178else
c6b750e1
DJ
12179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180for as_dir in $PATH
12181do
12182 IFS=$as_save_IFS
12183 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12184 for ac_exec_ext in '' $ac_executable_extensions; do
12185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12186 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12188 break 2
12189 fi
12190done
81ecdfbb
RW
12191 done
12192IFS=$as_save_IFS
c6b750e1 12193
859789af
AC
12194fi
12195fi
c6b750e1 12196NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12197if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12199$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12200else
81ecdfbb
RW
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202$as_echo "no" >&6; }
859789af
AC
12203fi
12204
81ecdfbb 12205
2429c060
PB
12206 fi
12207 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12209set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12211$as_echo_n "checking for $ac_word... " >&6; }
12212if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12213 $as_echo_n "(cached) " >&6
859789af 12214else
05cbd757
PB
12215 if test -n "$NM_FOR_TARGET"; then
12216 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12217else
c6b750e1
DJ
12218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12219for as_dir in $PATH
12220do
12221 IFS=$as_save_IFS
12222 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12223 for ac_exec_ext in '' $ac_executable_extensions; do
12224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12225 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12227 break 2
12228 fi
12229done
81ecdfbb
RW
12230 done
12231IFS=$as_save_IFS
c6b750e1 12232
859789af
AC
12233fi
12234fi
c6b750e1 12235NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12236if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12238$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12239else
81ecdfbb
RW
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12241$as_echo "no" >&6; }
859789af 12242fi
c6b750e1 12243
81ecdfbb 12244
2429c060
PB
12245 fi
12246 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12247 done
12248fi
c6b750e1 12249
05cbd757
PB
12250if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12251 set dummy nm
12252 if test $build = $target ; then
12253 NM_FOR_TARGET="$2"
859789af 12254 else
05cbd757 12255 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12256 fi
d3f5afc4
MS
12257else
12258 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12259fi
12260
3a35eeb3
PB
12261else
12262 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12263fi
12264
12265
12266
12267
6b91c541
AP
12268if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12269 if test -n "$with_build_time_tools"; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12271$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12272 if test -x $with_build_time_tools/objcopy; then
12273 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12274 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12276$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12277 else
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279$as_echo "no" >&6; }
12280 fi
12281 elif test $build != $host && test $have_gcc_for_target = yes; then
12282 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12283 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12284 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12285 fi
12286fi
12287if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12288 # Extract the first word of "objcopy", so it can be a program name with args.
12289set dummy objcopy; ac_word=$2
12290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12291$as_echo_n "checking for $ac_word... " >&6; }
12292if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12293 $as_echo_n "(cached) " >&6
12294else
12295 case $OBJCOPY_FOR_TARGET in
12296 [\\/]* | ?:[\\/]*)
12297 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12298 ;;
12299 *)
12300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12301for as_dir in $gcc_cv_tool_dirs
12302do
12303 IFS=$as_save_IFS
12304 test -z "$as_dir" && as_dir=.
12305 for ac_exec_ext in '' $ac_executable_extensions; do
12306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12307 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12309 break 2
12310 fi
12311done
12312 done
12313IFS=$as_save_IFS
12314
12315 ;;
12316esac
12317fi
12318OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12319if test -n "$OBJCOPY_FOR_TARGET"; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12321$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12322else
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324$as_echo "no" >&6; }
12325fi
12326
12327
12328fi
12329if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12330
12331
12332if test -n "$OBJCOPY_FOR_TARGET"; then
12333 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12334elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12335 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12336fi
12337
12338if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12339 for ncn_progname in objcopy; do
12340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12341set dummy ${ncn_progname}; ac_word=$2
12342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343$as_echo_n "checking for $ac_word... " >&6; }
12344if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12345 $as_echo_n "(cached) " >&6
12346else
12347 if test -n "$OBJCOPY_FOR_TARGET"; then
12348 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12349else
12350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351for as_dir in $PATH
12352do
12353 IFS=$as_save_IFS
12354 test -z "$as_dir" && as_dir=.
12355 for ac_exec_ext in '' $ac_executable_extensions; do
12356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12357 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12359 break 2
12360 fi
12361done
12362 done
12363IFS=$as_save_IFS
12364
12365fi
12366fi
12367OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12368if test -n "$OBJCOPY_FOR_TARGET"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12370$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12371else
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373$as_echo "no" >&6; }
12374fi
12375
12376
12377 done
12378fi
12379
12380if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12381 for ncn_progname in objcopy; do
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12383$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12384 if test -x $with_build_time_tools/${ncn_progname}; then
12385 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12387$as_echo "yes" >&6; }
12388 break
12389 else
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391$as_echo "no" >&6; }
12392 fi
12393 done
12394fi
12395
12396if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12397 for ncn_progname in objcopy; do
12398 if test -n "$ncn_target_tool_prefix"; then
12399 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12400set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12402$as_echo_n "checking for $ac_word... " >&6; }
12403if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12404 $as_echo_n "(cached) " >&6
12405else
12406 if test -n "$OBJCOPY_FOR_TARGET"; then
12407 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12408else
12409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410for as_dir in $PATH
12411do
12412 IFS=$as_save_IFS
12413 test -z "$as_dir" && as_dir=.
12414 for ac_exec_ext in '' $ac_executable_extensions; do
12415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12416 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12418 break 2
12419 fi
12420done
12421 done
12422IFS=$as_save_IFS
12423
12424fi
12425fi
12426OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12427if test -n "$OBJCOPY_FOR_TARGET"; then
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12429$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12430else
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432$as_echo "no" >&6; }
12433fi
12434
12435
12436 fi
12437 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12439set dummy ${ncn_progname}; ac_word=$2
12440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12441$as_echo_n "checking for $ac_word... " >&6; }
12442if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12443 $as_echo_n "(cached) " >&6
12444else
12445 if test -n "$OBJCOPY_FOR_TARGET"; then
12446 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12447else
12448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12449for as_dir in $PATH
12450do
12451 IFS=$as_save_IFS
12452 test -z "$as_dir" && as_dir=.
12453 for ac_exec_ext in '' $ac_executable_extensions; do
12454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12455 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12457 break 2
12458 fi
12459done
12460 done
12461IFS=$as_save_IFS
12462
12463fi
12464fi
12465OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12466if test -n "$OBJCOPY_FOR_TARGET"; then
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12468$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12469else
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471$as_echo "no" >&6; }
12472fi
12473
12474
12475 fi
12476 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12477 done
12478fi
12479
12480if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12481 set dummy objcopy
12482 if test $build = $target ; then
12483 OBJCOPY_FOR_TARGET="$2"
12484 else
12485 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12486 fi
12487else
12488 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12489fi
12490
12491else
12492 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12493fi
12494
12495
12496
12497
2429c060
PB
12498if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12499 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12501$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12502 if test -x $with_build_time_tools/objdump; then
12503 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12504 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12506$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12507 else
81ecdfbb
RW
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12509$as_echo "no" >&6; }
3a35eeb3 12510 fi
2429c060
PB
12511 elif test $build != $host && test $have_gcc_for_target = yes; then
12512 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12513 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12514 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12515 fi
12516fi
c6b750e1 12517if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12518 # Extract the first word of "objdump", so it can be a program name with args.
12519set dummy objdump; ac_word=$2
81ecdfbb
RW
12520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12521$as_echo_n "checking for $ac_word... " >&6; }
12522if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12523 $as_echo_n "(cached) " >&6
2429c060 12524else
c6b750e1
DJ
12525 case $OBJDUMP_FOR_TARGET in
12526 [\\/]* | ?:[\\/]*)
2429c060
PB
12527 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12528 ;;
2429c060 12529 *)
c6b750e1
DJ
12530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12531for as_dir in $gcc_cv_tool_dirs
12532do
12533 IFS=$as_save_IFS
12534 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12535 for ac_exec_ext in '' $ac_executable_extensions; do
12536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12537 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12539 break 2
12540 fi
12541done
81ecdfbb
RW
12542 done
12543IFS=$as_save_IFS
c6b750e1 12544
2429c060
PB
12545 ;;
12546esac
12547fi
c6b750e1 12548OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12549if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12551$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12552else
81ecdfbb
RW
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554$as_echo "no" >&6; }
2429c060
PB
12555fi
12556
81ecdfbb 12557
2429c060
PB
12558fi
12559if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12560
12561
12562if test -n "$OBJDUMP_FOR_TARGET"; then
12563 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12564elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12565 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12566fi
12567
12568if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12569 for ncn_progname in objdump; do
12570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12571set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12573$as_echo_n "checking for $ac_word... " >&6; }
12574if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12575 $as_echo_n "(cached) " >&6
9a819804
AO
12576else
12577 if test -n "$OBJDUMP_FOR_TARGET"; then
12578 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12579else
12580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12581for as_dir in $PATH
12582do
12583 IFS=$as_save_IFS
12584 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12585 for ac_exec_ext in '' $ac_executable_extensions; do
12586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12587 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12589 break 2
12590 fi
12591done
81ecdfbb
RW
12592 done
12593IFS=$as_save_IFS
9a819804
AO
12594
12595fi
12596fi
12597OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12598if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12600$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12601else
81ecdfbb
RW
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12603$as_echo "no" >&6; }
9a819804
AO
12604fi
12605
81ecdfbb 12606
9a819804
AO
12607 done
12608fi
12609
12610if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12611 for ncn_progname in objdump; do
81ecdfbb
RW
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12613$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12614 if test -x $with_build_time_tools/${ncn_progname}; then
12615 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12617$as_echo "yes" >&6; }
2429c060
PB
12618 break
12619 else
81ecdfbb
RW
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621$as_echo "no" >&6; }
2429c060
PB
12622 fi
12623 done
12624fi
12625
12626if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12627 for ncn_progname in objdump; do
12628 if test -n "$ncn_target_tool_prefix"; then
12629 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12630set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12632$as_echo_n "checking for $ac_word... " >&6; }
12633if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12634 $as_echo_n "(cached) " >&6
5ae72758
DJ
12635else
12636 if test -n "$OBJDUMP_FOR_TARGET"; then
12637 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12638else
c6b750e1
DJ
12639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12640for as_dir in $PATH
12641do
12642 IFS=$as_save_IFS
12643 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12644 for ac_exec_ext in '' $ac_executable_extensions; do
12645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12646 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12648 break 2
12649 fi
12650done
81ecdfbb
RW
12651 done
12652IFS=$as_save_IFS
c6b750e1 12653
5ae72758
DJ
12654fi
12655fi
c6b750e1 12656OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12657if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12659$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12660else
81ecdfbb
RW
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662$as_echo "no" >&6; }
5ae72758
DJ
12663fi
12664
81ecdfbb 12665
2429c060
PB
12666 fi
12667 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12668 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12669set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12671$as_echo_n "checking for $ac_word... " >&6; }
12672if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12673 $as_echo_n "(cached) " >&6
5ae72758
DJ
12674else
12675 if test -n "$OBJDUMP_FOR_TARGET"; then
12676 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12677else
c6b750e1
DJ
12678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12679for as_dir in $PATH
12680do
12681 IFS=$as_save_IFS
12682 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12683 for ac_exec_ext in '' $ac_executable_extensions; do
12684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12685 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12687 break 2
12688 fi
12689done
81ecdfbb
RW
12690 done
12691IFS=$as_save_IFS
c6b750e1 12692
5ae72758
DJ
12693fi
12694fi
c6b750e1 12695OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12696if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12698$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12699else
81ecdfbb
RW
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701$as_echo "no" >&6; }
5ae72758 12702fi
c6b750e1 12703
81ecdfbb 12704
2429c060
PB
12705 fi
12706 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12707 done
12708fi
c6b750e1 12709
5ae72758
DJ
12710if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12711 set dummy objdump
12712 if test $build = $target ; then
12713 OBJDUMP_FOR_TARGET="$2"
12714 else
12715 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12716 fi
d3f5afc4
MS
12717else
12718 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12719fi
12720
3a35eeb3
PB
12721else
12722 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12723fi
12724
12725
12726
12727
12728if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12729 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12731$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12732 if test -x $with_build_time_tools/ranlib; then
12733 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12734 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12736$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12737 else
81ecdfbb
RW
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739$as_echo "no" >&6; }
3a35eeb3 12740 fi
2429c060
PB
12741 elif test $build != $host && test $have_gcc_for_target = yes; then
12742 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12743 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12744 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12745 fi
12746fi
c6b750e1 12747if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12748 # Extract the first word of "ranlib", so it can be a program name with args.
12749set dummy ranlib; ac_word=$2
81ecdfbb
RW
12750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12751$as_echo_n "checking for $ac_word... " >&6; }
12752if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12753 $as_echo_n "(cached) " >&6
2429c060 12754else
c6b750e1
DJ
12755 case $RANLIB_FOR_TARGET in
12756 [\\/]* | ?:[\\/]*)
2429c060
PB
12757 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12758 ;;
2429c060 12759 *)
c6b750e1
DJ
12760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12761for as_dir in $gcc_cv_tool_dirs
12762do
12763 IFS=$as_save_IFS
12764 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12765 for ac_exec_ext in '' $ac_executable_extensions; do
12766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12767 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12769 break 2
12770 fi
12771done
81ecdfbb
RW
12772 done
12773IFS=$as_save_IFS
c6b750e1 12774
2429c060
PB
12775 ;;
12776esac
12777fi
c6b750e1 12778RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12779if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12781$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12782else
81ecdfbb
RW
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784$as_echo "no" >&6; }
2429c060
PB
12785fi
12786
81ecdfbb 12787
2429c060
PB
12788fi
12789if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12790
12791
12792if test -n "$RANLIB_FOR_TARGET"; then
12793 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12794elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12795 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12796fi
12797
12798if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12799 for ncn_progname in ranlib; do
12800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12801set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12803$as_echo_n "checking for $ac_word... " >&6; }
12804if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12805 $as_echo_n "(cached) " >&6
9a819804
AO
12806else
12807 if test -n "$RANLIB_FOR_TARGET"; then
12808 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12809else
12810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12811for as_dir in $PATH
12812do
12813 IFS=$as_save_IFS
12814 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12815 for ac_exec_ext in '' $ac_executable_extensions; do
12816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12817 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12819 break 2
12820 fi
12821done
81ecdfbb
RW
12822 done
12823IFS=$as_save_IFS
9a819804
AO
12824
12825fi
12826fi
12827RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12828if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12830$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12831else
81ecdfbb
RW
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833$as_echo "no" >&6; }
9a819804
AO
12834fi
12835
81ecdfbb 12836
9a819804
AO
12837 done
12838fi
12839
12840if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12841 for ncn_progname in ranlib; do
81ecdfbb
RW
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12843$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12844 if test -x $with_build_time_tools/${ncn_progname}; then
12845 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12847$as_echo "yes" >&6; }
2429c060
PB
12848 break
12849 else
81ecdfbb
RW
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12851$as_echo "no" >&6; }
2429c060
PB
12852 fi
12853 done
12854fi
12855
12856if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12857 for ncn_progname in ranlib; do
12858 if test -n "$ncn_target_tool_prefix"; then
12859 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12860set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12862$as_echo_n "checking for $ac_word... " >&6; }
12863if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12864 $as_echo_n "(cached) " >&6
859789af 12865else
55db4b87
PB
12866 if test -n "$RANLIB_FOR_TARGET"; then
12867 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12868else
c6b750e1
DJ
12869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870for as_dir in $PATH
12871do
12872 IFS=$as_save_IFS
12873 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12874 for ac_exec_ext in '' $ac_executable_extensions; do
12875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12876 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12878 break 2
12879 fi
12880done
81ecdfbb
RW
12881 done
12882IFS=$as_save_IFS
c6b750e1 12883
859789af
AC
12884fi
12885fi
c6b750e1 12886RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12887if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12889$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12890else
81ecdfbb
RW
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892$as_echo "no" >&6; }
859789af
AC
12893fi
12894
81ecdfbb 12895
2429c060
PB
12896 fi
12897 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12899set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12901$as_echo_n "checking for $ac_word... " >&6; }
12902if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12903 $as_echo_n "(cached) " >&6
859789af 12904else
05cbd757
PB
12905 if test -n "$RANLIB_FOR_TARGET"; then
12906 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12907else
c6b750e1
DJ
12908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909for as_dir in $PATH
12910do
12911 IFS=$as_save_IFS
12912 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12913 for ac_exec_ext in '' $ac_executable_extensions; do
12914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12915 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12917 break 2
12918 fi
12919done
81ecdfbb
RW
12920 done
12921IFS=$as_save_IFS
c6b750e1 12922
859789af
AC
12923fi
12924fi
c6b750e1 12925RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12926if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12928$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12929else
81ecdfbb
RW
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12931$as_echo "no" >&6; }
859789af 12932fi
c6b750e1 12933
81ecdfbb 12934
2429c060
PB
12935 fi
12936 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12937 done
12938fi
c6b750e1 12939
2429c060
PB
12940if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12941 set dummy ranlib
12942 if test $build = $target ; then
12943 RANLIB_FOR_TARGET="$2"
12944 else
12945 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12946 fi
d3f5afc4
MS
12947else
12948 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12949fi
05cbd757 12950
3a35eeb3
PB
12951else
12952 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12953fi
12954
2429c060
PB
12955
12956
12957
b121d7d4
DD
12958if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12959 if test -n "$with_build_time_tools"; then
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12961$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12962 if test -x $with_build_time_tools/readelf; then
12963 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12964 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12966$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12967 else
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969$as_echo "no" >&6; }
12970 fi
12971 elif test $build != $host && test $have_gcc_for_target = yes; then
12972 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12973 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12974 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12975 fi
12976fi
12977if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12978 # Extract the first word of "readelf", so it can be a program name with args.
12979set dummy readelf; ac_word=$2
12980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12981$as_echo_n "checking for $ac_word... " >&6; }
12982if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12983 $as_echo_n "(cached) " >&6
12984else
12985 case $READELF_FOR_TARGET in
12986 [\\/]* | ?:[\\/]*)
12987 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12988 ;;
12989 *)
12990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991for as_dir in $gcc_cv_tool_dirs
12992do
12993 IFS=$as_save_IFS
12994 test -z "$as_dir" && as_dir=.
12995 for ac_exec_ext in '' $ac_executable_extensions; do
12996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12997 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12999 break 2
13000 fi
13001done
13002 done
13003IFS=$as_save_IFS
13004
13005 ;;
13006esac
13007fi
13008READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13009if test -n "$READELF_FOR_TARGET"; then
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13011$as_echo "$READELF_FOR_TARGET" >&6; }
13012else
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014$as_echo "no" >&6; }
13015fi
13016
13017
13018fi
13019if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13020
13021
13022if test -n "$READELF_FOR_TARGET"; then
13023 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13024elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13025 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13026fi
13027
13028if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13029 for ncn_progname in readelf; do
13030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13031set dummy ${ncn_progname}; ac_word=$2
13032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13033$as_echo_n "checking for $ac_word... " >&6; }
13034if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13035 $as_echo_n "(cached) " >&6
13036else
13037 if test -n "$READELF_FOR_TARGET"; then
13038 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13039else
13040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13041for as_dir in $PATH
13042do
13043 IFS=$as_save_IFS
13044 test -z "$as_dir" && as_dir=.
13045 for ac_exec_ext in '' $ac_executable_extensions; do
13046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13047 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13049 break 2
13050 fi
13051done
13052 done
13053IFS=$as_save_IFS
13054
13055fi
13056fi
13057READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13058if test -n "$READELF_FOR_TARGET"; then
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13060$as_echo "$READELF_FOR_TARGET" >&6; }
13061else
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13063$as_echo "no" >&6; }
13064fi
13065
13066
13067 done
13068fi
13069
13070if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13071 for ncn_progname in readelf; do
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13073$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13074 if test -x $with_build_time_tools/${ncn_progname}; then
13075 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13077$as_echo "yes" >&6; }
13078 break
13079 else
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081$as_echo "no" >&6; }
13082 fi
13083 done
13084fi
13085
13086if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13087 for ncn_progname in readelf; do
13088 if test -n "$ncn_target_tool_prefix"; then
13089 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13090set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13092$as_echo_n "checking for $ac_word... " >&6; }
13093if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13094 $as_echo_n "(cached) " >&6
13095else
13096 if test -n "$READELF_FOR_TARGET"; then
13097 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13098else
13099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100for as_dir in $PATH
13101do
13102 IFS=$as_save_IFS
13103 test -z "$as_dir" && as_dir=.
13104 for ac_exec_ext in '' $ac_executable_extensions; do
13105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13106 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13108 break 2
13109 fi
13110done
13111 done
13112IFS=$as_save_IFS
13113
13114fi
13115fi
13116READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13117if test -n "$READELF_FOR_TARGET"; then
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13119$as_echo "$READELF_FOR_TARGET" >&6; }
13120else
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13122$as_echo "no" >&6; }
13123fi
13124
13125
13126 fi
13127 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13128 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13129set dummy ${ncn_progname}; ac_word=$2
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131$as_echo_n "checking for $ac_word... " >&6; }
13132if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13133 $as_echo_n "(cached) " >&6
13134else
13135 if test -n "$READELF_FOR_TARGET"; then
13136 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13137else
13138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139for as_dir in $PATH
13140do
13141 IFS=$as_save_IFS
13142 test -z "$as_dir" && as_dir=.
13143 for ac_exec_ext in '' $ac_executable_extensions; do
13144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13145 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13147 break 2
13148 fi
13149done
13150 done
13151IFS=$as_save_IFS
13152
13153fi
13154fi
13155READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13156if test -n "$READELF_FOR_TARGET"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13158$as_echo "$READELF_FOR_TARGET" >&6; }
13159else
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161$as_echo "no" >&6; }
13162fi
13163
13164
13165 fi
13166 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13167 done
13168fi
13169
13170if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13171 set dummy readelf
13172 if test $build = $target ; then
13173 READELF_FOR_TARGET="$2"
13174 else
13175 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13176 fi
13177else
13178 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13179fi
13180
13181else
13182 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13183fi
13184
13185
13186
13187
2429c060
PB
13188if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13189 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13191$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13192 if test -x $with_build_time_tools/strip; then
13193 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13194 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13196$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 13197 else
81ecdfbb
RW
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199$as_echo "no" >&6; }
3a35eeb3 13200 fi
2429c060
PB
13201 elif test $build != $host && test $have_gcc_for_target = yes; then
13202 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
13203 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13204 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13205 fi
13206fi
c6b750e1 13207if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13208 # Extract the first word of "strip", so it can be a program name with args.
13209set dummy strip; ac_word=$2
81ecdfbb
RW
13210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211$as_echo_n "checking for $ac_word... " >&6; }
13212if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13213 $as_echo_n "(cached) " >&6
2429c060 13214else
c6b750e1
DJ
13215 case $STRIP_FOR_TARGET in
13216 [\\/]* | ?:[\\/]*)
2429c060
PB
13217 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13218 ;;
2429c060 13219 *)
c6b750e1
DJ
13220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221for as_dir in $gcc_cv_tool_dirs
13222do
13223 IFS=$as_save_IFS
13224 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13225 for ac_exec_ext in '' $ac_executable_extensions; do
13226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13227 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13229 break 2
13230 fi
13231done
81ecdfbb
RW
13232 done
13233IFS=$as_save_IFS
c6b750e1 13234
2429c060
PB
13235 ;;
13236esac
13237fi
c6b750e1 13238STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13239if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13241$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13242else
81ecdfbb
RW
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244$as_echo "no" >&6; }
2429c060
PB
13245fi
13246
81ecdfbb 13247
2429c060
PB
13248fi
13249if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13250
13251
13252if test -n "$STRIP_FOR_TARGET"; then
13253 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13254elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13255 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13256fi
13257
13258if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13259 for ncn_progname in strip; do
13260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13261set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13263$as_echo_n "checking for $ac_word... " >&6; }
13264if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13265 $as_echo_n "(cached) " >&6
9a819804
AO
13266else
13267 if test -n "$STRIP_FOR_TARGET"; then
13268 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13269else
13270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13271for as_dir in $PATH
13272do
13273 IFS=$as_save_IFS
13274 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13275 for ac_exec_ext in '' $ac_executable_extensions; do
13276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13277 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13279 break 2
13280 fi
13281done
81ecdfbb
RW
13282 done
13283IFS=$as_save_IFS
9a819804
AO
13284
13285fi
13286fi
13287STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13288if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13290$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13291else
81ecdfbb
RW
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13293$as_echo "no" >&6; }
9a819804
AO
13294fi
13295
81ecdfbb 13296
9a819804
AO
13297 done
13298fi
13299
13300if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13301 for ncn_progname in strip; do
81ecdfbb
RW
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13303$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13304 if test -x $with_build_time_tools/${ncn_progname}; then
13305 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13307$as_echo "yes" >&6; }
2429c060
PB
13308 break
13309 else
81ecdfbb
RW
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13311$as_echo "no" >&6; }
2429c060
PB
13312 fi
13313 done
13314fi
13315
13316if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13317 for ncn_progname in strip; do
13318 if test -n "$ncn_target_tool_prefix"; then
13319 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13320set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13322$as_echo_n "checking for $ac_word... " >&6; }
13323if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13324 $as_echo_n "(cached) " >&6
7e0f7140
GK
13325else
13326 if test -n "$STRIP_FOR_TARGET"; then
13327 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13328else
13329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330for as_dir in $PATH
13331do
13332 IFS=$as_save_IFS
13333 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13334 for ac_exec_ext in '' $ac_executable_extensions; do
13335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13336 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13338 break 2
13339 fi
13340done
81ecdfbb
RW
13341 done
13342IFS=$as_save_IFS
c6b750e1 13343
7e0f7140
GK
13344fi
13345fi
c6b750e1 13346STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13347if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13349$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13350else
81ecdfbb
RW
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13352$as_echo "no" >&6; }
7e0f7140
GK
13353fi
13354
81ecdfbb 13355
2429c060
PB
13356 fi
13357 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13358 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13359set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13361$as_echo_n "checking for $ac_word... " >&6; }
13362if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13363 $as_echo_n "(cached) " >&6
7e0f7140
GK
13364else
13365 if test -n "$STRIP_FOR_TARGET"; then
13366 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13367else
c6b750e1
DJ
13368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13369for as_dir in $PATH
13370do
13371 IFS=$as_save_IFS
13372 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13373 for ac_exec_ext in '' $ac_executable_extensions; do
13374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13375 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13377 break 2
13378 fi
13379done
81ecdfbb
RW
13380 done
13381IFS=$as_save_IFS
c6b750e1 13382
7e0f7140
GK
13383fi
13384fi
c6b750e1 13385STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13386if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13388$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13389else
81ecdfbb
RW
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13391$as_echo "no" >&6; }
7e0f7140 13392fi
c6b750e1 13393
81ecdfbb 13394
2429c060
PB
13395 fi
13396 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13397 done
13398fi
c6b750e1 13399
7e0f7140
GK
13400if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13401 set dummy strip
13402 if test $build = $target ; then
13403 STRIP_FOR_TARGET="$2"
13404 else
13405 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13406 fi
d3f5afc4
MS
13407else
13408 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13409fi
13410
3a35eeb3
PB
13411else
13412 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13413fi
13414
13415
13416
13417
13418if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13419 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13421$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13422 if test -x $with_build_time_tools/windres; then
13423 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13424 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13426$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13427 else
81ecdfbb
RW
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13429$as_echo "no" >&6; }
3a35eeb3 13430 fi
2429c060
PB
13431 elif test $build != $host && test $have_gcc_for_target = yes; then
13432 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13433 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13434 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13435 fi
13436fi
c6b750e1 13437if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13438 # Extract the first word of "windres", so it can be a program name with args.
13439set dummy windres; ac_word=$2
81ecdfbb
RW
13440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13441$as_echo_n "checking for $ac_word... " >&6; }
13442if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13443 $as_echo_n "(cached) " >&6
2429c060 13444else
c6b750e1
DJ
13445 case $WINDRES_FOR_TARGET in
13446 [\\/]* | ?:[\\/]*)
2429c060
PB
13447 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13448 ;;
2429c060 13449 *)
c6b750e1
DJ
13450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13451for as_dir in $gcc_cv_tool_dirs
13452do
13453 IFS=$as_save_IFS
13454 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13455 for ac_exec_ext in '' $ac_executable_extensions; do
13456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13457 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13459 break 2
13460 fi
13461done
81ecdfbb
RW
13462 done
13463IFS=$as_save_IFS
c6b750e1 13464
2429c060
PB
13465 ;;
13466esac
13467fi
c6b750e1 13468WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13469if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13471$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13472else
81ecdfbb
RW
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13474$as_echo "no" >&6; }
2429c060
PB
13475fi
13476
81ecdfbb 13477
2429c060
PB
13478fi
13479if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13480
13481
13482if test -n "$WINDRES_FOR_TARGET"; then
13483 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13484elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13485 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13486fi
13487
13488if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13489 for ncn_progname in windres; do
13490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13491set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13493$as_echo_n "checking for $ac_word... " >&6; }
13494if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13495 $as_echo_n "(cached) " >&6
9a819804
AO
13496else
13497 if test -n "$WINDRES_FOR_TARGET"; then
13498 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13499else
13500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13501for as_dir in $PATH
13502do
13503 IFS=$as_save_IFS
13504 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13505 for ac_exec_ext in '' $ac_executable_extensions; do
13506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13507 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13509 break 2
13510 fi
13511done
81ecdfbb
RW
13512 done
13513IFS=$as_save_IFS
9a819804
AO
13514
13515fi
13516fi
13517WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13518if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13520$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13521else
81ecdfbb
RW
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13523$as_echo "no" >&6; }
9a819804
AO
13524fi
13525
81ecdfbb 13526
9a819804
AO
13527 done
13528fi
13529
13530if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13531 for ncn_progname in windres; do
81ecdfbb
RW
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13533$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13534 if test -x $with_build_time_tools/${ncn_progname}; then
13535 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13537$as_echo "yes" >&6; }
2429c060
PB
13538 break
13539 else
81ecdfbb
RW
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13541$as_echo "no" >&6; }
2429c060
PB
13542 fi
13543 done
13544fi
13545
13546if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13547 for ncn_progname in windres; do
13548 if test -n "$ncn_target_tool_prefix"; then
13549 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13550set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13552$as_echo_n "checking for $ac_word... " >&6; }
13553if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13554 $as_echo_n "(cached) " >&6
859789af 13555else
55db4b87
PB
13556 if test -n "$WINDRES_FOR_TARGET"; then
13557 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13558else
c6b750e1
DJ
13559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13560for as_dir in $PATH
13561do
13562 IFS=$as_save_IFS
13563 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13564 for ac_exec_ext in '' $ac_executable_extensions; do
13565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13566 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13568 break 2
13569 fi
13570done
81ecdfbb
RW
13571 done
13572IFS=$as_save_IFS
c6b750e1 13573
859789af
AC
13574fi
13575fi
c6b750e1 13576WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13577if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13579$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13580else
81ecdfbb
RW
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582$as_echo "no" >&6; }
859789af
AC
13583fi
13584
81ecdfbb 13585
2429c060
PB
13586 fi
13587 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13588 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13589set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13591$as_echo_n "checking for $ac_word... " >&6; }
13592if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13593 $as_echo_n "(cached) " >&6
859789af 13594else
05cbd757
PB
13595 if test -n "$WINDRES_FOR_TARGET"; then
13596 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13597else
c6b750e1
DJ
13598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13599for as_dir in $PATH
13600do
13601 IFS=$as_save_IFS
13602 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13603 for ac_exec_ext in '' $ac_executable_extensions; do
13604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13605 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13607 break 2
13608 fi
13609done
81ecdfbb
RW
13610 done
13611IFS=$as_save_IFS
c6b750e1 13612
859789af
AC
13613fi
13614fi
c6b750e1 13615WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13616if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13618$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13619else
81ecdfbb
RW
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13621$as_echo "no" >&6; }
859789af 13622fi
c6b750e1 13623
81ecdfbb 13624
2429c060
PB
13625 fi
13626 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13627 done
13628fi
c6b750e1 13629
05cbd757
PB
13630if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13631 set dummy windres
13632 if test $build = $target ; then
13633 WINDRES_FOR_TARGET="$2"
859789af 13634 else
05cbd757 13635 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13636 fi
d3f5afc4
MS
13637else
13638 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13639fi
13640
3a35eeb3
PB
13641else
13642 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13643fi
13644
852e5f18 13645
0c24b341
NC
13646
13647
13648if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13649 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13651$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13652 if test -x $with_build_time_tools/windmc; then
13653 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13654 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13656$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13657 else
81ecdfbb
RW
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13659$as_echo "no" >&6; }
0c24b341
NC
13660 fi
13661 elif test $build != $host && test $have_gcc_for_target = yes; then
13662 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13663 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13664 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13665 fi
13666fi
13667if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13668 # Extract the first word of "windmc", so it can be a program name with args.
13669set dummy windmc; ac_word=$2
81ecdfbb
RW
13670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13671$as_echo_n "checking for $ac_word... " >&6; }
13672if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13673 $as_echo_n "(cached) " >&6
0c24b341
NC
13674else
13675 case $WINDMC_FOR_TARGET in
13676 [\\/]* | ?:[\\/]*)
13677 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13678 ;;
13679 *)
13680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13681for as_dir in $gcc_cv_tool_dirs
13682do
13683 IFS=$as_save_IFS
13684 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13685 for ac_exec_ext in '' $ac_executable_extensions; do
13686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13687 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13689 break 2
13690 fi
13691done
81ecdfbb
RW
13692 done
13693IFS=$as_save_IFS
0c24b341
NC
13694
13695 ;;
13696esac
13697fi
13698WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13699if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13701$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13702else
81ecdfbb
RW
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13704$as_echo "no" >&6; }
0c24b341
NC
13705fi
13706
81ecdfbb 13707
0c24b341
NC
13708fi
13709if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13710
13711
13712if test -n "$WINDMC_FOR_TARGET"; then
13713 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13714elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13715 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13716fi
13717
13718if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13719 for ncn_progname in windmc; do
13720 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13721set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13723$as_echo_n "checking for $ac_word... " >&6; }
13724if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13725 $as_echo_n "(cached) " >&6
0c24b341
NC
13726else
13727 if test -n "$WINDMC_FOR_TARGET"; then
13728 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13729else
13730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13731for as_dir in $PATH
13732do
13733 IFS=$as_save_IFS
13734 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13735 for ac_exec_ext in '' $ac_executable_extensions; do
13736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13737 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13739 break 2
13740 fi
13741done
81ecdfbb
RW
13742 done
13743IFS=$as_save_IFS
0c24b341
NC
13744
13745fi
13746fi
13747WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13748if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13750$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13751else
81ecdfbb
RW
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13753$as_echo "no" >&6; }
0c24b341
NC
13754fi
13755
81ecdfbb 13756
0c24b341
NC
13757 done
13758fi
13759
13760if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13761 for ncn_progname in windmc; do
81ecdfbb
RW
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13763$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13764 if test -x $with_build_time_tools/${ncn_progname}; then
13765 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13767$as_echo "yes" >&6; }
0c24b341
NC
13768 break
13769 else
81ecdfbb
RW
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771$as_echo "no" >&6; }
0c24b341
NC
13772 fi
13773 done
13774fi
13775
13776if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13777 for ncn_progname in windmc; do
13778 if test -n "$ncn_target_tool_prefix"; then
13779 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13780set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13782$as_echo_n "checking for $ac_word... " >&6; }
13783if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13784 $as_echo_n "(cached) " >&6
0c24b341
NC
13785else
13786 if test -n "$WINDMC_FOR_TARGET"; then
13787 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13788else
13789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13790for as_dir in $PATH
13791do
13792 IFS=$as_save_IFS
13793 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13794 for ac_exec_ext in '' $ac_executable_extensions; do
13795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13796 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13798 break 2
13799 fi
13800done
81ecdfbb
RW
13801 done
13802IFS=$as_save_IFS
0c24b341
NC
13803
13804fi
13805fi
13806WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13807if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13809$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13810else
81ecdfbb
RW
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13812$as_echo "no" >&6; }
0c24b341
NC
13813fi
13814
81ecdfbb 13815
0c24b341
NC
13816 fi
13817 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13819set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13821$as_echo_n "checking for $ac_word... " >&6; }
13822if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13823 $as_echo_n "(cached) " >&6
0c24b341
NC
13824else
13825 if test -n "$WINDMC_FOR_TARGET"; then
13826 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13827else
13828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13829for as_dir in $PATH
13830do
13831 IFS=$as_save_IFS
13832 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13833 for ac_exec_ext in '' $ac_executable_extensions; do
13834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13835 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13837 break 2
13838 fi
13839done
81ecdfbb
RW
13840 done
13841IFS=$as_save_IFS
0c24b341
NC
13842
13843fi
13844fi
13845WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13846if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13848$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13849else
81ecdfbb
RW
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13851$as_echo "no" >&6; }
0c24b341
NC
13852fi
13853
81ecdfbb 13854
0c24b341
NC
13855 fi
13856 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13857 done
13858fi
13859
13860if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13861 set dummy windmc
13862 if test $build = $target ; then
13863 WINDMC_FOR_TARGET="$2"
13864 else
13865 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13866 fi
13867else
13868 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13869fi
13870
13871else
13872 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13873fi
13874
13875
be01d343
PB
13876RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13877
81ecdfbb
RW
13878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13879$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13880if test "x${build}" != "x${host}" ; then
2429c060
PB
13881 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13882 # We already found the complete path
b8025f34 13883 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13885$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13886 else
13887 # Canadian cross, just use what we found
81ecdfbb
RW
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13889$as_echo "pre-installed" >&6; }
2429c060 13890 fi
be01d343
PB
13891else
13892 ok=yes
13893 case " ${configdirs} " in
13894 *" binutils "*) ;;
13895 *) ok=no ;;
13896 esac
c6b750e1 13897
be01d343
PB
13898 if test $ok = yes; then
13899 # An in-tree tool is available and we can use it
13900 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13902$as_echo "just compiled" >&6; }
2429c060
PB
13903 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13904 # We already found the complete path
b8025f34 13905 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13907$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13908 elif test "x$target" = "x$host"; then
13909 # We can use an host tool
13910 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13912$as_echo "host tool" >&6; }
be01d343
PB
13913 else
13914 # We need a cross tool
81ecdfbb
RW
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13916$as_echo "pre-installed" >&6; }
be01d343
PB
13917 fi
13918fi
4b900473 13919
81ecdfbb
RW
13920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13921$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13922if test "x${build}" != "x${host}" ; then
2429c060
PB
13923 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13924 # We already found the complete path
b8025f34 13925 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13927$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13928 else
13929 # Canadian cross, just use what we found
81ecdfbb
RW
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13931$as_echo "pre-installed" >&6; }
2429c060 13932 fi
be01d343
PB
13933else
13934 ok=yes
13935 case " ${configdirs} " in
13936 *" gas "*) ;;
13937 *) ok=no ;;
13938 esac
c6b750e1 13939
be01d343
PB
13940 if test $ok = yes; then
13941 # An in-tree tool is available and we can use it
13942 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13944$as_echo "just compiled" >&6; }
2429c060
PB
13945 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13946 # We already found the complete path
b8025f34 13947 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13949$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13950 elif test "x$target" = "x$host"; then
13951 # We can use an host tool
13952 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13954$as_echo "host tool" >&6; }
be01d343
PB
13955 else
13956 # We need a cross tool
81ecdfbb
RW
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13958$as_echo "pre-installed" >&6; }
be01d343
PB
13959 fi
13960fi
4b900473 13961
81ecdfbb
RW
13962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13963$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13964if test "x${build}" != "x${host}" ; then
2429c060
PB
13965 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13966 # We already found the complete path
b8025f34 13967 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13969$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13970 else
13971 # Canadian cross, just use what we found
81ecdfbb
RW
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13973$as_echo "pre-installed" >&6; }
2429c060 13974 fi
be01d343
PB
13975else
13976 ok=yes
13977 case " ${configdirs} " in
13978 *" gcc "*) ;;
13979 *) ok=no ;;
13980 esac
c6b750e1 13981
be01d343
PB
13982 if test $ok = yes; then
13983 # An in-tree tool is available and we can use it
13984 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13986$as_echo "just compiled" >&6; }
2429c060
PB
13987 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13988 # We already found the complete path
b8025f34 13989 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13991$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13992 elif test "x$target" = "x$host"; then
13993 # We can use an host tool
13994 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13996$as_echo "host tool" >&6; }
be01d343
PB
13997 else
13998 # We need a cross tool
81ecdfbb
RW
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14000$as_echo "pre-installed" >&6; }
be01d343
PB
14001 fi
14002fi
4b900473 14003
81ecdfbb
RW
14004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14005$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 14006if test "x${build}" != "x${host}" ; then
2429c060
PB
14007 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14008 # We already found the complete path
b8025f34 14009 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14011$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14012 else
14013 # Canadian cross, just use what we found
81ecdfbb
RW
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14015$as_echo "pre-installed" >&6; }
2429c060 14016 fi
be01d343
PB
14017else
14018 ok=yes
14019 case " ${configdirs} " in
14020 *" gcc "*) ;;
14021 *) ok=no ;;
14022 esac
14023 case ,${enable_languages}, in
14024 *,c++,*) ;;
14025 *) ok=no ;;
14026 esac
14027 if test $ok = yes; then
14028 # An in-tree tool is available and we can use it
95e43135 14029 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
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14031$as_echo "just compiled" >&6; }
2429c060
PB
14032 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14033 # We already found the complete path
b8025f34 14034 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14036$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14037 elif test "x$target" = "x$host"; then
14038 # We can use an host tool
14039 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14041$as_echo "host tool" >&6; }
be01d343
PB
14042 else
14043 # We need a cross tool
81ecdfbb
RW
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14045$as_echo "pre-installed" >&6; }
be01d343
PB
14046 fi
14047fi
4b900473 14048
81ecdfbb
RW
14049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14050$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 14051if test "x${build}" != "x${host}" ; then
2429c060
PB
14052 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14053 # We already found the complete path
b8025f34 14054 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14056$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14057 else
14058 # Canadian cross, just use what we found
81ecdfbb
RW
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14060$as_echo "pre-installed" >&6; }
2429c060 14061 fi
be01d343
PB
14062else
14063 ok=yes
14064 case " ${configdirs} " in
14065 *" gcc "*) ;;
14066 *) ok=no ;;
14067 esac
14068 case ,${enable_languages}, in
14069 *,c++,*) ;;
14070 *) ok=no ;;
14071 esac
14072 if test $ok = yes; then
14073 # An in-tree tool is available and we can use it
95e43135 14074 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
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14076$as_echo "just compiled" >&6; }
2429c060
PB
14077 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14078 # We already found the complete path
b8025f34 14079 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14081$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14082 elif test "x$target" = "x$host"; then
14083 # We can use an host tool
14084 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14086$as_echo "host tool" >&6; }
be01d343
PB
14087 else
14088 # We need a cross tool
81ecdfbb
RW
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14090$as_echo "pre-installed" >&6; }
be01d343
PB
14091 fi
14092fi
4b900473 14093
81ecdfbb
RW
14094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14095$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 14096if test "x${build}" != "x${host}" ; then
2429c060
PB
14097 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14098 # We already found the complete path
b8025f34 14099 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14101$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14102 else
14103 # Canadian cross, just use what we found
81ecdfbb
RW
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14105$as_echo "pre-installed" >&6; }
2429c060 14106 fi
be01d343
PB
14107else
14108 ok=yes
14109 case " ${configdirs} " in
14110 *" binutils "*) ;;
14111 *) ok=no ;;
14112 esac
c6b750e1 14113
be01d343
PB
14114 if test $ok = yes; then
14115 # An in-tree tool is available and we can use it
14116 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14118$as_echo "just compiled" >&6; }
2429c060
PB
14119 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14120 # We already found the complete path
b8025f34 14121 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14123$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14124 elif test "x$target" = "x$host"; then
14125 # We can use an host tool
14126 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14128$as_echo "host tool" >&6; }
be01d343
PB
14129 else
14130 # We need a cross tool
81ecdfbb
RW
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14132$as_echo "pre-installed" >&6; }
be01d343
PB
14133 fi
14134fi
4b900473 14135
81ecdfbb
RW
14136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14137$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 14138if test "x${build}" != "x${host}" ; then
2429c060
PB
14139 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14140 # We already found the complete path
b8025f34 14141 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14143$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14144 else
14145 # Canadian cross, just use what we found
81ecdfbb
RW
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14147$as_echo "pre-installed" >&6; }
2429c060 14148 fi
be01d343
PB
14149else
14150 ok=yes
14151 case " ${configdirs} " in
14152 *" gcc "*) ;;
14153 *) ok=no ;;
14154 esac
c6b750e1 14155
be01d343
PB
14156 if test $ok = yes; then
14157 # An in-tree tool is available and we can use it
14158 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14160$as_echo "just compiled" >&6; }
2429c060
PB
14161 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14162 # We already found the complete path
b8025f34 14163 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14165$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14166 elif test "x$target" = "x$host"; then
14167 # We can use an host tool
14168 GCC_FOR_TARGET='$()'
81ecdfbb
RW
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14170$as_echo "host tool" >&6; }
be01d343
PB
14171 else
14172 # We need a cross tool
81ecdfbb
RW
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14174$as_echo "pre-installed" >&6; }
be01d343
PB
14175 fi
14176fi
4b900473 14177
81ecdfbb
RW
14178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14179$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 14180if test "x${build}" != "x${host}" ; then
2429c060
PB
14181 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14182 # We already found the complete path
b8025f34 14183 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14185$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14186 else
14187 # Canadian cross, just use what we found
81ecdfbb
RW
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14189$as_echo "pre-installed" >&6; }
2429c060 14190 fi
be01d343
PB
14191else
14192 ok=yes
14193 case " ${configdirs} " in
14194 *" gcc "*) ;;
14195 *) ok=no ;;
14196 esac
14197 case ,${enable_languages}, in
14198 *,java,*) ;;
14199 *) ok=no ;;
14200 esac
14201 if test $ok = yes; then
14202 # An in-tree tool is available and we can use it
14203 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14205$as_echo "just compiled" >&6; }
2429c060
PB
14206 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14207 # We already found the complete path
b8025f34 14208 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14210$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14211 elif test "x$target" = "x$host"; then
14212 # We can use an host tool
14213 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14215$as_echo "host tool" >&6; }
be01d343
PB
14216 else
14217 # We need a cross tool
81ecdfbb
RW
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14219$as_echo "pre-installed" >&6; }
be01d343
PB
14220 fi
14221fi
4b900473 14222
81ecdfbb
RW
14223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14224$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 14225if test "x${build}" != "x${host}" ; then
2429c060
PB
14226 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14227 # We already found the complete path
b8025f34 14228 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14230$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14231 else
14232 # Canadian cross, just use what we found
81ecdfbb
RW
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14234$as_echo "pre-installed" >&6; }
2429c060 14235 fi
be01d343
PB
14236else
14237 ok=yes
14238 case " ${configdirs} " in
14239 *" gcc "*) ;;
14240 *) ok=no ;;
14241 esac
14242 case ,${enable_languages}, in
14243 *,fortran,*) ;;
14244 *) ok=no ;;
14245 esac
14246 if test $ok = yes; then
14247 # An in-tree tool is available and we can use it
14248 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14250$as_echo "just compiled" >&6; }
2429c060
PB
14251 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14252 # We already found the complete path
b8025f34 14253 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14255$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14256 elif test "x$target" = "x$host"; then
14257 # We can use an host tool
14258 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14260$as_echo "host tool" >&6; }
be01d343
PB
14261 else
14262 # We need a cross tool
81ecdfbb
RW
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14264$as_echo "pre-installed" >&6; }
be01d343
PB
14265 fi
14266fi
4b900473 14267
e552509b
ILT
14268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14269$as_echo_n "checking where to find the target gccgo... " >&6; }
14270if test "x${build}" != "x${host}" ; then
14271 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14272 # We already found the complete path
14273 ac_dir=`dirname $GOC_FOR_TARGET`
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14275$as_echo "pre-installed in $ac_dir" >&6; }
14276 else
14277 # Canadian cross, just use what we found
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14279$as_echo "pre-installed" >&6; }
14280 fi
14281else
14282 ok=yes
14283 case " ${configdirs} " in
14284 *" gcc "*) ;;
14285 *) ok=no ;;
14286 esac
14287 case ,${enable_languages}, in
14288 *,go,*) ;;
14289 *) ok=no ;;
14290 esac
14291 if test $ok = yes; then
14292 # An in-tree tool is available and we can use it
14293 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14295$as_echo "just compiled" >&6; }
14296 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14297 # We already found the complete path
14298 ac_dir=`dirname $GOC_FOR_TARGET`
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300$as_echo "pre-installed in $ac_dir" >&6; }
14301 elif test "x$target" = "x$host"; then
14302 # We can use an host tool
14303 GOC_FOR_TARGET='$(GOC)'
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14305$as_echo "host tool" >&6; }
14306 else
14307 # We need a cross tool
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14309$as_echo "pre-installed" >&6; }
14310 fi
14311fi
14312
81ecdfbb
RW
14313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14314$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14315if test "x${build}" != "x${host}" ; then
2429c060
PB
14316 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14317 # We already found the complete path
b8025f34 14318 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14320$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14321 else
14322 # Canadian cross, just use what we found
81ecdfbb
RW
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14324$as_echo "pre-installed" >&6; }
2429c060 14325 fi
be01d343
PB
14326else
14327 ok=yes
14328 case " ${configdirs} " in
14329 *" ld "*) ;;
14330 *) ok=no ;;
14331 esac
c6b750e1 14332
be01d343
PB
14333 if test $ok = yes; then
14334 # An in-tree tool is available and we can use it
14335 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14337$as_echo "just compiled" >&6; }
2429c060
PB
14338 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14339 # We already found the complete path
b8025f34 14340 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14343 elif test "x$target" = "x$host"; then
14344 # We can use an host tool
14345 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14347$as_echo "host tool" >&6; }
be01d343
PB
14348 else
14349 # We need a cross tool
81ecdfbb
RW
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14351$as_echo "pre-installed" >&6; }
be01d343
PB
14352 fi
14353fi
4b900473 14354
81ecdfbb
RW
14355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14356$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14357if test "x${build}" != "x${host}" ; then
2429c060
PB
14358 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14359 # We already found the complete path
b8025f34 14360 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14362$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14363 else
14364 # Canadian cross, just use what we found
81ecdfbb
RW
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14366$as_echo "pre-installed" >&6; }
2429c060 14367 fi
be01d343 14368else
2429c060
PB
14369 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14370 # We already found the complete path
b8025f34 14371 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14373$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14374 elif test "x$target" = "x$host"; then
be01d343
PB
14375 # We can use an host tool
14376 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14378$as_echo "host tool" >&6; }
be01d343
PB
14379 else
14380 # We need a cross tool
81ecdfbb
RW
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14382$as_echo "pre-installed" >&6; }
be01d343
PB
14383 fi
14384fi
4b900473 14385
81ecdfbb
RW
14386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14387$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14388if test "x${build}" != "x${host}" ; then
2429c060
PB
14389 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14390 # We already found the complete path
b8025f34 14391 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14393$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14394 else
14395 # Canadian cross, just use what we found
81ecdfbb
RW
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14397$as_echo "pre-installed" >&6; }
2429c060 14398 fi
be01d343
PB
14399else
14400 ok=yes
14401 case " ${configdirs} " in
14402 *" binutils "*) ;;
14403 *) ok=no ;;
14404 esac
c6b750e1 14405
be01d343
PB
14406 if test $ok = yes; then
14407 # An in-tree tool is available and we can use it
14408 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14410$as_echo "just compiled" >&6; }
2429c060
PB
14411 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14412 # We already found the complete path
b8025f34 14413 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14415$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14416 elif test "x$target" = "x$host"; then
14417 # We can use an host tool
14418 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14420$as_echo "host tool" >&6; }
be01d343
PB
14421 else
14422 # We need a cross tool
81ecdfbb
RW
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14424$as_echo "pre-installed" >&6; }
be01d343
PB
14425 fi
14426fi
4b900473 14427
6b91c541
AP
14428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14429$as_echo_n "checking where to find the target objcopy... " >&6; }
14430if test "x${build}" != "x${host}" ; then
14431 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14432 # We already found the complete path
14433 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14435$as_echo "pre-installed in $ac_dir" >&6; }
14436 else
14437 # Canadian cross, just use what we found
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14439$as_echo "pre-installed" >&6; }
14440 fi
14441else
14442 ok=yes
14443 case " ${configdirs} " in
14444 *" binutils "*) ;;
14445 *) ok=no ;;
14446 esac
14447
14448 if test $ok = yes; then
14449 # An in-tree tool is available and we can use it
14450 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14452$as_echo "just compiled" >&6; }
14453 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14454 # We already found the complete path
14455 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14457$as_echo "pre-installed in $ac_dir" >&6; }
14458 elif test "x$target" = "x$host"; then
14459 # We can use an host tool
1b6c0831 14460 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14462$as_echo "host tool" >&6; }
14463 else
14464 # We need a cross tool
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14466$as_echo "pre-installed" >&6; }
14467 fi
14468fi
14469
81ecdfbb
RW
14470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14471$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14472if test "x${build}" != "x${host}" ; then
2429c060
PB
14473 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14474 # We already found the complete path
b8025f34 14475 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14477$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14478 else
14479 # Canadian cross, just use what we found
81ecdfbb
RW
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14481$as_echo "pre-installed" >&6; }
2429c060 14482 fi
be01d343
PB
14483else
14484 ok=yes
14485 case " ${configdirs} " in
14486 *" binutils "*) ;;
14487 *) ok=no ;;
14488 esac
c6b750e1 14489
be01d343
PB
14490 if test $ok = yes; then
14491 # An in-tree tool is available and we can use it
14492 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14494$as_echo "just compiled" >&6; }
2429c060
PB
14495 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14496 # We already found the complete path
b8025f34 14497 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14499$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14500 elif test "x$target" = "x$host"; then
14501 # We can use an host tool
14502 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14504$as_echo "host tool" >&6; }
be01d343
PB
14505 else
14506 # We need a cross tool
81ecdfbb
RW
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14508$as_echo "pre-installed" >&6; }
be01d343
PB
14509 fi
14510fi
4b900473 14511
81ecdfbb
RW
14512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14513$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14514if test "x${build}" != "x${host}" ; then
2429c060
PB
14515 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14516 # We already found the complete path
b8025f34 14517 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14519$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14520 else
14521 # Canadian cross, just use what we found
81ecdfbb
RW
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14523$as_echo "pre-installed" >&6; }
2429c060 14524 fi
be01d343
PB
14525else
14526 ok=yes
14527 case " ${configdirs} " in
14528 *" binutils "*) ;;
14529 *) ok=no ;;
14530 esac
c6b750e1 14531
be01d343
PB
14532 if test $ok = yes; then
14533 # An in-tree tool is available and we can use it
14534 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14536$as_echo "just compiled" >&6; }
2429c060
PB
14537 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14538 # We already found the complete path
b8025f34 14539 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14541$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14542 elif test "x$target" = "x$host"; then
14543 # We can use an host tool
14544 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14546$as_echo "host tool" >&6; }
be01d343
PB
14547 else
14548 # We need a cross tool
81ecdfbb
RW
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14550$as_echo "pre-installed" >&6; }
be01d343
PB
14551 fi
14552fi
4b900473 14553
b121d7d4
DD
14554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14555$as_echo_n "checking where to find the target readelf... " >&6; }
14556if test "x${build}" != "x${host}" ; then
14557 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14558 # We already found the complete path
14559 ac_dir=`dirname $READELF_FOR_TARGET`
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14561$as_echo "pre-installed in $ac_dir" >&6; }
14562 else
14563 # Canadian cross, just use what we found
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14565$as_echo "pre-installed" >&6; }
14566 fi
14567else
14568 ok=yes
14569 case " ${configdirs} " in
14570 *" binutils "*) ;;
14571 *) ok=no ;;
14572 esac
14573
14574 if test $ok = yes; then
14575 # An in-tree tool is available and we can use it
14576 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14578$as_echo "just compiled" >&6; }
14579 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14580 # We already found the complete path
14581 ac_dir=`dirname $READELF_FOR_TARGET`
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14583$as_echo "pre-installed in $ac_dir" >&6; }
14584 elif test "x$target" = "x$host"; then
14585 # We can use an host tool
14586 READELF_FOR_TARGET='$(READELF)'
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14588$as_echo "host tool" >&6; }
14589 else
14590 # We need a cross tool
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14592$as_echo "pre-installed" >&6; }
14593 fi
14594fi
14595
81ecdfbb
RW
14596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14597$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14598if test "x${build}" != "x${host}" ; then
2429c060
PB
14599 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14600 # We already found the complete path
b8025f34 14601 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14603$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14604 else
14605 # Canadian cross, just use what we found
81ecdfbb
RW
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14607$as_echo "pre-installed" >&6; }
2429c060 14608 fi
be01d343
PB
14609else
14610 ok=yes
14611 case " ${configdirs} " in
14612 *" binutils "*) ;;
14613 *) ok=no ;;
14614 esac
c6b750e1 14615
be01d343
PB
14616 if test $ok = yes; then
14617 # An in-tree tool is available and we can use it
9b980aa1 14618 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14620$as_echo "just compiled" >&6; }
2429c060
PB
14621 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14622 # We already found the complete path
b8025f34 14623 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14625$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14626 elif test "x$target" = "x$host"; then
14627 # We can use an host tool
14628 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14630$as_echo "host tool" >&6; }
be01d343
PB
14631 else
14632 # We need a cross tool
81ecdfbb
RW
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14634$as_echo "pre-installed" >&6; }
be01d343
PB
14635 fi
14636fi
4b900473 14637
81ecdfbb
RW
14638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14639$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14640if test "x${build}" != "x${host}" ; then
2429c060
PB
14641 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14642 # We already found the complete path
b8025f34 14643 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14645$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14646 else
14647 # Canadian cross, just use what we found
81ecdfbb
RW
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14649$as_echo "pre-installed" >&6; }
2429c060 14650 fi
be01d343
PB
14651else
14652 ok=yes
14653 case " ${configdirs} " in
14654 *" binutils "*) ;;
14655 *) ok=no ;;
14656 esac
c6b750e1 14657
be01d343
PB
14658 if test $ok = yes; then
14659 # An in-tree tool is available and we can use it
14660 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14662$as_echo "just compiled" >&6; }
2429c060
PB
14663 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14664 # We already found the complete path
b8025f34 14665 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14667$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14668 elif test "x$target" = "x$host"; then
14669 # We can use an host tool
14670 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14672$as_echo "host tool" >&6; }
be01d343
PB
14673 else
14674 # We need a cross tool
81ecdfbb
RW
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14676$as_echo "pre-installed" >&6; }
be01d343 14677 fi
a0da8069 14678fi
54752a6b 14679
81ecdfbb
RW
14680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14681$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14682if test "x${build}" != "x${host}" ; then
14683 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14684 # We already found the complete path
14685 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14687$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14688 else
14689 # Canadian cross, just use what we found
81ecdfbb
RW
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14691$as_echo "pre-installed" >&6; }
0c24b341
NC
14692 fi
14693else
14694 ok=yes
14695 case " ${configdirs} " in
14696 *" binutils "*) ;;
14697 *) ok=no ;;
14698 esac
14699
14700 if test $ok = yes; then
14701 # An in-tree tool is available and we can use it
14702 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14704$as_echo "just compiled" >&6; }
0c24b341
NC
14705 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14706 # We already found the complete path
14707 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14709$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14710 elif test "x$target" = "x$host"; then
14711 # We can use an host tool
14712 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14714$as_echo "host tool" >&6; }
0c24b341
NC
14715 else
14716 # We need a cross tool
81ecdfbb
RW
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14718$as_echo "pre-installed" >&6; }
0c24b341
NC
14719 fi
14720fi
14721
54752a6b
NN
14722
14723
be01d343 14724
4b900473 14725
a0da8069
NN
14726# Certain tools may need extra flags.
14727AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14728RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14729NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14730
be01d343
PB
14731# When building target libraries, except in a Canadian cross, we use
14732# the same toolchain as the compiler we just built.
14733COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14734COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14735COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14736if test $host = $build; then
14737 case " $configdirs " in
14738 *" gcc "*)
14739 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14740 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14741 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14742 ;;
14743 esac
14744fi
14745
14746
14747
14748
14749
81ecdfbb
RW
14750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14751$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14752# Check whether --enable-maintainer-mode was given.
14753if test "${enable_maintainer_mode+set}" = set; then :
14754 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14755else
14756 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14757fi
14758
14759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14760$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14761
14762
14763if test "$USE_MAINTAINER_MODE" = yes; then
14764 MAINTAINER_MODE_TRUE=
14765 MAINTAINER_MODE_FALSE='#'
14766else
14767 MAINTAINER_MODE_TRUE='#'
14768 MAINTAINER_MODE_FALSE=
c6b750e1 14769fi
3d5e36ae
AO
14770MAINT=$MAINTAINER_MODE_TRUE
14771
1d39f329
NN
14772# ---------------------
14773# GCC bootstrap support
14774# ---------------------
14775
14776# Stage specific cflags for build.
14777stage1_cflags="-g"
14778case $build in
14779 vax-*-*)
14780 case ${GCC} in
14781 yes) stage1_cflags="-g -Wa,-J" ;;
14782 *) stage1_cflags="-g -J" ;;
14783 esac ;;
1d39f329
NN
14784esac
14785
1d89b610 14786
1d39f329 14787
8a0d8a5c 14788# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14789# Check whether --enable-stage1-checking was given.
14790if test "${enable_stage1_checking+set}" = set; then :
14791 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14792else
5566c1fa 14793 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14794 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14795else
5566c1fa 14796 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14797fi
81ecdfbb 14798fi
8a0d8a5c
PB
14799
14800
c6b750e1 14801
81ecdfbb
RW
14802# Enable -Werror in bootstrap stage2 and later.
14803# Check whether --enable-werror was given.
14804if test "${enable_werror+set}" = set; then :
14805 enableval=$enable_werror;
1d39f329 14806else
a0323144 14807 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14808 enable_werror=yes
79fcd0ec
PB
14809else
14810 enable_werror=no
14811fi
81ecdfbb
RW
14812fi
14813
1a6f2dc7
NN
14814case ${enable_werror} in
14815 yes) stage2_werror_flag="--enable-werror-always" ;;
14816 *) stage2_werror_flag="" ;;
1d39f329
NN
14817esac
14818
14819
82033c9b
JBG
14820# Enable --enable-host-shared.
14821# Check whether --enable-host-shared was given.
14822if test "${enable_host_shared+set}" = set; then :
14823 enableval=$enable_host_shared; host_shared=$enableval
14824else
14825 host_shared=no
14826fi
14827
14828
14829
1b6c0831
L
14830# PR jit/64780: Require the user to explicitly specify
14831# --enable-host-shared if the jit is enabled, hinting
14832# that they might want to do a separate configure/build of
14833# the jit, to avoid users from slowing down the rest of the
14834# compiler by enabling the jit.
14835if test ${host_shared} = "no" ; then
14836 case "${enable_languages}" in
14837 *jit*)
14838 as_fn_error "
14839Enabling language \"jit\" requires --enable-host-shared.
14840
14841--enable-host-shared typically slows the rest of the compiler down by
14842a few %, so you must explicitly enable it.
14843
14844If you want to build both the jit and the regular compiler, it is often
14845best to do this via two separate configure/builds, in separate
14846directories, to avoid imposing the performance cost of
14847--enable-host-shared on the regular compiler." "$LINENO" 5
14848 ;;
14849 *)
14850 ;;
14851 esac
14852fi
14853
e8a5fa9c
RW
14854# Specify what files to not compare during bootstrap.
14855
14856compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14857case "$target" in
14858 hppa*64*-*-hpux*) ;;
14859 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
1488e230 14860 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14861esac
14862
14863
81ecdfbb
RW
14864ac_config_files="$ac_config_files Makefile"
14865
c6b750e1 14866cat >confcache <<\_ACEOF
a0da8069
NN
14867# This file is a shell script that caches the results of configure
14868# tests run on this system so they can be shared between configure
c6b750e1
DJ
14869# scripts and configure runs, see configure's option --config-cache.
14870# It is not useful on other systems. If it contains results you don't
14871# want to keep, you may remove or edit it.
a0da8069 14872#
c6b750e1
DJ
14873# config.status only pays attention to the cache file if you give it
14874# the --recheck option to rerun configure.
a0da8069 14875#
c6b750e1
DJ
14876# `ac_cv_env_foo' variables (set or unset) will be overridden when
14877# loading this file, other *unset* `ac_cv_foo' will be assigned the
14878# following values.
14879
14880_ACEOF
14881
a0da8069
NN
14882# The following way of writing the cache mishandles newlines in values,
14883# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14884# So, we kill variables containing newlines.
a0da8069
NN
14885# Ultrix sh set writes to stderr and can't be redirected directly,
14886# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14887(
14888 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14889 eval ac_val=\$$ac_var
14890 case $ac_val in #(
14891 *${as_nl}*)
14892 case $ac_var in #(
14893 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14894$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14895 esac
14896 case $ac_var in #(
14897 _ | IFS | as_nl) ;; #(
14898 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14899 *) { eval $ac_var=; unset $ac_var;} ;;
14900 esac ;;
14901 esac
14902 done
14903
c6b750e1 14904 (set) 2>&1 |
81ecdfbb
RW
14905 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14906 *${as_nl}ac_space=\ *)
14907 # `set' does not quote correctly, so add quotes: double-quote
14908 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14909 sed -n \
14910 "s/'/'\\\\''/g;
14911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14912 ;; #(
c6b750e1
DJ
14913 *)
14914 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14915 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14916 ;;
81ecdfbb
RW
14917 esac |
14918 sort
14919) |
c6b750e1 14920 sed '
81ecdfbb 14921 /^ac_cv_env_/b end
c6b750e1 14922 t clear
81ecdfbb 14923 :clear
c6b750e1
DJ
14924 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14925 t end
81ecdfbb
RW
14926 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14927 :end' >>confcache
14928if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14929 if test -w "$cache_file"; then
14930 test "x$cache_file" != "x/dev/null" &&
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14932$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14933 cat confcache >$cache_file
a0da8069 14934 else
81ecdfbb
RW
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14936$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14937 fi
852e5f18 14938fi
a0da8069 14939rm -f confcache
852e5f18 14940
a0da8069
NN
14941test "x$prefix" = xNONE && prefix=$ac_default_prefix
14942# Let make expand exec_prefix.
14943test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14944
a0da8069
NN
14945# Transform confdefs.h into DEFS.
14946# Protect against shell expansion while executing Makefile rules.
14947# Protect against Makefile macro expansion.
c6b750e1
DJ
14948#
14949# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14950# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14951# look for a macro that doesn't take arguments.
81ecdfbb
RW
14952ac_script='
14953:mline
14954/\\$/{
14955 N
14956 s,\\\n,,
14957 b mline
14958}
c6b750e1 14959t clear
81ecdfbb
RW
14960:clear
14961s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14962t quote
81ecdfbb 14963s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14964t quote
81ecdfbb
RW
14965b any
14966:quote
14967s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14968s/\[/\\&/g
14969s/\]/\\&/g
14970s/\$/$$/g
14971H
14972:any
14973${
14974 g
14975 s/^\n//
14976 s/\n/ /g
14977 p
14978}
14979'
14980DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14981
14982
14983ac_libobjs=
14984ac_ltlibobjs=
14985for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14986 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14987 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14988 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14989 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14990 # will be set to the directory where LIBOBJS objects are built.
14991 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14992 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14993done
14994LIBOBJS=$ac_libobjs
852e5f18 14995
c6b750e1 14996LTLIBOBJS=$ac_ltlibobjs
376a0e54 14997
cac3d6c4 14998
c6b750e1
DJ
14999
15000: ${CONFIG_STATUS=./config.status}
81ecdfbb 15001ac_write_fail=0
c6b750e1
DJ
15002ac_clean_files_save=$ac_clean_files
15003ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15004{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15005$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15006as_write_fail=0
15007cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
15008#! $SHELL
15009# Generated by $as_me.
a0da8069 15010# Run this file to recreate the current configuration.
a0da8069 15011# Compiler output produced by configure, useful for debugging
c6b750e1 15012# configure, is in config.log if it exists.
376a0e54 15013
c6b750e1
DJ
15014debug=false
15015ac_cs_recheck=false
15016ac_cs_silent=false
c6b750e1 15017
81ecdfbb
RW
15018SHELL=\${CONFIG_SHELL-$SHELL}
15019export SHELL
15020_ASEOF
15021cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15022## -------------------- ##
15023## M4sh Initialization. ##
15024## -------------------- ##
15025
15026# Be more Bourne compatible
15027DUALCASE=1; export DUALCASE # for MKS sh
15028if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
15029 emulate sh
15030 NULLCMD=:
81ecdfbb 15031 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
15032 # is contrary to our usage. Disable this feature.
15033 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15034 setopt NO_GLOB_SUBST
15035else
15036 case `(set -o) 2>/dev/null` in #(
15037 *posix*) :
15038 set -o posix ;; #(
15039 *) :
15040 ;;
15041esac
c6b750e1 15042fi
c6b750e1 15043
81ecdfbb
RW
15044
15045as_nl='
15046'
15047export as_nl
15048# Printing a long string crashes Solaris 7 /usr/bin/printf.
15049as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15050as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15051as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15052# Prefer a ksh shell builtin over an external printf program on Solaris,
15053# but without wasting forks for bash or zsh.
15054if test -z "$BASH_VERSION$ZSH_VERSION" \
15055 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15056 as_echo='print -r --'
15057 as_echo_n='print -rn --'
15058elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15059 as_echo='printf %s\n'
15060 as_echo_n='printf %s'
15061else
15062 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15063 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15064 as_echo_n='/usr/ucb/echo -n'
15065 else
15066 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15067 as_echo_n_body='eval
15068 arg=$1;
15069 case $arg in #(
15070 *"$as_nl"*)
15071 expr "X$arg" : "X\\(.*\\)$as_nl";
15072 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15073 esac;
15074 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15075 '
15076 export as_echo_n_body
15077 as_echo_n='sh -c $as_echo_n_body as_echo'
15078 fi
15079 export as_echo_body
15080 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
15081fi
15082
81ecdfbb
RW
15083# The user is always right.
15084if test "${PATH_SEPARATOR+set}" != set; then
15085 PATH_SEPARATOR=:
15086 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15087 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15088 PATH_SEPARATOR=';'
15089 }
15090fi
15091
15092
15093# IFS
15094# We need space, tab and new line, in precisely that order. Quoting is
15095# there to prevent editors from complaining about space-tab.
15096# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15097# splitting by setting IFS to empty value.)
15098IFS=" "" $as_nl"
15099
15100# Find who we are. Look in the path if we contain no directory separator.
15101case $0 in #((
15102 *[\\/]* ) as_myself=$0 ;;
15103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15104for as_dir in $PATH
15105do
15106 IFS=$as_save_IFS
15107 test -z "$as_dir" && as_dir=.
15108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15109 done
15110IFS=$as_save_IFS
15111
15112 ;;
15113esac
15114# We did not find ourselves, most probably we were run as `sh COMMAND'
15115# in which case we are not to be found in the path.
15116if test "x$as_myself" = x; then
15117 as_myself=$0
15118fi
15119if test ! -f "$as_myself"; then
15120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15121 exit 1
15122fi
c6b750e1 15123
81ecdfbb
RW
15124# Unset variables that we do not need and which cause bugs (e.g. in
15125# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15126# suppresses any "Segmentation fault" message there. '((' could
15127# trigger a bug in pdksh 5.2.14.
15128for as_var in BASH_ENV ENV MAIL MAILPATH
15129do eval test x\${$as_var+set} = xset \
15130 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15131done
c6b750e1
DJ
15132PS1='$ '
15133PS2='> '
15134PS4='+ '
15135
15136# NLS nuisances.
81ecdfbb
RW
15137LC_ALL=C
15138export LC_ALL
15139LANGUAGE=C
15140export LANGUAGE
15141
15142# CDPATH.
15143(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15144
15145
15146# as_fn_error ERROR [LINENO LOG_FD]
15147# ---------------------------------
15148# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15149# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15150# script with status $?, using 1 if that was 0.
15151as_fn_error ()
15152{
15153 as_status=$?; test $as_status -eq 0 && as_status=1
15154 if test "$3"; then
15155 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15156 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 15157 fi
81ecdfbb
RW
15158 $as_echo "$as_me: error: $1" >&2
15159 as_fn_exit $as_status
15160} # as_fn_error
15161
15162
15163# as_fn_set_status STATUS
15164# -----------------------
15165# Set $? to STATUS, without forking.
15166as_fn_set_status ()
15167{
15168 return $1
15169} # as_fn_set_status
15170
15171# as_fn_exit STATUS
15172# -----------------
15173# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15174as_fn_exit ()
15175{
15176 set +e
15177 as_fn_set_status $1
15178 exit $1
15179} # as_fn_exit
15180
15181# as_fn_unset VAR
15182# ---------------
15183# Portably unset VAR.
15184as_fn_unset ()
15185{
15186 { eval $1=; unset $1;}
15187}
15188as_unset=as_fn_unset
15189# as_fn_append VAR VALUE
15190# ----------------------
15191# Append the text in VALUE to the end of the definition contained in VAR. Take
15192# advantage of any shell optimizations that allow amortized linear growth over
15193# repeated appends, instead of the typical quadratic growth present in naive
15194# implementations.
15195if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15196 eval 'as_fn_append ()
15197 {
15198 eval $1+=\$2
15199 }'
15200else
15201 as_fn_append ()
15202 {
15203 eval $1=\$$1\$2
15204 }
15205fi # as_fn_append
15206
15207# as_fn_arith ARG...
15208# ------------------
15209# Perform arithmetic evaluation on the ARGs, and store the result in the
15210# global $as_val. Take advantage of shells that can avoid forks. The arguments
15211# must be portable across $(()) and expr.
15212if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15213 eval 'as_fn_arith ()
15214 {
15215 as_val=$(( $* ))
15216 }'
15217else
15218 as_fn_arith ()
15219 {
15220 as_val=`expr "$@" || test $? -eq 1`
15221 }
15222fi # as_fn_arith
15223
c6b750e1 15224
81ecdfbb
RW
15225if expr a : '\(a\)' >/dev/null 2>&1 &&
15226 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
15227 as_expr=expr
15228else
15229 as_expr=false
15230fi
15231
81ecdfbb 15232if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
15233 as_basename=basename
15234else
15235 as_basename=false
15236fi
15237
81ecdfbb
RW
15238if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15239 as_dirname=dirname
15240else
15241 as_dirname=false
15242fi
c6b750e1 15243
81ecdfbb 15244as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15245$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15246 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15247 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15248$as_echo X/"$0" |
15249 sed '/^.*\/\([^/][^/]*\)\/*$/{
15250 s//\1/
15251 q
15252 }
15253 /^X\/\(\/\/\)$/{
15254 s//\1/
15255 q
15256 }
15257 /^X\/\(\/\).*/{
15258 s//\1/
15259 q
15260 }
15261 s/.*/./; q'`
c6b750e1 15262
c6b750e1
DJ
15263# Avoid depending upon Character Ranges.
15264as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15265as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15266as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15267as_cr_digits='0123456789'
15268as_cr_alnum=$as_cr_Letters$as_cr_digits
15269
81ecdfbb
RW
15270ECHO_C= ECHO_N= ECHO_T=
15271case `echo -n x` in #(((((
15272-n*)
15273 case `echo 'xy\c'` in
15274 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15275 xy) ECHO_C='\c';;
15276 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15277 ECHO_T=' ';;
15278 esac;;
15279*)
15280 ECHO_N='-n';;
c6b750e1
DJ
15281esac
15282
81ecdfbb
RW
15283rm -f conf$$ conf$$.exe conf$$.file
15284if test -d conf$$.dir; then
15285 rm -f conf$$.dir/conf$$.file
c6b750e1 15286else
81ecdfbb
RW
15287 rm -f conf$$.dir
15288 mkdir conf$$.dir 2>/dev/null
c6b750e1 15289fi
81ecdfbb
RW
15290if (echo >conf$$.file) 2>/dev/null; then
15291 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15292 as_ln_s='ln -s'
81ecdfbb
RW
15293 # ... but there are two gotchas:
15294 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15295 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15296 # In both cases, we have to default to `cp -p'.
15297 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15298 as_ln_s='cp -p'
15299 elif ln conf$$.file conf$$ 2>/dev/null; then
15300 as_ln_s=ln
15301 else
15302 as_ln_s='cp -p'
c6b750e1 15303 fi
c6b750e1
DJ
15304else
15305 as_ln_s='cp -p'
15306fi
81ecdfbb
RW
15307rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15308rmdir conf$$.dir 2>/dev/null
15309
15310
15311# as_fn_mkdir_p
15312# -------------
15313# Create "$as_dir" as a directory, including parents if necessary.
15314as_fn_mkdir_p ()
15315{
15316
15317 case $as_dir in #(
15318 -*) as_dir=./$as_dir;;
15319 esac
15320 test -d "$as_dir" || eval $as_mkdir_p || {
15321 as_dirs=
15322 while :; do
15323 case $as_dir in #(
15324 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15325 *) as_qdir=$as_dir;;
15326 esac
15327 as_dirs="'$as_qdir' $as_dirs"
15328 as_dir=`$as_dirname -- "$as_dir" ||
15329$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15330 X"$as_dir" : 'X\(//\)[^/]' \| \
15331 X"$as_dir" : 'X\(//\)$' \| \
15332 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15333$as_echo X"$as_dir" |
15334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15335 s//\1/
15336 q
15337 }
15338 /^X\(\/\/\)[^/].*/{
15339 s//\1/
15340 q
15341 }
15342 /^X\(\/\/\)$/{
15343 s//\1/
15344 q
15345 }
15346 /^X\(\/\).*/{
15347 s//\1/
15348 q
15349 }
15350 s/.*/./; q'`
15351 test -d "$as_dir" && break
15352 done
15353 test -z "$as_dirs" || eval "mkdir $as_dirs"
15354 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15355
c6b750e1 15356
81ecdfbb 15357} # as_fn_mkdir_p
c6b750e1 15358if mkdir -p . 2>/dev/null; then
81ecdfbb 15359 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15360else
15361 test -d ./-p && rmdir ./-p
15362 as_mkdir_p=false
15363fi
15364
81ecdfbb
RW
15365if test -x / >/dev/null 2>&1; then
15366 as_test_x='test -x'
15367else
15368 if ls -dL / >/dev/null 2>&1; then
15369 as_ls_L_option=L
15370 else
15371 as_ls_L_option=
15372 fi
15373 as_test_x='
15374 eval sh -c '\''
15375 if test -d "$1"; then
15376 test -d "$1/.";
15377 else
15378 case $1 in #(
15379 -*)set "./$1";;
15380 esac;
15381 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15382 ???[sx]*):;;*)false;;esac;fi
15383 '\'' sh
15384 '
15385fi
15386as_executable_p=$as_test_x
c6b750e1
DJ
15387
15388# Sed expression to map a string onto a valid CPP name.
15389as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15390
15391# Sed expression to map a string onto a valid variable name.
15392as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15393
15394
c6b750e1 15395exec 6>&1
81ecdfbb
RW
15396## ----------------------------------- ##
15397## Main body of $CONFIG_STATUS script. ##
15398## ----------------------------------- ##
15399_ASEOF
15400test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15401
15402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15403# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15404# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15405# values after options handling.
15406ac_log="
c6b750e1 15407This file was extended by $as_me, which was
81ecdfbb 15408generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
15409
15410 CONFIG_FILES = $CONFIG_FILES
15411 CONFIG_HEADERS = $CONFIG_HEADERS
15412 CONFIG_LINKS = $CONFIG_LINKS
15413 CONFIG_COMMANDS = $CONFIG_COMMANDS
15414 $ $0 $@
15415
81ecdfbb
RW
15416on `(hostname || uname -n) 2>/dev/null | sed 1q`
15417"
15418
c6b750e1
DJ
15419_ACEOF
15420
81ecdfbb
RW
15421case $ac_config_files in *"
15422"*) set x $ac_config_files; shift; ac_config_files=$*;;
15423esac
c6b750e1 15424
c6b750e1 15425
c6b750e1 15426
81ecdfbb
RW
15427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15428# Files that config.status was made for.
15429config_files="$ac_config_files"
c6b750e1 15430
81ecdfbb 15431_ACEOF
c6b750e1 15432
81ecdfbb 15433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15434ac_cs_usage="\
81ecdfbb
RW
15435\`$as_me' instantiates files and other configuration actions
15436from templates according to the current configuration. Unless the files
15437and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15438
81ecdfbb 15439Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15440
15441 -h, --help print this help, then exit
81ecdfbb
RW
15442 -V, --version print version number and configuration settings, then exit
15443 -q, --quiet, --silent
15444 do not print progress messages
c6b750e1
DJ
15445 -d, --debug don't remove temporary files
15446 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15447 --file=FILE[:TEMPLATE]
15448 instantiate the configuration file FILE
c6b750e1
DJ
15449
15450Configuration files:
15451$config_files
15452
81ecdfbb 15453Report bugs to the package provider."
c6b750e1 15454
81ecdfbb
RW
15455_ACEOF
15456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
15457ac_cs_version="\\
15458config.status
81ecdfbb
RW
15459configured by $0, generated by GNU Autoconf 2.64,
15460 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 15461
81ecdfbb 15462Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
15463This config.status script is free software; the Free Software Foundation
15464gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15465
15466ac_pwd='$ac_pwd'
15467srcdir='$srcdir'
15468INSTALL='$INSTALL'
8e957354 15469AWK='$AWK'
81ecdfbb 15470test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15471_ACEOF
15472
81ecdfbb
RW
15473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15474# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15475ac_need_defaults=:
15476while test $# != 0
a0da8069 15477do
c6b750e1
DJ
15478 case $1 in
15479 --*=*)
81ecdfbb
RW
15480 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15481 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15482 ac_shift=:
15483 ;;
81ecdfbb 15484 *)
c6b750e1
DJ
15485 ac_option=$1
15486 ac_optarg=$2
15487 ac_shift=shift
15488 ;;
c6b750e1
DJ
15489 esac
15490
15491 case $ac_option in
15492 # Handling of the options.
a0da8069 15493 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15494 ac_cs_recheck=: ;;
81ecdfbb
RW
15495 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15496 $as_echo "$ac_cs_version"; exit ;;
15497 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15498 debug=: ;;
15499 --file | --fil | --fi | --f )
15500 $ac_shift
81ecdfbb
RW
15501 case $ac_optarg in
15502 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15503 esac
15504 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15505 ac_need_defaults=false;;
81ecdfbb
RW
15506 --he | --h | --help | --hel | -h )
15507 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15509 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15510 ac_cs_silent=: ;;
15511
15512 # This is an error.
81ecdfbb
RW
15513 -*) as_fn_error "unrecognized option: \`$1'
15514Try \`$0 --help' for more information." ;;
c6b750e1 15515
81ecdfbb
RW
15516 *) as_fn_append ac_config_targets " $1"
15517 ac_need_defaults=false ;;
c6b750e1 15518
376a0e54 15519 esac
c6b750e1 15520 shift
376a0e54
CM
15521done
15522
c6b750e1 15523ac_configure_extra_args=
376a0e54 15524
c6b750e1
DJ
15525if $ac_cs_silent; then
15526 exec 6>/dev/null
15527 ac_configure_extra_args="$ac_configure_extra_args --silent"
15528fi
376a0e54 15529
c6b750e1 15530_ACEOF
81ecdfbb 15531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15532if \$ac_cs_recheck; then
81ecdfbb
RW
15533 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15534 shift
15535 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15536 CONFIG_SHELL='$SHELL'
15537 export CONFIG_SHELL
15538 exec "\$@"
c6b750e1
DJ
15539fi
15540
15541_ACEOF
81ecdfbb
RW
15542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15543exec 5>>config.log
15544{
15545 echo
15546 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15547## Running $as_me. ##
15548_ASBOX
15549 $as_echo "$ac_log"
15550} >&5
c6b750e1 15551
81ecdfbb
RW
15552_ACEOF
15553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15554#
15555# INIT-COMMANDS
15556#
15557extrasub_build="$extrasub_build"
15558 extrasub_host="$extrasub_host"
15559 extrasub_target="$extrasub_target"
15560
81ecdfbb 15561_ACEOF
c6b750e1 15562
81ecdfbb 15563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15564
81ecdfbb 15565# Handling of arguments.
c6b750e1
DJ
15566for ac_config_target in $ac_config_targets
15567do
81ecdfbb
RW
15568 case $ac_config_target in
15569 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15570
15571 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15572 esac
15573done
15574
81ecdfbb 15575
c6b750e1
DJ
15576# If the user did not use the arguments to specify the items to instantiate,
15577# then the envvar interface is used. Set only those that are not.
15578# We use the long form for the default assignment because of an extremely
15579# bizarre bug on SunOS 4.1.3.
15580if $ac_need_defaults; then
15581 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15582fi
15583
15584# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15585# simply because there is no reason against having it here, and in addition,
c6b750e1 15586# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15587# Hook for its removal unless debugging.
15588# Note that there is a small window in which the directory will not be cleaned:
15589# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15590$debug ||
15591{
81ecdfbb
RW
15592 tmp=
15593 trap 'exit_status=$?
15594 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15595' 0
15596 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15597}
c6b750e1
DJ
15598# Create a (secure) tmp directory for tmp files.
15599
15600{
81ecdfbb 15601 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
15602 test -n "$tmp" && test -d "$tmp"
15603} ||
15604{
81ecdfbb
RW
15605 tmp=./conf$$-$RANDOM
15606 (umask 077 && mkdir "$tmp")
15607} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15608
15609# Set up the scripts for CONFIG_FILES section.
15610# No need to generate them if there are no CONFIG_FILES.
15611# This happens for instance with `./config.status config.h'.
15612if test -n "$CONFIG_FILES"; then
15613
15614if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15615 ac_cs_awk_getline=:
15616 ac_cs_awk_pipe_init=
15617 ac_cs_awk_read_file='
15618 while ((getline aline < (F[key])) > 0)
15619 print(aline)
15620 close(F[key])'
15621 ac_cs_awk_pipe_fini=
15622else
15623 ac_cs_awk_getline=false
15624 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15625 ac_cs_awk_read_file='
15626 print "|#_!!_#|"
15627 print "cat " F[key] " &&"
15628 '$ac_cs_awk_pipe_init
15629 # The final `:' finishes the AND list.
15630 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15631fi
15632ac_cr=`echo X | tr X '\015'`
15633# On cygwin, bash can eat \r inside `` if the user requested igncr.
15634# But we know of no other shell where ac_cr would be empty at this
15635# point, so we can use a bashism as a fallback.
15636if test "x$ac_cr" = x; then
15637 eval ac_cr=\$\'\\r\'
15638fi
15639ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15640if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15641 ac_cs_awk_cr='\r'
15642else
15643 ac_cs_awk_cr=$ac_cr
15644fi
15645
15646echo 'BEGIN {' >"$tmp/subs1.awk" &&
15647_ACEOF
15648
15649# Create commands to substitute file output variables.
c6b750e1 15650{
81ecdfbb
RW
15651 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15652 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15653 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15654 echo "_ACAWK" &&
15655 echo "_ACEOF"
15656} >conf$$files.sh &&
15657. ./conf$$files.sh ||
15658 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15659rm -f conf$$files.sh
c6b750e1 15660
81ecdfbb
RW
15661{
15662 echo "cat >conf$$subs.awk <<_ACEOF" &&
15663 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15664 echo "_ACEOF"
15665} >conf$$subs.sh ||
15666 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15667ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15668ac_delim='%!_!# '
15669for ac_last_try in false false false false false :; do
15670 . ./conf$$subs.sh ||
15671 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15672
15673 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15674 if test $ac_delim_n = $ac_delim_num; then
15675 break
15676 elif $ac_last_try; then
15677 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15678 else
15679 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15680 fi
15681done
15682rm -f conf$$subs.sh
15683
15684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15685cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15686_ACEOF
81ecdfbb
RW
15687sed -n '
15688h
15689s/^/S["/; s/!.*/"]=/
15690p
15691g
15692s/^[^!]*!//
15693:repl
15694t repl
15695s/'"$ac_delim"'$//
15696t delim
15697:nl
15698h
15699s/\(.\{148\}\).*/\1/
15700t more1
15701s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15702p
15703n
15704b repl
15705:more1
15706s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15707p
15708g
15709s/.\{148\}//
15710t nl
15711:delim
15712h
15713s/\(.\{148\}\).*/\1/
15714t more2
15715s/["\\]/\\&/g; s/^/"/; s/$/"/
15716p
15717b
15718:more2
15719s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15720p
15721g
15722s/.\{148\}//
15723t delim
15724' <conf$$subs.awk | sed '
15725/^[^""]/{
15726 N
15727 s/\n//
15728}
15729' >>$CONFIG_STATUS || ac_write_fail=1
15730rm -f conf$$subs.awk
15731cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15732_ACAWK
15733cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15734 for (key in S) S_is_set[key] = 1
15735 FS = "\a"
15736 \$ac_cs_awk_pipe_init
15737}
15738{
15739 line = $ 0
15740 nfields = split(line, field, "@")
15741 substed = 0
15742 len = length(field[1])
15743 for (i = 2; i < nfields; i++) {
15744 key = field[i]
15745 keylen = length(key)
15746 if (S_is_set[key]) {
15747 value = S[key]
15748 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15749 len += length(value) + length(field[++i])
15750 substed = 1
15751 } else
15752 len += 1 + keylen
15753 }
15754 if (nfields == 3 && !substed) {
15755 key = field[2]
15756 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15757 \$ac_cs_awk_read_file
15758 next
15759 }
15760 }
15761 print line
15762}
15763\$ac_cs_awk_pipe_fini
15764_ACAWK
15765_ACEOF
15766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15767if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15768 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15769else
15770 cat
15771fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15772 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15773_ACEOF
15774
15775# VPATH may cause trouble with some makes, so we remove $(srcdir),
15776# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15777# trailing colons and then remove the whole line if VPATH becomes empty
15778# (actually we leave an empty line to preserve line numbers).
15779if test "x$srcdir" = x.; then
15780 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15781s/:*\$(srcdir):*/:/
15782s/:*\${srcdir}:*/:/
15783s/:*@srcdir@:*/:/
15784s/^\([^=]*=[ ]*\):*/\1/
15785s/:*$//
15786s/^[^=]*=[ ]*$//
15787}'
15788fi
c6b750e1 15789
81ecdfbb
RW
15790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15791fi # test -n "$CONFIG_FILES"
c6b750e1 15792
c6b750e1 15793
81ecdfbb
RW
15794eval set X " :F $CONFIG_FILES "
15795shift
15796for ac_tag
15797do
15798 case $ac_tag in
15799 :[FHLC]) ac_mode=$ac_tag; continue;;
15800 esac
15801 case $ac_mode$ac_tag in
15802 :[FHL]*:*);;
15803 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15804 :[FH]-) ac_tag=-:-;;
15805 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15806 esac
15807 ac_save_IFS=$IFS
15808 IFS=:
15809 set x $ac_tag
15810 IFS=$ac_save_IFS
15811 shift
15812 ac_file=$1
15813 shift
252b5132 15814
81ecdfbb
RW
15815 case $ac_mode in
15816 :L) ac_source=$1;;
15817 :[FH])
15818 ac_file_inputs=
15819 for ac_f
15820 do
15821 case $ac_f in
15822 -) ac_f="$tmp/stdin";;
15823 *) # Look for the file first in the build tree, then in the source tree
15824 # (if the path is not absolute). The absolute path cannot be DOS-style,
15825 # because $ac_f cannot contain `:'.
15826 test -f "$ac_f" ||
15827 case $ac_f in
15828 [\\/$]*) false;;
15829 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15830 esac ||
15831 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15832 esac
15833 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15834 as_fn_append ac_file_inputs " '$ac_f'"
15835 done
c6b750e1 15836
81ecdfbb
RW
15837 # Let's still pretend it is `configure' which instantiates (i.e., don't
15838 # use $as_me), people would be surprised to read:
15839 # /* config.h. Generated by config.status. */
15840 configure_input='Generated from '`
15841 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15842 `' by configure.'
15843 if test x"$ac_file" != x-; then
15844 configure_input="$ac_file. $configure_input"
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15846$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15847 fi
81ecdfbb
RW
15848 # Neutralize special characters interpreted by sed in replacement strings.
15849 case $configure_input in #(
15850 *\&* | *\|* | *\\* )
15851 ac_sed_conf_input=`$as_echo "$configure_input" |
15852 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15853 *) ac_sed_conf_input=$configure_input;;
15854 esac
cac3d6c4 15855
81ecdfbb
RW
15856 case $ac_tag in
15857 *:-:* | *:-) cat >"$tmp/stdin" \
15858 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15859 esac
15860 ;;
a0da8069 15861 esac
252b5132 15862
81ecdfbb 15863 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15864$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15865 X"$ac_file" : 'X\(//\)[^/]' \| \
15866 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15867 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15868$as_echo X"$ac_file" |
15869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15870 s//\1/
15871 q
15872 }
15873 /^X\(\/\/\)[^/].*/{
15874 s//\1/
15875 q
15876 }
15877 /^X\(\/\/\)$/{
15878 s//\1/
15879 q
15880 }
15881 /^X\(\/\).*/{
15882 s//\1/
15883 q
15884 }
15885 s/.*/./; q'`
15886 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15887 ac_builddir=.
252b5132 15888
81ecdfbb
RW
15889case "$ac_dir" in
15890.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15891*)
15892 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15893 # A ".." for each directory in $ac_dir_suffix.
15894 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15895 case $ac_top_builddir_sub in
15896 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15897 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15898 esac ;;
15899esac
15900ac_abs_top_builddir=$ac_pwd
15901ac_abs_builddir=$ac_pwd$ac_dir_suffix
15902# for backward compatibility:
15903ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15904
15905case $srcdir in
81ecdfbb 15906 .) # We are building in place.
c6b750e1 15907 ac_srcdir=.
81ecdfbb
RW
15908 ac_top_srcdir=$ac_top_builddir_sub
15909 ac_abs_top_srcdir=$ac_pwd ;;
15910 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15911 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15912 ac_top_srcdir=$srcdir
15913 ac_abs_top_srcdir=$srcdir ;;
15914 *) # Relative name.
15915 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15916 ac_top_srcdir=$ac_top_build_prefix$srcdir
15917 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15918esac
81ecdfbb 15919ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15920
252b5132 15921
81ecdfbb
RW
15922 case $ac_mode in
15923 :F)
15924 #
15925 # CONFIG_FILE
15926 #
c6b750e1
DJ
15927
15928 case $INSTALL in
15929 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15930 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15931 esac
81ecdfbb 15932_ACEOF
252b5132 15933
81ecdfbb
RW
15934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15935# If the template does not know about datarootdir, expand it.
15936# FIXME: This hack should be removed a few years after 2.60.
15937ac_datarootdir_hack=; ac_datarootdir_seen=
15938ac_sed_dataroot='
15939/datarootdir/ {
15940 p
15941 q
15942}
15943/@datadir@/p
15944/@docdir@/p
15945/@infodir@/p
15946/@localedir@/p
15947/@mandir@/p'
15948case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15949*datarootdir*) ac_datarootdir_seen=yes;;
15950*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15952$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15953_ACEOF
81ecdfbb
RW
15954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15955 ac_datarootdir_hack='
15956 s&@datadir@&$datadir&g
15957 s&@docdir@&$docdir&g
15958 s&@infodir@&$infodir&g
15959 s&@localedir@&$localedir&g
15960 s&@mandir@&$mandir&g
15961 s&\\\${datarootdir}&$datarootdir&g' ;;
15962esac
15963_ACEOF
15964
15965# Neutralize VPATH when `$srcdir' = `.'.
15966# Shell code in configure.ac might set extrasub.
15967# FIXME: do we really want to maintain this feature?
15968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15969ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15970$extrasub
15971_ACEOF
81ecdfbb 15972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15973:t
15974/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15975s|@configure_input@|$ac_sed_conf_input|;t t
15976s&@top_builddir@&$ac_top_builddir_sub&;t t
15977s&@top_build_prefix@&$ac_top_build_prefix&;t t
15978s&@srcdir@&$ac_srcdir&;t t
15979s&@abs_srcdir@&$ac_abs_srcdir&;t t
15980s&@top_srcdir@&$ac_top_srcdir&;t t
15981s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15982s&@builddir@&$ac_builddir&;t t
15983s&@abs_builddir@&$ac_abs_builddir&;t t
15984s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15985s&@INSTALL@&$ac_INSTALL&;t t
15986$ac_datarootdir_hack
15987"
15988eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15989if $ac_cs_awk_getline; then
15990 $AWK -f "$tmp/subs.awk"
15991else
15992 $AWK -f "$tmp/subs.awk" | $SHELL
15993fi >$tmp/out \
15994 || as_fn_error "could not create $ac_file" "$LINENO" 5
15995
15996test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15997 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15998 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16000which seems to be undefined. Please make sure it is defined." >&5
16001$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16002which seems to be undefined. Please make sure it is defined." >&2;}
16003
16004 rm -f "$tmp/stdin"
16005 case $ac_file in
16006 -) cat "$tmp/out" && rm -f "$tmp/out";;
16007 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16008 esac \
16009 || as_fn_error "could not create $ac_file" "$LINENO" 5
16010 ;;
c148b4cb 16011
c148b4cb 16012
c148b4cb 16013
81ecdfbb
RW
16014 esac
16015
06a51eac
RW
16016
16017 case $ac_file$ac_mode in
16018 "Makefile":F) sed "$extrasub_build" Makefile |
16019 sed "$extrasub_host" |
16020 sed "$extrasub_target" > mf$$
16021 mv -f mf$$ Makefile ;;
16022
16023 esac
81ecdfbb
RW
16024done # for ac_tag
16025
16026
16027as_fn_exit 0
c6b750e1 16028_ACEOF
c6b750e1
DJ
16029ac_clean_files=$ac_clean_files_save
16030
81ecdfbb
RW
16031test $ac_write_fail = 0 ||
16032 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16033
c6b750e1
DJ
16034
16035# configure is writing to config.log, and then calls config.status.
16036# config.status does its own redirection, appending to config.log.
16037# Unfortunately, on DOS this fails, as config.log is still kept open
16038# by configure, so config.status won't be able to write to it; its
16039# output is simply discarded. So we exec the FD to /dev/null,
16040# effectively closing config.log, so it can be properly (re)opened and
16041# appended to by config.status. When coming back to configure, we
16042# need to make the FD available again.
16043if test "$no_create" != yes; then
16044 ac_cs_success=:
16045 ac_config_status_args=
16046 test "$silent" = yes &&
16047 ac_config_status_args="$ac_config_status_args --quiet"
16048 exec 5>/dev/null
16049 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16050 exec 5>>config.log
16051 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16052 # would make configure fail if this is the last instruction.
81ecdfbb
RW
16053 $ac_cs_success || as_fn_exit $?
16054fi
16055if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16057$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 16058fi
c148b4cb 16059
This page took 1.750057 seconds and 4 git commands to generate.