Sync isl.m4 with GCC tree
[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
646stage1_languages
700d40ca 647extra_host_libiberty_configure_flags
81ecdfbb
RW
648clooginc
649clooglibs
7ec59b9e 650islinc
81ecdfbb 651poststage1_ldflags
143754cd 652poststage1_libs
81ecdfbb 653stage1_ldflags
b3676d82 654stage1_libs
7ec59b9e 655extra_isl_gmp_configure_flags
81ecdfbb
RW
656extra_mpc_mpfr_configure_flags
657extra_mpc_gmp_configure_flags
658extra_mpfr_configure_flags
659gmpinc
660gmplibs
661do_compare
662GNATMAKE
663GNATBIND
664ac_ct_CXX
665CXXFLAGS
666CXX
667OBJEXT
668EXEEXT
669ac_ct_CC
670CPPFLAGS
671LDFLAGS
672CFLAGS
673CC
ffdd6afc 674EXTRA_CONFIGARGS_LIBJAVA
81ecdfbb
RW
675target_subdir
676host_subdir
677build_subdir
678build_libsubdir
8e957354
PB
679AWK
680SED
81ecdfbb
RW
681LN_S
682LN
683INSTALL_DATA
684INSTALL_SCRIPT
685INSTALL_PROGRAM
686target_os
687target_vendor
688target_cpu
689target
690host_os
691host_vendor
692host_cpu
693host
694target_noncanonical
695host_noncanonical
696build_noncanonical
697build_os
698build_vendor
699build_cpu
700build
701TOPLEVEL_CONFIGURE_ARGUMENTS
702target_alias
703host_alias
704build_alias
705LIBS
706ECHO_T
707ECHO_N
708ECHO_C
709DEFS
710mandir
711localedir
712libdir
713psdir
714pdfdir
715dvidir
716htmldir
717infodir
718docdir
719oldincludedir
720includedir
721localstatedir
722sharedstatedir
723sysconfdir
724datadir
725datarootdir
726libexecdir
727sbindir
728bindir
729program_transform_name
730prefix
731exec_prefix
732PACKAGE_URL
733PACKAGE_BUGREPORT
734PACKAGE_STRING
735PACKAGE_VERSION
736PACKAGE_TARNAME
737PACKAGE_NAME
738PATH_SEPARATOR
739SHELL'
740ac_subst_files='serialization_dependencies
741host_makefile_frag
742target_makefile_frag
743alphaieee_frag
744ospace_frag'
745ac_user_opts='
746enable_option_checking
747with_build_libsubdir
748enable_gold
c7791212 749enable_ld
89a1e9c3
PB
750enable_libquadmath
751enable_libquadmath_support
81ecdfbb
RW
752enable_libada
753enable_libssp
f66a9a70 754enable_libstdcxx
ffdd6afc
ILT
755enable_static_libjava
756enable_bootstrap
81ecdfbb
RW
757with_mpc
758with_mpc_include
759with_mpc_lib
760with_mpfr_dir
761with_mpfr
762with_mpfr_include
763with_mpfr_lib
764with_gmp_dir
765with_gmp
766with_gmp_include
767with_gmp_lib
768with_host_libstdcxx
81ecdfbb 769with_stage1_libs
b3676d82 770with_stage1_ldflags
81ecdfbb 771with_boot_libs
143754cd 772with_boot_ldflags
8e71395b 773with_cloog
7ec59b9e
L
774with_isl
775with_isl_include
776with_isl_lib
777enable_isl_version_check
81ecdfbb
RW
778with_cloog_include
779with_cloog_lib
780enable_cloog_version_check
700d40ca 781enable_lto
81ecdfbb
RW
782enable_stage1_languages
783enable_objc_gc
784with_build_sysroot
785with_debug_prefix_map
96655cc4 786with_build_config
730af8ee 787enable_vtable_verify
81ecdfbb
RW
788enable_serial_configure
789with_build_time_tools
790enable_maintainer_mode
791enable_stage1_checking
792enable_werror
82033c9b 793enable_host_shared
81ecdfbb
RW
794'
795 ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801LIBS
802CPPFLAGS
803CXX
804CXXFLAGS
805CCC
4074d5f2
RW
806build_configargs
807host_configargs
808target_configargs
81ecdfbb
RW
809AR
810AS
811DLLTOOL
812LD
813LIPO
814NM
815RANLIB
816STRIP
817WINDRES
818WINDMC
819OBJCOPY
820OBJDUMP
b121d7d4 821READELF
81ecdfbb
RW
822CC_FOR_TARGET
823CXX_FOR_TARGET
824GCC_FOR_TARGET
825GCJ_FOR_TARGET
826GFORTRAN_FOR_TARGET
e552509b 827GOC_FOR_TARGET
81ecdfbb
RW
828AR_FOR_TARGET
829AS_FOR_TARGET
830DLLTOOL_FOR_TARGET
831LD_FOR_TARGET
832LIPO_FOR_TARGET
833NM_FOR_TARGET
6b91c541 834OBJCOPY_FOR_TARGET
81ecdfbb
RW
835OBJDUMP_FOR_TARGET
836RANLIB_FOR_TARGET
b121d7d4 837READELF_FOR_TARGET
81ecdfbb
RW
838STRIP_FOR_TARGET
839WINDRES_FOR_TARGET
840WINDMC_FOR_TARGET'
841
a0da8069
NN
842
843# Initialize some variables set by options.
c6b750e1
DJ
844ac_init_help=
845ac_init_version=false
81ecdfbb
RW
846ac_unrecognized_opts=
847ac_unrecognized_sep=
a0da8069
NN
848# The variables have the same names as the options, with
849# dashes changed to underlines.
c6b750e1 850cache_file=/dev/null
a0da8069 851exec_prefix=NONE
a0da8069 852no_create=
a0da8069
NN
853no_recursion=
854prefix=NONE
855program_prefix=NONE
856program_suffix=NONE
857program_transform_name=s,x,x,
858silent=
859site=
860srcdir=
a0da8069
NN
861verbose=
862x_includes=NONE
863x_libraries=NONE
c6b750e1
DJ
864
865# Installation directory options.
866# These are left unexpanded so users can "make install exec_prefix=/foo"
867# and all the variables that are supposed to be based on exec_prefix
868# by default will actually change.
869# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 870# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
871bindir='${exec_prefix}/bin'
872sbindir='${exec_prefix}/sbin'
873libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
874datarootdir='${prefix}/share'
875datadir='${datarootdir}'
a0da8069
NN
876sysconfdir='${prefix}/etc'
877sharedstatedir='${prefix}/com'
878localstatedir='${prefix}/var'
a0da8069
NN
879includedir='${prefix}/include'
880oldincludedir='/usr/include'
81ecdfbb
RW
881docdir='${datarootdir}/doc/${PACKAGE}'
882infodir='${datarootdir}/info'
883htmldir='${docdir}'
884dvidir='${docdir}'
885pdfdir='${docdir}'
886psdir='${docdir}'
887libdir='${exec_prefix}/lib'
888localedir='${datarootdir}/locale'
889mandir='${datarootdir}/man'
252b5132 890
a0da8069 891ac_prev=
81ecdfbb 892ac_dashdash=
a0da8069
NN
893for ac_option
894do
a0da8069
NN
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
81ecdfbb 897 eval $ac_prev=\$ac_option
a0da8069
NN
898 ac_prev=
899 continue
900 fi
252b5132 901
81ecdfbb
RW
902 case $ac_option in
903 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *) ac_optarg=yes ;;
905 esac
a0da8069
NN
906
907 # Accept the important Cygnus configure options, so we can diagnose typos.
908
81ecdfbb
RW
909 case $ac_dashdash$ac_option in
910 --)
911 ac_dashdash=yes ;;
a0da8069
NN
912
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 916 bindir=$ac_optarg ;;
a0da8069
NN
917
918 -build | --build | --buil | --bui | --bu)
c6b750e1 919 ac_prev=build_alias ;;
a0da8069 920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 921 build_alias=$ac_optarg ;;
a0da8069
NN
922
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
928 cache_file=$ac_optarg ;;
929
930 --config-cache | -C)
931 cache_file=config.cache ;;
a0da8069 932
81ecdfbb 933 -datadir | --datadir | --datadi | --datad)
a0da8069 934 ac_prev=datadir ;;
81ecdfbb 935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 936 datadir=$ac_optarg ;;
a0da8069 937
81ecdfbb
RW
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
944
a0da8069 945 -disable-* | --disable-*)
81ecdfbb 946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 947 # Reject names that are not valid shell variable names.
81ecdfbb
RW
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954"enable_$ac_useropt"
955"*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=no ;;
960
961 -docdir | --docdir | --docdi | --doc | --do)
962 ac_prev=docdir ;;
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 docdir=$ac_optarg ;;
965
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 ac_prev=dvidir ;;
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 dvidir=$ac_optarg ;;
a0da8069
NN
970
971 -enable-* | --enable-*)
81ecdfbb 972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 973 # Reject names that are not valid shell variable names.
81ecdfbb
RW
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error "invalid feature name: $ac_useropt"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
979 *"
980"enable_$ac_useropt"
981"*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
a0da8069 984 esac
81ecdfbb 985 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
986
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
c6b750e1 994 exec_prefix=$ac_optarg ;;
a0da8069
NN
995
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
999
c6b750e1
DJ
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
a0da8069
NN
1006
1007 -host | --host | --hos | --ho)
c6b750e1 1008 ac_prev=host_alias ;;
a0da8069 1009 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1010 host_alias=$ac_optarg ;;
a0da8069 1011
81ecdfbb
RW
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1017
a0da8069
NN
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1023 includedir=$ac_optarg ;;
a0da8069
NN
1024
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1028 infodir=$ac_optarg ;;
a0da8069
NN
1029
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1033 libdir=$ac_optarg ;;
a0da8069
NN
1034
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1040 libexecdir=$ac_optarg ;;
a0da8069 1041
81ecdfbb
RW
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1046
a0da8069 1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1048 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1052 localstatedir=$ac_optarg ;;
a0da8069
NN
1053
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1057 mandir=$ac_optarg ;;
a0da8069
NN
1058
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1062
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1064 | --no-cr | --no-c | -n)
a0da8069
NN
1065 no_create=yes ;;
1066
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1070
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1078 oldincludedir=$ac_optarg ;;
a0da8069
NN
1079
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1083 prefix=$ac_optarg ;;
a0da8069
NN
1084
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1090 program_prefix=$ac_optarg ;;
a0da8069
NN
1091
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1097 program_suffix=$ac_optarg ;;
a0da8069
NN
1098
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1114 program_transform_name=$ac_optarg ;;
a0da8069 1115
81ecdfbb
RW
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1120
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1125
a0da8069
NN
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1129
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 ac_prev=sbindir ;;
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 | --sbi=* | --sb=*)
c6b750e1 1134 sbindir=$ac_optarg ;;
a0da8069
NN
1135
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1139 | --sha | --sh)
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 | --sha=* | --sh=*)
c6b750e1 1145 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1146
1147 -site | --site | --sit)
1148 ac_prev=site ;;
1149 -site=* | --site=* | --sit=*)
c6b750e1 1150 site=$ac_optarg ;;
a0da8069
NN
1151
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 ac_prev=srcdir ;;
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1155 srcdir=$ac_optarg ;;
a0da8069
NN
1156
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1162 sysconfdir=$ac_optarg ;;
a0da8069
NN
1163
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1165 ac_prev=target_alias ;;
a0da8069 1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1167 target_alias=$ac_optarg ;;
a0da8069
NN
1168
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 verbose=yes ;;
1171
c6b750e1
DJ
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
a0da8069
NN
1174
1175 -with-* | --with-*)
81ecdfbb 1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1177 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1183 *"
1184"with_$ac_useropt"
1185"*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
a0da8069 1188 esac
81ecdfbb 1189 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1190
1191 -without-* | --without-*)
81ecdfbb 1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1193 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1199 *"
1200"with_$ac_useropt"
1201"*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=no ;;
a0da8069
NN
1206
1207 --x)
1208 # Obsolete; use --with-x.
1209 with_x=yes ;;
1210
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1216 x_includes=$ac_optarg ;;
a0da8069
NN
1217
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1223 x_libraries=$ac_optarg ;;
a0da8069 1224
81ecdfbb
RW
1225 -*) as_fn_error "unrecognized option: \`$ac_option'
1226Try \`$0 --help' for more information."
a0da8069
NN
1227 ;;
1228
c6b750e1
DJ
1229 *=*)
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1232 case $ac_envvar in #(
1233 '' | [0-9]* | *[!_$as_cr_alnum]* )
1234 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1235 esac
1236 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1237 export $ac_envvar ;;
1238
a0da8069 1239 *)
c6b750e1 1240 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1245 ;;
1246
1247 esac
1248done
1249
1250if test -n "$ac_prev"; then
c6b750e1 1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1252 as_fn_error "missing argument to $ac_option"
a0da8069 1253fi
a0da8069 1254
81ecdfbb
RW
1255if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1257 no) ;;
1258 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1260 esac
81ecdfbb 1261fi
a0da8069 1262
81ecdfbb
RW
1263# Check all directory arguments for consistency.
1264for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
a0da8069 1268do
81ecdfbb
RW
1269 eval ac_val=\$$ac_var
1270 # Remove trailing slashes.
1271 case $ac_val in
1272 */ )
1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\$ac_val;;
1275 esac
1276 # Be sure to have absolute directory names.
c6b750e1 1277 case $ac_val in
81ecdfbb
RW
1278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1280 esac
81ecdfbb 1281 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1282done
1283
c6b750e1
DJ
1284# There might be people who depend on the old broken behavior: `$host'
1285# used to hold the argument of --host etc.
1286# FIXME: To remove some day.
1287build=$build_alias
1288host=$host_alias
1289target=$target_alias
376a0e54 1290
c6b750e1
DJ
1291# FIXME: To remove some day.
1292if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
81ecdfbb 1295 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1299 fi
1300fi
1301
1302ac_tool_prefix=
1303test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305test "$silent" = yes && exec 6>/dev/null
a0da8069 1306
a0da8069 1307
81ecdfbb
RW
1308ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309ac_ls_di=`ls -di .` &&
1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error "working directory cannot be determined"
1312test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error "pwd does not report name of working directory"
1314
1315
a0da8069
NN
1316# Find the source files, if location was not specified.
1317if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
81ecdfbb
RW
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325$as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\).*/{
1339 s//\1/
1340 q
1341 }
1342 s/.*/./; q'`
a0da8069 1343 srcdir=$ac_confdir
81ecdfbb 1344 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1345 srcdir=..
1346 fi
1347else
1348 ac_srcdir_defaulted=no
1349fi
81ecdfbb
RW
1350if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1353fi
1354ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1357 pwd)`
1358# When building in place, set srcdir=.
1359if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1361fi
1362# Remove unnecessary trailing slashes from srcdir.
1363# Double slashes in file names in object file debugging info
1364# mess up M-x gdb in Emacs.
1365case $srcdir in
1366*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367esac
6d0cd39e
AM
1368case $srcdir in
1369 *" "*)
1370 as_fn_error "path to source, $srcdir, contains spaces"
1371 ;;
1372esac
9cc8ae67
PB
1373ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1374
81ecdfbb
RW
1375for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380done
c6b750e1
DJ
1381
1382#
1383# Report the --help message.
1384#
1385if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1388 cat <<_ACEOF
1389\`configure' configures this package to adapt to many kinds of systems.
1390
1391Usage: $0 [OPTION]... [VAR=VALUE]...
1392
1393To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394VAR=VALUE. See below for descriptions of some of the useful variables.
1395
1396Defaults for the options are specified in brackets.
1397
1398Configuration:
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1408
c6b750e1
DJ
1409Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1411 [$ac_default_prefix]
c6b750e1 1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1413 [PREFIX]
c6b750e1
DJ
1414
1415By default, \`make install' will install all the files in
1416\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418for instance \`--prefix=\$HOME'.
1419
1420For better control, use the options below.
1421
1422Fine tuning of the installation directories:
81ecdfbb
RW
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1442_ACEOF
1443
1444 cat <<\_ACEOF
1445
1446Program names:
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1450
1451System types:
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1454 --target=TARGET configure for building compilers for TARGET [HOST]
1455_ACEOF
a0da8069 1456fi
a0da8069 1457
c6b750e1
DJ
1458if test -n "$ac_init_help"; then
1459
1460 cat <<\_ACEOF
1461
1462Optional Features:
81ecdfbb 1463 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212 1466 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1467 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
89a1e9c3
PB
1468 --disable-libquadmath do not build libquadmath directory
1469 --disable-libquadmath-support
1470 disable libquadmath support for Fortran
521ec477
DD
1471 --enable-libada build libada directory
1472 --enable-libssp build libssp directory
f66a9a70 1473 --disable-libstdcxx do not build libstdc++-v3 directory
ffdd6afc
ILT
1474 --enable-static-libjava[=ARG]
1475 build static libjava [default=no]
1476 --enable-bootstrap enable bootstrapping [yes if native build]
7ec59b9e
L
1477 --disable-isl-version-check
1478 disable check for ISL version
e552509b
ILT
1479 --disable-cloog-version-check
1480 disable check for CLooG version
700d40ca 1481 --enable-lto enable link time optimization support
7837304f
AS
1482 --enable-stage1-languages[=all]
1483 choose additional languages to build during stage1.
1484 Mostly useful for compiler development
1485 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1486 Objective-C runtime
730af8ee 1487 --enable-vtable-verify Enable vtable verification feature
521ec477 1488 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1489 force sequential configuration of sub-packages for
1490 the host, target or build machine, or all
1491 sub-packages
1492 --enable-maintainer-mode
1493 enable make rules and dependencies not useful (and
1494 sometimes confusing) to the casual installer
1495 --enable-stage1-checking[=all]
1496 choose additional checking for stage1 of the
1497 compiler
c6b750e1 1498 --enable-werror enable -Werror in bootstrap stage2 and later
82033c9b 1499 --enable-host-shared build host code as shared libraries
c6b750e1
DJ
1500
1501Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-build-libsubdir=DIR Directory where to find libraries for build system
7837304f
AS
1505 --with-mpc=PATH specify prefix directory for installed MPC package.
1506 Equivalent to --with-mpc-include=PATH/include plus
1507 --with-mpc-lib=PATH/lib
1508 --with-mpc-include=PATH specify directory for installed MPC include files
1509 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1510 --with-mpfr-dir=PATH this option has been REMOVED
1511 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1512 Equivalent to --with-mpfr-include=PATH/include plus
1513 --with-mpfr-lib=PATH/lib
c6b750e1 1514 --with-mpfr-include=PATH
521ec477
DD
1515 specify directory for installed MPFR include files
1516 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1517 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1518 --with-gmp=PATH specify prefix directory for the installed GMP
1519 package. Equivalent to
1520 --with-gmp-include=PATH/include plus
1521 --with-gmp-lib=PATH/lib
521ec477
DD
1522 --with-gmp-include=PATH specify directory for installed GMP include files
1523 --with-gmp-lib=PATH specify directory for the installed GMP library
7837304f
AS
1524 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1525 linking with PPL
b3676d82 1526 --with-stage1-libs=LIBS libraries for stage1
7837304f
AS
1527 --with-stage1-ldflags=FLAGS
1528 linker flags for stage1
7837304f
AS
1529 --with-boot-libs=LIBS libraries for stage2 and later
1530 --with-boot-ldflags=FLAGS
1531 linker flags for stage2 and later
8e71395b
L
1532 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1533 package. Equivalent to
1534 --with-cloog-include=PATH/include plus
1535 --with-cloog-lib=PATH/lib
7ec59b9e 1536 --with-isl=PATH Specify prefix directory for the installed ISL
7837304f 1537 package. Equivalent to
7ec59b9e
L
1538 --with-isl-include=PATH/include plus
1539 --with-isl-lib=PATH/lib
1540 --with-isl-include=PATH Specify directory for installed ISL include files
1541 --with-isl-lib=PATH Specify the directory for the installed ISL library
e552509b
ILT
1542 --with-cloog-include=PATH
1543 Specify directory for installed CLooG include files
1544 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1545 library
521ec477 1546 --with-build-sysroot=SYSROOT
c6b750e1 1547 use sysroot as the system root during the build
8a6ee3ab 1548 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1549 map A to B, C to D ... in debug information
1550 --with-build-config='NAME NAME2...'
1551 use config/NAME.mk build configuration
521ec477 1552 --with-build-time-tools=PATH
c6b750e1 1553 use given path to find target tools during the build
c6b750e1
DJ
1554
1555Some influential environment variables:
1556 CC C compiler command
1557 CFLAGS C compiler flags
1558 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1559 nonstandard directory <lib dir>
81ecdfbb
RW
1560 LIBS libraries to pass to the linker, e.g. -l<library>
1561 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1562 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1563 CXX C++ compiler command
1564 CXXFLAGS C++ compiler flags
4074d5f2
RW
1565 build_configargs
1566 additional configure arguments for build directories
1567 host_configargs
1568 additional configure arguments for host directories
1569 target_configargs
1570 additional configure arguments for target directories
9a819804
AO
1571 AR AR for the host
1572 AS AS for the host
1573 DLLTOOL DLLTOOL for the host
1574 LD LD for the host
1575 LIPO LIPO for the host
1576 NM NM for the host
1577 RANLIB RANLIB for the host
1578 STRIP STRIP for the host
1579 WINDRES WINDRES for the host
0c24b341 1580 WINDMC WINDMC for the host
9a819804
AO
1581 OBJCOPY OBJCOPY for the host
1582 OBJDUMP OBJDUMP for the host
b121d7d4 1583 READELF READELF for the host
9a819804
AO
1584 CC_FOR_TARGET
1585 CC for the target
1586 CXX_FOR_TARGET
1587 CXX for the target
1588 GCC_FOR_TARGET
1589 GCC for the target
1590 GCJ_FOR_TARGET
1591 GCJ for the target
1592 GFORTRAN_FOR_TARGET
1593 GFORTRAN for the target
e552509b
ILT
1594 GOC_FOR_TARGET
1595 GOC for the target
9a819804
AO
1596 AR_FOR_TARGET
1597 AR for the target
1598 AS_FOR_TARGET
1599 AS for the target
1600 DLLTOOL_FOR_TARGET
1601 DLLTOOL for the target
1602 LD_FOR_TARGET
1603 LD for the target
1604 LIPO_FOR_TARGET
1605 LIPO for the target
1606 NM_FOR_TARGET
1607 NM for the target
6b91c541
AP
1608 OBJCOPY_FOR_TARGET
1609 OBJCOPY for the target
9a819804
AO
1610 OBJDUMP_FOR_TARGET
1611 OBJDUMP for the target
1612 RANLIB_FOR_TARGET
1613 RANLIB for the target
b121d7d4
DD
1614 READELF_FOR_TARGET
1615 READELF for the target
9a819804
AO
1616 STRIP_FOR_TARGET
1617 STRIP for the target
1618 WINDRES_FOR_TARGET
1619 WINDRES for the target
0c24b341
NC
1620 WINDMC_FOR_TARGET
1621 WINDMC for the target
c6b750e1
DJ
1622
1623Use these variables to override the choices made by `configure' or to help
1624it to find libraries and programs with nonstandard names/locations.
1625
81ecdfbb 1626Report bugs to the package provider.
c6b750e1 1627_ACEOF
81ecdfbb 1628ac_status=$?
c6b750e1
DJ
1629fi
1630
1631if test "$ac_init_help" = "recursive"; then
1632 # If there are subdirs, report their specific --help.
c6b750e1 1633 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1634 test -d "$ac_dir" ||
1635 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1636 continue
c6b750e1
DJ
1637 ac_builddir=.
1638
81ecdfbb
RW
1639case "$ac_dir" in
1640.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641*)
1642 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1643 # A ".." for each directory in $ac_dir_suffix.
1644 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1645 case $ac_top_builddir_sub in
1646 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1648 esac ;;
1649esac
1650ac_abs_top_builddir=$ac_pwd
1651ac_abs_builddir=$ac_pwd$ac_dir_suffix
1652# for backward compatibility:
1653ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1654
1655case $srcdir in
81ecdfbb 1656 .) # We are building in place.
c6b750e1 1657 ac_srcdir=.
81ecdfbb
RW
1658 ac_top_srcdir=$ac_top_builddir_sub
1659 ac_abs_top_srcdir=$ac_pwd ;;
1660 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1661 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1662 ac_top_srcdir=$srcdir
1663 ac_abs_top_srcdir=$srcdir ;;
1664 *) # Relative name.
1665 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1666 ac_top_srcdir=$ac_top_build_prefix$srcdir
1667 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1668esac
81ecdfbb
RW
1669ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1670
1671 cd "$ac_dir" || { ac_status=$?; continue; }
1672 # Check for guested configure.
1673 if test -f "$ac_srcdir/configure.gnu"; then
1674 echo &&
1675 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1676 elif test -f "$ac_srcdir/configure"; then
1677 echo &&
1678 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1679 else
81ecdfbb
RW
1680 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1681 fi || ac_status=$?
1682 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1683 done
1684fi
1685
81ecdfbb 1686test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1687if $ac_init_version; then
1688 cat <<\_ACEOF
81ecdfbb
RW
1689configure
1690generated by GNU Autoconf 2.64
c6b750e1 1691
81ecdfbb 1692Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1693This configure script is free software; the Free Software Foundation
1694gives unlimited permission to copy, distribute and modify it.
1695_ACEOF
81ecdfbb 1696 exit
c6b750e1 1697fi
81ecdfbb
RW
1698
1699## ------------------------ ##
1700## Autoconf initialization. ##
1701## ------------------------ ##
1702
1703# ac_fn_c_try_compile LINENO
1704# --------------------------
1705# Try to compile conftest.$ac_ext, and return whether this succeeded.
1706ac_fn_c_try_compile ()
1707{
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext
1710 if { { ac_try="$ac_compile"
1711case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_compile") 2>conftest.err
1718 ac_status=$?
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1723 fi
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest.$ac_objext; then :
1729 ac_retval=0
1730else
1731 $as_echo "$as_me: failed program was:" >&5
1732sed 's/^/| /' conftest.$ac_ext >&5
1733
1734 ac_retval=1
1735fi
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737 return $ac_retval
1738
1739} # ac_fn_c_try_compile
1740
1741# ac_fn_cxx_try_compile LINENO
1742# ----------------------------
1743# Try to compile conftest.$ac_ext, and return whether this succeeded.
1744ac_fn_cxx_try_compile ()
1745{
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 rm -f conftest.$ac_objext
1748 if { { ac_try="$ac_compile"
1749case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752esac
1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754$as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_compile") 2>conftest.err
1756 ac_status=$?
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1761 fi
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && {
1764 test -z "$ac_cxx_werror_flag" ||
1765 test ! -s conftest.err
1766 } && test -s conftest.$ac_objext; then :
1767 ac_retval=0
1768else
1769 $as_echo "$as_me: failed program was:" >&5
1770sed 's/^/| /' conftest.$ac_ext >&5
1771
1772 ac_retval=1
1773fi
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 return $ac_retval
1776
1777} # ac_fn_cxx_try_compile
1778
b3676d82
EB
1779# ac_fn_cxx_try_link LINENO
1780# -------------------------
1781# Try to link conftest.$ac_ext, and return whether this succeeded.
1782ac_fn_cxx_try_link ()
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext conftest$ac_exeext
1786 if { { ac_try="$ac_link"
1787case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790esac
1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792$as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1799 fi
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_cxx_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest$ac_exeext && {
1805 test "$cross_compiling" = yes ||
1806 $as_test_x conftest$ac_exeext
1807 }; then :
1808 ac_retval=0
1809else
1810 $as_echo "$as_me: failed program was:" >&5
1811sed 's/^/| /' conftest.$ac_ext >&5
1812
1813 ac_retval=1
1814fi
1815 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1816 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1817 # interfere with the next link command; also delete a directory that is
1818 # left behind by Apple's compiler. We do this before executing the actions.
1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821 return $ac_retval
1822
1823} # ac_fn_cxx_try_link
1824
81ecdfbb
RW
1825# ac_fn_c_try_link LINENO
1826# -----------------------
1827# Try to link conftest.$ac_ext, and return whether this succeeded.
1828ac_fn_c_try_link ()
1829{
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext conftest$ac_exeext
1832 if { { ac_try="$ac_link"
1833case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836esac
1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838$as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_link") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1845 fi
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_c_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest$ac_exeext && {
1851 test "$cross_compiling" = yes ||
1852 $as_test_x conftest$ac_exeext
1853 }; then :
1854 ac_retval=0
1855else
1856 $as_echo "$as_me: failed program was:" >&5
1857sed 's/^/| /' conftest.$ac_ext >&5
1858
1859 ac_retval=1
1860fi
1861 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863 # interfere with the next link command; also delete a directory that is
1864 # left behind by Apple's compiler. We do this before executing the actions.
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1867 return $ac_retval
1868
1869} # ac_fn_c_try_link
7ec59b9e
L
1870
1871# ac_fn_c_try_run LINENO
1872# ----------------------
1873# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1874# that executables *can* be run.
1875ac_fn_c_try_run ()
1876{
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_link"
1879case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882esac
1883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884$as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>&5
1886 ac_status=$?
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1889 { { case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892esac
1893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894$as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_try") 2>&5
1896 ac_status=$?
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; }; }; then :
1899 ac_retval=0
1900else
1901 $as_echo "$as_me: program exited with status $ac_status" >&5
1902 $as_echo "$as_me: failed program was:" >&5
1903sed 's/^/| /' conftest.$ac_ext >&5
1904
1905 ac_retval=$ac_status
1906fi
1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909 return $ac_retval
1910
1911} # ac_fn_c_try_run
81ecdfbb 1912cat >config.log <<_ACEOF
c6b750e1
DJ
1913This file contains any messages produced by compilers while
1914running configure, to aid debugging if configure makes a mistake.
1915
1916It was created by $as_me, which was
81ecdfbb 1917generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1918
1919 $ $0 $@
1920
1921_ACEOF
81ecdfbb 1922exec 5>>config.log
c6b750e1
DJ
1923{
1924cat <<_ASUNAME
1925## --------- ##
1926## Platform. ##
1927## --------- ##
1928
1929hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1930uname -m = `(uname -m) 2>/dev/null || echo unknown`
1931uname -r = `(uname -r) 2>/dev/null || echo unknown`
1932uname -s = `(uname -s) 2>/dev/null || echo unknown`
1933uname -v = `(uname -v) 2>/dev/null || echo unknown`
1934
1935/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1936/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1937
1938/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1939/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1940/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1941/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1942/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1943/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1944/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1945
1946_ASUNAME
1947
1948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949for as_dir in $PATH
1950do
1951 IFS=$as_save_IFS
1952 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1953 $as_echo "PATH: $as_dir"
1954 done
1955IFS=$as_save_IFS
c6b750e1
DJ
1956
1957} >&5
1958
1959cat >&5 <<_ACEOF
1960
1961
1962## ----------- ##
1963## Core tests. ##
1964## ----------- ##
1965
1966_ACEOF
1967
1968
1969# Keep a trace of the command line.
1970# Strip out --no-create and --no-recursion so they do not pile up.
1971# Strip out --silent because we don't want to record it for future runs.
1972# Also quote any args containing shell meta-characters.
1973# Make two passes to allow for proper duplicate-argument suppression.
1974ac_configure_args=
1975ac_configure_args0=
1976ac_configure_args1=
c6b750e1
DJ
1977ac_must_keep_next=false
1978for ac_pass in 1 2
1979do
1980 for ac_arg
1981 do
1982 case $ac_arg in
1983 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1985 | -silent | --silent | --silen | --sile | --sil)
1986 continue ;;
81ecdfbb
RW
1987 *\'*)
1988 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1989 esac
1990 case $ac_pass in
81ecdfbb 1991 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1992 2)
81ecdfbb 1993 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1994 if test $ac_must_keep_next = true; then
1995 ac_must_keep_next=false # Got value, back to normal.
1996 else
1997 case $ac_arg in
1998 *=* | --config-cache | -C | -disable-* | --disable-* \
1999 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2000 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2001 | -with-* | --with-* | -without-* | --without-* | --x)
2002 case "$ac_configure_args0 " in
2003 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2004 esac
2005 ;;
2006 -* ) ac_must_keep_next=true ;;
2007 esac
2008 fi
81ecdfbb 2009 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
2010 ;;
2011 esac
2012 done
2013done
81ecdfbb
RW
2014{ ac_configure_args0=; unset ac_configure_args0;}
2015{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
2016
2017# When interrupted or exit'd, cleanup temporary files, and complete
2018# config.log. We remove comments because anyway the quotes in there
2019# would cause problems or look ugly.
81ecdfbb
RW
2020# WARNING: Use '\'' to represent an apostrophe within the trap.
2021# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
2022trap 'exit_status=$?
2023 # Save into config.log some information that might help in debugging.
2024 {
2025 echo
2026
2027 cat <<\_ASBOX
2028## ---------------- ##
2029## Cache variables. ##
2030## ---------------- ##
2031_ASBOX
2032 echo
2033 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2034(
2035 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in #(
2038 *${as_nl}*)
2039 case $ac_var in #(
2040 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2041$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2042 esac
2043 case $ac_var in #(
2044 _ | IFS | as_nl) ;; #(
2045 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2046 *) { eval $ac_var=; unset $ac_var;} ;;
2047 esac ;;
2048 esac
2049 done
c6b750e1 2050 (set) 2>&1 |
81ecdfbb
RW
2051 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2052 *${as_nl}ac_space=\ *)
c6b750e1 2053 sed -n \
81ecdfbb
RW
2054 "s/'\''/'\''\\\\'\'''\''/g;
2055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2056 ;; #(
c6b750e1 2057 *)
81ecdfbb 2058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2059 ;;
81ecdfbb
RW
2060 esac |
2061 sort
2062)
c6b750e1
DJ
2063 echo
2064
2065 cat <<\_ASBOX
2066## ----------------- ##
2067## Output variables. ##
2068## ----------------- ##
2069_ASBOX
2070 echo
2071 for ac_var in $ac_subst_vars
2072 do
81ecdfbb
RW
2073 eval ac_val=\$$ac_var
2074 case $ac_val in
2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076 esac
2077 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2078 done | sort
2079 echo
2080
2081 if test -n "$ac_subst_files"; then
2082 cat <<\_ASBOX
81ecdfbb
RW
2083## ------------------- ##
2084## File substitutions. ##
2085## ------------------- ##
c6b750e1
DJ
2086_ASBOX
2087 echo
2088 for ac_var in $ac_subst_files
2089 do
81ecdfbb
RW
2090 eval ac_val=\$$ac_var
2091 case $ac_val in
2092 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2093 esac
2094 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2095 done | sort
2096 echo
2097 fi
2098
2099 if test -s confdefs.h; then
2100 cat <<\_ASBOX
2101## ----------- ##
2102## confdefs.h. ##
2103## ----------- ##
2104_ASBOX
2105 echo
81ecdfbb 2106 cat confdefs.h
c6b750e1
DJ
2107 echo
2108 fi
2109 test "$ac_signal" != 0 &&
81ecdfbb
RW
2110 $as_echo "$as_me: caught signal $ac_signal"
2111 $as_echo "$as_me: exit $exit_status"
c6b750e1 2112 } >&5
81ecdfbb
RW
2113 rm -f core *.core core.conftest.* &&
2114 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2115 exit $exit_status
81ecdfbb 2116' 0
c6b750e1 2117for ac_signal in 1 2 13 15; do
81ecdfbb 2118 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2119done
2120ac_signal=0
2121
2122# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2123rm -f -r conftest* confdefs.h
2124
2125$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2126
2127# Predefined preprocessor variables.
2128
2129cat >>confdefs.h <<_ACEOF
2130#define PACKAGE_NAME "$PACKAGE_NAME"
2131_ACEOF
2132
c6b750e1
DJ
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2135_ACEOF
2136
c6b750e1
DJ
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_VERSION "$PACKAGE_VERSION"
2139_ACEOF
2140
c6b750e1
DJ
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_STRING "$PACKAGE_STRING"
2143_ACEOF
2144
c6b750e1
DJ
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2147_ACEOF
2148
81ecdfbb
RW
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_URL "$PACKAGE_URL"
2151_ACEOF
2152
c6b750e1
DJ
2153
2154# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2155# Prefer an explicitly selected file to automatically selected ones.
2156ac_site_file1=NONE
2157ac_site_file2=NONE
2158if test -n "$CONFIG_SITE"; then
2159 ac_site_file1=$CONFIG_SITE
2160elif test "x$prefix" != xNONE; then
2161 ac_site_file1=$prefix/share/config.site
2162 ac_site_file2=$prefix/etc/config.site
2163else
2164 ac_site_file1=$ac_default_prefix/share/config.site
2165 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2166fi
81ecdfbb
RW
2167for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2168do
2169 test "x$ac_site_file" = xNONE && continue
a0da8069 2170 if test -r "$ac_site_file"; then
81ecdfbb
RW
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2172$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2173 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2174 . "$ac_site_file"
2175 fi
2176done
2177
2178if test -r "$cache_file"; then
c6b750e1
DJ
2179 # Some versions of bash will fail to source /dev/null (special
2180 # files actually), so we avoid doing that.
2181 if test -f "$cache_file"; then
81ecdfbb
RW
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2183$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2184 case $cache_file in
81ecdfbb
RW
2185 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2186 *) . "./$cache_file";;
c6b750e1
DJ
2187 esac
2188 fi
a0da8069 2189else
81ecdfbb
RW
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2191$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2192 >$cache_file
2193fi
2194
2195# Check that the precious variables saved in the cache have kept the same
2196# value.
2197ac_cache_corrupted=false
81ecdfbb 2198for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2199 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2200 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2201 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2202 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2203 case $ac_old_set,$ac_new_set in
2204 set,)
81ecdfbb
RW
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2206$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2207 ac_cache_corrupted=: ;;
2208 ,set)
81ecdfbb
RW
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2210$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2211 ac_cache_corrupted=: ;;
2212 ,);;
2213 *)
2214 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2215 # differences in whitespace do not lead to failure.
2216 ac_old_val_w=`echo x $ac_old_val`
2217 ac_new_val_w=`echo x $ac_new_val`
2218 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2220$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2221 ac_cache_corrupted=:
2222 else
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2224$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2225 eval $ac_var=\$ac_old_val
2226 fi
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2228$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2230$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2231 fi;;
2232 esac
2233 # Pass precious variables to config.status.
2234 if test "$ac_new_set" = set; then
2235 case $ac_new_val in
81ecdfbb 2236 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2237 *) ac_arg=$ac_var=$ac_new_val ;;
2238 esac
2239 case " $ac_configure_args " in
2240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2241 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2242 esac
2243 fi
2244done
2245if $ac_cache_corrupted; then
81ecdfbb
RW
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2249$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2250 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2251fi
81ecdfbb
RW
2252## -------------------- ##
2253## Main body of script. ##
2254## -------------------- ##
a0da8069
NN
2255
2256ac_ext=c
a0da8069 2257ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2260ac_compiler_gnu=$ac_cv_c_compiler_gnu
2261
2262
2263
2264
c6b750e1
DJ
2265
2266
34a0f3cf 2267
c6b750e1 2268
5b553f7e
RW
2269
2270progname=$0
2271# if PWD already has a value, it is probably wrong.
2272if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2273
2274# Export original configure arguments for use by sub-configures.
2275# Quote arguments with shell meta charatcers.
2276TOPLEVEL_CONFIGURE_ARGUMENTS=
2277set -- "$progname" "$@"
2278for ac_arg
2279do
2280 case "$ac_arg" in
2281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2282 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2283 # if the argument is of the form -foo=baz, quote the baz part only
2284 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2285 *) ;;
2286 esac
2287 # Add the quoted argument to the list.
2288 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2289done
2290if test "$silent" = yes; then
2291 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2292fi
2293# Remove the initial space we just introduced and, as these will be
2294# expanded by make, quote '$'.
2295TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2296
c6b750e1
DJ
2297
2298# Find the build, host, and target systems.
a0da8069 2299ac_aux_dir=
81ecdfbb
RW
2300for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2301 for ac_t in install-sh install.sh shtool; do
2302 if test -f "$ac_dir/$ac_t"; then
2303 ac_aux_dir=$ac_dir
2304 ac_install_sh="$ac_aux_dir/$ac_t -c"
2305 break 2
2306 fi
2307 done
a0da8069
NN
2308done
2309if test -z "$ac_aux_dir"; then
81ecdfbb 2310 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2311fi
81ecdfbb
RW
2312
2313# These three variables are undocumented and unsupported,
2314# and are intended to be withdrawn in a future Autoconf release.
2315# They can cause serious problems if a builder's source tree is in a directory
2316# whose full name contains unusual characters.
2317ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2318ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2319ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2320
a0da8069 2321
c6b750e1 2322# Make sure we can run config.sub.
81ecdfbb
RW
2323$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2324 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2325
2326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2327$as_echo_n "checking build system type... " >&6; }
2328if test "${ac_cv_build+set}" = set; then :
2329 $as_echo_n "(cached) " >&6
2330else
2331 ac_build_alias=$build_alias
2332test "x$ac_build_alias" = x &&
2333 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2334test "x$ac_build_alias" = x &&
2335 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2336ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2337 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2338
2339fi
2340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2341$as_echo "$ac_cv_build" >&6; }
2342case $ac_cv_build in
2343*-*-*) ;;
2344*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2345esac
c6b750e1 2346build=$ac_cv_build
81ecdfbb
RW
2347ac_save_IFS=$IFS; IFS='-'
2348set x $ac_cv_build
2349shift
2350build_cpu=$1
2351build_vendor=$2
2352shift; shift
2353# Remember, the first character of IFS is used to create $*,
2354# except with old shells:
2355build_os=$*
2356IFS=$ac_save_IFS
2357case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2358
a0da8069 2359
c6b750e1
DJ
2360 case ${build_alias} in
2361 "") build_noncanonical=${build} ;;
2362 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2363esac
2364
2365
cac3d6c4 2366
c6b750e1
DJ
2367 case ${host_alias} in
2368 "") host_noncanonical=${build_noncanonical} ;;
2369 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2370esac
2371
cac3d6c4 2372
c6b750e1
DJ
2373
2374 case ${target_alias} in
2375 "") target_noncanonical=${host_noncanonical} ;;
2376 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2377esac
2378
cac3d6c4 2379
c6b750e1
DJ
2380
2381
2382test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2383 test "$program_prefix$program_suffix$program_transform_name" = \
2384 NONENONEs,x,x, &&
c6b750e1 2385 program_transform_name=s,y,y,
cac3d6c4 2386
81ecdfbb
RW
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2388$as_echo_n "checking host system type... " >&6; }
2389if test "${ac_cv_host+set}" = set; then :
2390 $as_echo_n "(cached) " >&6
cac3d6c4 2391else
81ecdfbb
RW
2392 if test "x$host_alias" = x; then
2393 ac_cv_host=$ac_cv_build
2394else
2395 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2396 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2397fi
c6b750e1
DJ
2398
2399fi
81ecdfbb
RW
2400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2401$as_echo "$ac_cv_host" >&6; }
2402case $ac_cv_host in
2403*-*-*) ;;
2404*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2405esac
c6b750e1 2406host=$ac_cv_host
81ecdfbb
RW
2407ac_save_IFS=$IFS; IFS='-'
2408set x $ac_cv_host
2409shift
2410host_cpu=$1
2411host_vendor=$2
2412shift; shift
2413# Remember, the first character of IFS is used to create $*,
2414# except with old shells:
2415host_os=$*
2416IFS=$ac_save_IFS
2417case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2418
2419
81ecdfbb
RW
2420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2421$as_echo_n "checking target system type... " >&6; }
2422if test "${ac_cv_target+set}" = set; then :
2423 $as_echo_n "(cached) " >&6
c6b750e1 2424else
81ecdfbb
RW
2425 if test "x$target_alias" = x; then
2426 ac_cv_target=$ac_cv_host
2427else
2428 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2429 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2430fi
c6b750e1 2431
cac3d6c4 2432fi
81ecdfbb
RW
2433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2434$as_echo "$ac_cv_target" >&6; }
2435case $ac_cv_target in
2436*-*-*) ;;
2437*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2438esac
c6b750e1 2439target=$ac_cv_target
81ecdfbb
RW
2440ac_save_IFS=$IFS; IFS='-'
2441set x $ac_cv_target
2442shift
2443target_cpu=$1
2444target_vendor=$2
2445shift; shift
2446# Remember, the first character of IFS is used to create $*,
2447# except with old shells:
2448target_os=$*
2449IFS=$ac_save_IFS
2450case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2451
2452
2453# The aliases save the names the user supplied, while $host etc.
2454# will get canonicalized.
2455test -n "$target_alias" &&
2456 test "$program_prefix$program_suffix$program_transform_name" = \
2457 NONENONEs,x,x, &&
2458 program_prefix=${target_alias}-
81ecdfbb 2459
a0da8069 2460test "$program_prefix" != NONE &&
81ecdfbb 2461 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2462# Use a double $ so make ignores it.
2463test "$program_suffix" != NONE &&
81ecdfbb
RW
2464 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2465# Double any \ or $.
c6b750e1 2466# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2467ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2468program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2469
a0da8069
NN
2470
2471
e5c3f801
NN
2472# Get 'install' or 'install-sh' and its variants.
2473# Find a good install program. We prefer a C program (faster),
2474# so one script is as good as another. But avoid the broken or
2475# incompatible versions:
2476# SysV /etc/install, /usr/sbin/install
2477# SunOS /usr/etc/install
2478# IRIX /sbin/install
2479# AIX /bin/install
c6b750e1 2480# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2481# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2482# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2483# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2484# OS/2's system install, which has a completely different semantic
e5c3f801 2485# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2486# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2488$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2489if test -z "$INSTALL"; then
81ecdfbb
RW
2490if test "${ac_cv_path_install+set}" = set; then :
2491 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2492else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494for as_dir in $PATH
2495do
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2498 # Account for people who put trailing slashes in PATH elements.
2499case $as_dir/ in #((
2500 ./ | .// | /[cC]/* | \
c6b750e1 2501 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2502 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2503 /usr/ucb/* ) ;;
2504 *)
2505 # OSF1 and SCO ODT 3.0 have their own names for install.
2506 # Don't use installbsd from OSF since it installs stuff as root
2507 # by default.
2508 for ac_prog in ginstall scoinst install; do
2509 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2510 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2511 if test $ac_prog = install &&
c6b750e1 2512 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2513 # AIX install. It has an incompatible calling convention.
2514 :
c6b750e1
DJ
2515 elif test $ac_prog = install &&
2516 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2517 # program-specific install script used by HP pwplus--don't use.
2518 :
e5c3f801 2519 else
58c85be7
RW
2520 rm -rf conftest.one conftest.two conftest.dir
2521 echo one > conftest.one
2522 echo two > conftest.two
2523 mkdir conftest.dir
2524 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2525 test -s conftest.one && test -s conftest.two &&
2526 test -s conftest.dir/conftest.one &&
2527 test -s conftest.dir/conftest.two
2528 then
2529 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2530 break 3
2531 fi
e5c3f801
NN
2532 fi
2533 fi
2534 done
c6b750e1
DJ
2535 done
2536 ;;
2537esac
81ecdfbb
RW
2538
2539 done
2540IFS=$as_save_IFS
c6b750e1 2541
58c85be7 2542rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2543
2544fi
2545 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2546 INSTALL=$ac_cv_path_install
e5c3f801 2547 else
58c85be7
RW
2548 # As a last resort, use the slow shell script. Don't cache a
2549 # value for INSTALL within a source directory, because that will
e5c3f801 2550 # break other packages using the cache if that directory is
58c85be7 2551 # removed, or if the value is a relative name.
c6b750e1 2552 INSTALL=$ac_install_sh
e5c3f801
NN
2553 fi
2554fi
81ecdfbb
RW
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2556$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2557
2558# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2559# It thinks the first close brace ends the variable substitution.
2560test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2561
c6b750e1 2562test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2563
2564test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2565
81ecdfbb
RW
2566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2567$as_echo_n "checking whether ln works... " >&6; }
2568if test "${acx_cv_prog_LN+set}" = set; then :
2569 $as_echo_n "(cached) " >&6
656fdd47
PB
2570else
2571 rm -f conftestdata_t
2572echo >conftestdata_f
2573if ln conftestdata_f conftestdata_t 2>/dev/null
2574then
2575 acx_cv_prog_LN=ln
2576else
2577 acx_cv_prog_LN=no
2578fi
2579rm -f conftestdata_f conftestdata_t
2580
2581fi
2582if test $acx_cv_prog_LN = no; then
2583 LN="cp"
81ecdfbb
RW
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2585$as_echo "no, using $LN" >&6; }
656fdd47
PB
2586else
2587 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2589$as_echo "yes" >&6; }
656fdd47
PB
2590fi
2591
81ecdfbb
RW
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2593$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2594LN_S=$as_ln_s
2595if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2597$as_echo "yes" >&6; }
cac3d6c4 2598else
81ecdfbb
RW
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2600$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2601fi
2602
8e957354
PB
2603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2604$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2605if test "${ac_cv_path_SED+set}" = set; then :
2606 $as_echo_n "(cached) " >&6
2607else
2608 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2609 for ac_i in 1 2 3 4 5 6 7; do
2610 ac_script="$ac_script$as_nl$ac_script"
2611 done
2612 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2613 { ac_script=; unset ac_script;}
2614 if test -z "$SED"; then
2615 ac_path_SED_found=false
2616 # Loop through the user's path and test for each of PROGNAME-LIST
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_prog in sed gsed; do
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2625 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2626# Check for GNU ac_path_SED and select it if it is found.
2627 # Check for GNU $ac_path_SED
2628case `"$ac_path_SED" --version 2>&1` in
2629*GNU*)
2630 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2631*)
2632 ac_count=0
2633 $as_echo_n 0123456789 >"conftest.in"
2634 while :
2635 do
2636 cat "conftest.in" "conftest.in" >"conftest.tmp"
2637 mv "conftest.tmp" "conftest.in"
2638 cp "conftest.in" "conftest.nl"
2639 $as_echo '' >> "conftest.nl"
2640 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2642 as_fn_arith $ac_count + 1 && ac_count=$as_val
2643 if test $ac_count -gt ${ac_path_SED_max-0}; then
2644 # Best one so far, save it but keep looking for a better one
2645 ac_cv_path_SED="$ac_path_SED"
2646 ac_path_SED_max=$ac_count
2647 fi
2648 # 10*(2^10) chars as input seems more than enough
2649 test $ac_count -gt 10 && break
2650 done
2651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2652esac
2653
2654 $ac_path_SED_found && break 3
2655 done
2656 done
2657 done
2658IFS=$as_save_IFS
2659 if test -z "$ac_cv_path_SED"; then
2660 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2661 fi
2662else
2663 ac_cv_path_SED=$SED
2664fi
2665
2666fi
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2668$as_echo "$ac_cv_path_SED" >&6; }
2669 SED="$ac_cv_path_SED"
2670 rm -f conftest.sed
2671
2672for ac_prog in gawk mawk nawk awk
2673do
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675set dummy $ac_prog; ac_word=$2
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677$as_echo_n "checking for $ac_word... " >&6; }
2678if test "${ac_cv_prog_AWK+set}" = set; then :
2679 $as_echo_n "(cached) " >&6
2680else
2681 if test -n "$AWK"; then
2682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_AWK="$ac_prog"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695done
2696 done
2697IFS=$as_save_IFS
2698
2699fi
2700fi
2701AWK=$ac_cv_prog_AWK
2702if test -n "$AWK"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2704$as_echo "$AWK" >&6; }
2705else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707$as_echo "no" >&6; }
2708fi
2709
2710
2711 test -n "$AWK" && break
2712done
2713
e5c3f801 2714
0fdbe983
DJ
2715srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2716
2717# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2718# a relative path.
2719if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2720 INSTALL="${srcpwd}/install-sh -c"
2721fi
2722
a0da8069
NN
2723# Set srcdir to "." if that's what it is.
2724# This is important for multilib support.
2725pwd=`${PWDCMD-pwd}`
a0da8069
NN
2726if test "${pwd}" = "${srcpwd}" ; then
2727 srcdir=.
252b5132
RH
2728fi
2729
a0da8069 2730topsrcdir=$srcpwd
252b5132 2731
a0da8069 2732extra_host_args=
afefada0 2733
a0da8069
NN
2734### To add a new directory to the tree, first choose whether it is a target
2735### or a host dependent tool. Then put it into the appropriate list
2736### (library or tools, host or target), doing a dependency sort.
252b5132 2737
c6b750e1 2738# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2739# configdirs, or target_configdirs; see the serialization section below.
252b5132 2740
c6b750e1
DJ
2741# Dependency sorting is only needed when *configuration* must be done in
2742# a particular order. In all cases a dependency should be specified in
a0da8069 2743# the Makefile, whether or not it's implicitly specified here.
252b5132 2744
a0da8069
NN
2745# Double entries in build_configdirs, configdirs, or target_configdirs may
2746# cause circular dependencies and break everything horribly.
252b5132 2747
6a9cf61e
PB
2748# these library is used by various programs built for the build
2749# environment
2750#
2751build_libs="build-libiberty"
2752
2753# these tools are built for the build environment
a90ef4bf 2754build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2755
a0da8069
NN
2756# these libraries are used by various programs built for the host environment
2757#
2bf680c4 2758host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
a0da8069 2759
a0da8069
NN
2760# these tools are built for the host environment
2761# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2762# know that we are building the simulator.
2763# binutils, gas and ld appear in that order because it makes sense to run
2764# "make check" in that particular order.
e6de499b 2765# If --enable-gold is used, "gold" may replace "ld".
a90ef4bf 2766host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
a0da8069
NN
2767
2768# libgcj represents the runtime libraries only used by gcj.
2769libgcj="target-libffi \
a0da8069 2770 target-zlib \
a0da8069
NN
2771 target-libjava"
2772
2773# these libraries are built for the target environment, and are built after
2774# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2775# Note that libiberty is not a target library.
b1299c4e 2776target_libraries="target-libgcc \
2bf680c4 2777 target-libbacktrace \
a0da8069
NN
2778 target-libgloss \
2779 target-newlib \
cff87f51 2780 target-libgomp \
522e3d71 2781 target-libcilkrts \
7ec59b9e 2782 target-libatomic \
d32e2926 2783 target-libitm \
b9459e83 2784 target-libstdc++-v3 \
5286fdef 2785 target-libsanitizer \
95e43135 2786 target-libvtv \
bb780410 2787 target-libssp \
e552509b 2788 target-libquadmath \
4b1cb4fe 2789 target-libgfortran \
4f0ef2d8 2790 target-boehm-gc \
83326456 2791 ${libgcj} \
a2592b1b 2792 target-libobjc \
e552509b
ILT
2793 target-libada \
2794 target-libgo"
a0da8069 2795
9c14acb8
NN
2796# these tools are built using the target libraries, and are intended to
2797# run only in the target environment
a0da8069 2798#
9c14acb8 2799# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2800# list belongs in this list.
a0da8069 2801#
a90ef4bf 2802target_tools="target-rda"
252b5132 2803
a0da8069 2804################################################################################
252b5132 2805
a0da8069
NN
2806## All tools belong in one of the four categories, and are assigned above
2807## We assign ${configdirs} this way to remove all embedded newlines. This
2808## is important because configure will choke if they ever get through.
2809## ${configdirs} is directories we build using the host tools.
2810## ${target_configdirs} is directories we build using the target tools.
a0da8069 2811configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2812target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2813build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2814
9cc8ae67
PB
2815
2816
a0da8069 2817################################################################################
252b5132 2818
a0da8069 2819srcname="gnu development package"
252b5132 2820
a0da8069
NN
2821# This gets set non-empty for some net releases of packages.
2822appdirs=""
252b5132 2823
a0da8069
NN
2824# Define is_cross_compiler to save on calls to 'test'.
2825is_cross_compiler=
2826if test x"${host}" = x"${target}" ; then
2827 is_cross_compiler=no
252b5132 2828else
a0da8069 2829 is_cross_compiler=yes
c6b750e1 2830fi
252b5132 2831
9175bfc0 2832# Find the build and target subdir names.
dd12c3a8 2833
66a79c16
DJ
2834# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2835# have matching libraries, they should use host libraries: Makefile.tpl
2836# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2837# However, they still use the build modules, because the corresponding
2838# host modules (e.g. bison) are only built for the host when bootstrap
2839# finishes. So:
2840# - build_subdir is where we find build modules, and never changes.
2841# - build_libsubdir is where we find build libraries, and can be overridden.
2842
2843# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2844build_subdir="build-${build_noncanonical}"
c6b750e1 2845
81ecdfbb
RW
2846# Check whether --with-build-libsubdir was given.
2847if test "${with_build_libsubdir+set}" = set; then :
2848 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2849else
2850 build_libsubdir="$build_subdir"
81ecdfbb
RW
2851fi
2852
b00612cc
PB
2853# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2854if ( test $srcdir = . && test -d gcc ) \
2855 || test -d $srcdir/../host-${host_noncanonical}; then
2856 host_subdir="host-${host_noncanonical}"
2857else
2858 host_subdir=.
2859fi
dd12c3a8
NN
2860# No prefix.
2861target_subdir=${target_noncanonical}
c6b750e1 2862
2fd0b40b
RW
2863# Be sure to cover against remnants of an in-tree build.
2864if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2865 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2866Use a pristine source tree when building in a separate tree" "$LINENO" 5
2867fi
252b5132 2868
a0da8069
NN
2869# Skipdirs are removed silently.
2870skipdirs=
2871# Noconfigdirs are removed loudly.
2872noconfigdirs=""
252b5132 2873
a0da8069
NN
2874use_gnu_ld=
2875# Make sure we don't let GNU ld be added if we didn't want it.
2876if test x$with_gnu_ld = xno ; then
2877 use_gnu_ld=no
93f9b408 2878 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2879fi
2880
a0da8069
NN
2881use_gnu_as=
2882# Make sure we don't let GNU as be added if we didn't want it.
2883if test x$with_gnu_as = xno ; then
2884 use_gnu_as=no
2885 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2886fi
2887
700d40ca
ILT
2888use_included_zlib=
2889# Make sure we don't let ZLIB be added if we didn't want it.
2890if test x$with_system_zlib = xyes ; then
2891 use_included_zlib=no
2892 noconfigdirs="$noconfigdirs zlib"
2893fi
2894
c6b750e1 2895# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2896# it's not even worth trying to configure, much less build, that tool.
252b5132 2897
a0da8069
NN
2898case ${with_x} in
2899 yes | "") ;; # the default value for this tree is that X11 is available
2900 no)
675c6968 2901 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2902 # We won't be able to build gdbtk without X.
c6b750e1 2903 enable_gdbtk=no
a0da8069
NN
2904 ;;
2905 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2906esac
252b5132 2907
0377a422 2908# Some are only suitable for cross toolchains.
a0da8069
NN
2909# Remove these if host=target.
2910cross_only="target-libgloss target-newlib target-opcodes"
2911
2912case $is_cross_compiler in
2913 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2914esac
252b5132 2915
a0da8069
NN
2916# If both --with-headers and --with-libs are specified, default to
2917# --without-newlib.
32be62b5
RS
2918if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2919 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2920 if test x"${with_newlib}" = x ; then
2921 with_newlib=no
2922 fi
252b5132
RH
2923fi
2924
a0da8069
NN
2925# Recognize --with-newlib/--without-newlib.
2926case ${with_newlib} in
2927 no) skipdirs="${skipdirs} target-newlib" ;;
2928 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2929esac
252b5132 2930
c7791212
NC
2931# Handle --enable-gold, --enable-ld.
2932# --disable-gold [--enable-ld]
2933# Build only ld. Default option.
d3b50760
L
2934# --enable-gold [--enable-ld]
2935# Build both gold and ld. Install gold as "ld.gold", install ld
2936# as "ld.bfd" and "ld".
2937# --enable-gold=default [--enable-ld]
c7791212
NC
2938# Build both gold and ld. Install gold as "ld.gold" and "ld",
2939# install ld as "ld.bfd".
2940# --enable-gold[=default] --disable-ld
2941# Build only gold, which is then installed as both "ld.gold" and "ld".
2942# --enable-gold --enable-ld=default
d3b50760
L
2943# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2944# and ld.bfd).
c7791212
NC
2945# In other words, ld is default
2946# --enable-gold=default --enable-ld=default
2947# Error.
2948
2949default_ld=
81ecdfbb
RW
2950# Check whether --enable-gold was given.
2951if test "${enable_gold+set}" = set; then :
2952 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2953else
2954 ENABLE_GOLD=no
81ecdfbb
RW
2955fi
2956
c7791212
NC
2957case "${ENABLE_GOLD}" in
2958 yes|default)
e6de499b
NC
2959 # Check for ELF target.
2960 is_elf=no
2961 case "${target}" in
2962 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 2963 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 2964 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2bda3143 2965 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
e6de499b
NC
2966 case "${target}" in
2967 *-*-linux*aout* | *-*-linux*oldld*)
2968 ;;
2969 *)
2970 is_elf=yes
2971 ;;
2972 esac
2973 esac
2974
2975 if test "$is_elf" = "yes"; then
2976 # Check for target supported by gold.
93f9b408 2977 case "${target}" in
6d26190c
JY
2978 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2979 | aarch64*-*-* | tilegx*-*-*)
c7791212
NC
2980 configdirs="$configdirs gold"
2981 if test x${ENABLE_GOLD} = xdefault; then
2982 default_ld=gold
2983 fi
e6de499b 2984 ENABLE_GOLD=yes
93f9b408
ILT
2985 ;;
2986 esac
e6de499b
NC
2987 fi
2988 ;;
2989 no)
2990 ;;
2991 *)
2992 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2993 ;;
c7791212
NC
2994esac
2995
2996# Check whether --enable-ld was given.
2997if test "${enable_ld+set}" = set; then :
2998 enableval=$enable_ld; ENABLE_LD=$enableval
2999else
3000 ENABLE_LD=yes
3001fi
3002
3003
3004case "${ENABLE_LD}" in
3005 default)
d3b50760 3006 if test x${default_ld} != x; then
c7791212
NC
3007 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3008 fi
3009 ;;
3010 yes)
3011 ;;
3012 no)
3013 if test x${ENABLE_GOLD} != xyes; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3015$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3016 fi
3017 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3018 ;;
3019 *)
3020 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3021 ;;
3022esac
93f9b408 3023
a0da8069 3024# Configure extra directories which are host specific
252b5132 3025
a0da8069
NN
3026case "${host}" in
3027 *-cygwin*)
3028 configdirs="$configdirs libtermcap" ;;
3029esac
252b5132 3030
59f7ec45
HPN
3031# A target can indicate whether a language isn't supported for some reason.
3032# Only spaces may be used in this macro; not newlines or tabs.
3033unsupported_languages=
3034
c6b750e1 3035# Remove more programs from consideration, based on the host or
a0da8069
NN
3036# target this usually means that a port of the program doesn't
3037# exist yet.
252b5132 3038
a0da8069 3039case "${host}" in
3516a403 3040 i[3456789]86-*-msdosdjgpp*)
6a608608 3041 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3042 ;;
a0da8069 3043esac
252b5132 3044
4b1cb4fe 3045
89a1e9c3
PB
3046# Check whether --enable-libquadmath was given.
3047if test "${enable_libquadmath+set}" = set; then :
3048 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3049else
3050 ENABLE_LIBQUADMATH=yes
3051fi
3052
3053if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3054 noconfigdirs="$noconfigdirs target-libquadmath"
3055fi
3056
3057
3058# Check whether --enable-libquadmath-support was given.
3059if test "${enable_libquadmath_support+set}" = set; then :
3060 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3061else
3062 ENABLE_LIBQUADMATH_SUPPORT=yes
3063fi
3064
3065enable_libquadmath_support=
3066if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3067 enable_libquadmath_support=no
3068fi
3069
3070
81ecdfbb
RW
3071# Check whether --enable-libada was given.
3072if test "${enable_libada+set}" = set; then :
3073 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3074else
3075 ENABLE_LIBADA=yes
81ecdfbb
RW
3076fi
3077
a2592b1b 3078if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3079 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3080fi
3081
81ecdfbb
RW
3082# Check whether --enable-libssp was given.
3083if test "${enable_libssp+set}" = set; then :
3084 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3085else
3086 ENABLE_LIBSSP=yes
81ecdfbb
RW
3087fi
3088
5f128533 3089
f66a9a70
L
3090# Check whether --enable-libstdcxx was given.
3091if test "${enable_libstdcxx+set}" = set; then :
3092 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3093else
3094 ENABLE_LIBSTDCXX=default
3095fi
3096
3097if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3098 noconfigdirs="$noconfigdirs libstdc++-v3"
3099fi
3100
a0da8069
NN
3101# Save it here so that, even in case of --enable-libgcj, if the Java
3102# front-end isn't enabled, we still get libgcj disabled.
3103libgcj_saved=$libgcj
3104case $enable_libgcj in
3105yes)
3106 # If we reset it here, it won't get added to noconfigdirs in the
3107 # target-specific build rules, so it will be forcibly enabled
3108 # (unless the Java language itself isn't enabled).
3109 libgcj=
3110 ;;
3111no)
3112 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
3113 # Don't disable libffi, though, other languages use it.
3114 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
33d23ee8
ILT
3115 # Clear libgcj_saved so that even if java is enabled libffi won't be
3116 # built.
3117 libgcj_saved=
a0da8069
NN
3118 ;;
3119esac
252b5132 3120
ffdd6afc
ILT
3121# Check whether --enable-static-libjava was given.
3122if test "${enable_static_libjava+set}" = set; then :
3123 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3124else
3125 ENABLE_STATIC_LIBJAVA=no
3126fi
3127
3128enable_static_libjava=
3129if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3130 enable_static_libjava=yes
3131fi
3132
3133if test x$enable_static_libjava != xyes ; then
3134 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3135fi
3136
4b1cb4fe 3137
a6df5a19
PB
3138# Disable libgomp on non POSIX hosted systems.
3139if test x$enable_libgomp = x ; then
b3ded179
PB
3140 # Enable libgomp by default on hosted POSIX systems.
3141 case "${target}" in
29383458 3142 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3143 ;;
5b806d27 3144 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3145 ;;
2479f722 3146 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3147 ;;
3148 *-*-darwin* | *-*-aix*)
3149 ;;
3150 *)
3151 noconfigdirs="$noconfigdirs target-libgomp"
3152 ;;
3153 esac
a6df5a19 3154fi
b3ded179 3155
7ec59b9e
L
3156# Disable libatomic on unsupported systems.
3157if test -d ${srcdir}/libatomic; then
3158 if test x$enable_libatomic = x; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3160$as_echo_n "checking for libatomic support... " >&6; }
3161 if (srcdir=${srcdir}/libatomic; \
3162 . ${srcdir}/configure.tgt; \
3163 test -n "$UNSUPPORTED")
3164 then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166$as_echo "no" >&6; }
3167 noconfigdirs="$noconfigdirs target-libatomic"
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3170$as_echo "yes" >&6; }
3171 fi
3172 fi
3173fi
3174
522e3d71 3175# Disable libcilkrts on unsupported systems.
3176if test -d ${srcdir}/libcilkrts; then
3177 if test x$enable_libcilkrts = x; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3179$as_echo_n "checking for libcilkrts support... " >&6; }
3180 if (srcdir=${srcdir}/libcilkrts; \
3181 . ${srcdir}/configure.tgt; \
3182 test -n "$UNSUPPORTED")
3183 then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186 noconfigdirs="$noconfigdirs target-libcilkrts"
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3189$as_echo "yes" >&6; }
3190 fi
3191 fi
3192fi
3193
d32e2926
RH
3194# Disable libitm on unsupported systems.
3195if test -d ${srcdir}/libitm; then
3196 if test x$enable_libitm = x; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3198$as_echo_n "checking for libitm support... " >&6; }
3199 if (srcdir=${srcdir}/libitm; \
3200 . ${srcdir}/configure.tgt; \
3201 test -n "$UNSUPPORTED")
3202 then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205 noconfigdirs="$noconfigdirs target-libitm"
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3208$as_echo "yes" >&6; }
3209 fi
3210 fi
3211fi
3212
5286fdef
L
3213# Disable libsanitizer on unsupported systems.
3214if test -d ${srcdir}/libsanitizer; then
3215 if test x$enable_libsanitizer = x; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3217$as_echo_n "checking for libsanitizer support... " >&6; }
3218 if (srcdir=${srcdir}/libsanitizer; \
3219 . ${srcdir}/configure.tgt; \
3220 test -n "$UNSUPPORTED")
3221 then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223$as_echo "no" >&6; }
3224 noconfigdirs="$noconfigdirs target-libsanitizer"
3225 else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227$as_echo "yes" >&6; }
3228 fi
3229 fi
3230fi
3231
95e43135
JBG
3232# Disable libvtv on unsupported systems.
3233if test -d ${srcdir}/libvtv; then
3234 if test x$enable_libvtv = x; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3236$as_echo_n "checking for libvtv support... " >&6; }
3237 if (srcdir=${srcdir}/libvtv; \
3238 . ${srcdir}/configure.tgt; \
3239 test "$VTV_SUPPORTED" != "yes")
3240 then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242$as_echo "no" >&6; }
3243 noconfigdirs="$noconfigdirs target-libvtv"
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246$as_echo "yes" >&6; }
3247 fi
3248 fi
3249fi
3250
1488e230
DE
3251# Disable libquadmath for some systems.
3252case "${target}" in
5286fdef
L
3253 avr-*-*)
3254 noconfigdirs="$noconfigdirs target-libquadmath"
3255 ;;
1488e230
DE
3256 # libquadmath is unused on AIX and libquadmath build process use of
3257 # LD_LIBRARY_PATH can break AIX bootstrap.
3258 powerpc-*-aix* | rs6000-*-aix*)
3259 noconfigdirs="$noconfigdirs target-libquadmath"
3260 ;;
3261esac
3262
065a5627
JM
3263# Disable libssp for some systems.
3264case "${target}" in
3265 avr-*-*)
c5f5c3c2 3266 # No hosted I/O support.
065a5627
JM
3267 noconfigdirs="$noconfigdirs target-libssp"
3268 ;;
3269 powerpc-*-aix* | rs6000-*-aix*)
3270 noconfigdirs="$noconfigdirs target-libssp"
3271 ;;
99c513f6 3272 rl78-*-*)
202e2356
NC
3273 # libssp uses a misaligned load to trigger a fault, but the RL78
3274 # doesn't fault for those - instead, it gives a build-time error
3275 # for explicit misaligned loads.
99c513f6
DD
3276 noconfigdirs="$noconfigdirs target-libssp"
3277 ;;
065a5627
JM
3278esac
3279
065a5627 3280# Disable libstdc++-v3 for some systems.
f66a9a70
L
3281# Allow user to override this if they pass --enable-libstdc++-v3
3282if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3283 case "${target}" in
3284 *-*-vxworks*)
3285 # VxWorks uses the Dinkumware C++ library.
3286 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3287 ;;
3288 arm*-wince-pe*)
3289 # the C++ libraries don't build on top of CE's C libraries
3290 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3291 ;;
3292 avr-*-*)
3293 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3294 ;;
3295 esac
3296fi
065a5627
JM
3297
3298# Disable Fortran for some systems.
3299case "${target}" in
3300 mmix-*-*)
3301 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3302 unsupported_languages="$unsupported_languages fortran"
3303 ;;
3304esac
3305
0827f9a6 3306# Disable Java if libffi is not supported.
9863d716 3307case "${target}" in
e7d5abf1
JBG
3308 aarch64-*-*)
3309 ;;
0827f9a6
JM
3310 alpha*-*-*)
3311 ;;
3312 arm*-*-*)
3313 ;;
3314 cris-*-*)
3315 ;;
3316 frv-*-*)
3317 ;;
3318 hppa*-*-linux*)
3319 ;;
3320 hppa*-*-hpux*)
3321 ;;
3322 i?86-*-*)
3323 ;;
3324 ia64*-*-*)
3325 ;;
3326 m32r*-*-*)
3327 ;;
3328 m68k-*-*)
3329 ;;
2479f722 3330 mips*-*-rtems*)
0827f9a6
JM
3331 ;;
3332 mips*-*-linux*)
3333 ;;
3334 powerpc*-*-linux*)
3335 ;;
3336 powerpc-*-darwin*)
3337 ;;
3338 powerpc-*-aix* | rs6000-*-aix*)
3339 ;;
3340 powerpc-*-freebsd*)
3341 ;;
3342 powerpc64-*-freebsd*)
3343 ;;
3344 powerpc*-*-rtems*)
9863d716 3345 ;;
0827f9a6
JM
3346 s390-*-* | s390x-*-*)
3347 ;;
3348 sh-*-* | sh[34]*-*-*)
3349 ;;
3350 sh64-*-* | sh5*-*-*)
3351 ;;
3352 sparc*-*-*)
3353 ;;
3354 x86_64-*-*)
3355 ;;
3356 *-*-*)
3357 unsupported_languages="$unsupported_languages java"
3358 ;;
3359esac
3360
3361# Disable Java, libgcj or related libraries for some systems.
3362case "${target}" in
9863d716
JM
3363 powerpc-*-darwin*)
3364 ;;
3365 i[3456789]86-*-darwin*)
3366 ;;
3367 x86_64-*-darwin[912]*)
3368 ;;
3369 *-*-darwin*)
3370 noconfigdirs="$noconfigdirs ${libgcj}"
3371 ;;
9863d716
JM
3372 *-*-netware*)
3373 noconfigdirs="$noconfigdirs ${libgcj}"
3374 ;;
3375 *-*-rtems*)
3376 noconfigdirs="$noconfigdirs ${libgcj}"
3377 ;;
3378 *-*-tpf*)
3379 noconfigdirs="$noconfigdirs ${libgcj}"
3380 ;;
3381 *-*-uclinux*)
3382 noconfigdirs="$noconfigdirs ${libgcj}"
3383 ;;
3384 *-*-vxworks*)
3385 noconfigdirs="$noconfigdirs ${libgcj}"
3386 ;;
9863d716
JM
3387 alpha*-*-*vms*)
3388 noconfigdirs="$noconfigdirs ${libgcj}"
3389 ;;
0827f9a6 3390 arm-wince-pe)
9863d716
JM
3391 noconfigdirs="$noconfigdirs ${libgcj}"
3392 ;;
9863d716
JM
3393 arm*-*-symbianelf*)
3394 noconfigdirs="$noconfigdirs ${libgcj}"
3395 ;;
9863d716 3396 bfin-*-*)
9863d716
JM
3397 noconfigdirs="$noconfigdirs target-boehm-gc"
3398 ;;
9863d716
JM
3399 cris-*-* | crisv32-*-*)
3400 unsupported_languages="$unsupported_languages java"
3401 case "${target}" in
3402 *-*-linux*)
3403 ;;
3404 *) # See PR46792 regarding target-libffi.
3405 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3406 esac
3407 ;;
9863d716
JM
3408 hppa*64*-*-linux*)
3409 # In this case, it's because the hppa64-linux target is for
3410 # the kernel only at this point and has no libc, and thus no
3411 # headers, crt*.o, etc., all of which are needed by these.
82ae827f 3412 unsupported_languages="$unsupported_languages java"
9863d716 3413 ;;
82ae827f 3414 hppa*64*-*-hpux*)
9863d716
JM
3415 noconfigdirs="$noconfigdirs ${libgcj}"
3416 ;;
3417 hppa*-hp-hpux11*)
3418 ;;
82ae827f 3419 hppa*-*-hpux*)
9863d716
JM
3420 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3421 # build on HP-UX 10.20.
3422 noconfigdirs="$noconfigdirs ${libgcj}"
3423 ;;
9863d716
JM
3424 ia64*-*-*vms*)
3425 noconfigdirs="$noconfigdirs ${libgcj}"
3426 ;;
9863d716
JM
3427 i[3456789]86-w64-mingw*)
3428 noconfigdirs="$noconfigdirs ${libgcj}"
3429 ;;
3430 i[3456789]86-*-mingw*)
3431 noconfigdirs="$noconfigdirs ${libgcj}"
3432 ;;
3433 x86_64-*-mingw*)
3434 noconfigdirs="$noconfigdirs ${libgcj}"
3435 ;;
9863d716
JM
3436 mmix-*-*)
3437 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
9863d716
JM
3438 ;;
3439 powerpc-*-aix*)
3440 # copied from rs6000-*-* entry
3441 noconfigdirs="$noconfigdirs ${libgcj}"
3442 ;;
9863d716
JM
3443 rs6000-*-aix*)
3444 noconfigdirs="$noconfigdirs ${libgcj}"
3445 ;;
3f8107ab
AM
3446 ft32-*-*)
3447 noconfigdirs="$noconfigdirs ${libgcj}"
3448 ;;
9863d716
JM
3449 *-*-lynxos*)
3450 noconfigdirs="$noconfigdirs ${libgcj}"
3451 ;;
9863d716
JM
3452esac
3453
a413f71a
ILT
3454# Disable libgo for some systems where it is known to not work.
3455# For testing, you can easily override this with --enable-libgo.
3456if test x$enable_libgo = x; then
3457 case "${target}" in
3458 *-*-darwin*)
3459 # PR 46986
3460 noconfigdirs="$noconfigdirs target-libgo"
3461 ;;
3462 *-*-cygwin* | *-*-mingw*)
3463 noconfigdirs="$noconfigdirs target-libgo"
3464 ;;
3465 *-*-aix*)
3466 noconfigdirs="$noconfigdirs target-libgo"
3467 ;;
3468 esac
3469fi
3470
691bb5a1
DD
3471# Default libgloss CPU subdirectory.
3472libgloss_dir="$target_cpu"
4b1cb4fe 3473
ff46fb8f
JM
3474case "${target}" in
3475 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3476 libgloss_dir=wince
3477 ;;
f1dd87fc
YZ
3478 aarch64*-*-* )
3479 libgloss_dir=aarch64
3480 ;;
ff46fb8f
JM
3481 arm*-*-*)
3482 libgloss_dir=arm
3483 ;;
3484 cris-*-* | crisv32-*-*)
3485 libgloss_dir=cris
3486 ;;
3487 hppa*-*-*)
3488 libgloss_dir=pa
3489 ;;
3490 i[3456789]86-*-*)
3491 libgloss_dir=i386
3492 ;;
3493 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3494 libgloss_dir=m68hc11
3495 ;;
3496 m68*-*-* | fido-*-*)
3497 libgloss_dir=m68k
3498 ;;
3499 mips*-*-*)
3500 libgloss_dir=mips
3501 ;;
3502 powerpc*-*-*)
3503 libgloss_dir=rs6000
3504 ;;
3505 sparc*-*-*)
3506 libgloss_dir=sparc
3507 ;;
3508esac
3509
c7e4b184 3510# Disable newlib and libgloss for various target OSes.
a0da8069 3511case "${target}" in
c7e4b184
JM
3512 alpha*-dec-osf*)
3513 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3514 ;;
3515 i[3456789]86-*-linux*)
3516 # This section makes it possible to build newlib natively on linux.
3517 # If we are using a cross compiler then don't configure newlib.
3518 if test x${is_cross_compiler} != xno ; then
3519 noconfigdirs="$noconfigdirs target-newlib"
3520 fi
3521 noconfigdirs="$noconfigdirs target-libgloss"
3522 # If we are not using a cross compiler, do configure newlib.
3523 # Note however, that newlib will only be configured in this situation
3524 # if the --with-newlib option has been given, because otherwise
3525 # 'target-newlib' will appear in skipdirs.
3526 ;;
3527 i[3456789]86-*-rdos*)
3528 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3529 ;;
3530 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3532 ;;
3533 sparc-*-sunos4*)
3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3535 ;;
3536 *-*-aix*)
3537 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3538 ;;
3539 *-*-beos*)
3540 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3541 ;;
a0da8069 3542 *-*-chorusos)
b2f14e4a 3543 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3544 ;;
c7e4b184
JM
3545 *-*-dragonfly*)
3546 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3547 ;;
3548 *-*-freebsd*)
3549 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3550 ;;
3551 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3552 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3553 ;;
3554 *-*-lynxos*)
3555 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3556 ;;
3557 *-*-mingw*)
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3559 ;;
3560 *-*-netbsd*)
3561 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3562 ;;
3563 *-*-netware*)
3564 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3565 ;;
3566 *-*-tpf*)
3567 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3568 ;;
3569 *-*-uclinux*)
3570 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3571 ;;
3572 *-*-vxworks*)
3573 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3574 ;;
3575esac
3576
3577case "${target}" in
3578 *-*-chorusos)
3579 ;;
24741ab2 3580 powerpc-*-darwin*)
9d39db92 3581 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3582 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3583 ;;
85bd1942
TG
3584 i[3456789]86-*-darwin*)
3585 noconfigdirs="$noconfigdirs ld gprof"
3586 noconfigdirs="$noconfigdirs sim target-rda"
3587 ;;
e8a5fa9c 3588 x86_64-*-darwin[912]*)
652dec25
TG
3589 noconfigdirs="$noconfigdirs ld gas gprof"
3590 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3591 ;;
04d1ab34 3592 *-*-darwin*)
d320aacb 3593 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3594 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3595 ;;
5b806d27 3596 *-*-dragonfly*)
5b806d27 3597 ;;
de0b4a87 3598 *-*-freebsd*)
4b1cb4fe
DD
3599 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3600 && test -f /usr/local/include/gmp.h; then
3601 with_gmp=/usr/local
3602 fi
4b1cb4fe 3603 ;;
f8a495c8
NC
3604 *-*-kaos*)
3605 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3606 noconfigdirs="$noconfigdirs target-libgloss"
3607 ;;
a0da8069 3608 *-*-netbsd*)
a0da8069 3609 ;;
2a3124ca 3610 *-*-netware*)
a0da8069
NN
3611 ;;
3612 *-*-rtems*)
9863d716 3613 noconfigdirs="$noconfigdirs target-libgloss"
f8797b5a
JB
3614 # this is not caught below because this stanza matches earlier
3615 case $target in
3616 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3617 esac
a0da8069 3618 ;;
1587117a
EC
3619 # The tpf target doesn't support gdb yet.
3620 *-*-tpf*)
c7e4b184 3621 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3622 ;;
c1968181 3623 *-*-uclinux*)
c7e4b184 3624 noconfigdirs="$noconfigdirs target-rda"
c1968181 3625 ;;
a0da8069 3626 *-*-vxworks*)
a0da8069
NN
3627 ;;
3628 alpha*-dec-osf*)
3629 # ld works, but does not support shared libraries.
a0da8069 3630 # gas doesn't generate exception information.
c7e4b184 3631 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3632 ;;
3633 alpha*-*-*vms*)
9863d716 3634 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3635 ;;
a0da8069
NN
3636 alpha*-*-*)
3637 # newlib is not 64 bit ready
9863d716 3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3639 ;;
a0da8069 3640 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3641 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3642 ;;
f4cfb980 3643 arc-*-*|arceb-*-*)
782cb41f 3644 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3645 ;;
a0da8069 3646 arm-*-pe*)
9863d716 3647 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3648 ;;
a0da8069 3649 arm-*-riscix*)
b2f14e4a 3650 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3651 ;;
8e71395b
L
3652 avr-*-rtems*)
3653 ;;
3654 avr-*-*)
3655 if test x${with_avrlibc} != xno; then
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3657 fi
3658 ;;
a0da8069 3659 c4x-*-* | tic4x-*-*)
b2f14e4a 3660 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3661 ;;
b2f14e4a
JM
3662 tic54x-*-*)
3663 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3664 ;;
a0da8069 3665 d10v-*-*)
b2f14e4a 3666 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3667 ;;
3668 d30v-*-*)
b2f14e4a 3669 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3670 ;;
3671 fr30-*-elf*)
9863d716 3672 noconfigdirs="$noconfigdirs gdb"
a0da8069 3673 ;;
3f8107ab
AM
3674 ft32-*-*)
3675 noconfigdirs="$noconfigdirs target-rda gprof"
3676 ;;
20135e4c 3677 moxie-*-*)
10b8fe5e 3678 noconfigdirs="$noconfigdirs"
20135e4c 3679 ;;
a0da8069 3680 h8300*-*-*)
9863d716 3681 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3682 ;;
3683 h8500-*-*)
b2f14e4a 3684 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3685 ;;
caeba88f 3686 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3687 ;;
93cc359e 3688 hppa*64*-*-linux*)
a0da8069 3689 ;;
f0ff0f90 3690 hppa*-*-linux*)
5dcac624 3691 ;;
a0da8069 3692 hppa*-*-*elf* | \
a0da8069
NN
3693 hppa*-*-lites* | \
3694 hppa*-*-openbsd* | \
3695 hppa*64*-*-*)
4f0ef2d8
CD
3696 ;;
3697 hppa*-hp-hpux11*)
0377a422 3698 noconfigdirs="$noconfigdirs ld"
a0da8069 3699 ;;
691bb5a1 3700 hppa*-*-pro*)
691bb5a1 3701 ;;
a0da8069 3702 hppa*-*-*)
9863d716 3703 noconfigdirs="$noconfigdirs ld"
a0da8069 3704 ;;
b07c2aad 3705 i960-*-*)
b2f14e4a 3706 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3707 ;;
a0da8069
NN
3708 ia64*-*-elf*)
3709 # No gdb support yet.
0377a422 3710 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3711 ;;
3712 ia64*-**-hpux*)
92c9a463 3713 # No ld support yet.
9863d716 3714 noconfigdirs="$noconfigdirs libgui itcl ld"
a0da8069 3715 ;;
19e99079 3716 ia64*-*-*vms*)
7ec59b9e
L
3717 # No ld support yet.
3718 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3719 ;;
1f53ca9a 3720 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3721 ;;
3722 i[3456789]86-*-mingw*)
45055374 3723 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3724 ;;
a0da8069
NN
3725 *-*-cygwin*)
3726 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3727 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3728 # always build newlib if winsup directory is present.
45055374 3729 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3730 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3731 elif test -d "$srcdir/newlib"; then
45055374 3732 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3733 fi
c6b750e1 3734 ;;
ec11bdc6 3735 i[3456789]86-*-pe)
782cb41f 3736 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3737 ;;
ec11bdc6 3738 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3739 # The linker does not yet know about weak symbols in COFF,
3740 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3741 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3742 ;;
ec11bdc6 3743 i[3456789]86-*-sco*)
b2f14e4a 3744 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3745 ;;
cff32a7c 3746 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3747 noconfigdirs="$noconfigdirs target-libgloss"
3748 ;;
ec11bdc6 3749 i[3456789]86-*-sysv4*)
b2f14e4a 3750 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3751 ;;
ec11bdc6 3752 i[3456789]86-*-beos*)
c7e4b184 3753 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3754 ;;
b59bea8a 3755 i[3456789]86-*-rdos*)
c7e4b184 3756 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3757 ;;
a0da8069 3758 mmix-*-*)
9863d716 3759 noconfigdirs="$noconfigdirs gdb"
a0da8069 3760 ;;
4970f871 3761 mt-*-*)
cdb9b172
AH
3762 noconfigdirs="$noconfigdirs sim"
3763 ;;
a0da8069
NN
3764 powerpc-*-aix*)
3765 # copied from rs6000-*-* entry
c7e4b184 3766 noconfigdirs="$noconfigdirs gprof"
a0da8069 3767 ;;
93cc359e 3768 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3769 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3770 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3771 # always build newlib.
3772 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3773 ;;
3774 # This is temporary until we can link against shared libraries
3775 powerpcle-*-solaris*)
b2f14e4a 3776 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3777 ;;
3778 powerpc-*-beos*)
c7e4b184 3779 noconfigdirs="$noconfigdirs gdb"
a0da8069 3780 ;;
a0da8069 3781 rs6000-*-lynxos*)
c7e4b184 3782 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3783 ;;
3784 rs6000-*-aix*)
c7e4b184 3785 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3786 ;;
3787 rs6000-*-*)
9863d716 3788 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3789 ;;
3790 m68k-apollo-*)
b2f14e4a 3791 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3792 ;;
25a07265 3793 microblaze*)
9863d716 3794 noconfigdirs="$noconfigdirs gprof"
25a07265 3795 ;;
a9d58c06 3796 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
3797 if test x$with_newlib = xyes; then
3798 noconfigdirs="$noconfigdirs gprof"
3799 fi
5bd8be13 3800 ;;
a0da8069 3801 mips*-*-irix5*)
b2f14e4a 3802 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3803 ;;
3804 mips*-*-irix6*)
9863d716 3805 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3806 ;;
a0da8069 3807 mips*-*-bsd*)
e8044f35 3808 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3809 ;;
a0da8069 3810 mips*-*-linux*)
a0da8069 3811 ;;
e8044f35
RS
3812 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3813 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3814 noconfigdirs="$noconfigdirs ld gas gprof"
3815 ;;
a0da8069 3816 mips*-*-*)
9863d716 3817 noconfigdirs="$noconfigdirs gprof"
a0da8069 3818 ;;
b25b5cef
CJW
3819 nds32*-*-*)
3820 noconfigdirs="$noconfigdirs gdb"
3821 ;;
cfbc1a6c
JS
3822 or1k*-*-*)
3823 noconfigdirs="$noconfigdirs gdb"
3824 ;;
dbf85af7 3825 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3826 case "${target}" in
3827 sh*-*-elf)
9863d716 3828 ;;
e8a5fa9c 3829 *)
9863d716 3830 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3831 esac
a0da8069 3832 ;;
a0da8069 3833 sparc-*-sunos4*)
c7e4b184 3834 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3835 use_gnu_ld=no
3836 fi
3837 ;;
619a3713 3838 tic6x-*-*)
40ae9136 3839 noconfigdirs="$noconfigdirs sim"
619a3713 3840 ;;
68d122bb 3841 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
3842 noconfigdirs="$noconfigdirs sim"
3843 ;;
a0da8069 3844 v810-*-*)
b2f14e4a 3845 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3846 ;;
3847 vax-*-*)
9863d716 3848 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3849 ;;
a0da8069 3850esac
252b5132 3851
a0da8069
NN
3852# If we aren't building newlib, then don't build libgloss, since libgloss
3853# depends upon some newlib header files.
3854case "${noconfigdirs}" in
3855 *target-libgloss*) ;;
3856 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3857esac
3858
a0da8069 3859# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3860host_makefile_frag=/dev/null
3861if test -d ${srcdir}/config ; then
3862case "${host}" in
ec11bdc6 3863 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3864 host_makefile_frag="config/mh-djgpp"
3865 ;;
3866 *-cygwin*)
e33b51a6 3867
81ecdfbb
RW
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3869$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3870echo a >cygwin-cat-check
1f53ca9a 3871if test `cat cygwin-cat-check` = a ; then
8ade07e9 3872 rm cygwin-cat-check
81ecdfbb
RW
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3874$as_echo "yes" >&6; }
e33b51a6 3875else
8ade07e9 3876 rm cygwin-cat-check
81ecdfbb
RW
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878$as_echo "no" >&6; }
3879 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3880 Please either mount the build directory in binary mode or run the following
3881 commands before running any configure script:
3882set -o igncr
3883export SHELLOPTS
81ecdfbb 3884 " "$LINENO" 5
e33b51a6 3885fi
e33b51a6 3886
a0da8069
NN
3887 host_makefile_frag="config/mh-cygwin"
3888 ;;
8a1599ab 3889 *-mingw*)
84e7906e 3890 host_makefile_frag="config/mh-mingw"
2d1e8239 3891 ;;
da888c87 3892 hppa*-hp-hpux10*)
da888c87 3893 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3894 ;;
3516a403 3895 hppa*-hp-hpux*)
da888c87
PB
3896 host_makefile_frag="config/mh-pa"
3897 ;;
3898 hppa*-*)
3899 host_makefile_frag="config/mh-pa"
3900 ;;
e552509b
ILT
3901 *-*-darwin*)
3902 host_makefile_frag="config/mh-darwin"
0df3d27f 3903 ;;
f6d183c0
PB
3904 powerpc-*-aix*)
3905 host_makefile_frag="config/mh-ppc-aix"
3906 ;;
3907 rs6000-*-aix*)
3908 host_makefile_frag="config/mh-ppc-aix"
3909 ;;
a0da8069
NN
3910esac
3911fi
3912
9e07f89d 3913if test "${build}" != "${host}" ; then
1576798e
PB
3914 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3915 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3916 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3917 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3918 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3919 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3920 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3921 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3922 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3923 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3924 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3925 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3926 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3927else
3928 AR_FOR_BUILD="\$(AR)"
3929 AS_FOR_BUILD="\$(AS)"
512b7dfb 3930 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3931 CXX_FOR_BUILD="\$(CXX)"
3932 GCJ_FOR_BUILD="\$(GCJ)"
3933 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3934 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3935 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3936 LD_FOR_BUILD="\$(LD)"
3937 NM_FOR_BUILD="\$(NM)"
3938 RANLIB_FOR_BUILD="\$(RANLIB)"
3939 WINDRES_FOR_BUILD="\$(WINDRES)"
3940 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3941fi
3942
3943ac_ext=c
c6b750e1
DJ
3944ac_cpp='$CPP $CPPFLAGS'
3945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947ac_compiler_gnu=$ac_cv_c_compiler_gnu
3948if test -n "$ac_tool_prefix"; then
3949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3950set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952$as_echo_n "checking for $ac_word... " >&6; }
3953if test "${ac_cv_prog_CC+set}" = set; then :
3954 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3955else
3956 if test -n "$CC"; then
3957 ac_cv_prog_CC="$CC" # Let the user override the test.
3958else
3959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH
3961do
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3968 break 2
3969 fi
3970done
81ecdfbb
RW
3971 done
3972IFS=$as_save_IFS
c6b750e1
DJ
3973
3974fi
3975fi
3976CC=$ac_cv_prog_CC
3977if test -n "$CC"; then
81ecdfbb
RW
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3979$as_echo "$CC" >&6; }
c6b750e1 3980else
81ecdfbb
RW
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982$as_echo "no" >&6; }
c6b750e1
DJ
3983fi
3984
81ecdfbb 3985
c6b750e1
DJ
3986fi
3987if test -z "$ac_cv_prog_CC"; then
3988 ac_ct_CC=$CC
6a9cf61e 3989 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3990set dummy gcc; ac_word=$2
81ecdfbb
RW
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3992$as_echo_n "checking for $ac_word... " >&6; }
3993if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3995else
3996 if test -n "$ac_ct_CC"; then
3997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3998else
3999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000for as_dir in $PATH
4001do
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4006 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4008 break 2
4009 fi
4010done
81ecdfbb
RW
4011 done
4012IFS=$as_save_IFS
c6b750e1
DJ
4013
4014fi
4015fi
4016ac_ct_CC=$ac_cv_prog_ac_ct_CC
4017if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4019$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4020else
81ecdfbb
RW
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022$as_echo "no" >&6; }
c6b750e1
DJ
4023fi
4024
81ecdfbb
RW
4025 if test "x$ac_ct_CC" = x; then
4026 CC=""
4027 else
4028 case $cross_compiling:$ac_tool_warned in
4029yes:)
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4032ac_tool_warned=yes ;;
4033esac
4034 CC=$ac_ct_CC
4035 fi
c6b750e1
DJ
4036else
4037 CC="$ac_cv_prog_CC"
4038fi
4039
4040if test -z "$CC"; then
81ecdfbb
RW
4041 if test -n "$ac_tool_prefix"; then
4042 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4043set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045$as_echo_n "checking for $ac_word... " >&6; }
4046if test "${ac_cv_prog_CC+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
9e07f89d
NN
4048else
4049 if test -n "$CC"; then
4050 ac_cv_prog_CC="$CC" # Let the user override the test.
4051else
c6b750e1
DJ
4052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053for as_dir in $PATH
4054do
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4059 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4061 break 2
4062 fi
4063done
81ecdfbb
RW
4064 done
4065IFS=$as_save_IFS
c6b750e1 4066
9e07f89d
NN
4067fi
4068fi
c6b750e1 4069CC=$ac_cv_prog_CC
9e07f89d 4070if test -n "$CC"; then
81ecdfbb
RW
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4072$as_echo "$CC" >&6; }
c6b750e1 4073else
81ecdfbb
RW
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075$as_echo "no" >&6; }
c6b750e1
DJ
4076fi
4077
c6b750e1 4078
81ecdfbb 4079 fi
c6b750e1 4080fi
9e07f89d
NN
4081if test -z "$CC"; then
4082 # Extract the first word of "cc", so it can be a program name with args.
4083set dummy cc; ac_word=$2
81ecdfbb
RW
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4085$as_echo_n "checking for $ac_word... " >&6; }
4086if test "${ac_cv_prog_CC+set}" = set; then :
4087 $as_echo_n "(cached) " >&6
9e07f89d
NN
4088else
4089 if test -n "$CC"; then
4090 ac_cv_prog_CC="$CC" # Let the user override the test.
4091else
9e07f89d 4092 ac_prog_rejected=no
c6b750e1
DJ
4093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH
4095do
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
4100 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4101 ac_prog_rejected=yes
4102 continue
4103 fi
4104 ac_cv_prog_CC="cc"
81ecdfbb 4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4106 break 2
4107 fi
4108done
81ecdfbb
RW
4109 done
4110IFS=$as_save_IFS
c6b750e1 4111
9e07f89d
NN
4112if test $ac_prog_rejected = yes; then
4113 # We found a bogon in the path, so make sure we never use it.
4114 set dummy $ac_cv_prog_CC
4115 shift
c6b750e1 4116 if test $# != 0; then
9e07f89d
NN
4117 # We chose a different compiler from the bogus one.
4118 # However, it has the same basename, so the bogon will be chosen
4119 # first if we set CC to just the basename; use the full file name.
4120 shift
c6b750e1 4121 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4122 fi
4123fi
4124fi
4125fi
c6b750e1 4126CC=$ac_cv_prog_CC
9e07f89d 4127if test -n "$CC"; then
81ecdfbb
RW
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4129$as_echo "$CC" >&6; }
9e07f89d 4130else
81ecdfbb
RW
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132$as_echo "no" >&6; }
9e07f89d
NN
4133fi
4134
81ecdfbb 4135
c6b750e1
DJ
4136fi
4137if test -z "$CC"; then
4138 if test -n "$ac_tool_prefix"; then
81ecdfbb 4139 for ac_prog in cl.exe
c6b750e1
DJ
4140 do
4141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4142set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144$as_echo_n "checking for $ac_word... " >&6; }
4145if test "${ac_cv_prog_CC+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
9e07f89d
NN
4147else
4148 if test -n "$CC"; then
4149 ac_cv_prog_CC="$CC" # Let the user override the test.
4150else
c6b750e1
DJ
4151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152for as_dir in $PATH
4153do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4158 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4160 break 2
376a0e54 4161 fi
c6b750e1 4162done
81ecdfbb
RW
4163 done
4164IFS=$as_save_IFS
cac3d6c4 4165
c6b750e1
DJ
4166fi
4167fi
4168CC=$ac_cv_prog_CC
4169if test -n "$CC"; then
81ecdfbb
RW
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171$as_echo "$CC" >&6; }
cac3d6c4 4172else
81ecdfbb
RW
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174$as_echo "no" >&6; }
9e07f89d 4175fi
cac3d6c4 4176
81ecdfbb 4177
c6b750e1
DJ
4178 test -n "$CC" && break
4179 done
cac3d6c4 4180fi
c6b750e1
DJ
4181if test -z "$CC"; then
4182 ac_ct_CC=$CC
81ecdfbb 4183 for ac_prog in cl.exe
c6b750e1
DJ
4184do
4185 # Extract the first word of "$ac_prog", so it can be a program name with args.
4186set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188$as_echo_n "checking for $ac_word... " >&6; }
4189if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
cac3d6c4 4191else
c6b750e1
DJ
4192 if test -n "$ac_ct_CC"; then
4193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4194else
c6b750e1
DJ
4195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196for as_dir in $PATH
4197do
4198 IFS=$as_save_IFS
4199 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4202 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4204 break 2
4205 fi
4206done
81ecdfbb
RW
4207 done
4208IFS=$as_save_IFS
c6b750e1 4209
cac3d6c4
CM
4210fi
4211fi
c6b750e1
DJ
4212ac_ct_CC=$ac_cv_prog_ac_ct_CC
4213if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4215$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4216else
81ecdfbb
RW
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218$as_echo "no" >&6; }
cac3d6c4 4219fi
376a0e54 4220
81ecdfbb 4221
c6b750e1
DJ
4222 test -n "$ac_ct_CC" && break
4223done
4224
81ecdfbb
RW
4225 if test "x$ac_ct_CC" = x; then
4226 CC=""
4227 else
4228 case $cross_compiling:$ac_tool_warned in
4229yes:)
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4232ac_tool_warned=yes ;;
4233esac
4234 CC=$ac_ct_CC
4235 fi
c6b750e1
DJ
4236fi
4237
4238fi
4239
4240
81ecdfbb
RW
4241test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4243as_fn_error "no acceptable C compiler found in \$PATH
4244See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4245
4246# Provide some information about the compiler.
81ecdfbb
RW
4247$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4248set X $ac_compile
4249ac_compiler=$2
4250for ac_option in --version -v -V -qversion; do
4251 { { ac_try="$ac_compiler $ac_option >&5"
4252case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255esac
4256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4257$as_echo "$ac_try_echo"; } >&5
4258 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4259 ac_status=$?
81ecdfbb
RW
4260 if test -s conftest.err; then
4261 sed '10a\
4262... rest of stderr output deleted ...
4263 10q' conftest.err >conftest.er1
4264 cat conftest.er1 >&5
4265 rm -f conftest.er1 conftest.err
4266 fi
4267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4268 test $ac_status = 0; }
4269done
c6b750e1 4270
81ecdfbb 4271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4272/* end confdefs.h. */
4273
4274int
4275main ()
4276{
4277
4278 ;
4279 return 0;
4280}
4281_ACEOF
4282ac_clean_files_save=$ac_clean_files
81ecdfbb 4283ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4284# Try to create an executable without -o first, disregard a.out.
4285# It will help us diagnose broken compilers, and finding out an intuition
4286# of exeext.
81ecdfbb
RW
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4288$as_echo_n "checking for C compiler default output file name... " >&6; }
4289ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4290
4291# The possible output files:
4292ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4293
4294ac_rmfiles=
4295for ac_file in $ac_files
4296do
4297 case $ac_file in
4298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4299 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4300 esac
4301done
4302rm -f $ac_rmfiles
4303
4304if { { ac_try="$ac_link_default"
4305case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308esac
4309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310$as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_link_default") 2>&5
c6b750e1 4312 ac_status=$?
81ecdfbb
RW
4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; }; then :
4315 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4316# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4317# in a Makefile. We should not override ac_cv_exeext if it was cached,
4318# so that the user can short-circuit this test for compilers unknown to
4319# Autoconf.
4320for ac_file in $ac_files ''
c6b750e1
DJ
4321do
4322 test -f "$ac_file" || continue
4323 case $ac_file in
81ecdfbb 4324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4325 ;;
4326 [ab].out )
4327 # We found the default executable, but exeext='' is most
4328 # certainly right.
4329 break;;
4330 *.* )
81ecdfbb
RW
4331 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4332 then :; else
4333 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4334 fi
4335 # We set ac_cv_exeext here because the later test for it is not
4336 # safe: cross compilers may not add the suffix if given an `-o'
4337 # argument, so we may need to know it at that point already.
4338 # Even if this section looks crufty: it has the advantage of
4339 # actually working.
c6b750e1
DJ
4340 break;;
4341 * )
4342 break;;
4343 esac
4344done
81ecdfbb
RW
4345test "$ac_cv_exeext" = no && ac_cv_exeext=
4346
c6b750e1 4347else
81ecdfbb
RW
4348 ac_file=''
4349fi
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4351$as_echo "$ac_file" >&6; }
4352if test -z "$ac_file"; then :
4353 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4354sed 's/^/| /' conftest.$ac_ext >&5
4355
81ecdfbb
RW
4356{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4358{ as_fn_set_status 77
4359as_fn_error "C compiler cannot create executables
4360See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4361fi
c6b750e1 4362ac_exeext=$ac_cv_exeext
c6b750e1 4363
81ecdfbb 4364# Check that the compiler produces executables we can run. If not, either
c6b750e1 4365# the compiler is broken, or we cross compile.
81ecdfbb
RW
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4367$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4368# If not cross compiling, check that we can run a simple program.
4369if test "$cross_compiling" != yes; then
4370 if { ac_try='./$ac_file'
81ecdfbb
RW
4371 { { case "(($ac_try" in
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4374esac
4375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4376$as_echo "$ac_try_echo"; } >&5
4377 (eval "$ac_try") 2>&5
c6b750e1 4378 ac_status=$?
81ecdfbb
RW
4379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4380 test $ac_status = 0; }; }; then
c6b750e1
DJ
4381 cross_compiling=no
4382 else
4383 if test "$cross_compiling" = maybe; then
4384 cross_compiling=yes
4385 else
81ecdfbb
RW
4386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4388as_fn_error "cannot run C compiled programs.
c6b750e1 4389If you meant to cross compile, use \`--host'.
81ecdfbb 4390See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4391 fi
4392 fi
4393fi
81ecdfbb
RW
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4395$as_echo "yes" >&6; }
c6b750e1 4396
81ecdfbb 4397rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4398ac_clean_files=$ac_clean_files_save
81ecdfbb 4399# Check that the compiler produces executables we can run. If not, either
c6b750e1 4400# the compiler is broken, or we cross compile.
81ecdfbb
RW
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4402$as_echo_n "checking whether we are cross compiling... " >&6; }
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4404$as_echo "$cross_compiling" >&6; }
4405
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4407$as_echo_n "checking for suffix of executables... " >&6; }
4408if { { ac_try="$ac_link"
4409case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412esac
4413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414$as_echo "$ac_try_echo"; } >&5
4415 (eval "$ac_link") 2>&5
c6b750e1 4416 ac_status=$?
81ecdfbb
RW
4417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; }; then :
c6b750e1
DJ
4419 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4420# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4421# work properly (i.e., refer to `conftest.exe'), while it won't with
4422# `rm'.
4423for ac_file in conftest.exe conftest conftest.*; do
4424 test -f "$ac_file" || continue
4425 case $ac_file in
81ecdfbb 4426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4427 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4428 break;;
4429 * ) break;;
4430 esac
4431done
4432else
81ecdfbb
RW
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435as_fn_error "cannot compute suffix of executables: cannot compile and link
4436See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4437fi
c6b750e1 4438rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4440$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4441
4442rm -f conftest.$ac_ext
4443EXEEXT=$ac_cv_exeext
4444ac_exeext=$EXEEXT
81ecdfbb
RW
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4446$as_echo_n "checking for suffix of object files... " >&6; }
4447if test "${ac_cv_objext+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
c6b750e1 4449else
81ecdfbb 4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4451/* end confdefs.h. */
4452
4453int
4454main ()
4455{
4456
4457 ;
4458 return 0;
4459}
4460_ACEOF
4461rm -f conftest.o conftest.obj
81ecdfbb
RW
4462if { { ac_try="$ac_compile"
4463case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4466esac
4467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4468$as_echo "$ac_try_echo"; } >&5
4469 (eval "$ac_compile") 2>&5
c6b750e1 4470 ac_status=$?
81ecdfbb
RW
4471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4472 test $ac_status = 0; }; then :
4473 for ac_file in conftest.o conftest.obj conftest.*; do
4474 test -f "$ac_file" || continue;
c6b750e1 4475 case $ac_file in
81ecdfbb 4476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4477 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4478 break;;
4479 esac
4480done
cac3d6c4 4481else
81ecdfbb 4482 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4483sed 's/^/| /' conftest.$ac_ext >&5
4484
81ecdfbb
RW
4485{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4487as_fn_error "cannot compute suffix of object files: cannot compile
4488See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4489fi
c6b750e1
DJ
4490rm -f conftest.$ac_cv_objext conftest.$ac_ext
4491fi
81ecdfbb
RW
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4493$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4494OBJEXT=$ac_cv_objext
4495ac_objext=$OBJEXT
81ecdfbb
RW
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4497$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4498if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4499 $as_echo_n "(cached) " >&6
c6b750e1 4500else
81ecdfbb 4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4502/* end confdefs.h. */
4503
4504int
4505main ()
4506{
4507#ifndef __GNUC__
4508 choke me
4509#endif
4510
4511 ;
4512 return 0;
4513}
4514_ACEOF
81ecdfbb 4515if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4516 ac_compiler_gnu=yes
4517else
81ecdfbb 4518 ac_compiler_gnu=no
c6b750e1 4519fi
81ecdfbb 4520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4521ac_cv_c_compiler_gnu=$ac_compiler_gnu
4522
4523fi
81ecdfbb
RW
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4525$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4526if test $ac_compiler_gnu = yes; then
4527 GCC=yes
4528else
4529 GCC=
4530fi
c6b750e1
DJ
4531ac_test_CFLAGS=${CFLAGS+set}
4532ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4534$as_echo_n "checking whether $CC accepts -g... " >&6; }
4535if test "${ac_cv_prog_cc_g+set}" = set; then :
4536 $as_echo_n "(cached) " >&6
4537else
4538 ac_save_c_werror_flag=$ac_c_werror_flag
4539 ac_c_werror_flag=yes
4540 ac_cv_prog_cc_g=no
4541 CFLAGS="-g"
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4543/* end confdefs.h. */
4544
4545int
4546main ()
4547{
4548
4549 ;
4550 return 0;
4551}
4552_ACEOF
81ecdfbb 4553if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4554 ac_cv_prog_cc_g=yes
4555else
81ecdfbb
RW
4556 CFLAGS=""
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558/* end confdefs.h. */
4559
4560int
4561main ()
4562{
4563
4564 ;
4565 return 0;
4566}
4567_ACEOF
4568if ac_fn_c_try_compile "$LINENO"; then :
4569
4570else
4571 ac_c_werror_flag=$ac_save_c_werror_flag
4572 CFLAGS="-g"
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574/* end confdefs.h. */
cac3d6c4 4575
81ecdfbb
RW
4576int
4577main ()
4578{
4579
4580 ;
4581 return 0;
4582}
4583_ACEOF
4584if ac_fn_c_try_compile "$LINENO"; then :
4585 ac_cv_prog_cc_g=yes
4586fi
4587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4588fi
81ecdfbb 4589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4590fi
81ecdfbb
RW
4591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 ac_c_werror_flag=$ac_save_c_werror_flag
4593fi
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4595$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4596if test "$ac_test_CFLAGS" = set; then
c6b750e1 4597 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4598elif test $ac_cv_prog_cc_g = yes; then
4599 if test "$GCC" = yes; then
4600 CFLAGS="-g -O2"
4601 else
4602 CFLAGS="-g"
4603 fi
4604else
4605 if test "$GCC" = yes; then
4606 CFLAGS="-O2"
4607 else
4608 CFLAGS=
4609 fi
4610fi
81ecdfbb
RW
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4612$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4613if test "${ac_cv_prog_cc_c89+set}" = set; then :
4614 $as_echo_n "(cached) " >&6
c6b750e1 4615else
81ecdfbb 4616 ac_cv_prog_cc_c89=no
c6b750e1 4617ac_save_CC=$CC
81ecdfbb 4618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4619/* end confdefs.h. */
4620#include <stdarg.h>
4621#include <stdio.h>
4622#include <sys/types.h>
4623#include <sys/stat.h>
4624/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4625struct buf { int x; };
4626FILE * (*rcsopen) (struct buf *, struct stat *, int);
4627static char *e (p, i)
4628 char **p;
4629 int i;
4630{
4631 return p[i];
4632}
4633static char *f (char * (*g) (char **, int), char **p, ...)
4634{
4635 char *s;
4636 va_list v;
4637 va_start (v,p);
4638 s = g (p, va_arg (v,int));
4639 va_end (v);
4640 return s;
4641}
4642
4643/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4644 function prototypes and stuff, but not '\xHH' hex character constants.
4645 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4646 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4648 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4649 that's true only with -std. */
c6b750e1
DJ
4650int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4651
81ecdfbb
RW
4652/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4653 inside strings and character constants. */
4654#define FOO(x) 'x'
4655int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4656
c6b750e1
DJ
4657int test (int i, double x);
4658struct s1 {int (*f) (int a);};
4659struct s2 {int (*f) (double a);};
4660int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4661int argc;
4662char **argv;
4663int
4664main ()
4665{
4666return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4667 ;
4668 return 0;
4669}
4670_ACEOF
81ecdfbb
RW
4671for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4672 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4673do
4674 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4677fi
81ecdfbb
RW
4678rm -f core conftest.err conftest.$ac_objext
4679 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4680done
81ecdfbb 4681rm -f conftest.$ac_ext
c6b750e1
DJ
4682CC=$ac_save_CC
4683
4684fi
81ecdfbb
RW
4685# AC_CACHE_VAL
4686case "x$ac_cv_prog_cc_c89" in
4687 x)
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4689$as_echo "none needed" >&6; } ;;
4690 xno)
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4692$as_echo "unsupported" >&6; } ;;
c6b750e1 4693 *)
81ecdfbb
RW
4694 CC="$CC $ac_cv_prog_cc_c89"
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4696$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4697esac
81ecdfbb 4698if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4699
c6b750e1
DJ
4700fi
4701
c6b750e1
DJ
4702ac_ext=c
4703ac_cpp='$CPP $CPPFLAGS'
4704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4706ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4707
81ecdfbb 4708ac_ext=cpp
18f6b6ee
PB
4709ac_cpp='$CXXCPP $CPPFLAGS'
4710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4713if test -z "$CXX"; then
4714 if test -n "$CCC"; then
4715 CXX=$CCC
4716 else
4717 if test -n "$ac_tool_prefix"; then
4718 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4719 do
4720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4721set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723$as_echo_n "checking for $ac_word... " >&6; }
4724if test "${ac_cv_prog_CXX+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4726else
4727 if test -n "$CXX"; then
4728 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4729else
4730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731for as_dir in $PATH
4732do
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4737 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4739 break 2
4740 fi
4741done
81ecdfbb
RW
4742 done
4743IFS=$as_save_IFS
512b7dfb 4744
18f6b6ee
PB
4745fi
4746fi
4747CXX=$ac_cv_prog_CXX
4748if test -n "$CXX"; then
81ecdfbb
RW
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4750$as_echo "$CXX" >&6; }
18f6b6ee 4751else
81ecdfbb
RW
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753$as_echo "no" >&6; }
18f6b6ee
PB
4754fi
4755
81ecdfbb 4756
18f6b6ee
PB
4757 test -n "$CXX" && break
4758 done
4759fi
4760if test -z "$CXX"; then
4761 ac_ct_CXX=$CXX
81ecdfbb 4762 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4763do
4764 # Extract the first word of "$ac_prog", so it can be a program name with args.
4765set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767$as_echo_n "checking for $ac_word... " >&6; }
4768if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4770else
4771 if test -n "$ac_ct_CXX"; then
4772 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4773else
4774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775for as_dir in $PATH
4776do
4777 IFS=$as_save_IFS
4778 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4781 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4783 break 2
512b7dfb 4784 fi
18f6b6ee 4785done
81ecdfbb
RW
4786 done
4787IFS=$as_save_IFS
512b7dfb 4788
18f6b6ee
PB
4789fi
4790fi
4791ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4792if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4794$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4795else
81ecdfbb
RW
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797$as_echo "no" >&6; }
18f6b6ee
PB
4798fi
4799
81ecdfbb 4800
18f6b6ee
PB
4801 test -n "$ac_ct_CXX" && break
4802done
18f6b6ee 4803
81ecdfbb
RW
4804 if test "x$ac_ct_CXX" = x; then
4805 CXX="g++"
4806 else
4807 case $cross_compiling:$ac_tool_warned in
4808yes:)
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4811ac_tool_warned=yes ;;
4812esac
4813 CXX=$ac_ct_CXX
4814 fi
18f6b6ee
PB
4815fi
4816
81ecdfbb
RW
4817 fi
4818fi
18f6b6ee 4819# Provide some information about the compiler.
81ecdfbb
RW
4820$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4821set X $ac_compile
4822ac_compiler=$2
4823for ac_option in --version -v -V -qversion; do
4824 { { ac_try="$ac_compiler $ac_option >&5"
4825case "(($ac_try" in
4826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4828esac
4829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4830$as_echo "$ac_try_echo"; } >&5
4831 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4832 ac_status=$?
81ecdfbb
RW
4833 if test -s conftest.err; then
4834 sed '10a\
4835... rest of stderr output deleted ...
4836 10q' conftest.err >conftest.er1
4837 cat conftest.er1 >&5
4838 rm -f conftest.er1 conftest.err
4839 fi
4840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4841 test $ac_status = 0; }
4842done
18f6b6ee 4843
81ecdfbb
RW
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4845$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4846if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4847 $as_echo_n "(cached) " >&6
18f6b6ee 4848else
81ecdfbb 4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4850/* end confdefs.h. */
4851
4852int
4853main ()
4854{
4855#ifndef __GNUC__
4856 choke me
4857#endif
4858
4859 ;
4860 return 0;
4861}
4862_ACEOF
81ecdfbb 4863if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4864 ac_compiler_gnu=yes
4865else
81ecdfbb 4866 ac_compiler_gnu=no
18f6b6ee 4867fi
81ecdfbb 4868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4869ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4870
4871fi
81ecdfbb
RW
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4873$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4874if test $ac_compiler_gnu = yes; then
4875 GXX=yes
4876else
4877 GXX=
4878fi
18f6b6ee
PB
4879ac_test_CXXFLAGS=${CXXFLAGS+set}
4880ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4882$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4883if test "${ac_cv_prog_cxx_g+set}" = set; then :
4884 $as_echo_n "(cached) " >&6
4885else
4886 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4887 ac_cxx_werror_flag=yes
4888 ac_cv_prog_cxx_g=no
4889 CXXFLAGS="-g"
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4891/* end confdefs.h. */
4892
4893int
4894main ()
4895{
4896
4897 ;
4898 return 0;
4899}
4900_ACEOF
81ecdfbb 4901if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4902 ac_cv_prog_cxx_g=yes
4903else
81ecdfbb
RW
4904 CXXFLAGS=""
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4906/* end confdefs.h. */
81ecdfbb 4907
18f6b6ee
PB
4908int
4909main ()
4910{
81ecdfbb 4911
18f6b6ee
PB
4912 ;
4913 return 0;
4914}
4915_ACEOF
81ecdfbb 4916if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4917
81ecdfbb
RW
4918else
4919 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4920 CXXFLAGS="-g"
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4922/* end confdefs.h. */
81ecdfbb 4923
18f6b6ee
PB
4924int
4925main ()
4926{
81ecdfbb 4927
18f6b6ee
PB
4928 ;
4929 return 0;
4930}
4931_ACEOF
81ecdfbb
RW
4932if ac_fn_cxx_try_compile "$LINENO"; then :
4933 ac_cv_prog_cxx_g=yes
18f6b6ee 4934fi
81ecdfbb
RW
4935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936fi
4937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938fi
4939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4941fi
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4943$as_echo "$ac_cv_prog_cxx_g" >&6; }
4944if test "$ac_test_CXXFLAGS" = set; then
4945 CXXFLAGS=$ac_save_CXXFLAGS
4946elif test $ac_cv_prog_cxx_g = yes; then
4947 if test "$GXX" = yes; then
4948 CXXFLAGS="-g -O2"
4949 else
4950 CXXFLAGS="-g"
4951 fi
4952else
4953 if test "$GXX" = yes; then
4954 CXXFLAGS="-O2"
4955 else
4956 CXXFLAGS=
4957 fi
18f6b6ee 4958fi
18f6b6ee
PB
4959ac_ext=c
4960ac_cpp='$CPP $CPPFLAGS'
4961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963ac_compiler_gnu=$ac_cv_c_compiler_gnu
4964
4965
4966# We must set the default linker to the linker used by gcc for the correct
4967# operation of libtool. If LD is not defined and we are using gcc, try to
4968# set the LD default to the ld used by gcc.
4969if test -z "$LD"; then
4970 if test "$GCC" = yes; then
4971 case $build in
4972 *-*-mingw*)
4973 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4974 *)
4975 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4976 esac
4977 case $gcc_prog_ld in
4978 # Accept absolute paths.
4979 [\\/]* | [A-Za-z]:[\\/]*)
4980 LD="$gcc_prog_ld" ;;
4981 esac
4982 fi
512b7dfb
PB
4983fi
4984
b3676d82
EB
4985# Check whether -static-libstdc++ -static-libgcc is supported.
4986have_static_libs=no
4987if test "$GCC" = yes; then
4988 saved_LDFLAGS="$LDFLAGS"
4989
4990 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4992$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4993 ac_ext=cpp
4994ac_cpp='$CXXCPP $CPPFLAGS'
4995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4998
4999
5000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001/* end confdefs.h. */
a882be68
EB
5002
5003#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5004#error -static-libstdc++ not implemented
5005#endif
b3676d82
EB
5006int main() {}
5007_ACEOF
5008if ac_fn_cxx_try_link "$LINENO"; then :
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5010$as_echo "yes" >&6; }; have_static_libs=yes
5011else
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013$as_echo "no" >&6; }
5014fi
5015rm -f core conftest.err conftest.$ac_objext \
5016 conftest$ac_exeext conftest.$ac_ext
5017 ac_ext=c
5018ac_cpp='$CPP $CPPFLAGS'
5019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022
5023
5024 LDFLAGS="$saved_LDFLAGS"
5025fi
5026
512b7dfb
PB
5027
5028
5029
c6b750e1 5030if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5031 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5032set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034$as_echo_n "checking for $ac_word... " >&6; }
5035if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
9e07f89d 5037else
512b7dfb
PB
5038 if test -n "$GNATBIND"; then
5039 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5040else
c6b750e1
DJ
5041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042for as_dir in $PATH
5043do
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5048 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5050 break 2
5051 fi
5052done
81ecdfbb
RW
5053 done
5054IFS=$as_save_IFS
c6b750e1 5055
9e07f89d
NN
5056fi
5057fi
512b7dfb
PB
5058GNATBIND=$ac_cv_prog_GNATBIND
5059if test -n "$GNATBIND"; then
81ecdfbb
RW
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5061$as_echo "$GNATBIND" >&6; }
9e07f89d 5062else
81ecdfbb
RW
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064$as_echo "no" >&6; }
9e07f89d
NN
5065fi
5066
81ecdfbb 5067
c6b750e1 5068fi
512b7dfb
PB
5069if test -z "$ac_cv_prog_GNATBIND"; then
5070 ac_ct_GNATBIND=$GNATBIND
5071 # Extract the first word of "gnatbind", so it can be a program name with args.
5072set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074$as_echo_n "checking for $ac_word... " >&6; }
5075if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5076 $as_echo_n "(cached) " >&6
9e07f89d 5077else
512b7dfb
PB
5078 if test -n "$ac_ct_GNATBIND"; then
5079 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5080else
c6b750e1
DJ
5081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082for as_dir in $PATH
5083do
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5088 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5090 break 2
5091 fi
5092done
81ecdfbb
RW
5093 done
5094IFS=$as_save_IFS
c6b750e1 5095
9e07f89d
NN
5096fi
5097fi
512b7dfb
PB
5098ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5099if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5101$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5102else
81ecdfbb
RW
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104$as_echo "no" >&6; }
9e07f89d
NN
5105fi
5106
81ecdfbb
RW
5107 if test "x$ac_ct_GNATBIND" = x; then
5108 GNATBIND="no"
5109 else
5110 case $cross_compiling:$ac_tool_warned in
5111yes:)
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5114ac_tool_warned=yes ;;
5115esac
5116 GNATBIND=$ac_ct_GNATBIND
5117 fi
24ff9987 5118else
512b7dfb 5119 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5120fi
5121
7df2cd5d 5122if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5123 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5124set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126$as_echo_n "checking for $ac_word... " >&6; }
5127if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5128 $as_echo_n "(cached) " >&6
7df2cd5d 5129else
512b7dfb
PB
5130 if test -n "$GNATMAKE"; then
5131 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5132else
5133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5140 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5142 break 2
5143 fi
5144done
81ecdfbb
RW
5145 done
5146IFS=$as_save_IFS
7df2cd5d
PB
5147
5148fi
5149fi
512b7dfb
PB
5150GNATMAKE=$ac_cv_prog_GNATMAKE
5151if test -n "$GNATMAKE"; then
81ecdfbb
RW
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5153$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5154else
81ecdfbb
RW
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156$as_echo "no" >&6; }
7df2cd5d
PB
5157fi
5158
81ecdfbb 5159
7df2cd5d 5160fi
512b7dfb
PB
5161if test -z "$ac_cv_prog_GNATMAKE"; then
5162 ac_ct_GNATMAKE=$GNATMAKE
5163 # Extract the first word of "gnatmake", so it can be a program name with args.
5164set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166$as_echo_n "checking for $ac_word... " >&6; }
5167if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5168 $as_echo_n "(cached) " >&6
7df2cd5d 5169else
512b7dfb
PB
5170 if test -n "$ac_ct_GNATMAKE"; then
5171 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5172else
5173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174for as_dir in $PATH
5175do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5180 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5182 break 2
5183 fi
5184done
81ecdfbb
RW
5185 done
5186IFS=$as_save_IFS
7df2cd5d 5187
7df2cd5d
PB
5188fi
5189fi
512b7dfb
PB
5190ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5191if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5193$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5194else
81ecdfbb
RW
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196$as_echo "no" >&6; }
7df2cd5d
PB
5197fi
5198
81ecdfbb
RW
5199 if test "x$ac_ct_GNATMAKE" = x; then
5200 GNATMAKE="no"
5201 else
5202 case $cross_compiling:$ac_tool_warned in
5203yes:)
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5206ac_tool_warned=yes ;;
5207esac
5208 GNATMAKE=$ac_ct_GNATMAKE
5209 fi
7df2cd5d 5210else
512b7dfb 5211 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5212fi
5213
81ecdfbb
RW
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5215$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5216if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
9e07f89d
NN
5218else
5219 cat >conftest.adb <<EOF
5220procedure conftest is begin null; end conftest;
5221EOF
5222acx_cv_cc_gcc_supports_ada=no
5223# There is a bug in old released versions of GCC which causes the
5224# driver to exit successfully when the appropriate language module
5225# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5226# Therefore we must check for the error message as well as an
5227# unsuccessful exit.
b8908782
DD
5228# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5229# given a .adb file, but produce no object file. So we must check
5230# if an object file was really produced to guard against this.
9e07f89d 5231errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5232if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5233 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5234fi
5235rm -f conftest.*
5236fi
81ecdfbb
RW
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5238$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5239
64b986c0 5240if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5241 have_gnat=yes
5242else
5243 have_gnat=no
5244fi
5245
81ecdfbb
RW
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5247$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5248if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
b8908782
DD
5250else
5251 echo abfoo >t1
5252 echo cdfoo >t2
5253 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5254 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5255 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5256 :
5257 else
5258 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5259 fi
5260 fi
b8908782
DD
5261 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5262 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5263 :
b8908782
DD
5264 else
5265 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5266 fi
5267 fi
5268 rm t1 t2
5269
5270fi
81ecdfbb
RW
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5272$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5273do_compare="$gcc_cv_prog_cmp_skip"
5274
5275
9e07f89d 5276
ffdd6afc
ILT
5277# Check whether --enable-bootstrap was given.
5278if test "${enable_bootstrap+set}" = set; then :
5279 enableval=$enable_bootstrap;
5280else
5281 enable_bootstrap=default
5282fi
5283
5284
5285# Issue errors and warnings for invalid/strange bootstrap combinations.
5286if test -r $srcdir/gcc/configure; then
5287 have_compiler=yes
5288else
5289 have_compiler=no
5290fi
5291
5292case "$have_compiler:$host:$target:$enable_bootstrap" in
5293 *:*:*:no) ;;
5294
5295 # Default behavior. Enable bootstrap if we have a compiler
5296 # and we are in a native configuration.
5297 yes:$build:$build:default)
5298 enable_bootstrap=yes ;;
5299
5300 *:*:*:default)
5301 enable_bootstrap=no ;;
5302
5303 # We have a compiler and we are in a native configuration, bootstrap is ok
5304 yes:$build:$build:yes)
5305 ;;
5306
5307 # Other configurations, but we have a compiler. Assume the user knows
5308 # what he's doing.
5309 yes:*:*:yes)
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5311$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5312 ;;
5313
5314 # No compiler: if they passed --enable-bootstrap explicitly, fail
5315 no:*:*:yes)
5316 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5317
5318 # Fail if wrong command line
5319 *)
5320 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5321 ;;
5322esac
5323
d5f2ee2e
KG
5324# Used for setting $lt_cv_objdir
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5326$as_echo_n "checking for objdir... " >&6; }
5327if test "${lt_cv_objdir+set}" = set; then :
5328 $as_echo_n "(cached) " >&6
5329else
5330 rm -f .libs 2>/dev/null
5331mkdir .libs 2>/dev/null
5332if test -d .libs; then
5333 lt_cv_objdir=.libs
5334else
5335 # MS-DOS does not allow filenames that begin with a dot.
5336 lt_cv_objdir=_libs
5337fi
5338rmdir .libs 2>/dev/null
5339fi
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5341$as_echo "$lt_cv_objdir" >&6; }
5342objdir=$lt_cv_objdir
5343
5344
5345
5346
5347
5348cat >>confdefs.h <<_ACEOF
5349#define LT_OBJDIR "$lt_cv_objdir/"
5350_ACEOF
5351
5352
5353
e8a5fa9c 5354# Check for GMP, MPFR and MPC
d9b76ff9 5355gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5356gmpinc=
4b900473 5357have_gmp=no
e8a5fa9c
RW
5358
5359# Specify a location for mpc
5360# check for this first so it ends up on the link line before mpfr.
5361
81ecdfbb
RW
5362# Check whether --with-mpc was given.
5363if test "${with_mpc+set}" = set; then :
5364 withval=$with_mpc;
5365fi
e8a5fa9c 5366
e8a5fa9c 5367
e552509b 5368# Check whether --with-mpc-include was given.
81ecdfbb
RW
5369if test "${with_mpc_include+set}" = set; then :
5370 withval=$with_mpc_include;
5371fi
e8a5fa9c 5372
e8a5fa9c 5373
e552509b 5374# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5375if test "${with_mpc_lib+set}" = set; then :
5376 withval=$with_mpc_lib;
5377fi
e8a5fa9c 5378
e8a5fa9c
RW
5379
5380if test "x$with_mpc" != x; then
d9b76ff9
KG
5381 gmplibs="-L$with_mpc/lib $gmplibs"
5382 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5383fi
5384if test "x$with_mpc_include" != x; then
d9b76ff9 5385 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5386fi
5387if test "x$with_mpc_lib" != x; then
d9b76ff9 5388 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5389fi
5390if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5391 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5392 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5393 # Do not test the mpc version. Assume that it is sufficient, since
5394 # it is in the source tree, and the library has not been built yet
5395 # but it would be included on the link line in the version check below
5396 # hence making the test fail.
d9b76ff9 5397 have_gmp=yes
e8a5fa9c 5398fi
4b900473 5399
11b04d1f
DD
5400# Specify a location for mpfr
5401# check for this first so it ends up on the link line before gmp.
c6b750e1 5402
81ecdfbb
RW
5403# Check whether --with-mpfr-dir was given.
5404if test "${with_mpfr_dir+set}" = set; then :
5405 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5406Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5407fi
5408
11b04d1f
DD
5409
5410
81ecdfbb
RW
5411# Check whether --with-mpfr was given.
5412if test "${with_mpfr+set}" = set; then :
5413 withval=$with_mpfr;
5414fi
c6b750e1 5415
11b04d1f 5416
e552509b 5417# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5418if test "${with_mpfr_include+set}" = set; then :
5419 withval=$with_mpfr_include;
5420fi
c6b750e1 5421
8a0d8a5c 5422
e552509b 5423# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5424if test "${with_mpfr_lib+set}" = set; then :
5425 withval=$with_mpfr_lib;
5426fi
8a0d8a5c 5427
11b04d1f
DD
5428
5429if test "x$with_mpfr" != x; then
5430 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5431 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5432fi
8a0d8a5c 5433if test "x$with_mpfr_include" != x; then
d9b76ff9 5434 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5435fi
5436if test "x$with_mpfr_lib" != x; then
5437 gmplibs="-L$with_mpfr_lib $gmplibs"
5438fi
4b900473 5439if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21
NC
5440 # MPFR v3.1.0 moved the sources into a src sub-directory.
5441 if test -d ${srcdir}/mpfr/src; then
5442 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5443 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5444 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5445 else
5446 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5447 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5448 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5449 fi
4b900473
PB
5450 # Do not test the mpfr version. Assume that it is sufficient, since
5451 # it is in the source tree, and the library has not been built yet
5452 # but it would be included on the link line in the version check below
5453 # hence making the test fail.
5454 have_gmp=yes
5455fi
11b04d1f 5456
4b1cb4fe 5457# Specify a location for gmp
c6b750e1 5458
81ecdfbb
RW
5459# Check whether --with-gmp-dir was given.
5460if test "${with_gmp_dir+set}" = set; then :
5461 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5462Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5463fi
5464
4b1cb4fe
DD
5465
5466
81ecdfbb
RW
5467# Check whether --with-gmp was given.
5468if test "${with_gmp+set}" = set; then :
5469 withval=$with_gmp;
5470fi
c6b750e1 5471
4b1cb4fe 5472
e552509b 5473# Check whether --with-gmp-include was given.
81ecdfbb
RW
5474if test "${with_gmp_include+set}" = set; then :
5475 withval=$with_gmp_include;
5476fi
c6b750e1 5477
8a0d8a5c 5478
e552509b 5479# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5480if test "${with_gmp_lib+set}" = set; then :
5481 withval=$with_gmp_lib;
5482fi
8a0d8a5c
PB
5483
5484
4b1cb4fe 5485
11b04d1f
DD
5486if test "x$with_gmp" != x; then
5487 gmplibs="-L$with_gmp/lib $gmplibs"
5488 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5489fi
8a0d8a5c
PB
5490if test "x$with_gmp_include" != x; then
5491 gmpinc="-I$with_gmp_include $gmpinc"
5492fi
5493if test "x$with_gmp_lib" != x; then
5494 gmplibs="-L$with_gmp_lib $gmplibs"
5495fi
4b900473 5496if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5497 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5498 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5499 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5500 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5501 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5502 # Do not test the gmp version. Assume that it is sufficient, since
5503 # it is in the source tree, and the library has not been built yet
5504 # but it would be included on the link line in the version check below
5505 # hence making the test fail.
5506 have_gmp=yes
5507fi
4b1cb4fe 5508
ceb92e78 5509if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5510 have_gmp=yes
5511 saved_CFLAGS="$CFLAGS"
5512 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5513 # Check for the recommended and required versions of GMP.
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5515$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5516
5517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5518/* end confdefs.h. */
5519#include "gmp.h"
5520int
5521main ()
5522{
5523
5524 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5525 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5526 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5527 choke me
5528 #endif
5529
5530 ;
5531 return 0;
5532}
5533_ACEOF
5534if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5536/* end confdefs.h. */
a6b5846e 5537#include <gmp.h>
c6b750e1
DJ
5538int
5539main ()
5540{
4b1cb4fe 5541
a6b5846e
KG
5542 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5543 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5544 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5545 choke me
5546 #endif
c6b750e1
DJ
5547
5548 ;
5549 return 0;
5550}
5551_ACEOF
81ecdfbb
RW
5552if ac_fn_c_try_compile "$LINENO"; then :
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5554$as_echo "yes" >&6; }
a6b5846e
KG
5555else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5557$as_echo "buggy but acceptable" >&6; }
5558fi
5559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5560else
81ecdfbb
RW
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5563fi
81ecdfbb 5564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5565
e8a5fa9c 5566 # If we have GMP, check the MPFR version.
4b900473 5567 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5568 # Check for the recommended and required versions of MPFR.
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5570$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5572/* end confdefs.h. */
9b134994 5573#include <gmp.h>
4b900473 5574 #include <mpfr.h>
c6b750e1
DJ
5575int
5576main ()
5577{
9b134994 5578
7ec59b9e 5579 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5580 choke me
5581 #endif
c6b750e1
DJ
5582
5583 ;
5584 return 0;
5585}
5586_ACEOF
81ecdfbb
RW
5587if ac_fn_c_try_compile "$LINENO"; then :
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5589/* end confdefs.h. */
4b1cb4fe 5590#include <gmp.h>
4b900473 5591 #include <mpfr.h>
c6b750e1
DJ
5592int
5593main ()
5594{
9dbaa842 5595
a6b5846e 5596 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5597 choke me
5598 #endif
e8a5fa9c
RW
5599
5600 ;
5601 return 0;
5602}
5603_ACEOF
81ecdfbb
RW
5604if ac_fn_c_try_compile "$LINENO"; then :
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5606$as_echo "yes" >&6; }
e8a5fa9c 5607else
81ecdfbb
RW
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5609$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5610fi
81ecdfbb 5611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5612else
81ecdfbb
RW
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5615fi
81ecdfbb 5616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5617 fi
5618
5619 # Check for the MPC header version.
d9b76ff9 5620 if test x"$have_gmp" = xyes ; then
a6b5846e 5621 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5623$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5625/* end confdefs.h. */
5626#include <mpc.h>
5627int
5628main ()
5629{
5630
a6b5846e
KG
5631 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5632 choke me
5633 #endif
5634
5635 ;
5636 return 0;
5637}
5638_ACEOF
5639if ac_fn_c_try_compile "$LINENO"; then :
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641/* end confdefs.h. */
5642#include <mpc.h>
5643int
5644main ()
5645{
5646
5647 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5648 choke me
5649 #endif
5650
5651 ;
5652 return 0;
5653}
5654_ACEOF
81ecdfbb
RW
5655if ac_fn_c_try_compile "$LINENO"; then :
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5657$as_echo "yes" >&6; }
a6b5846e
KG
5658else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5660$as_echo "buggy but acceptable" >&6; }
5661fi
5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5663else
81ecdfbb 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5665$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5666fi
81ecdfbb 5667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5668 fi
5669
5670 # Now check the MPFR library.
5671 if test x"$have_gmp" = xyes; then
5672 saved_LIBS="$LIBS"
5673 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5675$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5677/* end confdefs.h. */
d9b76ff9 5678#include <mpc.h>
e8a5fa9c
RW
5679int
5680main ()
5681{
5682
5683 mpfr_t n;
5684 mpfr_t x;
d9b76ff9 5685 mpc_t c;
e8a5fa9c
RW
5686 int t;
5687 mpfr_init (n);
5688 mpfr_init (x);
5689 mpfr_atan2 (n, n, x, GMP_RNDN);
5690 mpfr_erfc (n, x, GMP_RNDN);
5691 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5692 mpfr_clear(n);
5693 mpfr_clear(x);
5694 mpc_init2 (c, 53);
5695 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5696 mpc_cosh (c, c, MPC_RNDNN);
5697 mpc_pow (c, c, c, MPC_RNDNN);
5698 mpc_acosh (c, c, MPC_RNDNN);
5699 mpc_clear (c);
c6b750e1
DJ
5700
5701 ;
5702 return 0;
5703}
5704_ACEOF
81ecdfbb
RW
5705if ac_fn_c_try_link "$LINENO"; then :
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5707$as_echo "yes" >&6; }
c6b750e1 5708else
81ecdfbb
RW
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5711fi
81ecdfbb
RW
5712rm -f core conftest.err conftest.$ac_objext \
5713 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5714 LIBS="$saved_LIBS"
5715 fi
5716
4b900473 5717 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5718
a6b5846e
KG
5719# The library versions listed in the error message below should match
5720# the HARD-minimums enforced above.
4b900473 5721 if test x$have_gmp != xyes; then
7ec59b9e 5722 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5723Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5724their locations. Source code for these libraries can be found at
5725their respective hosting sites as well as at
5726ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5727http://gcc.gnu.org/install/prerequisites.html for additional info. If
5728you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5729make sure that you have installed both the libraries and the header
5730files. They may be located in separate packages." "$LINENO" 5
4b900473 5731 fi
9dbaa842
DD
5732fi
5733
e8a5fa9c
RW
5734# Flags needed for both GMP, MPFR and/or MPC.
5735
5736
5737
4b1cb4fe
DD
5738
5739
5740
7ec59b9e 5741
29383458
JM
5742# Allow host libstdc++ to be specified for static linking with PPL.
5743
81ecdfbb
RW
5744# Check whether --with-host-libstdcxx was given.
5745if test "${with_host_libstdcxx+set}" = set; then :
5746 withval=$with_host_libstdcxx;
5747fi
29383458 5748
29383458
JM
5749
5750case $with_host_libstdcxx in
5751 no|yes)
81ecdfbb 5752 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5753 ;;
5754esac
e28c595f 5755
b3676d82 5756# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 5757
b3676d82
EB
5758# Check whether --with-stage1-libs was given.
5759if test "${with_stage1_libs+set}" = set; then :
5760 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5761 stage1_libs=
e8a5fa9c 5762 else
b3676d82 5763 stage1_libs=$withval
e8a5fa9c
RW
5764 fi
5765else
b3676d82 5766 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5767fi
5768
e8a5fa9c
RW
5769
5770
b3676d82 5771# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 5772
b3676d82
EB
5773# Check whether --with-stage1-ldflags was given.
5774if test "${with_stage1_ldflags+set}" = set; then :
5775 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5776 stage1_ldflags=
e8a5fa9c 5777 else
b3676d82 5778 stage1_ldflags=$withval
e8a5fa9c
RW
5779 fi
5780else
b3676d82
EB
5781 stage1_ldflags=
5782 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5783 # if supported. But if the user explicitly specified the libraries to use,
5784 # trust that they are doing what they want.
5785 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5786 stage1_ldflags="-static-libstdc++ -static-libgcc"
5787 fi
81ecdfbb
RW
5788fi
5789
e8a5fa9c
RW
5790
5791
e8a5fa9c
RW
5792# Libraries to use for stage2 and later builds. This defaults to the
5793# argument passed to --with-host-libstdcxx.
5794
81ecdfbb
RW
5795# Check whether --with-boot-libs was given.
5796if test "${with_boot_libs+set}" = set; then :
5797 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5798 poststage1_libs=
5799 else
5800 poststage1_libs=$withval
5801 fi
5802else
5803 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5804fi
5805
e8a5fa9c
RW
5806
5807
143754cd
NC
5808# Linker flags to use for stage2 and later builds.
5809
5810# Check whether --with-boot-ldflags was given.
5811if test "${with_boot_ldflags+set}" = set; then :
5812 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5813 poststage1_ldflags=
5814 else
5815 poststage1_ldflags=$withval
5816 fi
5817else
5818 poststage1_ldflags=
4f11b223
ILT
5819 # In stages 2 and 3, default to linking libstdc++ and libgcc
5820 # statically. But if the user explicitly specified the libraries to
5821 # use, trust that they are doing what they want.
5822 if test "$poststage1_libs" = ""; then
143754cd
NC
5823 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5824 fi
5825fi
5826
5827
5828
8e71395b
L
5829# GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5830# Basic setup is inlined here, actual checks are in config/cloog.m4 and
5831# config/isl.m4
5832
5833
5834# Check whether --with-cloog was given.
5835if test "${with_cloog+set}" = set; then :
5836 withval=$with_cloog;
5837fi
e28c595f
JM
5838
5839
7ec59b9e
L
5840# Check whether --with-isl was given.
5841if test "${with_isl+set}" = set; then :
5842 withval=$with_isl;
81ecdfbb 5843fi
e28c595f 5844
e28c595f 5845
8e71395b
L
5846# Treat either --without-cloog or --without-isl as a request to disable
5847# GRAPHITE support and skip all following checks.
5848if test "x$with_isl" != "xno" &&
5849 test "x$with_cloog" != "xno"; then
5850 # Check for ISL
5851
5852
7ec59b9e
L
5853# Check whether --with-isl-include was given.
5854if test "${with_isl_include+set}" = set; then :
5855 withval=$with_isl_include;
81ecdfbb
RW
5856fi
5857
e28c595f 5858
7ec59b9e
L
5859# Check whether --with-isl-lib was given.
5860if test "${with_isl_lib+set}" = set; then :
5861 withval=$with_isl_lib;
81ecdfbb 5862fi
e28c595f 5863
e28c595f 5864
7ec59b9e
L
5865 # Check whether --enable-isl-version-check was given.
5866if test "${enable_isl_version_check+set}" = set; then :
5867 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5868else
5869 ENABLE_ISL_CHECK=yes
b123da99
SP
5870fi
5871
5872
7ec59b9e
L
5873 # Initialize isllibs and islinc.
5874 case $with_isl in
5875 no)
5876 isllibs=
5877 islinc=
5878 ;;
5879 "" | yes)
5880 ;;
5881 *)
5882 isllibs="-L$with_isl/lib"
5883 islinc="-I$with_isl/include"
5884 ;;
5885 esac
5886 if test "x${with_isl_include}" != x ; then
5887 islinc="-I$with_isl_include"
5888 fi
5889 if test "x${with_isl_lib}" != x; then
5890 isllibs="-L$with_isl_lib"
5891 fi
5892 if test "x${islinc}" = x && test "x${isllibs}" = x \
5893 && test -d ${srcdir}/isl; then
5894 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5895 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5896 ENABLE_ISL_CHECK=no
3dae1673
JBG
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5898$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
7ec59b9e 5899 fi
b123da99 5900
b123da99 5901
e28c595f 5902
7ec59b9e
L
5903 if test "${ENABLE_ISL_CHECK}" = yes ; then
5904 _isl_saved_CFLAGS=$CFLAGS
5905 _isl_saved_LDFLAGS=$LDFLAGS
5906 _isl_saved_LIBS=$LIBS
5907
5908 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5909 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5910 LIBS="${_isl_saved_LIBS} -lisl"
7ec59b9e
L
5911
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5913$as_echo_n "checking for version 0.10 of ISL... " >&6; }
3dae1673 5914 if test "$cross_compiling" = yes; then :
7ec59b9e
L
5915 gcc_cv_isl=yes
5916else
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b123da99 5918/* end confdefs.h. */
7ec59b9e
L
5919#include <isl/version.h>
5920 #include <string.h>
b123da99
SP
5921int
5922main ()
5923{
7ec59b9e
L
5924if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5925 return 1;
5926
b123da99
SP
5927 ;
5928 return 0;
5929}
5930_ACEOF
7ec59b9e
L
5931if ac_fn_c_try_run "$LINENO"; then :
5932 gcc_cv_isl=yes
e28c595f 5933else
7ec59b9e 5934 gcc_cv_isl=no
b123da99 5935fi
7ec59b9e
L
5936rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5937 conftest.$ac_objext conftest.beam conftest.$ac_ext
b123da99 5938fi
7ec59b9e 5939
3dae1673
JBG
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5941$as_echo "$gcc_cv_isl" >&6; }
5942
5943 CFLAGS=$_isl_saved_CFLAGS
5944 LDFLAGS=$_isl_saved_LDFLAGS
5945 LIBS=$_isl_saved_LIBS
5946 fi
5947
5948
5949 if test "${gcc_cv_isl}" = no ; then
5950
5951 if test "${ENABLE_ISL_CHECK}" = yes ; then
5952 _isl_saved_CFLAGS=$CFLAGS
5953 _isl_saved_LDFLAGS=$LDFLAGS
5954 _isl_saved_LIBS=$LIBS
5955
5956 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5957 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5958 LIBS="${_isl_saved_LIBS} -lisl"
3dae1673
JBG
5959
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
5961$as_echo_n "checking for version 0.11 of ISL... " >&6; }
5962 if test "$cross_compiling" = yes; then :
5963 gcc_cv_isl=yes
5964else
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966/* end confdefs.h. */
5967#include <isl/version.h>
5968 #include <string.h>
5969int
5970main ()
5971{
5972if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
5973 return 1;
5974
5975 ;
5976 return 0;
5977}
5978_ACEOF
5979if ac_fn_c_try_run "$LINENO"; then :
5980 gcc_cv_isl=yes
5981else
5982 gcc_cv_isl=no
5983fi
5984rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5985 conftest.$ac_objext conftest.beam conftest.$ac_ext
81ecdfbb 5986fi
3dae1673
JBG
5987
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
7ec59b9e 5989$as_echo "$gcc_cv_isl" >&6; }
81ecdfbb 5990
7ec59b9e
L
5991 CFLAGS=$_isl_saved_CFLAGS
5992 LDFLAGS=$_isl_saved_LDFLAGS
5993 LIBS=$_isl_saved_LIBS
b123da99 5994 fi
e28c595f 5995
b123da99 5996
b3fc79f8
JBG
5997 if test "${gcc_cv_isl}" = no ; then
5998
5999 if test "${ENABLE_ISL_CHECK}" = yes ; then
6000 _isl_saved_CFLAGS=$CFLAGS
6001 _isl_saved_LDFLAGS=$LDFLAGS
6002 _isl_saved_LIBS=$LIBS
6003
6004 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6005 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
6006 LIBS="${_isl_saved_LIBS} -lisl"
6007
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
6009$as_echo_n "checking for version 0.12 of ISL... " >&6; }
6010 if test "$cross_compiling" = yes; then :
6011 gcc_cv_isl=yes
6012else
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014/* end confdefs.h. */
6015#include <isl/version.h>
6016 #include <string.h>
6017int
6018main ()
6019{
6020if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
6021 return 1;
6022
6023 ;
6024 return 0;
6025}
6026_ACEOF
6027if ac_fn_c_try_run "$LINENO"; then :
6028 gcc_cv_isl=yes
6029else
6030 gcc_cv_isl=no
6031fi
6032rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6033 conftest.$ac_objext conftest.beam conftest.$ac_ext
6034fi
6035
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6037$as_echo "$gcc_cv_isl" >&6; }
6038
6039 CFLAGS=$_isl_saved_CFLAGS
6040 LDFLAGS=$_isl_saved_LDFLAGS
6041 LIBS=$_isl_saved_LIBS
6042 fi
6043
6044
6045 fi
3dae1673 6046 fi
e28c595f 6047
e28c595f 6048
7ec59b9e
L
6049
6050
7ec59b9e
L
6051 if test "x${with_isl}" = xno; then
6052 graphite_requested=no
6053 elif test "x${with_isl}" != x \
6054 || test "x${with_isl_include}" != x \
6055 || test "x${with_isl_lib}" != x ; then
6056 graphite_requested=yes
6057 else
6058 graphite_requested=no
b123da99 6059 fi
e28c595f 6060
e28c595f
JM
6061
6062
7ec59b9e
L
6063 if test "${gcc_cv_isl}" = no ; then
6064 isllibs=
6065 islinc=
6066 fi
e28c595f 6067
7ec59b9e
L
6068 if test "${graphite_requested}" = yes \
6069 && test "x${isllibs}" = x \
6070 && test "x${islinc}" = x ; then
e28c595f 6071
7ec59b9e
L
6072 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6073 fi
e552509b 6074
e28c595f
JM
6075
6076
8e71395b
L
6077 if test "x$gcc_cv_isl" != "xno"; then
6078 # Check for CLOOG
81ecdfbb 6079
e28c595f 6080
e552509b 6081# Check whether --with-cloog-include was given.
81ecdfbb
RW
6082if test "${with_cloog_include+set}" = set; then :
6083 withval=$with_cloog_include;
6084fi
e28c595f 6085
e28c595f 6086
e552509b 6087# Check whether --with-cloog-lib was given.
81ecdfbb
RW
6088if test "${with_cloog_lib+set}" = set; then :
6089 withval=$with_cloog_lib;
6090fi
e28c595f 6091
e28c595f 6092
e552509b
ILT
6093 # Check whether --enable-cloog-version-check was given.
6094if test "${enable_cloog_version_check+set}" = set; then :
6095 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
6096else
6097 ENABLE_CLOOG_CHECK=yes
6098fi
6099
6100
6101 # Initialize clooglibs and clooginc.
6102 case $with_cloog in
6103 no)
6104 clooglibs=
6105 clooginc=
6106 ;;
6107 "" | yes)
6108 ;;
6109 *)
6110 clooglibs="-L$with_cloog/lib"
6111 clooginc="-I$with_cloog/include"
6112 ;;
6113 esac
6114 if test "x${with_cloog_include}" != x ; then
6115 clooginc="-I$with_cloog_include"
6116 fi
6117 if test "x${with_cloog_lib}" != x; then
6118 clooglibs="-L$with_cloog_lib"
6119 fi
3dae1673 6120 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
7ec59b9e
L
6121 && test -d ${srcdir}/cloog; then
6122 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6123 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
3dae1673
JBG
6124 ENABLE_CLOOG_CHECK=no
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6126$as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
8d8eef9a
RW
6127 fi
6128
7ec59b9e 6129 clooginc="-DCLOOG_INT_GMP ${clooginc}"
8e71395b 6130 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
e28c595f 6131
e552509b
ILT
6132
6133
6134
6135
6136 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6137 _cloog_saved_CFLAGS=$CFLAGS
6138 _cloog_saved_LDFLAGS=$LDFLAGS
6139
7ec59b9e
L
6140 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6141 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
e552509b 6142
7ec59b9e
L
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6144$as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
3dae1673 6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e552509b 6146/* end confdefs.h. */
7ec59b9e 6147#include "cloog/version.h"
e552509b
ILT
6148int
6149main ()
6150{
6151#if CLOOG_VERSION_MAJOR != 0 \
7ec59b9e
L
6152 || CLOOG_VERSION_MINOR != 17 \
6153 || CLOOG_VERSION_REVISION < 0
e552509b
ILT
6154 choke me
6155 #endif
6156 ;
6157 return 0;
6158}
6159_ACEOF
6160if ac_fn_c_try_compile "$LINENO"; then :
7ec59b9e 6161 gcc_cv_cloog=yes
e552509b 6162else
7ec59b9e 6163 gcc_cv_cloog=no
e552509b
ILT
6164fi
6165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3dae1673
JBG
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6167$as_echo "$gcc_cv_cloog" >&6; }
6168
6169 CFLAGS=$_cloog_saved_CFLAGS
6170 LDFLAGS=$_cloog_saved_LDFLAGS
6171 fi
6172
6173
6174 if test "${gcc_cv_cloog}" = no ; then
6175
6176
6177
6178 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6179 _cloog_saved_CFLAGS=$CFLAGS
6180 _cloog_saved_LDFLAGS=$LDFLAGS
6181
6182 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6183 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6184
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6186$as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188/* end confdefs.h. */
6189#include "cloog/version.h"
6190int
6191main ()
6192{
6193#if CLOOG_VERSION_MAJOR != 0 \
6194 || CLOOG_VERSION_MINOR != 18 \
6195 || CLOOG_VERSION_REVISION < 0
6196 choke me
6197 #endif
6198 ;
6199 return 0;
6200}
6201_ACEOF
6202if ac_fn_c_try_compile "$LINENO"; then :
6203 gcc_cv_cloog=yes
6204else
6205 gcc_cv_cloog=no
e552509b 6206fi
3dae1673
JBG
6207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
7ec59b9e 6209$as_echo "$gcc_cv_cloog" >&6; }
e552509b
ILT
6210
6211 CFLAGS=$_cloog_saved_CFLAGS
6212 LDFLAGS=$_cloog_saved_LDFLAGS
6213 fi
6214
6215
3dae1673 6216 fi
e552509b 6217
e28c595f 6218
e28c595f
JM
6219
6220
6221
8d8eef9a
RW
6222 if test "x${with_cloog}" = xno; then
6223 graphite_requested=no
6224 elif test "x${with_cloog}" != x \
e552509b
ILT
6225 || test "x${with_cloog_include}" != x \
6226 || test "x${with_cloog_lib}" != x ; then
6227 graphite_requested=yes
6228 else
6229 graphite_requested=no
6230 fi
6231
6232
6233
7ec59b9e 6234 if test "${gcc_cv_cloog}" = no ; then
e552509b
ILT
6235 clooglibs=
6236 clooginc=
6237 fi
6238
6239 if test "${graphite_requested}" = yes \
6240 && test "x${clooglibs}" = x \
6241 && test "x${clooginc}" = x ; then
6242
8e71395b 6243 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
e552509b
ILT
6244 fi
6245
6246
8e71395b 6247 fi
e552509b
ILT
6248fi
6249
7ec59b9e
L
6250# If either the ISL or the CLooG check failed, disable builds of in-tree
6251# variants of both
8e71395b
L
6252if test "x$with_isl" = xno ||
6253 test "x$with_cloog" = xno ||
6254 test "x$gcc_cv_cloog" = xno ||
6255 test "x$gcc_cv_isl" = xno; then
7ec59b9e 6256 noconfigdirs="$noconfigdirs cloog isl"
8e71395b
L
6257 islinc=
6258 clooginc=
6259 clooglibs=
7ec59b9e
L
6260fi
6261
8e71395b
L
6262
6263
6264
6265
6266
700d40ca
ILT
6267# Check for LTO support.
6268# Check whether --enable-lto was given.
6269if test "${enable_lto+set}" = set; then :
6270 enableval=$enable_lto; enable_lto=$enableval
6271else
6272 enable_lto=yes; default_enable_lto=yes
6273fi
6274
6275
143754cd 6276
e49e5c92
DK
6277
6278
6279target_elf=no
6280case $target in
6281 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6282 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 6283 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
6284 target_elf=no
6285 ;;
6286 *)
6287 target_elf=yes
6288 ;;
6289esac
6290
6291if test $target_elf = yes; then :
74cea91b
DK
6292 # ELF platforms build the lto-plugin always.
6293 build_lto_plugin=yes
e49e5c92 6294
e49e5c92
DK
6295else
6296 if test x"$default_enable_lto" = x"yes" ; then
29821356 6297 case $target in
899b04ef 6298 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
74cea91b 6299 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6300 *) enable_lto=no ;;
6301 esac
e49e5c92 6302 else
29821356
RW
6303 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6304 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6305 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6306 # warn during gcc/ subconfigure; unless you're bootstrapping with
6307 # -flto it won't be needed until after installation anyway.
6308 case $target in
a8eb3f0a 6309 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6310 *) if test x"$enable_lto" = x"yes"; then
6311 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6312 fi
6313 ;;
6314 esac
6315 fi
a8eb3f0a 6316 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6317 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6318 case $target in
74cea91b 6319 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6320 *) ;;
6321 esac
74cea91b 6322
e49e5c92
DK
6323fi
6324
700d40ca 6325
e28c595f 6326
7ec59b9e 6327# By default, C and C++ are the only stage 1 languages.
9b134994 6328stage1_languages=,c,
1d39f329 6329
e8a5fa9c 6330# Target libraries that we bootstrap.
2aa2364a 6331bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6332
9e07f89d
NN
6333# Figure out what language subdirectories are present.
6334# Look if the user specified --enable-languages="..."; if not, use
6335# the environment variable $LANGUAGES if defined. $LANGUAGES might
6336# go away some day.
6337# NB: embedded tabs in this IF block -- do not untabify
6338if test -d ${srcdir}/gcc; then
6339 if test x"${enable_languages+set}" != xset; then
6340 if test x"${LANGUAGES+set}" = xset; then
6341 enable_languages="${LANGUAGES}"
6342 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6343 else
6344 enable_languages=all
6345 fi
6346 else
6347 if test x"${enable_languages}" = x ||
6348 test x"${enable_languages}" = xyes;
6349 then
6350 echo configure.in: --enable-languages needs at least one language argument 1>&2
6351 exit 1
6352 fi
6353 fi
6354 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6355
096f7d00
DE
6356 # 'f95' is the old name for the 'fortran' language. We issue a warning
6357 # and make the substitution.
6358 case ,${enable_languages}, in
6359 *,f95,*)
6360 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6361 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6362 ;;
6363 esac
6364
7ec59b9e
L
6365 # If bootstrapping, C++ must be enabled.
6366 case ",$enable_languages,:$enable_bootstrap" in
6367 *,c++,*:*) ;;
6368 *:yes)
ffdd6afc
ILT
6369 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6370 enable_languages="${enable_languages},c++"
6371 else
7ec59b9e 6372 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6373 fi
6374 ;;
6375 esac
6376
9e07f89d
NN
6377 # First scan to see if an enabled language requires some other language.
6378 # We assume that a given config-lang.in will list all the language
6379 # front ends it requires, even if some are required indirectly.
6380 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6381 case ${lang_frag} in
6382 ..) ;;
6383 # The odd quoting in the next line works around
6384 # an apparent bug in bash 1.12 on linux.
6385 ${srcdir}/gcc/[*]/config-lang.in) ;;
6386 *)
e552509b
ILT
6387 # From the config-lang.in, get $language, $lang_requires, and
6388 # $lang_requires_boot_languages.
9e07f89d
NN
6389 language=
6390 lang_requires=
e552509b 6391 lang_requires_boot_languages=
9e07f89d 6392 . ${lang_frag}
e552509b 6393 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6394 case ,${enable_languages}, in
6395 *,$other,*) ;;
6396 *,all,*) ;;
6397 *,$language,*)
6398 echo " \`$other' language required by \`$language'; enabling" 1>&2
6399 enable_languages="${enable_languages},${other}"
6400 ;;
6401 esac
6402 done
e552509b
ILT
6403 for other in ${lang_requires_boot_languages} ; do
6404 if test "$other" != "c"; then
6405 case ,${enable_stage1_languages}, in
6406 *,$other,*) ;;
6407 *,all,*) ;;
6408 *)
6409 case ,${enable_languages}, in
6410 *,$language,*)
6411 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6412 enable_stage1_languages="$enable_stage1_languages,${other}"
6413 ;;
6414 esac
6415 ;;
6416 esac
6417 fi
6418 done
9e07f89d
NN
6419 ;;
6420 esac
6421 done
6422
9b134994 6423 new_enable_languages=,c,
700d40ca
ILT
6424
6425 # If LTO is enabled, add the LTO front end.
6426 extra_host_libiberty_configure_flags=
6427 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6428 case ,${enable_languages}, in
6429 *,lto,*) ;;
6430 *) enable_languages="${enable_languages},lto" ;;
6431 esac
a8eb3f0a 6432 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6433 configdirs="$configdirs lto-plugin"
6434 extra_host_libiberty_configure_flags=--enable-shared
6435 fi
6436 fi
6437
6438
9e07f89d 6439 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6440 potential_languages=,c,
9e07f89d 6441
9e1a94f4
ILT
6442 enabled_target_libs=
6443 disabled_target_libs=
6444
9e07f89d
NN
6445 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6446 case ${lang_frag} in
6447 ..) ;;
6448 # The odd quoting in the next line works around
6449 # an apparent bug in bash 1.12 on linux.
6450 ${srcdir}/gcc/[*]/config-lang.in) ;;
6451 *)
c6b750e1 6452 # From the config-lang.in, get $language, $target_libs,
1d39f329 6453 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6454 language=
6455 target_libs=
6456 lang_dirs=
64ce424c 6457 subdir_requires=
9b134994
PB
6458 boot_language=no
6459 build_by_default=yes
9e07f89d 6460 . ${lang_frag}
9b134994
PB
6461 if test x${language} = x; then
6462 echo "${lang_frag} doesn't set \$language." 1>&2
6463 exit 1
6464 fi
6465
ffdd6afc 6466 if test "$language" = "c++"; then
7ec59b9e 6467 boot_language=yes
e8a5fa9c
RW
6468 fi
6469
8e71395b 6470 add_this_lang=no
9b134994
PB
6471 case ,${enable_languages}, in
6472 *,${language},*)
7ec59b9e
L
6473 # Language was explicitly selected; include it
6474 # unless it is C, which is enabled by default.
6475 if test "$language" != "c"; then
6476 add_this_lang=yes
6477 fi
9e07f89d 6478 ;;
9b134994
PB
6479 *,all,*)
6480 # 'all' was selected, select it if it is a default language
8e71395b
L
6481 if test "$language" != "c"; then
6482 add_this_lang=${build_by_default}
6483 fi
9e07f89d
NN
6484 ;;
6485 esac
4b1cb4fe 6486
64ce424c 6487 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6488 for i in $subdir_requires; do
3d3adb43 6489 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6490 case ,${enable_languages}, in
6491 *,${language},*)
6492 # Specifically requested language; tell them.
81ecdfbb 6493 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6494 ;;
6495 *)
6496 # Silently disable.
9b134994 6497 add_this_lang=unsupported
64ce424c
PB
6498 ;;
6499 esac
6500 done
6501
9b134994
PB
6502 # Disable Ada if no preexisting GNAT is available.
6503 case ,${enable_languages},:${language}:${have_gnat} in
6504 *,${language},*:ada:no)
6505 # Specifically requested language; tell them.
81ecdfbb 6506 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6507 ;;
6508 *:ada:no)
6509 # Silently disable.
6510 add_this_lang=unsupported
6511 ;;
6512 esac
6513
59f7ec45
HPN
6514 # Disable a language that is unsupported by the target.
6515 case " $unsupported_languages " in
6516 *" $language "*)
9b134994 6517 add_this_lang=unsupported
59f7ec45
HPN
6518 ;;
6519 esac
6520
4b1cb4fe 6521 case $add_this_lang in
9b134994 6522 unsupported)
9e07f89d 6523 # Remove language-dependent dirs.
9e1a94f4
ILT
6524 disabled_target_libs="$disabled_target_libs $target_libs"
6525 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6526 ;;
9b134994
PB
6527 no)
6528 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6529 disabled_target_libs="$disabled_target_libs $target_libs"
6530 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6531 potential_languages="${potential_languages}${language},"
6532 ;;
6533 yes)
6534 new_enable_languages="${new_enable_languages}${language},"
6535 potential_languages="${potential_languages}${language},"
1d39f329 6536 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6537 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6538 case "${boot_language}:,$enable_stage1_languages," in
6539 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6540 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6541 case ",$stage1_languages," in
6542 *,$language,* | ,yes, | ,all,) ;;
6543 *) stage1_languages="${stage1_languages}${language}," ;;
6544 esac
e8a5fa9c
RW
6545 # We need to bootstrap any supporting libraries.
6546 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6547 ;;
6548 esac
6549 ;;
9e07f89d
NN
6550 esac
6551 ;;
6552 esac
6553 done
6554
9e1a94f4
ILT
6555 # Add target libraries which are only needed for disabled languages
6556 # to noconfigdirs.
6557 if test -n "$disabled_target_libs"; then
6558 for dir in $disabled_target_libs; do
6559 case " $enabled_target_libs " in
6560 *" ${dir} "*) ;;
6561 *) noconfigdirs="$noconfigdirs $dir" ;;
6562 esac
6563 done
6564 fi
6565
81ecdfbb
RW
6566 # Check whether --enable-stage1-languages was given.
6567if test "${enable_stage1_languages+set}" = set; then :
6568 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6569 ,no,|,,)
6570 # Set it to something that will have no effect in the loop below
6571 enable_stage1_languages=c ;;
6572 ,yes,)
6573 enable_stage1_languages=`echo $new_enable_languages | \
6574 sed -e "s/^,//" -e "s/,$//" ` ;;
6575 *,all,*)
6576 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6577 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6578 esac
6579
6580 # Add "good" languages from enable_stage1_languages to stage1_languages,
6581 # while "bad" languages go in missing_languages. Leave no duplicates.
6582 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6583 case $potential_languages in
6584 *,$i,*)
6585 case $stage1_languages in
6586 *,$i,*) ;;
6587 *) stage1_languages="$stage1_languages$i," ;;
6588 esac ;;
6589 *)
6590 case $missing_languages in
6591 *,$i,*) ;;
6592 *) missing_languages="$missing_languages$i," ;;
6593 esac ;;
6594 esac
6595 done
81ecdfbb
RW
6596fi
6597
9b134994
PB
6598
6599 # Remove leading/trailing commas that were added for simplicity
6600 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6601 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6602 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6603 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6604
9e07f89d 6605 if test "x$missing_languages" != x; then
81ecdfbb 6606 as_fn_error "
27258dd4 6607The following requested languages could not be built: ${missing_languages}
81ecdfbb 6608Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6609 fi
9e07f89d
NN
6610 if test "x$new_enable_languages" != "x$enable_languages"; then
6611 echo The following languages will be built: ${new_enable_languages}
9b134994 6612 enable_languages="$new_enable_languages"
9e07f89d 6613 fi
9b134994 6614
c6b750e1 6615
81ec575a 6616 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
35fece71
L
6617else
6618 # Disable all target libraries if not building gcc.
6619 target_configdirs=
9e07f89d
NN
6620fi
6621
a6df5a19
PB
6622# Handle --disable-<component> generically.
6623for dir in $configdirs $build_configdirs $target_configdirs ; do
6624 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6625 varname=`echo $dirname | sed -e s/+/_/g`
6626 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6627 noconfigdirs="$noconfigdirs $dir"
6628 fi
6629done
6630
4f0ef2d8 6631# Check for Boehm's garbage collector
81ecdfbb
RW
6632# Check whether --enable-objc-gc was given.
6633if test "${enable_objc_gc+set}" = set; then :
6634 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6635 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6636 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6637 ;;
6638esac
81ecdfbb
RW
6639fi
6640
4f0ef2d8
CD
6641
6642# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6643case ,${enable_languages},:${enable_objc_gc} in
6644 *,objc,*:yes)
4f0ef2d8
CD
6645 # Keep target-boehm-gc if requested for Objective-C.
6646 ;;
4f0ef2d8 6647 *)
d42c4017
DA
6648 # Otherwise remove target-boehm-gc depending on target-libjava.
6649 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6650 noconfigdirs="$noconfigdirs target-boehm-gc"
6651 fi
4f0ef2d8
CD
6652 ;;
6653esac
6654
95e43135 6655# Disable libitm, libsanitizer, libvtv if we're not building C++
7ec59b9e
L
6656case ,${enable_languages}, in
6657 *,c++,*) ;;
6658 *)
9aaf2a7e 6659 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6660 ;;
6661esac
6662
caeba88f
AL
6663# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6664# $build_configdirs and $target_configdirs.
9e07f89d
NN
6665# If we have the source for $noconfigdirs entries, add them to $notsupp.
6666
6667notsupp=""
6668for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6669 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6670 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6671 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6672 if test -r $srcdir/$dirname/configure ; then
6673 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6674 true
6675 else
6676 notsupp="$notsupp $dir"
6677 fi
6678 fi
6679 fi
caeba88f
AL
6680 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6681 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6682 if test -r $srcdir/$dirname/configure ; then
6683 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6684 true
6685 else
6686 notsupp="$notsupp $dir"
6687 fi
6688 fi
6689 fi
9e07f89d
NN
6690 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6691 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6692 if test -r $srcdir/$dirname/configure ; then
6693 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6694 true
6695 else
6696 notsupp="$notsupp $dir"
6697 fi
6698 fi
6699 fi
6700done
6701
9e07f89d
NN
6702# Quietly strip out all directories which aren't configurable in this tree.
6703# This relies on all configurable subdirectories being autoconfiscated, which
6704# is now the case.
6a9cf61e
PB
6705build_configdirs_all="$build_configdirs"
6706build_configdirs=
6707for i in ${build_configdirs_all} ; do
c6b750e1 6708 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6709 if test -f ${srcdir}/$j/configure ; then
6710 build_configdirs="${build_configdirs} $i"
6711 fi
6712done
6713
9e07f89d
NN
6714configdirs_all="$configdirs"
6715configdirs=
6716for i in ${configdirs_all} ; do
6717 if test -f ${srcdir}/$i/configure ; then
6718 configdirs="${configdirs} $i"
6719 fi
6720done
6a9cf61e 6721
9e07f89d
NN
6722target_configdirs_all="$target_configdirs"
6723target_configdirs=
6724for i in ${target_configdirs_all} ; do
c6b750e1 6725 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6726 if test -f ${srcdir}/$j/configure ; then
6727 target_configdirs="${target_configdirs} $i"
6728 fi
6729done
6730
6731# Produce a warning message for the subdirs we can't configure.
6732# This isn't especially interesting in the Cygnus tree, but in the individual
6733# FSF releases, it's important to let people know when their machine isn't
6734# supported by the one or two programs in a package.
6735
6736if test -n "${notsupp}" && test -z "${norecursion}" ; then
6737 # If $appdirs is non-empty, at least one of those directories must still
6738 # be configured, or we error out. (E.g., if the gas release supports a
6739 # specified target in some subdirs but not the gas subdir, we shouldn't
6740 # pretend that all is well.)
6741 if test -n "$appdirs" ; then
6742 for dir in $appdirs ; do
6743 if test -r $dir/Makefile.in ; then
6744 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6745 appdirs=""
6746 break
6747 fi
6a9cf61e 6748 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6749 appdirs=""
6750 break
6751 fi
6752 fi
6753 done
6754 if test -n "$appdirs" ; then
6755 echo "*** This configuration is not supported by this package." 1>&2
6756 exit 1
6757 fi
6758 fi
6759 # Okay, some application will build, or we don't care to check. Still
6760 # notify of subdirs not getting built.
6761 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6762 echo " ${notsupp}" 1>&2
6763 echo " (Any other directories should still work fine.)" 1>&2
6764fi
6765
6766case "$host" in
6767 *msdosdjgpp*)
6768 enable_gdbtk=no ;;
6769esac
6770
18f6b6ee
PB
6771# To find our prefix, in gcc_cv_tool_prefix.
6772
6773# The user is always right.
6774if test "${PATH_SEPARATOR+set}" != set; then
6775 echo "#! /bin/sh" >conf$$.sh
6776 echo "exit 0" >>conf$$.sh
6777 chmod +x conf$$.sh
6778 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6779 PATH_SEPARATOR=';'
6780 else
6781 PATH_SEPARATOR=:
6782 fi
6783 rm -f conf$$.sh
6784fi
6785
6786
6787
6788if test "x$exec_prefix" = xNONE; then
6789 if test "x$prefix" = xNONE; then
6790 gcc_cv_tool_prefix=$ac_default_prefix
6791 else
6792 gcc_cv_tool_prefix=$prefix
6793 fi
6794else
6795 gcc_cv_tool_prefix=$exec_prefix
6796fi
6797
6798# If there is no compiler in the tree, use the PATH only. In any
6799# case, if there is no compiler in the tree nobody should use
6800# AS_FOR_TARGET and LD_FOR_TARGET.
6801if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6802 gcc_version=`cat $srcdir/gcc/BASE-VER`
6803 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6804 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6805 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6806 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6807 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6808 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6809else
6810 gcc_cv_tool_dirs=
6811fi
6812
6813if test x$build = x$target && test -n "$md_exec_prefix"; then
6814 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6815fi
6816
6817
6818
9e07f89d
NN
6819copy_dirs=
6820
c6b750e1 6821
81ecdfbb
RW
6822# Check whether --with-build-sysroot was given.
6823if test "${with_build_sysroot+set}" = set; then :
6824 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6825 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6826 fi
6827else
6828 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6829fi
a19b6204
MM
6830
6831
8a6ee3ab 6832
81ecdfbb
RW
6833
6834# Check whether --with-debug-prefix-map was given.
6835if test "${with_debug_prefix_map+set}" = set; then :
6836 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6837 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6838 for debug_map in $withval; do
6839 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6840 done
6841 fi
6842else
6843 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6844fi
6845
8a6ee3ab
JM
6846
6847
7f6ef0c0
PB
6848# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6849# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6850# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6851# We want to ensure that TARGET libraries (which we know are built with
6852# gcc) are built with "-O2 -g", so include those options when setting
6853# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6854if test "x$CFLAGS_FOR_TARGET" = x; then
6855 CFLAGS_FOR_TARGET=$CFLAGS
6856 case " $CFLAGS " in
6857 *" -O2 "*) ;;
68f107fa 6858 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6859 esac
6860 case " $CFLAGS " in
6861 *" -g "* | *" -g3 "*) ;;
68f107fa 6862 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6863 esac
6864fi
6865
6866
6867if test "x$CXXFLAGS_FOR_TARGET" = x; then
6868 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6869 case " $CXXFLAGS " in
6870 *" -O2 "*) ;;
68f107fa 6871 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6872 esac
6873 case " $CXXFLAGS " in
6874 *" -g "* | *" -g3 "*) ;;
68f107fa 6875 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6876 esac
6877fi
6878
6879
91c1f14c
DK
6880
6881
9e07f89d
NN
6882# Handle --with-headers=XXX. If the value is not "yes", the contents of
6883# the named directory are copied to $(tooldir)/sys-include.
6884if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6885 if test x${is_cross_compiler} = xno ; then
6886 echo 1>&2 '***' --with-headers is only supported when cross compiling
6887 exit 1
6888 fi
6889 if test x"${with_headers}" != xyes ; then
18f6b6ee 6890 x=${gcc_cv_tool_prefix}
c6b750e1 6891 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6892 fi
6893fi
6894
6895# Handle --with-libs=XXX. If the value is not "yes", the contents of
6896# the name directories are copied to $(tooldir)/lib. Multiple directories
6897# are permitted.
6898if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6899 if test x${is_cross_compiler} = xno ; then
6900 echo 1>&2 '***' --with-libs is only supported when cross compiling
6901 exit 1
6902 fi
6903 if test x"${with_libs}" != xyes ; then
6904 # Copy the libraries in reverse order, so that files in the first named
6905 # library override files in subsequent libraries.
18f6b6ee 6906 x=${gcc_cv_tool_prefix}
9e07f89d 6907 for l in ${with_libs}; do
c6b750e1 6908 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6909 done
6910 fi
6911fi
6912
700d40ca 6913# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6914#
6915# This is done by determining whether or not the appropriate directory
6916# is available, and by checking whether or not specific configurations
6917# have requested that this magic not happen.
c6b750e1
DJ
6918#
6919# The command line options always override the explicit settings in
2429c060
PB
6920# configure.in, and the settings in configure.in override this magic.
6921#
c6b750e1 6922# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6923# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6924# --without-gnu-ld options for the configure script. Similarly, if
6925# the default is to use the included zlib and you don't want to do that,
6926# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6927
6928if test x${use_gnu_as} = x &&
6929 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6930 with_gnu_as=yes
6931 extra_host_args="$extra_host_args --with-gnu-as"
6932fi
6933
6934if test x${use_gnu_ld} = x &&
93f9b408 6935 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6936 with_gnu_ld=yes
6937 extra_host_args="$extra_host_args --with-gnu-ld"
6938fi
6939
700d40ca
ILT
6940if test x${use_included_zlib} = x &&
6941 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6942 :
6943else
6944 with_system_zlib=yes
6945 extra_host_args="$extra_host_args --with-system-zlib"
6946fi
6947
2429c060
PB
6948# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6949# can detect this case.
6950
6951if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6952 with_newlib=yes
6953 extra_host_args="$extra_host_args --with-newlib"
6954fi
6955
9e07f89d
NN
6956# Handle ${copy_dirs}
6957set fnord ${copy_dirs}
6958shift
6959while test $# != 0 ; do
6960 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6961 :
6962 else
6963 echo Copying $1 to $2
6964
6965 # Use the install script to create the directory and all required
6966 # parent directories.
6967 if test -d $2 ; then
6968 :
6969 else
6970 echo >config.temp
6971 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6972 fi
6973
6974 # Copy the directory, assuming we have tar.
6975 # FIXME: Should we use B in the second tar? Not all systems support it.
6976 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6977
6978 # It is the responsibility of the user to correctly adjust all
6979 # symlinks. If somebody can figure out how to handle them correctly
6980 # here, feel free to add the code.
6981
6982 echo $1 > $2/COPIED
6983 fi
6984 shift; shift
6985done
6986
2429c060
PB
6987# Determine a target-dependent exec_prefix that the installed
6988# gcc will search in. Keep this list sorted by triplet, with
6989# the *-*-osname triplets last.
6990md_exec_prefix=
6991case "${target}" in
521ec477 6992 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6993 md_exec_prefix=/dev/env/DJDIR/bin
6994 ;;
2429c060 6995 *-*-hpux* | \
2429c060 6996 *-*-nto-qnx* | \
1f111696 6997 *-*-solaris2*)
2429c060
PB
6998 md_exec_prefix=/usr/ccs/bin
6999 ;;
7000esac
7001
a0da8069
NN
7002extra_arflags_for_target=
7003extra_nmflags_for_target=
7004extra_ranlibflags_for_target=
7005target_makefile_frag=/dev/null
7006case "${target}" in
77d7106f
AM
7007 spu-*-*)
7008 target_makefile_frag="config/mt-spu"
7009 ;;
a9d58c06 7010 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
7011 target_makefile_frag="config/mt-sde"
7012 ;;
f3b1e08e
RS
7013 mipsisa*-*-elfoabi*)
7014 target_makefile_frag="config/mt-mips-elfoabi"
7015 ;;
e7c8859c
RS
7016 mips*-*-*linux* | mips*-*-gnu*)
7017 target_makefile_frag="config/mt-mips-gnu"
7018 ;;
d9e042ac
SL
7019 nios2-*-elf*)
7020 target_makefile_frag="config/mt-nios2-elf"
7021 ;;
29383458 7022 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 7023 target_makefile_frag="config/mt-gnu"
a0da8069
NN
7024 ;;
7025 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 7026 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
7027 # commands to handle both 32-bit and 64-bit objects. These flags are
7028 # harmless if we're using GNU nm or ar.
7029 extra_arflags_for_target=" -X32_64"
7030 extra_nmflags_for_target=" -B -X32_64"
7031 ;;
a0da8069
NN
7032esac
7033
7034alphaieee_frag=/dev/null
7035case $target in
7036 alpha*-*-*)
7037 # This just makes sure to use the -mieee option to build target libs.
7038 # This should probably be set individually by each library.
7039 alphaieee_frag="config/mt-alphaieee"
7040 ;;
7041esac
7042
7043# If --enable-target-optspace always use -Os instead of -O2 to build
7044# the target libraries, similarly if it is not specified, use -Os
7045# on selected platforms.
7046ospace_frag=/dev/null
7047case "${enable_target_optspace}:${target}" in
7048 yes:*)
7049 ospace_frag="config/mt-ospace"
7050 ;;
7051 :d30v-*)
7052 ospace_frag="config/mt-d30v"
7053 ;;
7054 :m32r-* | :d10v-* | :fr30-*)
7055 ospace_frag="config/mt-ospace"
7056 ;;
7057 no:* | :*)
7058 ;;
7059 *)
7060 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7061 ;;
7062esac
7063
a0da8069
NN
7064# Some systems (e.g., one of the i386-aix systems the gas testers are
7065# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 7066tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
7067build_tooldir=${tooldir}
7068
a0da8069
NN
7069# Create a .gdbinit file which runs the one in srcdir
7070# and tells GDB to look there for source files.
7071
7072if test -r ${srcdir}/.gdbinit ; then
7073 case ${srcdir} in
7074 .) ;;
7075 *) cat > ./.gdbinit <<EOF
7076# ${NO_EDIT}
7077dir ${srcdir}
7078dir .
7079source ${srcdir}/.gdbinit
7080EOF
7081 ;;
7082 esac
7083fi
7084
a0da8069
NN
7085# Make sure that the compiler is able to generate an executable. If it
7086# can't, we are probably in trouble. We don't care whether we can run the
7087# executable--we might be using a cross compiler--we only care whether it
7088# can be created. At this point the main configure script has set CC.
7089we_are_ok=no
7090echo "int main () { return 0; }" > conftest.c
7091${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7092if test $? = 0 ; then
7093 if test -s conftest || test -s conftest.exe ; then
7094 we_are_ok=yes
7095 fi
c6b750e1 7096fi
a0da8069
NN
7097case $we_are_ok in
7098 no)
7099 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7100 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7101 rm -f conftest*
7102 exit 1
7103 ;;
7104esac
7105rm -f conftest*
7106
3bbd2f8f 7107# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7108case "${host}" in
7109 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 7110 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7111 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7112 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7113esac
7114
3bbd2f8f 7115# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7116# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7117# built executables to PATH.
3bbd2f8f
AL
7118if test "$RPATH_ENVVAR" = PATH; then
7119 GCC_SHLIB_SUBDIR=/shlib
7120else
7121 GCC_SHLIB_SUBDIR=
7122fi
7123
730af8ee 7124# Adjust the toplevel makefile according to whether bootstrap was selected.
7125case $enable_bootstrap in
7126 yes)
7127 bootstrap_suffix=bootstrap
7128 BUILD_CONFIG=bootstrap-debug
7129 ;;
7130 no)
7131 bootstrap_suffix=no-bootstrap
7132 BUILD_CONFIG=
7133 ;;
7134esac
7135
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7137$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7138
7139
7140# Check whether --with-build-config was given.
7141if test "${with_build_config+set}" = set; then :
7142 withval=$with_build_config; case $with_build_config in
7143 yes) with_build_config= ;;
7144 no) with_build_config= BUILD_CONFIG= ;;
7145 esac
7146fi
7147
7148
7149if test "x${with_build_config}" != x; then
7150 BUILD_CONFIG=$with_build_config
7151else
7152 case $BUILD_CONFIG in
7153 bootstrap-debug)
7154 if echo "int f (void) { return 0; }" > conftest.c &&
7155 ${CC} -c conftest.c &&
7156 mv conftest.o conftest.o.g0 &&
7157 ${CC} -c -g conftest.c &&
7158 mv conftest.o conftest.o.g &&
7159 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7160 :
7161 else
7162 BUILD_CONFIG=
7163 fi
7164 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7165 ;;
7166 esac
7167fi
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7169$as_echo "$BUILD_CONFIG" >&6; }
7170
7171
7172# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7174$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7175# Check whether --enable-vtable-verify was given.
7176if test "${enable_vtable_verify+set}" = set; then :
7177 enableval=$enable_vtable_verify; case "$enableval" in
7178 yes) enable_vtable_verify=yes ;;
7179 no) enable_vtable_verify=no ;;
7180 *) enable_vtable_verify=no;;
7181 esac
7182else
7183 enable_vtable_verify=no
7184fi
7185
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7187$as_echo "$enable_vtable_verify" >&6; }
7188
a0da8069
NN
7189# Record target_configdirs and the configure arguments for target and
7190# build configuration in Makefile.
7191target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7192build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7193bootstrap_fixincludes=no
a0da8069 7194
2aa2364a
JR
7195# If we are building libgomp, bootstrap it.
7196if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7197 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7198fi
7199
730af8ee 7200# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7201# or bootstrap-ubsan, bootstrap it.
7202if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7203 case "$BUILD_CONFIG" in
7204 *bootstrap-asan* | *bootstrap-ubsan* )
7205 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7206 bootstrap_fixincludes=yes
730af8ee 7207 ;;
7208 esac
5eb08693
L
7209fi
7210
730af8ee 7211# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7212if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7213 test "$enable_vtable_verify" != no; then
95e43135
JBG
7214 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7215fi
7216
a0da8069
NN
7217# Determine whether gdb needs tk/tcl or not.
7218# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7219# and in that case we want gdb to be built without tk. Ugh!
7220# In fact I believe gdb is the *only* package directly dependent on tk,
7221# so we should be able to put the 'maybe's in unconditionally and
7222# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7223# 100% sure that that's safe though.
c180f501 7224
675c6968 7225gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7226case "$enable_gdbtk" in
7227 no)
7228 GDB_TK="" ;;
c180f501
AC
7229 yes)
7230 GDB_TK="${gdb_tk}" ;;
a0da8069 7231 *)
c180f501
AC
7232 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7233 # distro. Eventually someone will fix this and move Insight, nee
7234 # gdbtk to a separate directory.
7235 if test -d ${srcdir}/gdb/gdbtk ; then
7236 GDB_TK="${gdb_tk}"
7237 else
7238 GDB_TK=""
7239 fi
7240 ;;
a0da8069 7241esac
907be67c
DJ
7242CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7243INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7244
6bd3dfaa 7245# Strip out unwanted targets.
dd12c3a8
NN
7246
7247# While at that, we remove Makefiles if we were started for recursive
7248# configuration, so that the top-level Makefile reconfigures them,
7249# like we used to do when configure itself was recursive.
dd12c3a8 7250
06a51eac
RW
7251# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7252# but now we're fixing up the Makefile ourselves with the additional
7253# commands passed to AC_CONFIG_FILES. Use separate variables
7254# extrasub-{build,host,target} not because there is any reason to split
7255# the substitutions up that way, but only to remain below the limit of
7256# 99 commands in a script, for HP-UX sed.
7257# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7258
16b1ad29
RW
7259case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7260 yes:yes:*\ gold\ *:*,c++,*) ;;
7261 yes:yes:*\ gold\ *:*)
7262 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7263 ;;
7264esac
7265
06a51eac 7266extrasub_build=
6a9cf61e 7267for module in ${build_configdirs} ; do
498d4a71
CF
7268 if test -z "${no_recursion}" \
7269 && test -f ${build_subdir}/${module}/Makefile; then
7270 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7271 rm -f ${build_subdir}/${module}/Makefile
7272 fi
06a51eac 7273 extrasub_build="$extrasub_build
498d4a71
CF
7274/^@if build-$module\$/d
7275/^@endif build-$module\$/d
7276/^@if build-$module-$bootstrap_suffix\$/d
7277/^@endif build-$module-$bootstrap_suffix\$/d"
7278done
06a51eac 7279extrasub_host=
498d4a71 7280for module in ${configdirs} ; do
80911fe1 7281 if test -z "${no_recursion}"; then
8cf39b1b 7282 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7283 if test -f ${file}; then
7284 echo 1>&2 "*** removing ${file} to force reconfigure"
7285 rm -f ${file}
7286 fi
7287 done
498d4a71 7288 fi
201f096f 7289 case ${module},${bootstrap_fixincludes} in
7290 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7291 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7292 esac
06a51eac 7293 extrasub_host="$extrasub_host
498d4a71
CF
7294/^@if $module\$/d
7295/^@endif $module\$/d
201f096f 7296/^@if $module-$host_bootstrap_suffix\$/d
7297/^@endif $module-$host_bootstrap_suffix\$/d"
498d4a71 7298done
06a51eac 7299extrasub_target=
498d4a71
CF
7300for module in ${target_configdirs} ; do
7301 if test -z "${no_recursion}" \
7302 && test -f ${target_subdir}/${module}/Makefile; then
7303 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7304 rm -f ${target_subdir}/${module}/Makefile
7305 fi
e8a5fa9c
RW
7306
7307 # We only bootstrap target libraries listed in bootstrap_target_libs.
7308 case $bootstrap_target_libs in
7309 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7310 *) target_bootstrap_suffix=no-bootstrap ;;
7311 esac
7312
06a51eac 7313 extrasub_target="$extrasub_target
498d4a71
CF
7314/^@if target-$module\$/d
7315/^@endif target-$module\$/d
e8a5fa9c
RW
7316/^@if target-$module-$target_bootstrap_suffix\$/d
7317/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7318done
7319
06a51eac
RW
7320# Do the final fixup along with target modules.
7321extrasub_target="$extrasub_target
6bd3dfaa 7322/^@if /,/^@endif /d"
a0da8069
NN
7323
7324# Create the serialization dependencies. This uses a temporary file.
7325
81ecdfbb
RW
7326# Check whether --enable-serial-configure was given.
7327if test "${enable_serial_configure+set}" = set; then :
7328 enableval=$enable_serial_configure;
7329fi
e6bfb94a
AO
7330
7331
1047cb91
DD
7332case ${enable_serial_configure} in
7333 yes)
7334 enable_serial_build_configure=yes
7335 enable_serial_host_configure=yes
7336 enable_serial_target_configure=yes
7337 ;;
7338esac
7339
a0da8069
NN
7340# These force 'configure's to be done one at a time, to avoid problems
7341# with contention over a shared config.cache.
7342rm -f serdep.tmp
e6bfb94a 7343echo '# serdep.tmp' > serdep.tmp
a0da8069 7344olditem=
1047cb91 7345test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7346for item in ${build_configdirs} ; do
7347 case ${olditem} in
7348 "") ;;
e6bfb94a 7349 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7350 esac
7351 olditem=${item}
7352done
7353olditem=
1047cb91 7354test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7355for item in ${configdirs} ; do
7356 case ${olditem} in
7357 "") ;;
e6bfb94a 7358 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7359 esac
7360 olditem=${item}
7361done
7362olditem=
1047cb91 7363test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7364for item in ${target_configdirs} ; do
7365 case ${olditem} in
7366 "") ;;
e6bfb94a 7367 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7368 esac
7369 olditem=${item}
7370done
7371serialization_dependencies=serdep.tmp
7372
7373
e6bfb94a 7374# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7375# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7376# might not want to pass down to subconfigures. The exception being
7377# --cache-file=/dev/null, which is used to turn off the use of cache
7378# files altogether, and which should be passed on to subconfigures.
7379# Also strip program-prefix, program-suffix, and program-transform-name,
7380# so that we can pass down a consistent program-transform-name.
c6b750e1 7381baseargs=
65b4571a 7382tbaseargs=
c6b750e1
DJ
7383keep_next=no
7384skip_next=no
7385eval "set -- $ac_configure_args"
18f6b6ee
PB
7386for ac_arg
7387do
c6b750e1
DJ
7388 if test X"$skip_next" = X"yes"; then
7389 skip_next=no
7390 continue
7391 fi
7392 if test X"$keep_next" = X"yes"; then
7393 case $ac_arg in
7394 *\'*)
7395 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7396 esac
7397 baseargs="$baseargs '$ac_arg'"
65b4571a 7398 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7399 keep_next=no
7400 continue
7401 fi
7402
7403 # Handle separated arguments. Based on the logic generated by
7404 # autoconf 2.59.
7405 case $ac_arg in
7406 *=* | --config-cache | -C | -disable-* | --disable-* \
7407 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7408 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7409 | -with-* | --with-* | -without-* | --without-* | --x)
7410 separate_arg=no
7411 ;;
7412 -*)
7413 separate_arg=yes
7414 ;;
7415 *)
7416 separate_arg=no
7417 ;;
7418 esac
7419
65b4571a
AO
7420 skip_targ=no
7421 case $ac_arg in
7422
7423 --with-* | --without-*)
7424 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7425
7426 case $libopt in
7427 *[-_]include)
7428 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7429 ;;
7430 *[-_]lib)
7431 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7432 ;;
7433 *)
7434 lib=$libopt
7435 ;;
7436 esac
7437
7438
7439 case $lib in
7ec59b9e 7440 mpc | mpfr | gmp | cloog)
65b4571a
AO
7441 # If we're processing --with-$lib, --with-$lib-include or
7442 # --with-$lib-lib, for one of the libs above, and target is
7443 # different from host, don't pass the current argument to any
7444 # target library's configure.
7445 if test x$is_cross_compiler = xyes; then
7446 skip_targ=yes
7447 fi
7448 ;;
7449 esac
7450 ;;
7451 esac
7452
c6b750e1 7453 case "$ac_arg" in
30167e0a
NC
7454 --cache-file=/dev/null | \
7455 -cache-file=/dev/null )
7456 # Handled here to avoid the test to skip args below.
7457 baseargs="$baseargs '$ac_arg'"
65b4571a 7458 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7459 # Assert: $separate_arg should always be no.
7460 keep_next=$separate_arg
7461 ;;
c6b750e1
DJ
7462 --no*)
7463 continue
7464 ;;
7465 --c* | \
7466 --sr* | \
7467 --ho* | \
7468 --bu* | \
7469 --t* | \
7470 --program-* | \
7471 -cache_file* | \
7472 -srcdir* | \
7473 -host* | \
7474 -build* | \
7475 -target* | \
7476 -program-prefix* | \
7477 -program-suffix* | \
7478 -program-transform-name* )
7479 skip_next=$separate_arg
7480 continue
7481 ;;
7482 -*)
7483 # An option. Add it.
7484 case $ac_arg in
7485 *\'*)
7486 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7487 esac
7488 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7489 if test X"$skip_targ" = Xno; then
7490 tbaseargs="$tbaseargs '$ac_arg'"
7491 fi
c6b750e1
DJ
7492 keep_next=$separate_arg
7493 ;;
7494 *)
7495 # Either a variable assignment, or a nonopt (triplet). Don't
7496 # pass it down; let the Makefile handle this.
7497 continue
7498 ;;
7499 esac
7500done
7501# Remove the initial space we just introduced and, as these will be
7502# expanded by make, quote '$'.
7503baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7504
f27d4f92
DJ
7505# Add in --program-transform-name, after --program-prefix and
7506# --program-suffix have been applied to it. Autoconf has already
7507# doubled dollar signs and backslashes in program_transform_name; we want
7508# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7509# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7510# Also, because we want to override the logic in subdir configure scripts to
7511# choose program_transform_name, replace any s,x,x, with s,y,y,.
7512sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7513${program_transform_name}
7514EOF_SED
7515gcc_transform_name=`cat conftestsed.out`
7516rm -f conftestsed.out
7517baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7518tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7519if test "$silent" = yes; then
7520 baseargs="$baseargs --silent"
65b4571a 7521 tbaseargs="$tbaseargs --silent"
2444379b 7522fi
34a0f3cf 7523baseargs="$baseargs --disable-option-checking"
65b4571a 7524tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7525
4074d5f2
RW
7526# Record and document user additions to sub configure arguments.
7527
7528
7529
7530
a0da8069
NN
7531# For the build-side libraries, we just need to pretend we're native,
7532# and not use the same cache file. Multilibs are neither needed nor
7533# desired.
4074d5f2 7534build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7535
7536# For host modules, accept cache file option, or specification as blank.
7537case "${cache_file}" in
7538"") # empty
7539 cache_file_option="" ;;
7540/* | [A-Za-z]:[\\/]* ) # absolute path
7541 cache_file_option="--cache-file=${cache_file}" ;;
7542*) # relative path
7543 cache_file_option="--cache-file=../${cache_file}" ;;
7544esac
7545
82252c06
NN
7546# Host dirs don't like to share a cache file either, horribly enough.
7547# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7548host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7549
65b4571a 7550target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7551
7552# Passing a --with-cross-host argument lets the target libraries know
7553# whether they are being built with a cross-compiler or being built
7554# native. However, it would be better to use other mechanisms to make the
7555# sorts of decisions they want to make on this basis. Please consider
7556# this option to be deprecated. FIXME.
7557if test x${is_cross_compiler} = xyes ; then
c6b750e1 7558 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7559fi
7560
afc0578d 7561# Special user-friendly check for native x86_64-linux build, if
7562# multilib is not explicitly enabled.
7563case "$target:$have_compiler:$host:$target:$enable_multilib" in
7564 x86_64-*linux*:yes:$build:$build:)
7565 # Make sure we have a developement environment that handles 32-bit
7566 dev64=no
7567 echo "int main () { return 0; }" > conftest.c
7568 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7569 if test $? = 0 ; then
7570 if test -s conftest || test -s conftest.exe ; then
7571 dev64=yes
7572 fi
7573 fi
7574 rm -f conftest*
7575 if test x${dev64} != xyes ; then
7576 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
7577 fi
7578 ;;
7579esac
7580
938d2b74
RW
7581# Default to --enable-multilib.
7582if test x${enable_multilib} = x ; then
a0da8069 7583 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7584fi
a0da8069
NN
7585
7586# Pass --with-newlib if appropriate. Note that target_configdirs has
7587# changed from the earlier setting of with_newlib.
7588if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7589 target_configargs="--with-newlib ${target_configargs}"
7590fi
7591
95036d20
NN
7592# Different target subdirs use different values of certain variables
7593# (notably CXX). Worse, multilibs use *lots* of different values.
7594# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7595# it doesn't automatically accept command-line overrides of them.
7596# This means it's not safe for target subdirs to share a cache file,
7597# which is disgusting, but there you have it. Hopefully this can be
7598# fixed in future. It's still worthwhile to use a cache file for each
7599# directory. I think.
7600
ae380b45
MS
7601# Pass the appropriate --build, --host, --target and --cache-file arguments.
7602# We need to pass --target, as newer autoconf's requires consistency
7603# for target_alias and gcc doesn't manage it consistently.
4b900473 7604target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7605
a0da8069
NN
7606FLAGS_FOR_TARGET=
7607case " $target_configdirs " in
7608 *" newlib "*)
7609 case " $target_configargs " in
7610 *" --with-newlib "*)
7611 case "$target" in
1f53ca9a 7612 *-cygwin*)
6d94c122 7613 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7614 ;;
a0da8069
NN
7615 esac
7616
7617 # If we're not building GCC, don't discard standard headers.
7618 if test -d ${srcdir}/gcc; then
7619 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7620
7621 if test "${build}" != "${host}"; then
7622 # On Canadian crosses, CC_FOR_TARGET will have already been set
7623 # by `configure', so we won't have an opportunity to add -Bgcc/
7624 # to it. This is right: we don't want to search that directory
7625 # for binaries, but we want the header files in there, so add
7626 # them explicitly.
e552509b 7627 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7628
7629 # Someone might think of using the pre-installed headers on
7630 # Canadian crosses, in case the installed compiler is not fully
7631 # compatible with the compiler being built. In this case, it
7632 # would be better to flag an error than risking having
7633 # incompatible object files being constructed. We can't
7634 # guarantee that an error will be flagged, but let's hope the
7635 # compiler will do it, when presented with incompatible header
7636 # files.
7637 fi
7638 fi
7639
7640 case "${target}-${is_cross_compiler}" in
ec11bdc6 7641 i[3456789]86-*-linux*-no)
a0da8069
NN
7642 # Here host == target, so we don't need to build gcc,
7643 # so we don't want to discard standard headers.
7644 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7645 ;;
7646 *)
7647 # If we're building newlib, use its generic headers last, but search
7648 # for any libc-related directories first (so make it the last -B
7649 # switch).
7650 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
7651
7652 # If we're building libgloss, find the startup file, simulator library
7653 # and linker script.
7654 case " $target_configdirs " in
7655 *" libgloss "*)
7656 # Look for startup file, simulator library and maybe linker script.
7657 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7658 # Look for libnosys.a in case the target needs it.
7659 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7660 # Most targets have the linker script in the source directory.
7661 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7662 ;;
7663 esac
a0da8069
NN
7664 ;;
7665 esac
7666 ;;
7667 esac
7668 ;;
7669esac
1f53ca9a 7670
45055374 7671case "$target" in
1f53ca9a
AO
7672 x86_64-*mingw* | *-w64-mingw*)
7673 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7674 # however, use a symlink named 'mingw' in ${prefix} .
7675 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7676 ;;
7677 *-mingw*)
7678 # MinGW can't be handled as Cygwin above since it does not use newlib.
7679 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'
7680 ;;
45055374 7681esac
a0da8069 7682
5fbad20a
DD
7683# Allow the user to override the flags for
7684# our build compiler if desired.
c66487f8
NC
7685if test x"${build}" = x"${host}" ; then
7686 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7687 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7688 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7689fi
5fbad20a 7690
a0da8069
NN
7691# On Canadian crosses, we'll be searching the right directories for
7692# the previously-installed cross compiler, so don't bother to add
7693# flags for directories within the install tree of the compiler
7694# being built; programs in there won't even run.
7695if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7696 # Search for pre-installed headers if nothing else fits.
bba45b8b 7697 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
7698fi
7699
7700if test "x${use_gnu_ld}" = x &&
7701 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7702 # Arrange for us to find uninstalled linker scripts.
b00612cc 7703 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7704fi
7705
a481dbb7
DD
7706# Search for other target-specific linker scripts and such.
7707case "${target}" in
4e206d7e
DB
7708 mep*)
7709 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7710 ;;
7711esac
7712
a0da8069 7713# Makefile fragments.
3e707e94
PB
7714for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7715do
7716 eval fragval=\$$frag
7717 if test $fragval != /dev/null; then
7718 eval $frag=${srcdir}/$fragval
7719 fi
7720done
a0da8069
NN
7721
7722
7723
7724
7725
7726# Miscellanea: directories, flags, etc.
7727
7728
7729
7730
7731
7732
7733
3bbd2f8f 7734
6a9cf61e 7735# Build module lists & subconfigure args.
a0da8069
NN
7736
7737
7738
be01d343
PB
7739# Host module lists & subconfigure args.
7740
7741
7742
911e63d0 7743
be01d343
PB
7744# Target module lists & subconfigure args.
7745
7746
7747
7748# Build tools.
7749
7750
7751
1576798e
PB
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
be01d343
PB
7766# Generate default definitions for YACC, M4, LEX and other programs that run
7767# on the build machine. These are used if the Makefile can't locate these
7768# programs in objdir.
7769MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7770
7771for ac_prog in 'bison -y' byacc yacc
7772do
c6b750e1 7773 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7774set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776$as_echo_n "checking for $ac_word... " >&6; }
7777if test "${ac_cv_prog_YACC+set}" = set; then :
7778 $as_echo_n "(cached) " >&6
be01d343
PB
7779else
7780 if test -n "$YACC"; then
7781 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7782else
c6b750e1
DJ
7783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784for as_dir in $PATH
7785do
7786 IFS=$as_save_IFS
7787 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7790 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7792 break 2
7793 fi
7794done
81ecdfbb
RW
7795 done
7796IFS=$as_save_IFS
c6b750e1 7797
be01d343
PB
7798fi
7799fi
c6b750e1 7800YACC=$ac_cv_prog_YACC
be01d343 7801if test -n "$YACC"; then
81ecdfbb
RW
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7803$as_echo "$YACC" >&6; }
be01d343 7804else
81ecdfbb
RW
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806$as_echo "no" >&6; }
be01d343
PB
7807fi
7808
81ecdfbb 7809
c6b750e1 7810 test -n "$YACC" && break
be01d343
PB
7811done
7812test -n "$YACC" || YACC="$MISSING bison -y"
7813
7814case " $build_configdirs " in
7815 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7816esac
7817
7818for ac_prog in bison
7819do
c6b750e1 7820 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7821set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823$as_echo_n "checking for $ac_word... " >&6; }
7824if test "${ac_cv_prog_BISON+set}" = set; then :
7825 $as_echo_n "(cached) " >&6
be01d343
PB
7826else
7827 if test -n "$BISON"; then
7828 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7829else
c6b750e1
DJ
7830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7837 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7839 break 2
7840 fi
7841done
81ecdfbb
RW
7842 done
7843IFS=$as_save_IFS
c6b750e1 7844
be01d343
PB
7845fi
7846fi
c6b750e1 7847BISON=$ac_cv_prog_BISON
be01d343 7848if test -n "$BISON"; then
81ecdfbb
RW
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7850$as_echo "$BISON" >&6; }
be01d343 7851else
81ecdfbb
RW
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853$as_echo "no" >&6; }
be01d343
PB
7854fi
7855
81ecdfbb 7856
c6b750e1 7857 test -n "$BISON" && break
be01d343
PB
7858done
7859test -n "$BISON" || BISON="$MISSING bison"
7860
7861case " $build_configdirs " in
7862 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7863esac
7864
7865for ac_prog in gm4 gnum4 m4
7866do
c6b750e1 7867 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7868set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870$as_echo_n "checking for $ac_word... " >&6; }
7871if test "${ac_cv_prog_M4+set}" = set; then :
7872 $as_echo_n "(cached) " >&6
be01d343
PB
7873else
7874 if test -n "$M4"; then
7875 ac_cv_prog_M4="$M4" # Let the user override the test.
7876else
c6b750e1
DJ
7877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878for as_dir in $PATH
7879do
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7884 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7886 break 2
7887 fi
7888done
81ecdfbb
RW
7889 done
7890IFS=$as_save_IFS
c6b750e1 7891
be01d343
PB
7892fi
7893fi
c6b750e1 7894M4=$ac_cv_prog_M4
be01d343 7895if test -n "$M4"; then
81ecdfbb
RW
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7897$as_echo "$M4" >&6; }
be01d343 7898else
81ecdfbb
RW
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900$as_echo "no" >&6; }
be01d343
PB
7901fi
7902
81ecdfbb 7903
c6b750e1 7904 test -n "$M4" && break
be01d343
PB
7905done
7906test -n "$M4" || M4="$MISSING m4"
7907
7908case " $build_configdirs " in
7909 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7910esac
7911
7912for ac_prog in flex lex
7913do
c6b750e1 7914 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7915set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917$as_echo_n "checking for $ac_word... " >&6; }
7918if test "${ac_cv_prog_LEX+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
be01d343
PB
7920else
7921 if test -n "$LEX"; then
7922 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7923else
c6b750e1
DJ
7924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925for as_dir in $PATH
7926do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7931 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7933 break 2
7934 fi
7935done
81ecdfbb
RW
7936 done
7937IFS=$as_save_IFS
c6b750e1 7938
be01d343
PB
7939fi
7940fi
c6b750e1 7941LEX=$ac_cv_prog_LEX
be01d343 7942if test -n "$LEX"; then
81ecdfbb
RW
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7944$as_echo "$LEX" >&6; }
be01d343 7945else
81ecdfbb
RW
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947$as_echo "no" >&6; }
be01d343
PB
7948fi
7949
81ecdfbb 7950
c6b750e1 7951 test -n "$LEX" && break
be01d343
PB
7952done
7953test -n "$LEX" || LEX="$MISSING flex"
7954
7955case " $build_configdirs " in
7956 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7957 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7958esac
7959
7960for ac_prog in flex
7961do
c6b750e1 7962 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7963set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965$as_echo_n "checking for $ac_word... " >&6; }
7966if test "${ac_cv_prog_FLEX+set}" = set; then :
7967 $as_echo_n "(cached) " >&6
be01d343
PB
7968else
7969 if test -n "$FLEX"; then
7970 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7971else
c6b750e1
DJ
7972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973for as_dir in $PATH
7974do
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7979 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7981 break 2
7982 fi
7983done
81ecdfbb
RW
7984 done
7985IFS=$as_save_IFS
c6b750e1 7986
be01d343
PB
7987fi
7988fi
c6b750e1 7989FLEX=$ac_cv_prog_FLEX
be01d343 7990if test -n "$FLEX"; then
81ecdfbb
RW
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7992$as_echo "$FLEX" >&6; }
be01d343 7993else
81ecdfbb
RW
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995$as_echo "no" >&6; }
be01d343
PB
7996fi
7997
81ecdfbb 7998
c6b750e1 7999 test -n "$FLEX" && break
be01d343
PB
8000done
8001test -n "$FLEX" || FLEX="$MISSING flex"
8002
8003case " $build_configdirs " in
8004 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8005esac
8006
8007for ac_prog in makeinfo
8008do
c6b750e1 8009 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8010set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012$as_echo_n "checking for $ac_word... " >&6; }
8013if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8014 $as_echo_n "(cached) " >&6
be01d343
PB
8015else
8016 if test -n "$MAKEINFO"; then
8017 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8018else
c6b750e1
DJ
8019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020for as_dir in $PATH
8021do
8022 IFS=$as_save_IFS
8023 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8026 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8028 break 2
8029 fi
8030done
81ecdfbb
RW
8031 done
8032IFS=$as_save_IFS
c6b750e1 8033
be01d343
PB
8034fi
8035fi
c6b750e1 8036MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 8037if test -n "$MAKEINFO"; then
81ecdfbb
RW
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8039$as_echo "$MAKEINFO" >&6; }
be01d343 8040else
81ecdfbb
RW
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042$as_echo "no" >&6; }
be01d343
PB
8043fi
8044
81ecdfbb 8045
c6b750e1 8046 test -n "$MAKEINFO" && break
be01d343
PB
8047done
8048test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8049
8050case " $build_configdirs " in
8051 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8052 *)
8053
10ad8ef3 8054 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
8055 # higher, else we use the "missing" dummy.
8056 if ${MAKEINFO} --version \
10ad8ef3 8057 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
8058 :
8059 else
8060 MAKEINFO="$MISSING makeinfo"
8061 fi
8062 ;;
8063
8064esac
a0da8069 8065
be01d343 8066# FIXME: expect and dejagnu may become build tools?
a0da8069 8067
be01d343
PB
8068for ac_prog in expect
8069do
c6b750e1 8070 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8071set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073$as_echo_n "checking for $ac_word... " >&6; }
8074if test "${ac_cv_prog_EXPECT+set}" = set; then :
8075 $as_echo_n "(cached) " >&6
be01d343
PB
8076else
8077 if test -n "$EXPECT"; then
8078 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8079else
c6b750e1
DJ
8080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081for as_dir in $PATH
8082do
8083 IFS=$as_save_IFS
8084 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8087 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8089 break 2
8090 fi
8091done
81ecdfbb
RW
8092 done
8093IFS=$as_save_IFS
c6b750e1 8094
be01d343
PB
8095fi
8096fi
c6b750e1 8097EXPECT=$ac_cv_prog_EXPECT
be01d343 8098if test -n "$EXPECT"; then
81ecdfbb
RW
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8100$as_echo "$EXPECT" >&6; }
be01d343 8101else
81ecdfbb
RW
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103$as_echo "no" >&6; }
be01d343 8104fi
a0da8069 8105
81ecdfbb 8106
c6b750e1 8107 test -n "$EXPECT" && break
be01d343
PB
8108done
8109test -n "$EXPECT" || EXPECT="expect"
a0da8069 8110
be01d343
PB
8111case " $configdirs " in
8112 *" expect "*)
8113 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8114 ;;
8115esac
a0da8069 8116
be01d343
PB
8117for ac_prog in runtest
8118do
c6b750e1 8119 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8120set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122$as_echo_n "checking for $ac_word... " >&6; }
8123if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8124 $as_echo_n "(cached) " >&6
be01d343
PB
8125else
8126 if test -n "$RUNTEST"; then
8127 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8128else
c6b750e1
DJ
8129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130for as_dir in $PATH
8131do
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8136 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8138 break 2
8139 fi
8140done
81ecdfbb
RW
8141 done
8142IFS=$as_save_IFS
c6b750e1 8143
be01d343
PB
8144fi
8145fi
c6b750e1 8146RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8147if test -n "$RUNTEST"; then
81ecdfbb
RW
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8149$as_echo "$RUNTEST" >&6; }
be01d343 8150else
81ecdfbb
RW
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152$as_echo "no" >&6; }
be01d343 8153fi
a0da8069 8154
81ecdfbb 8155
c6b750e1 8156 test -n "$RUNTEST" && break
be01d343
PB
8157done
8158test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8159
be01d343
PB
8160case " $configdirs " in
8161 *" dejagnu "*)
6b89cc21 8162 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8163 ;;
8164esac
a0da8069
NN
8165
8166
a0da8069 8167# Host tools.
859789af
AC
8168ncn_tool_prefix=
8169test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8170ncn_target_tool_prefix=
8171test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8172
9a819804
AO
8173
8174
8175if test -n "$AR"; then
8176 ac_cv_prog_AR=$AR
8177elif test -n "$ac_cv_prog_AR"; then
8178 AR=$ac_cv_prog_AR
8179fi
8180
8181if test -n "$ac_cv_prog_AR"; then
8182 for ncn_progname in ar; do
8183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8184set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186$as_echo_n "checking for $ac_word... " >&6; }
8187if test "${ac_cv_prog_AR+set}" = set; then :
8188 $as_echo_n "(cached) " >&6
9a819804
AO
8189else
8190 if test -n "$AR"; then
8191 ac_cv_prog_AR="$AR" # Let the user override the test.
8192else
8193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194for as_dir in $PATH
8195do
8196 IFS=$as_save_IFS
8197 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8200 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8202 break 2
8203 fi
8204done
81ecdfbb
RW
8205 done
8206IFS=$as_save_IFS
9a819804
AO
8207
8208fi
8209fi
8210AR=$ac_cv_prog_AR
8211if test -n "$AR"; then
81ecdfbb
RW
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8213$as_echo "$AR" >&6; }
9a819804 8214else
81ecdfbb
RW
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216$as_echo "no" >&6; }
9a819804
AO
8217fi
8218
81ecdfbb 8219
9a819804
AO
8220 done
8221fi
8222
8223for ncn_progname in ar; do
05cbd757
PB
8224 if test -n "$ncn_tool_prefix"; then
8225 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8226set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228$as_echo_n "checking for $ac_word... " >&6; }
8229if test "${ac_cv_prog_AR+set}" = set; then :
8230 $as_echo_n "(cached) " >&6
859789af
AC
8231else
8232 if test -n "$AR"; then
8233 ac_cv_prog_AR="$AR" # Let the user override the test.
8234else
c6b750e1
DJ
8235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236for as_dir in $PATH
8237do
8238 IFS=$as_save_IFS
8239 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8242 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8244 break 2
8245 fi
8246done
81ecdfbb
RW
8247 done
8248IFS=$as_save_IFS
c6b750e1 8249
859789af
AC
8250fi
8251fi
c6b750e1 8252AR=$ac_cv_prog_AR
859789af 8253if test -n "$AR"; then
81ecdfbb
RW
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8255$as_echo "$AR" >&6; }
859789af 8256else
81ecdfbb
RW
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258$as_echo "no" >&6; }
859789af
AC
8259fi
8260
81ecdfbb 8261
05cbd757
PB
8262 fi
8263 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8265set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267$as_echo_n "checking for $ac_word... " >&6; }
8268if test "${ac_cv_prog_AR+set}" = set; then :
8269 $as_echo_n "(cached) " >&6
859789af 8270else
05cbd757
PB
8271 if test -n "$AR"; then
8272 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8273else
c6b750e1
DJ
8274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275for as_dir in $PATH
8276do
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8281 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8283 break 2
8284 fi
8285done
81ecdfbb
RW
8286 done
8287IFS=$as_save_IFS
c6b750e1 8288
859789af
AC
8289fi
8290fi
c6b750e1 8291AR=$ac_cv_prog_AR
05cbd757 8292if test -n "$AR"; then
81ecdfbb
RW
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8294$as_echo "$AR" >&6; }
859789af 8295else
81ecdfbb
RW
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297$as_echo "no" >&6; }
859789af 8298fi
c6b750e1 8299
81ecdfbb 8300
05cbd757
PB
8301 fi
8302 test -n "$ac_cv_prog_AR" && break
8303done
8304
8305if test -z "$ac_cv_prog_AR" ; then
8306 set dummy ar
8307 if test $build = $host ; then
8308 AR="$2"
859789af 8309 else
05cbd757 8310 AR="${ncn_tool_prefix}$2"
859789af 8311 fi
859789af
AC
8312fi
8313
9a819804
AO
8314
8315
8316if test -n "$AS"; then
8317 ac_cv_prog_AS=$AS
8318elif test -n "$ac_cv_prog_AS"; then
8319 AS=$ac_cv_prog_AS
8320fi
8321
8322if test -n "$ac_cv_prog_AS"; then
8323 for ncn_progname in as; do
8324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8325set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327$as_echo_n "checking for $ac_word... " >&6; }
8328if test "${ac_cv_prog_AS+set}" = set; then :
8329 $as_echo_n "(cached) " >&6
9a819804
AO
8330else
8331 if test -n "$AS"; then
8332 ac_cv_prog_AS="$AS" # Let the user override the test.
8333else
8334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335for as_dir in $PATH
8336do
8337 IFS=$as_save_IFS
8338 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8339 for ac_exec_ext in '' $ac_executable_extensions; do
8340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8341 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8343 break 2
8344 fi
8345done
81ecdfbb
RW
8346 done
8347IFS=$as_save_IFS
9a819804
AO
8348
8349fi
8350fi
8351AS=$ac_cv_prog_AS
8352if test -n "$AS"; then
81ecdfbb
RW
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8354$as_echo "$AS" >&6; }
9a819804 8355else
81ecdfbb
RW
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357$as_echo "no" >&6; }
9a819804
AO
8358fi
8359
81ecdfbb 8360
9a819804
AO
8361 done
8362fi
8363
8364for ncn_progname in as; do
05cbd757
PB
8365 if test -n "$ncn_tool_prefix"; then
8366 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8367set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369$as_echo_n "checking for $ac_word... " >&6; }
8370if test "${ac_cv_prog_AS+set}" = set; then :
8371 $as_echo_n "(cached) " >&6
859789af
AC
8372else
8373 if test -n "$AS"; then
8374 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8375else
8376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377for as_dir in $PATH
8378do
8379 IFS=$as_save_IFS
8380 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8383 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8385 break 2
8386 fi
8387done
81ecdfbb
RW
8388 done
8389IFS=$as_save_IFS
c6b750e1 8390
859789af
AC
8391fi
8392fi
c6b750e1 8393AS=$ac_cv_prog_AS
859789af 8394if test -n "$AS"; then
81ecdfbb
RW
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8396$as_echo "$AS" >&6; }
859789af 8397else
81ecdfbb
RW
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399$as_echo "no" >&6; }
859789af
AC
8400fi
8401
81ecdfbb 8402
05cbd757
PB
8403 fi
8404 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8406set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408$as_echo_n "checking for $ac_word... " >&6; }
8409if test "${ac_cv_prog_AS+set}" = set; then :
8410 $as_echo_n "(cached) " >&6
859789af 8411else
05cbd757
PB
8412 if test -n "$AS"; then
8413 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8414else
c6b750e1
DJ
8415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416for as_dir in $PATH
8417do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8422 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8424 break 2
8425 fi
8426done
81ecdfbb
RW
8427 done
8428IFS=$as_save_IFS
c6b750e1 8429
859789af
AC
8430fi
8431fi
c6b750e1 8432AS=$ac_cv_prog_AS
05cbd757 8433if test -n "$AS"; then
81ecdfbb
RW
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8435$as_echo "$AS" >&6; }
859789af 8436else
81ecdfbb
RW
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438$as_echo "no" >&6; }
859789af 8439fi
c6b750e1 8440
81ecdfbb 8441
05cbd757
PB
8442 fi
8443 test -n "$ac_cv_prog_AS" && break
8444done
8445
8446if test -z "$ac_cv_prog_AS" ; then
8447 set dummy as
8448 if test $build = $host ; then
8449 AS="$2"
859789af 8450 else
05cbd757 8451 AS="${ncn_tool_prefix}$2"
859789af 8452 fi
859789af
AC
8453fi
8454
9a819804
AO
8455
8456
8457if test -n "$DLLTOOL"; then
8458 ac_cv_prog_DLLTOOL=$DLLTOOL
8459elif test -n "$ac_cv_prog_DLLTOOL"; then
8460 DLLTOOL=$ac_cv_prog_DLLTOOL
8461fi
8462
8463if test -n "$ac_cv_prog_DLLTOOL"; then
8464 for ncn_progname in dlltool; do
8465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8466set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468$as_echo_n "checking for $ac_word... " >&6; }
8469if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8470 $as_echo_n "(cached) " >&6
9a819804
AO
8471else
8472 if test -n "$DLLTOOL"; then
8473 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8474else
8475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476for as_dir in $PATH
8477do
8478 IFS=$as_save_IFS
8479 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8482 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8484 break 2
8485 fi
8486done
81ecdfbb
RW
8487 done
8488IFS=$as_save_IFS
9a819804
AO
8489
8490fi
8491fi
8492DLLTOOL=$ac_cv_prog_DLLTOOL
8493if test -n "$DLLTOOL"; then
81ecdfbb
RW
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8495$as_echo "$DLLTOOL" >&6; }
9a819804 8496else
81ecdfbb
RW
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498$as_echo "no" >&6; }
9a819804
AO
8499fi
8500
81ecdfbb 8501
9a819804
AO
8502 done
8503fi
8504
8505for ncn_progname in dlltool; do
05cbd757
PB
8506 if test -n "$ncn_tool_prefix"; then
8507 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8508set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510$as_echo_n "checking for $ac_word... " >&6; }
8511if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8512 $as_echo_n "(cached) " >&6
859789af
AC
8513else
8514 if test -n "$DLLTOOL"; then
8515 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8516else
c6b750e1
DJ
8517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518for as_dir in $PATH
8519do
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8522 for ac_exec_ext in '' $ac_executable_extensions; do
8523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8524 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8526 break 2
8527 fi
8528done
81ecdfbb
RW
8529 done
8530IFS=$as_save_IFS
c6b750e1 8531
859789af
AC
8532fi
8533fi
c6b750e1 8534DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8535if test -n "$DLLTOOL"; then
81ecdfbb
RW
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8537$as_echo "$DLLTOOL" >&6; }
859789af 8538else
81ecdfbb
RW
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540$as_echo "no" >&6; }
859789af
AC
8541fi
8542
81ecdfbb 8543
05cbd757
PB
8544 fi
8545 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8547set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549$as_echo_n "checking for $ac_word... " >&6; }
8550if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8551 $as_echo_n "(cached) " >&6
859789af 8552else
05cbd757
PB
8553 if test -n "$DLLTOOL"; then
8554 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8555else
c6b750e1
DJ
8556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH
8558do
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8563 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8565 break 2
8566 fi
8567done
81ecdfbb
RW
8568 done
8569IFS=$as_save_IFS
c6b750e1 8570
859789af
AC
8571fi
8572fi
c6b750e1 8573DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8574if test -n "$DLLTOOL"; then
81ecdfbb
RW
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8576$as_echo "$DLLTOOL" >&6; }
859789af 8577else
81ecdfbb
RW
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579$as_echo "no" >&6; }
859789af 8580fi
c6b750e1 8581
81ecdfbb 8582
05cbd757
PB
8583 fi
8584 test -n "$ac_cv_prog_DLLTOOL" && break
8585done
8586
8587if test -z "$ac_cv_prog_DLLTOOL" ; then
8588 set dummy dlltool
8589 if test $build = $host ; then
8590 DLLTOOL="$2"
859789af 8591 else
05cbd757 8592 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8593 fi
859789af
AC
8594fi
8595
9a819804
AO
8596
8597
8598if test -n "$LD"; then
8599 ac_cv_prog_LD=$LD
8600elif test -n "$ac_cv_prog_LD"; then
8601 LD=$ac_cv_prog_LD
8602fi
8603
8604if test -n "$ac_cv_prog_LD"; then
8605 for ncn_progname in ld; do
8606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8607set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609$as_echo_n "checking for $ac_word... " >&6; }
8610if test "${ac_cv_prog_LD+set}" = set; then :
8611 $as_echo_n "(cached) " >&6
9a819804
AO
8612else
8613 if test -n "$LD"; then
8614 ac_cv_prog_LD="$LD" # Let the user override the test.
8615else
8616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617for as_dir in $PATH
8618do
8619 IFS=$as_save_IFS
8620 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8621 for ac_exec_ext in '' $ac_executable_extensions; do
8622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8623 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8625 break 2
8626 fi
8627done
81ecdfbb
RW
8628 done
8629IFS=$as_save_IFS
9a819804
AO
8630
8631fi
8632fi
8633LD=$ac_cv_prog_LD
8634if test -n "$LD"; then
81ecdfbb
RW
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8636$as_echo "$LD" >&6; }
9a819804 8637else
81ecdfbb
RW
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639$as_echo "no" >&6; }
9a819804
AO
8640fi
8641
81ecdfbb 8642
9a819804
AO
8643 done
8644fi
8645
8646for ncn_progname in ld; do
05cbd757
PB
8647 if test -n "$ncn_tool_prefix"; then
8648 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8649set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651$as_echo_n "checking for $ac_word... " >&6; }
8652if test "${ac_cv_prog_LD+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
859789af
AC
8654else
8655 if test -n "$LD"; then
8656 ac_cv_prog_LD="$LD" # Let the user override the test.
8657else
c6b750e1
DJ
8658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659for as_dir in $PATH
8660do
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8665 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8667 break 2
8668 fi
8669done
81ecdfbb
RW
8670 done
8671IFS=$as_save_IFS
c6b750e1 8672
859789af
AC
8673fi
8674fi
c6b750e1 8675LD=$ac_cv_prog_LD
859789af 8676if test -n "$LD"; then
81ecdfbb
RW
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8678$as_echo "$LD" >&6; }
859789af 8679else
81ecdfbb
RW
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681$as_echo "no" >&6; }
859789af
AC
8682fi
8683
81ecdfbb 8684
05cbd757
PB
8685 fi
8686 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8687 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8688set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690$as_echo_n "checking for $ac_word... " >&6; }
8691if test "${ac_cv_prog_LD+set}" = set; then :
8692 $as_echo_n "(cached) " >&6
859789af 8693else
05cbd757
PB
8694 if test -n "$LD"; then
8695 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8696else
c6b750e1
DJ
8697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698for as_dir in $PATH
8699do
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8704 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8706 break 2
8707 fi
8708done
81ecdfbb
RW
8709 done
8710IFS=$as_save_IFS
c6b750e1 8711
859789af
AC
8712fi
8713fi
c6b750e1 8714LD=$ac_cv_prog_LD
05cbd757 8715if test -n "$LD"; then
81ecdfbb
RW
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8717$as_echo "$LD" >&6; }
859789af 8718else
81ecdfbb
RW
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720$as_echo "no" >&6; }
859789af 8721fi
c6b750e1 8722
81ecdfbb 8723
05cbd757
PB
8724 fi
8725 test -n "$ac_cv_prog_LD" && break
8726done
8727
8728if test -z "$ac_cv_prog_LD" ; then
8729 set dummy ld
8730 if test $build = $host ; then
8731 LD="$2"
859789af 8732 else
05cbd757 8733 LD="${ncn_tool_prefix}$2"
859789af 8734 fi
859789af
AC
8735fi
8736
9a819804
AO
8737
8738
8739if test -n "$LIPO"; then
8740 ac_cv_prog_LIPO=$LIPO
8741elif test -n "$ac_cv_prog_LIPO"; then
8742 LIPO=$ac_cv_prog_LIPO
8743fi
8744
8745if test -n "$ac_cv_prog_LIPO"; then
8746 for ncn_progname in lipo; do
8747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8748set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8750$as_echo_n "checking for $ac_word... " >&6; }
8751if test "${ac_cv_prog_LIPO+set}" = set; then :
8752 $as_echo_n "(cached) " >&6
9a819804
AO
8753else
8754 if test -n "$LIPO"; then
8755 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8756else
8757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758for as_dir in $PATH
8759do
8760 IFS=$as_save_IFS
8761 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8762 for ac_exec_ext in '' $ac_executable_extensions; do
8763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8764 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8766 break 2
8767 fi
8768done
81ecdfbb
RW
8769 done
8770IFS=$as_save_IFS
9a819804
AO
8771
8772fi
8773fi
8774LIPO=$ac_cv_prog_LIPO
8775if test -n "$LIPO"; then
81ecdfbb
RW
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8777$as_echo "$LIPO" >&6; }
9a819804 8778else
81ecdfbb
RW
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8780$as_echo "no" >&6; }
9a819804
AO
8781fi
8782
81ecdfbb 8783
9a819804
AO
8784 done
8785fi
8786
8787for ncn_progname in lipo; do
be01d343
PB
8788 if test -n "$ncn_tool_prefix"; then
8789 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8790set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8792$as_echo_n "checking for $ac_word... " >&6; }
8793if test "${ac_cv_prog_LIPO+set}" = set; then :
8794 $as_echo_n "(cached) " >&6
be01d343
PB
8795else
8796 if test -n "$LIPO"; then
8797 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8798else
c6b750e1
DJ
8799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800for as_dir in $PATH
8801do
8802 IFS=$as_save_IFS
8803 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8804 for ac_exec_ext in '' $ac_executable_extensions; do
8805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8806 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8808 break 2
8809 fi
8810done
81ecdfbb
RW
8811 done
8812IFS=$as_save_IFS
c6b750e1 8813
be01d343
PB
8814fi
8815fi
c6b750e1 8816LIPO=$ac_cv_prog_LIPO
be01d343 8817if test -n "$LIPO"; then
81ecdfbb
RW
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8819$as_echo "$LIPO" >&6; }
be01d343 8820else
81ecdfbb
RW
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822$as_echo "no" >&6; }
be01d343
PB
8823fi
8824
81ecdfbb 8825
be01d343
PB
8826 fi
8827 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8829set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831$as_echo_n "checking for $ac_word... " >&6; }
8832if test "${ac_cv_prog_LIPO+set}" = set; then :
8833 $as_echo_n "(cached) " >&6
be01d343
PB
8834else
8835 if test -n "$LIPO"; then
8836 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8837else
c6b750e1
DJ
8838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839for as_dir in $PATH
8840do
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8845 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8847 break 2
8848 fi
8849done
81ecdfbb
RW
8850 done
8851IFS=$as_save_IFS
c6b750e1 8852
be01d343
PB
8853fi
8854fi
c6b750e1 8855LIPO=$ac_cv_prog_LIPO
be01d343 8856if test -n "$LIPO"; then
81ecdfbb
RW
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8858$as_echo "$LIPO" >&6; }
be01d343 8859else
81ecdfbb
RW
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861$as_echo "no" >&6; }
be01d343 8862fi
c6b750e1 8863
81ecdfbb 8864
be01d343
PB
8865 fi
8866 test -n "$ac_cv_prog_LIPO" && break
8867done
8868
8869if test -z "$ac_cv_prog_LIPO" ; then
8870 set dummy lipo
8871 if test $build = $host ; then
8872 LIPO="$2"
8873 else
8874 LIPO="${ncn_tool_prefix}$2"
8875 fi
8876fi
8877
9a819804
AO
8878
8879
8880if test -n "$NM"; then
8881 ac_cv_prog_NM=$NM
8882elif test -n "$ac_cv_prog_NM"; then
8883 NM=$ac_cv_prog_NM
8884fi
8885
8886if test -n "$ac_cv_prog_NM"; then
8887 for ncn_progname in nm; do
8888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8889set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8891$as_echo_n "checking for $ac_word... " >&6; }
8892if test "${ac_cv_prog_NM+set}" = set; then :
8893 $as_echo_n "(cached) " >&6
859789af
AC
8894else
8895 if test -n "$NM"; then
8896 ac_cv_prog_NM="$NM" # Let the user override the test.
8897else
c6b750e1
DJ
8898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899for as_dir in $PATH
8900do
8901 IFS=$as_save_IFS
8902 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8905 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8907 break 2
8908 fi
8909done
81ecdfbb
RW
8910 done
8911IFS=$as_save_IFS
c6b750e1 8912
859789af
AC
8913fi
8914fi
c6b750e1 8915NM=$ac_cv_prog_NM
859789af 8916if test -n "$NM"; then
81ecdfbb
RW
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8918$as_echo "$NM" >&6; }
859789af 8919else
81ecdfbb
RW
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921$as_echo "no" >&6; }
859789af
AC
8922fi
8923
81ecdfbb 8924
9a819804
AO
8925 done
8926fi
8927
8928for ncn_progname in nm; do
8929 if test -n "$ncn_tool_prefix"; then
8930 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8931set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8933$as_echo_n "checking for $ac_word... " >&6; }
8934if test "${ac_cv_prog_NM+set}" = set; then :
8935 $as_echo_n "(cached) " >&6
859789af 8936else
05cbd757
PB
8937 if test -n "$NM"; then
8938 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8939else
c6b750e1
DJ
8940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8941for as_dir in $PATH
8942do
8943 IFS=$as_save_IFS
8944 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8945 for ac_exec_ext in '' $ac_executable_extensions; do
8946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8947 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8949 break 2
8950 fi
8951done
81ecdfbb
RW
8952 done
8953IFS=$as_save_IFS
c6b750e1 8954
859789af
AC
8955fi
8956fi
c6b750e1 8957NM=$ac_cv_prog_NM
05cbd757 8958if test -n "$NM"; then
81ecdfbb
RW
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8960$as_echo "$NM" >&6; }
859789af 8961else
81ecdfbb
RW
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963$as_echo "no" >&6; }
859789af 8964fi
c6b750e1 8965
81ecdfbb 8966
05cbd757 8967 fi
9a819804
AO
8968 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8970set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972$as_echo_n "checking for $ac_word... " >&6; }
8973if test "${ac_cv_prog_NM+set}" = set; then :
8974 $as_echo_n "(cached) " >&6
9a819804
AO
8975else
8976 if test -n "$NM"; then
8977 ac_cv_prog_NM="$NM" # Let the user override the test.
8978else
8979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980for as_dir in $PATH
8981do
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8986 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8988 break 2
8989 fi
8990done
81ecdfbb
RW
8991 done
8992IFS=$as_save_IFS
9a819804
AO
8993
8994fi
8995fi
8996NM=$ac_cv_prog_NM
8997if test -n "$NM"; then
81ecdfbb
RW
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8999$as_echo "$NM" >&6; }
9a819804 9000else
81ecdfbb
RW
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002$as_echo "no" >&6; }
9a819804
AO
9003fi
9004
81ecdfbb 9005
9a819804
AO
9006 fi
9007 test -n "$ac_cv_prog_NM" && break
9008done
9009
9010if test -z "$ac_cv_prog_NM" ; then
9011 set dummy nm
9012 if test $build = $host ; then
9013 NM="$2"
9014 else
9015 NM="${ncn_tool_prefix}$2"
9016 fi
9017fi
9018
9019
9020
9021if test -n "$RANLIB"; then
9022 ac_cv_prog_RANLIB=$RANLIB
9023elif test -n "$ac_cv_prog_RANLIB"; then
9024 RANLIB=$ac_cv_prog_RANLIB
9025fi
9026
9027if test -n "$ac_cv_prog_RANLIB"; then
9028 for ncn_progname in ranlib; do
9029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9030set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9032$as_echo_n "checking for $ac_word... " >&6; }
9033if test "${ac_cv_prog_RANLIB+set}" = set; then :
9034 $as_echo_n "(cached) " >&6
9a819804
AO
9035else
9036 if test -n "$RANLIB"; then
9037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9038else
9039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9040for as_dir in $PATH
9041do
9042 IFS=$as_save_IFS
9043 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9044 for ac_exec_ext in '' $ac_executable_extensions; do
9045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9046 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9048 break 2
9049 fi
9050done
81ecdfbb
RW
9051 done
9052IFS=$as_save_IFS
9a819804
AO
9053
9054fi
9055fi
9056RANLIB=$ac_cv_prog_RANLIB
9057if test -n "$RANLIB"; then
81ecdfbb
RW
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9059$as_echo "$RANLIB" >&6; }
9a819804 9060else
81ecdfbb
RW
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062$as_echo "no" >&6; }
9a819804
AO
9063fi
9064
81ecdfbb 9065
9a819804
AO
9066 done
9067fi
859789af 9068
9a819804 9069for ncn_progname in ranlib; do
05cbd757
PB
9070 if test -n "$ncn_tool_prefix"; then
9071 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9072set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074$as_echo_n "checking for $ac_word... " >&6; }
9075if test "${ac_cv_prog_RANLIB+set}" = set; then :
9076 $as_echo_n "(cached) " >&6
859789af
AC
9077else
9078 if test -n "$RANLIB"; then
9079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9080else
c6b750e1
DJ
9081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082for as_dir in $PATH
9083do
9084 IFS=$as_save_IFS
9085 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9086 for ac_exec_ext in '' $ac_executable_extensions; do
9087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9088 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9090 break 2
9091 fi
9092done
81ecdfbb
RW
9093 done
9094IFS=$as_save_IFS
c6b750e1 9095
859789af
AC
9096fi
9097fi
c6b750e1 9098RANLIB=$ac_cv_prog_RANLIB
859789af 9099if test -n "$RANLIB"; then
81ecdfbb
RW
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9101$as_echo "$RANLIB" >&6; }
859789af 9102else
81ecdfbb
RW
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104$as_echo "no" >&6; }
859789af
AC
9105fi
9106
81ecdfbb 9107
05cbd757
PB
9108 fi
9109 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9111set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113$as_echo_n "checking for $ac_word... " >&6; }
9114if test "${ac_cv_prog_RANLIB+set}" = set; then :
9115 $as_echo_n "(cached) " >&6
859789af 9116else
05cbd757
PB
9117 if test -n "$RANLIB"; then
9118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9119else
c6b750e1
DJ
9120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121for as_dir in $PATH
9122do
9123 IFS=$as_save_IFS
9124 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9125 for ac_exec_ext in '' $ac_executable_extensions; do
9126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9127 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9129 break 2
9130 fi
9131done
81ecdfbb
RW
9132 done
9133IFS=$as_save_IFS
c6b750e1 9134
859789af
AC
9135fi
9136fi
c6b750e1 9137RANLIB=$ac_cv_prog_RANLIB
05cbd757 9138if test -n "$RANLIB"; then
81ecdfbb
RW
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9140$as_echo "$RANLIB" >&6; }
859789af 9141else
81ecdfbb
RW
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143$as_echo "no" >&6; }
859789af 9144fi
c6b750e1 9145
81ecdfbb 9146
859789af 9147 fi
05cbd757
PB
9148 test -n "$ac_cv_prog_RANLIB" && break
9149done
9150
9151if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9152 RANLIB="true"
859789af
AC
9153fi
9154
9a819804
AO
9155
9156
9157if test -n "$STRIP"; then
9158 ac_cv_prog_STRIP=$STRIP
9159elif test -n "$ac_cv_prog_STRIP"; then
9160 STRIP=$ac_cv_prog_STRIP
9161fi
9162
9163if test -n "$ac_cv_prog_STRIP"; then
9164 for ncn_progname in strip; do
9165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9166set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9168$as_echo_n "checking for $ac_word... " >&6; }
9169if test "${ac_cv_prog_STRIP+set}" = set; then :
9170 $as_echo_n "(cached) " >&6
9a819804
AO
9171else
9172 if test -n "$STRIP"; then
9173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9174else
9175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9176for as_dir in $PATH
9177do
9178 IFS=$as_save_IFS
9179 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9180 for ac_exec_ext in '' $ac_executable_extensions; do
9181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9182 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9184 break 2
9185 fi
9186done
81ecdfbb
RW
9187 done
9188IFS=$as_save_IFS
9a819804
AO
9189
9190fi
9191fi
9192STRIP=$ac_cv_prog_STRIP
9193if test -n "$STRIP"; then
81ecdfbb
RW
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9195$as_echo "$STRIP" >&6; }
9a819804 9196else
81ecdfbb
RW
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9198$as_echo "no" >&6; }
9a819804
AO
9199fi
9200
81ecdfbb 9201
9a819804
AO
9202 done
9203fi
9204
9205for ncn_progname in strip; do
be01d343
PB
9206 if test -n "$ncn_tool_prefix"; then
9207 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9208set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210$as_echo_n "checking for $ac_word... " >&6; }
9211if test "${ac_cv_prog_STRIP+set}" = set; then :
9212 $as_echo_n "(cached) " >&6
be01d343
PB
9213else
9214 if test -n "$STRIP"; then
9215 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9216else
c6b750e1
DJ
9217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218for as_dir in $PATH
9219do
9220 IFS=$as_save_IFS
9221 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9222 for ac_exec_ext in '' $ac_executable_extensions; do
9223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9224 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9226 break 2
9227 fi
9228done
81ecdfbb
RW
9229 done
9230IFS=$as_save_IFS
c6b750e1 9231
be01d343
PB
9232fi
9233fi
c6b750e1 9234STRIP=$ac_cv_prog_STRIP
be01d343 9235if test -n "$STRIP"; then
81ecdfbb
RW
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9237$as_echo "$STRIP" >&6; }
be01d343 9238else
81ecdfbb
RW
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240$as_echo "no" >&6; }
be01d343
PB
9241fi
9242
81ecdfbb 9243
be01d343
PB
9244 fi
9245 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9247set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249$as_echo_n "checking for $ac_word... " >&6; }
9250if test "${ac_cv_prog_STRIP+set}" = set; then :
9251 $as_echo_n "(cached) " >&6
be01d343
PB
9252else
9253 if test -n "$STRIP"; then
9254 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9255else
c6b750e1
DJ
9256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257for as_dir in $PATH
9258do
9259 IFS=$as_save_IFS
9260 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9261 for ac_exec_ext in '' $ac_executable_extensions; do
9262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9263 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9265 break 2
9266 fi
9267done
81ecdfbb
RW
9268 done
9269IFS=$as_save_IFS
c6b750e1 9270
be01d343
PB
9271fi
9272fi
c6b750e1 9273STRIP=$ac_cv_prog_STRIP
be01d343 9274if test -n "$STRIP"; then
81ecdfbb
RW
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9276$as_echo "$STRIP" >&6; }
be01d343 9277else
81ecdfbb
RW
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279$as_echo "no" >&6; }
be01d343 9280fi
c6b750e1 9281
81ecdfbb 9282
be01d343
PB
9283 fi
9284 test -n "$ac_cv_prog_STRIP" && break
9285done
9286
9287if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9288 STRIP="true"
be01d343
PB
9289fi
9290
9a819804
AO
9291
9292
9293if test -n "$WINDRES"; then
9294 ac_cv_prog_WINDRES=$WINDRES
9295elif test -n "$ac_cv_prog_WINDRES"; then
9296 WINDRES=$ac_cv_prog_WINDRES
9297fi
9298
9299if test -n "$ac_cv_prog_WINDRES"; then
9300 for ncn_progname in windres; do
9301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9302set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304$as_echo_n "checking for $ac_word... " >&6; }
9305if test "${ac_cv_prog_WINDRES+set}" = set; then :
9306 $as_echo_n "(cached) " >&6
9a819804
AO
9307else
9308 if test -n "$WINDRES"; then
9309 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9310else
9311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312for as_dir in $PATH
9313do
9314 IFS=$as_save_IFS
9315 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9316 for ac_exec_ext in '' $ac_executable_extensions; do
9317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9318 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9320 break 2
9321 fi
9322done
81ecdfbb
RW
9323 done
9324IFS=$as_save_IFS
9a819804
AO
9325
9326fi
9327fi
9328WINDRES=$ac_cv_prog_WINDRES
9329if test -n "$WINDRES"; then
81ecdfbb
RW
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9331$as_echo "$WINDRES" >&6; }
9a819804 9332else
81ecdfbb
RW
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334$as_echo "no" >&6; }
9a819804
AO
9335fi
9336
81ecdfbb 9337
9a819804
AO
9338 done
9339fi
9340
9341for ncn_progname in windres; do
05cbd757
PB
9342 if test -n "$ncn_tool_prefix"; then
9343 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9344set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346$as_echo_n "checking for $ac_word... " >&6; }
9347if test "${ac_cv_prog_WINDRES+set}" = set; then :
9348 $as_echo_n "(cached) " >&6
859789af
AC
9349else
9350 if test -n "$WINDRES"; then
9351 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9352else
c6b750e1
DJ
9353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354for as_dir in $PATH
9355do
9356 IFS=$as_save_IFS
9357 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9358 for ac_exec_ext in '' $ac_executable_extensions; do
9359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9360 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9362 break 2
9363 fi
9364done
81ecdfbb
RW
9365 done
9366IFS=$as_save_IFS
c6b750e1 9367
859789af
AC
9368fi
9369fi
c6b750e1 9370WINDRES=$ac_cv_prog_WINDRES
859789af 9371if test -n "$WINDRES"; then
81ecdfbb
RW
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9373$as_echo "$WINDRES" >&6; }
859789af 9374else
81ecdfbb
RW
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376$as_echo "no" >&6; }
859789af
AC
9377fi
9378
81ecdfbb 9379
05cbd757
PB
9380 fi
9381 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9383set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385$as_echo_n "checking for $ac_word... " >&6; }
9386if test "${ac_cv_prog_WINDRES+set}" = set; then :
9387 $as_echo_n "(cached) " >&6
859789af 9388else
05cbd757
PB
9389 if test -n "$WINDRES"; then
9390 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9391else
c6b750e1
DJ
9392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393for as_dir in $PATH
9394do
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9399 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9401 break 2
9402 fi
9403done
81ecdfbb
RW
9404 done
9405IFS=$as_save_IFS
c6b750e1 9406
859789af
AC
9407fi
9408fi
c6b750e1 9409WINDRES=$ac_cv_prog_WINDRES
05cbd757 9410if test -n "$WINDRES"; then
81ecdfbb
RW
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9412$as_echo "$WINDRES" >&6; }
859789af 9413else
81ecdfbb
RW
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415$as_echo "no" >&6; }
859789af 9416fi
c6b750e1 9417
81ecdfbb 9418
05cbd757
PB
9419 fi
9420 test -n "$ac_cv_prog_WINDRES" && break
9421done
9422
9423if test -z "$ac_cv_prog_WINDRES" ; then
9424 set dummy windres
9425 if test $build = $host ; then
9426 WINDRES="$2"
859789af 9427 else
05cbd757 9428 WINDRES="${ncn_tool_prefix}$2"
859789af 9429 fi
859789af
AC
9430fi
9431
9a819804
AO
9432
9433
0c24b341
NC
9434if test -n "$WINDMC"; then
9435 ac_cv_prog_WINDMC=$WINDMC
9436elif test -n "$ac_cv_prog_WINDMC"; then
9437 WINDMC=$ac_cv_prog_WINDMC
9438fi
9439
9440if test -n "$ac_cv_prog_WINDMC"; then
9441 for ncn_progname in windmc; do
9442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9443set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9445$as_echo_n "checking for $ac_word... " >&6; }
9446if test "${ac_cv_prog_WINDMC+set}" = set; then :
9447 $as_echo_n "(cached) " >&6
0c24b341
NC
9448else
9449 if test -n "$WINDMC"; then
9450 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9451else
9452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453for as_dir in $PATH
9454do
9455 IFS=$as_save_IFS
9456 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9457 for ac_exec_ext in '' $ac_executable_extensions; do
9458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9459 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9461 break 2
9462 fi
9463done
81ecdfbb
RW
9464 done
9465IFS=$as_save_IFS
0c24b341
NC
9466
9467fi
9468fi
9469WINDMC=$ac_cv_prog_WINDMC
9470if test -n "$WINDMC"; then
81ecdfbb
RW
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9472$as_echo "$WINDMC" >&6; }
0c24b341 9473else
81ecdfbb
RW
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475$as_echo "no" >&6; }
0c24b341
NC
9476fi
9477
81ecdfbb 9478
0c24b341
NC
9479 done
9480fi
9481
9482for ncn_progname in windmc; do
9483 if test -n "$ncn_tool_prefix"; then
9484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9485set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9487$as_echo_n "checking for $ac_word... " >&6; }
9488if test "${ac_cv_prog_WINDMC+set}" = set; then :
9489 $as_echo_n "(cached) " >&6
0c24b341
NC
9490else
9491 if test -n "$WINDMC"; then
9492 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9493else
9494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9495for as_dir in $PATH
9496do
9497 IFS=$as_save_IFS
9498 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9499 for ac_exec_ext in '' $ac_executable_extensions; do
9500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9501 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9503 break 2
9504 fi
9505done
81ecdfbb
RW
9506 done
9507IFS=$as_save_IFS
0c24b341
NC
9508
9509fi
9510fi
9511WINDMC=$ac_cv_prog_WINDMC
9512if test -n "$WINDMC"; then
81ecdfbb
RW
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9514$as_echo "$WINDMC" >&6; }
0c24b341 9515else
81ecdfbb
RW
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517$as_echo "no" >&6; }
0c24b341
NC
9518fi
9519
81ecdfbb 9520
0c24b341
NC
9521 fi
9522 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9524set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526$as_echo_n "checking for $ac_word... " >&6; }
9527if test "${ac_cv_prog_WINDMC+set}" = set; then :
9528 $as_echo_n "(cached) " >&6
0c24b341
NC
9529else
9530 if test -n "$WINDMC"; then
9531 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9532else
9533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534for as_dir in $PATH
9535do
9536 IFS=$as_save_IFS
9537 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9538 for ac_exec_ext in '' $ac_executable_extensions; do
9539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9540 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9542 break 2
9543 fi
9544done
81ecdfbb
RW
9545 done
9546IFS=$as_save_IFS
0c24b341
NC
9547
9548fi
9549fi
9550WINDMC=$ac_cv_prog_WINDMC
9551if test -n "$WINDMC"; then
81ecdfbb
RW
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9553$as_echo "$WINDMC" >&6; }
0c24b341 9554else
81ecdfbb
RW
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556$as_echo "no" >&6; }
0c24b341
NC
9557fi
9558
81ecdfbb 9559
0c24b341
NC
9560 fi
9561 test -n "$ac_cv_prog_WINDMC" && break
9562done
9563
9564if test -z "$ac_cv_prog_WINDMC" ; then
9565 set dummy windmc
9566 if test $build = $host ; then
9567 WINDMC="$2"
9568 else
9569 WINDMC="${ncn_tool_prefix}$2"
9570 fi
9571fi
9572
9573
9574
9a819804
AO
9575if test -n "$OBJCOPY"; then
9576 ac_cv_prog_OBJCOPY=$OBJCOPY
9577elif test -n "$ac_cv_prog_OBJCOPY"; then
9578 OBJCOPY=$ac_cv_prog_OBJCOPY
9579fi
9580
9581if test -n "$ac_cv_prog_OBJCOPY"; then
9582 for ncn_progname in objcopy; do
9583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9584set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9586$as_echo_n "checking for $ac_word... " >&6; }
9587if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9588 $as_echo_n "(cached) " >&6
9a819804
AO
9589else
9590 if test -n "$OBJCOPY"; then
9591 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9592else
9593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9594for as_dir in $PATH
9595do
9596 IFS=$as_save_IFS
9597 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9598 for ac_exec_ext in '' $ac_executable_extensions; do
9599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9600 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9602 break 2
9603 fi
9604done
81ecdfbb
RW
9605 done
9606IFS=$as_save_IFS
9a819804
AO
9607
9608fi
9609fi
9610OBJCOPY=$ac_cv_prog_OBJCOPY
9611if test -n "$OBJCOPY"; then
81ecdfbb
RW
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9613$as_echo "$OBJCOPY" >&6; }
9a819804 9614else
81ecdfbb
RW
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9616$as_echo "no" >&6; }
9a819804
AO
9617fi
9618
81ecdfbb 9619
9a819804
AO
9620 done
9621fi
9622
9623for ncn_progname in objcopy; do
05cbd757
PB
9624 if test -n "$ncn_tool_prefix"; then
9625 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9626set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9628$as_echo_n "checking for $ac_word... " >&6; }
9629if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9630 $as_echo_n "(cached) " >&6
859789af
AC
9631else
9632 if test -n "$OBJCOPY"; then
9633 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9634else
c6b750e1
DJ
9635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636for as_dir in $PATH
9637do
9638 IFS=$as_save_IFS
9639 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9640 for ac_exec_ext in '' $ac_executable_extensions; do
9641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9642 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9644 break 2
9645 fi
9646done
81ecdfbb
RW
9647 done
9648IFS=$as_save_IFS
c6b750e1 9649
859789af
AC
9650fi
9651fi
c6b750e1 9652OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9653if test -n "$OBJCOPY"; then
81ecdfbb
RW
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9655$as_echo "$OBJCOPY" >&6; }
859789af 9656else
81ecdfbb
RW
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658$as_echo "no" >&6; }
859789af
AC
9659fi
9660
81ecdfbb 9661
05cbd757
PB
9662 fi
9663 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9665set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667$as_echo_n "checking for $ac_word... " >&6; }
9668if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9669 $as_echo_n "(cached) " >&6
859789af 9670else
05cbd757
PB
9671 if test -n "$OBJCOPY"; then
9672 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9673else
c6b750e1
DJ
9674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675for as_dir in $PATH
9676do
9677 IFS=$as_save_IFS
9678 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9679 for ac_exec_ext in '' $ac_executable_extensions; do
9680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9681 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9683 break 2
9684 fi
9685done
81ecdfbb
RW
9686 done
9687IFS=$as_save_IFS
c6b750e1 9688
859789af
AC
9689fi
9690fi
c6b750e1 9691OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9692if test -n "$OBJCOPY"; then
81ecdfbb
RW
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9694$as_echo "$OBJCOPY" >&6; }
859789af 9695else
81ecdfbb
RW
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697$as_echo "no" >&6; }
859789af 9698fi
c6b750e1 9699
81ecdfbb 9700
05cbd757
PB
9701 fi
9702 test -n "$ac_cv_prog_OBJCOPY" && break
9703done
9704
9705if test -z "$ac_cv_prog_OBJCOPY" ; then
9706 set dummy objcopy
9707 if test $build = $host ; then
9708 OBJCOPY="$2"
859789af 9709 else
05cbd757 9710 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9711 fi
859789af
AC
9712fi
9713
9a819804
AO
9714
9715
9716if test -n "$OBJDUMP"; then
9717 ac_cv_prog_OBJDUMP=$OBJDUMP
9718elif test -n "$ac_cv_prog_OBJDUMP"; then
9719 OBJDUMP=$ac_cv_prog_OBJDUMP
9720fi
9721
9722if test -n "$ac_cv_prog_OBJDUMP"; then
9723 for ncn_progname in objdump; do
9724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9725set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727$as_echo_n "checking for $ac_word... " >&6; }
9728if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9729 $as_echo_n "(cached) " >&6
9a819804
AO
9730else
9731 if test -n "$OBJDUMP"; then
9732 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9733else
9734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735for as_dir in $PATH
9736do
9737 IFS=$as_save_IFS
9738 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9739 for ac_exec_ext in '' $ac_executable_extensions; do
9740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9741 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9743 break 2
9744 fi
9745done
81ecdfbb
RW
9746 done
9747IFS=$as_save_IFS
9a819804
AO
9748
9749fi
9750fi
9751OBJDUMP=$ac_cv_prog_OBJDUMP
9752if test -n "$OBJDUMP"; then
81ecdfbb
RW
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9754$as_echo "$OBJDUMP" >&6; }
9a819804 9755else
81ecdfbb
RW
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757$as_echo "no" >&6; }
9a819804
AO
9758fi
9759
81ecdfbb 9760
9a819804
AO
9761 done
9762fi
9763
9764for ncn_progname in objdump; do
05cbd757
PB
9765 if test -n "$ncn_tool_prefix"; then
9766 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9767set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9769$as_echo_n "checking for $ac_word... " >&6; }
9770if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9771 $as_echo_n "(cached) " >&6
859789af
AC
9772else
9773 if test -n "$OBJDUMP"; then
9774 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9775else
c6b750e1
DJ
9776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9777for as_dir in $PATH
9778do
9779 IFS=$as_save_IFS
9780 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9781 for ac_exec_ext in '' $ac_executable_extensions; do
9782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9783 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9785 break 2
9786 fi
9787done
81ecdfbb
RW
9788 done
9789IFS=$as_save_IFS
c6b750e1 9790
859789af
AC
9791fi
9792fi
c6b750e1 9793OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9794if test -n "$OBJDUMP"; then
81ecdfbb
RW
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9796$as_echo "$OBJDUMP" >&6; }
859789af 9797else
81ecdfbb
RW
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9799$as_echo "no" >&6; }
859789af
AC
9800fi
9801
81ecdfbb 9802
05cbd757
PB
9803 fi
9804 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9806set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808$as_echo_n "checking for $ac_word... " >&6; }
9809if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9810 $as_echo_n "(cached) " >&6
859789af 9811else
05cbd757
PB
9812 if test -n "$OBJDUMP"; then
9813 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9814else
c6b750e1
DJ
9815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816for as_dir in $PATH
9817do
9818 IFS=$as_save_IFS
9819 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9822 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9824 break 2
9825 fi
9826done
81ecdfbb
RW
9827 done
9828IFS=$as_save_IFS
c6b750e1 9829
859789af
AC
9830fi
9831fi
c6b750e1 9832OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9833if test -n "$OBJDUMP"; then
81ecdfbb
RW
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9835$as_echo "$OBJDUMP" >&6; }
859789af 9836else
81ecdfbb
RW
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838$as_echo "no" >&6; }
859789af 9839fi
c6b750e1 9840
81ecdfbb 9841
05cbd757
PB
9842 fi
9843 test -n "$ac_cv_prog_OBJDUMP" && break
9844done
9845
9846if test -z "$ac_cv_prog_OBJDUMP" ; then
9847 set dummy objdump
9848 if test $build = $host ; then
9849 OBJDUMP="$2"
859789af 9850 else
05cbd757 9851 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9852 fi
859789af
AC
9853fi
9854
a0da8069
NN
9855
9856
b121d7d4
DD
9857if test -n "$READELF"; then
9858 ac_cv_prog_READELF=$READELF
9859elif test -n "$ac_cv_prog_READELF"; then
9860 READELF=$ac_cv_prog_READELF
9861fi
9862
9863if test -n "$ac_cv_prog_READELF"; then
9864 for ncn_progname in readelf; do
9865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9866set dummy ${ncn_progname}; ac_word=$2
9867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9868$as_echo_n "checking for $ac_word... " >&6; }
9869if test "${ac_cv_prog_READELF+set}" = set; then :
9870 $as_echo_n "(cached) " >&6
9871else
9872 if test -n "$READELF"; then
9873 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9874else
9875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876for as_dir in $PATH
9877do
9878 IFS=$as_save_IFS
9879 test -z "$as_dir" && as_dir=.
9880 for ac_exec_ext in '' $ac_executable_extensions; do
9881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9882 ac_cv_prog_READELF="${ncn_progname}"
9883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9884 break 2
9885 fi
9886done
9887 done
9888IFS=$as_save_IFS
9889
9890fi
9891fi
9892READELF=$ac_cv_prog_READELF
9893if test -n "$READELF"; then
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9895$as_echo "$READELF" >&6; }
9896else
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898$as_echo "no" >&6; }
9899fi
9900
9901
9902 done
9903fi
9904
9905for ncn_progname in readelf; do
9906 if test -n "$ncn_tool_prefix"; then
9907 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9908set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9910$as_echo_n "checking for $ac_word... " >&6; }
9911if test "${ac_cv_prog_READELF+set}" = set; then :
9912 $as_echo_n "(cached) " >&6
9913else
9914 if test -n "$READELF"; then
9915 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9916else
9917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918for as_dir in $PATH
9919do
9920 IFS=$as_save_IFS
9921 test -z "$as_dir" && as_dir=.
9922 for ac_exec_ext in '' $ac_executable_extensions; do
9923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9924 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9926 break 2
9927 fi
9928done
9929 done
9930IFS=$as_save_IFS
9931
9932fi
9933fi
9934READELF=$ac_cv_prog_READELF
9935if test -n "$READELF"; then
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9937$as_echo "$READELF" >&6; }
9938else
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940$as_echo "no" >&6; }
9941fi
9942
9943
9944 fi
9945 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9947set dummy ${ncn_progname}; ac_word=$2
9948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9949$as_echo_n "checking for $ac_word... " >&6; }
9950if test "${ac_cv_prog_READELF+set}" = set; then :
9951 $as_echo_n "(cached) " >&6
9952else
9953 if test -n "$READELF"; then
9954 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9955else
9956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957for as_dir in $PATH
9958do
9959 IFS=$as_save_IFS
9960 test -z "$as_dir" && as_dir=.
9961 for ac_exec_ext in '' $ac_executable_extensions; do
9962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9963 ac_cv_prog_READELF="${ncn_progname}"
9964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9965 break 2
9966 fi
9967done
9968 done
9969IFS=$as_save_IFS
9970
9971fi
9972fi
9973READELF=$ac_cv_prog_READELF
9974if test -n "$READELF"; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9976$as_echo "$READELF" >&6; }
9977else
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9979$as_echo "no" >&6; }
9980fi
9981
9982
9983 fi
9984 test -n "$ac_cv_prog_READELF" && break
9985done
9986
9987if test -z "$ac_cv_prog_READELF" ; then
9988 set dummy readelf
9989 if test $build = $host ; then
9990 READELF="$2"
9991 else
9992 READELF="${ncn_tool_prefix}$2"
9993 fi
9994fi
9995
9996
9997
a0da8069
NN
9998
9999
10000
be01d343 10001# Target tools.
c6b750e1 10002
81ecdfbb
RW
10003# Check whether --with-build-time-tools was given.
10004if test "${with_build_time_tools+set}" = set; then :
10005 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
10006 x/*) ;;
10007 *)
10008 with_build_time_tools=
81ecdfbb
RW
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10010$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
10011 ;;
10012 esac
859789af 10013else
2429c060 10014 with_build_time_tools=
81ecdfbb
RW
10015fi
10016
859789af 10017
9a819804
AO
10018
10019
10020if test -n "$CC_FOR_TARGET"; then
10021 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10022elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10023 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10024fi
10025
10026if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10027 for ncn_progname in cc gcc; do
10028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10029set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031$as_echo_n "checking for $ac_word... " >&6; }
10032if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10033 $as_echo_n "(cached) " >&6
9a819804
AO
10034else
10035 if test -n "$CC_FOR_TARGET"; then
10036 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10037else
10038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039for as_dir in $PATH
10040do
10041 IFS=$as_save_IFS
10042 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10043 for ac_exec_ext in '' $ac_executable_extensions; do
10044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10045 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10047 break 2
10048 fi
10049done
81ecdfbb
RW
10050 done
10051IFS=$as_save_IFS
9a819804
AO
10052
10053fi
10054fi
10055CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10056if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10058$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 10059else
81ecdfbb
RW
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061$as_echo "no" >&6; }
9a819804
AO
10062fi
10063
81ecdfbb 10064
9a819804
AO
10065 done
10066fi
10067
10068if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10069 for ncn_progname in cc gcc; do
81ecdfbb
RW
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10071$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10072 if test -x $with_build_time_tools/${ncn_progname}; then
10073 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10075$as_echo "yes" >&6; }
cac3d6c4 10076 break
2429c060 10077 else
81ecdfbb
RW
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079$as_echo "no" >&6; }
cac3d6c4
CM
10080 fi
10081 done
55db4b87
PB
10082fi
10083
2429c060
PB
10084if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10085 for ncn_progname in cc gcc; do
10086 if test -n "$ncn_target_tool_prefix"; then
10087 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10088set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090$as_echo_n "checking for $ac_word... " >&6; }
10091if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10092 $as_echo_n "(cached) " >&6
55db4b87
PB
10093else
10094 if test -n "$CC_FOR_TARGET"; then
10095 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10096else
c6b750e1
DJ
10097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098for as_dir in $PATH
10099do
10100 IFS=$as_save_IFS
10101 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10102 for ac_exec_ext in '' $ac_executable_extensions; do
10103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10104 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10106 break 2
10107 fi
10108done
81ecdfbb
RW
10109 done
10110IFS=$as_save_IFS
c6b750e1 10111
55db4b87
PB
10112fi
10113fi
c6b750e1 10114CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10115if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10117$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10118else
81ecdfbb
RW
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120$as_echo "no" >&6; }
55db4b87
PB
10121fi
10122
81ecdfbb 10123
2429c060
PB
10124 fi
10125 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10127set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10129$as_echo_n "checking for $ac_word... " >&6; }
10130if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10131 $as_echo_n "(cached) " >&6
55db4b87 10132else
05cbd757
PB
10133 if test -n "$CC_FOR_TARGET"; then
10134 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10135else
c6b750e1
DJ
10136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137for as_dir in $PATH
10138do
10139 IFS=$as_save_IFS
10140 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10141 for ac_exec_ext in '' $ac_executable_extensions; do
10142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10143 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10145 break 2
10146 fi
10147done
81ecdfbb
RW
10148 done
10149IFS=$as_save_IFS
c6b750e1 10150
55db4b87
PB
10151fi
10152fi
c6b750e1 10153CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10154if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10156$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10157else
81ecdfbb
RW
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10159$as_echo "no" >&6; }
55db4b87 10160fi
c6b750e1 10161
81ecdfbb 10162
2429c060
PB
10163 fi
10164 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10165 done
10166fi
c6b750e1 10167
05cbd757
PB
10168if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10169 set dummy cc gcc
10170 if test $build = $target ; then
10171 CC_FOR_TARGET="$2"
55db4b87 10172 else
05cbd757 10173 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10174 fi
d3f5afc4
MS
10175else
10176 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10177fi
10178
9a819804
AO
10179
10180
10181if test -n "$CXX_FOR_TARGET"; then
10182 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10183elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10184 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10185fi
10186
10187if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10188 for ncn_progname in c++ g++ cxx gxx; do
10189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10190set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192$as_echo_n "checking for $ac_word... " >&6; }
10193if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10194 $as_echo_n "(cached) " >&6
9a819804
AO
10195else
10196 if test -n "$CXX_FOR_TARGET"; then
10197 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10198else
10199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200for as_dir in $PATH
10201do
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10206 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10208 break 2
10209 fi
10210done
81ecdfbb
RW
10211 done
10212IFS=$as_save_IFS
9a819804
AO
10213
10214fi
10215fi
10216CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10217if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10219$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10220else
81ecdfbb
RW
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222$as_echo "no" >&6; }
9a819804
AO
10223fi
10224
81ecdfbb 10225
9a819804
AO
10226 done
10227fi
10228
10229if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10230 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10232$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10233 if test -x $with_build_time_tools/${ncn_progname}; then
10234 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10236$as_echo "yes" >&6; }
2429c060
PB
10237 break
10238 else
81ecdfbb
RW
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240$as_echo "no" >&6; }
2429c060
PB
10241 fi
10242 done
10243fi
10244
10245if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10246 for ncn_progname in c++ g++ cxx gxx; do
10247 if test -n "$ncn_target_tool_prefix"; then
10248 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10249set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251$as_echo_n "checking for $ac_word... " >&6; }
10252if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10253 $as_echo_n "(cached) " >&6
55db4b87
PB
10254else
10255 if test -n "$CXX_FOR_TARGET"; then
10256 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10257else
c6b750e1
DJ
10258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259for as_dir in $PATH
10260do
10261 IFS=$as_save_IFS
10262 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10263 for ac_exec_ext in '' $ac_executable_extensions; do
10264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10265 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10267 break 2
10268 fi
10269done
81ecdfbb
RW
10270 done
10271IFS=$as_save_IFS
c6b750e1 10272
55db4b87
PB
10273fi
10274fi
c6b750e1 10275CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10276if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10278$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10279else
81ecdfbb
RW
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281$as_echo "no" >&6; }
55db4b87
PB
10282fi
10283
81ecdfbb 10284
2429c060
PB
10285 fi
10286 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10288set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10290$as_echo_n "checking for $ac_word... " >&6; }
10291if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10292 $as_echo_n "(cached) " >&6
55db4b87 10293else
05cbd757
PB
10294 if test -n "$CXX_FOR_TARGET"; then
10295 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10296else
c6b750e1
DJ
10297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298for as_dir in $PATH
10299do
10300 IFS=$as_save_IFS
10301 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10302 for ac_exec_ext in '' $ac_executable_extensions; do
10303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10304 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10306 break 2
10307 fi
10308done
81ecdfbb
RW
10309 done
10310IFS=$as_save_IFS
c6b750e1 10311
55db4b87
PB
10312fi
10313fi
c6b750e1 10314CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10315if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10317$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10318else
81ecdfbb
RW
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320$as_echo "no" >&6; }
55db4b87 10321fi
c6b750e1 10322
81ecdfbb 10323
2429c060
PB
10324 fi
10325 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10326 done
10327fi
c6b750e1 10328
05cbd757
PB
10329if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10330 set dummy c++ g++ cxx gxx
10331 if test $build = $target ; then
10332 CXX_FOR_TARGET="$2"
55db4b87 10333 else
05cbd757 10334 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10335 fi
d3f5afc4
MS
10336else
10337 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10338fi
10339
9a819804
AO
10340
10341
10342if test -n "$GCC_FOR_TARGET"; then
10343 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10344elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10345 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10346fi
10347
10348if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10349 for ncn_progname in gcc; do
10350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10351set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353$as_echo_n "checking for $ac_word... " >&6; }
10354if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10355 $as_echo_n "(cached) " >&6
9a819804
AO
10356else
10357 if test -n "$GCC_FOR_TARGET"; then
10358 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10359else
10360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361for as_dir in $PATH
10362do
10363 IFS=$as_save_IFS
10364 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10367 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10369 break 2
10370 fi
10371done
81ecdfbb
RW
10372 done
10373IFS=$as_save_IFS
9a819804
AO
10374
10375fi
10376fi
10377GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10378if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10380$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10381else
81ecdfbb
RW
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383$as_echo "no" >&6; }
9a819804
AO
10384fi
10385
81ecdfbb 10386
9a819804
AO
10387 done
10388fi
10389
10390if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10391 for ncn_progname in gcc; do
81ecdfbb
RW
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10393$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10394 if test -x $with_build_time_tools/${ncn_progname}; then
10395 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10397$as_echo "yes" >&6; }
2429c060
PB
10398 break
10399 else
81ecdfbb
RW
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401$as_echo "no" >&6; }
2429c060
PB
10402 fi
10403 done
10404fi
10405
10406if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10407 for ncn_progname in gcc; do
10408 if test -n "$ncn_target_tool_prefix"; then
10409 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10410set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412$as_echo_n "checking for $ac_word... " >&6; }
10413if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10414 $as_echo_n "(cached) " >&6
859789af 10415else
2429c060
PB
10416 if test -n "$GCC_FOR_TARGET"; then
10417 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10418else
c6b750e1
DJ
10419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420for as_dir in $PATH
10421do
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10424 for ac_exec_ext in '' $ac_executable_extensions; do
10425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10426 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10428 break 2
10429 fi
10430done
81ecdfbb
RW
10431 done
10432IFS=$as_save_IFS
c6b750e1 10433
55db4b87
PB
10434fi
10435fi
c6b750e1 10436GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10437if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10439$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10440else
81ecdfbb
RW
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442$as_echo "no" >&6; }
55db4b87
PB
10443fi
10444
81ecdfbb 10445
2429c060
PB
10446 fi
10447 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10449set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10451$as_echo_n "checking for $ac_word... " >&6; }
10452if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10453 $as_echo_n "(cached) " >&6
55db4b87 10454else
05cbd757
PB
10455 if test -n "$GCC_FOR_TARGET"; then
10456 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10457else
c6b750e1
DJ
10458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459for as_dir in $PATH
10460do
10461 IFS=$as_save_IFS
10462 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10463 for ac_exec_ext in '' $ac_executable_extensions; do
10464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10465 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10467 break 2
10468 fi
10469done
81ecdfbb
RW
10470 done
10471IFS=$as_save_IFS
c6b750e1 10472
55db4b87
PB
10473fi
10474fi
c6b750e1 10475GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10476if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10478$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10479else
81ecdfbb
RW
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10481$as_echo "no" >&6; }
55db4b87 10482fi
c6b750e1 10483
81ecdfbb 10484
2429c060
PB
10485 fi
10486 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10487 done
10488fi
c6b750e1 10489
05cbd757
PB
10490if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10491 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10492else
10493 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10494fi
10495
9a819804
AO
10496
10497
10498if test -n "$GCJ_FOR_TARGET"; then
10499 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10500elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10501 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10502fi
10503
10504if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10505 for ncn_progname in gcj; do
10506 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10507set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10509$as_echo_n "checking for $ac_word... " >&6; }
10510if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10511 $as_echo_n "(cached) " >&6
9a819804
AO
10512else
10513 if test -n "$GCJ_FOR_TARGET"; then
10514 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10515else
10516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10517for as_dir in $PATH
10518do
10519 IFS=$as_save_IFS
10520 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10521 for ac_exec_ext in '' $ac_executable_extensions; do
10522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10523 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10525 break 2
10526 fi
10527done
81ecdfbb
RW
10528 done
10529IFS=$as_save_IFS
9a819804
AO
10530
10531fi
10532fi
10533GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10534if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10536$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10537else
81ecdfbb
RW
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539$as_echo "no" >&6; }
9a819804
AO
10540fi
10541
81ecdfbb 10542
9a819804
AO
10543 done
10544fi
10545
10546if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10547 for ncn_progname in gcj; do
81ecdfbb
RW
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10549$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10550 if test -x $with_build_time_tools/${ncn_progname}; then
10551 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10553$as_echo "yes" >&6; }
2429c060
PB
10554 break
10555 else
81ecdfbb
RW
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557$as_echo "no" >&6; }
2429c060
PB
10558 fi
10559 done
10560fi
10561
10562if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10563 for ncn_progname in gcj; do
10564 if test -n "$ncn_target_tool_prefix"; then
10565 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10566set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10568$as_echo_n "checking for $ac_word... " >&6; }
10569if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10570 $as_echo_n "(cached) " >&6
55db4b87
PB
10571else
10572 if test -n "$GCJ_FOR_TARGET"; then
10573 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10574else
c6b750e1
DJ
10575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576for as_dir in $PATH
10577do
10578 IFS=$as_save_IFS
10579 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10580 for ac_exec_ext in '' $ac_executable_extensions; do
10581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10582 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10584 break 2
10585 fi
10586done
81ecdfbb
RW
10587 done
10588IFS=$as_save_IFS
c6b750e1 10589
55db4b87
PB
10590fi
10591fi
9a819804
AO
10592GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10593if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10595$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10596else
81ecdfbb
RW
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598$as_echo "no" >&6; }
9a819804
AO
10599fi
10600
81ecdfbb 10601
9a819804
AO
10602 fi
10603 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10605set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10607$as_echo_n "checking for $ac_word... " >&6; }
10608if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10609 $as_echo_n "(cached) " >&6
9a819804
AO
10610else
10611 if test -n "$GCJ_FOR_TARGET"; then
10612 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10613else
10614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615for as_dir in $PATH
10616do
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10621 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10623 break 2
10624 fi
10625done
81ecdfbb
RW
10626 done
10627IFS=$as_save_IFS
9a819804
AO
10628
10629fi
10630fi
10631GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10632if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10634$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10635else
81ecdfbb
RW
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637$as_echo "no" >&6; }
9a819804
AO
10638fi
10639
81ecdfbb 10640
9a819804
AO
10641 fi
10642 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10643 done
10644fi
10645
10646if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10647 set dummy gcj
10648 if test $build = $target ; then
10649 GCJ_FOR_TARGET="$2"
10650 else
10651 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10652 fi
d3f5afc4
MS
10653else
10654 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10655fi
10656
10657
10658
10659if test -n "$GFORTRAN_FOR_TARGET"; then
10660 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10661elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10662 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10663fi
10664
9a819804
AO
10665if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10666 for ncn_progname in gfortran; do
10667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10668set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10670$as_echo_n "checking for $ac_word... " >&6; }
10671if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10672 $as_echo_n "(cached) " >&6
55db4b87 10673else
9a819804
AO
10674 if test -n "$GFORTRAN_FOR_TARGET"; then
10675 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10676else
c6b750e1
DJ
10677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678for as_dir in $PATH
10679do
10680 IFS=$as_save_IFS
10681 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10682 for ac_exec_ext in '' $ac_executable_extensions; do
10683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10684 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10686 break 2
10687 fi
10688done
81ecdfbb
RW
10689 done
10690IFS=$as_save_IFS
c6b750e1 10691
55db4b87
PB
10692fi
10693fi
9a819804
AO
10694GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10695if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10697$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10698else
81ecdfbb
RW
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700$as_echo "no" >&6; }
55db4b87 10701fi
c6b750e1 10702
81ecdfbb 10703
2429c060
PB
10704 done
10705fi
c6b750e1 10706
9a819804 10707if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10708 for ncn_progname in gfortran; do
81ecdfbb
RW
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10710$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10711 if test -x $with_build_time_tools/${ncn_progname}; then
10712 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10714$as_echo "yes" >&6; }
2429c060
PB
10715 break
10716 else
81ecdfbb
RW
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718$as_echo "no" >&6; }
2429c060
PB
10719 fi
10720 done
10721fi
10722
10723if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10724 for ncn_progname in gfortran; do
10725 if test -n "$ncn_target_tool_prefix"; then
10726 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10727set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10729$as_echo_n "checking for $ac_word... " >&6; }
10730if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10731 $as_echo_n "(cached) " >&6
55db4b87
PB
10732else
10733 if test -n "$GFORTRAN_FOR_TARGET"; then
10734 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10735else
c6b750e1
DJ
10736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10737for as_dir in $PATH
10738do
10739 IFS=$as_save_IFS
10740 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10741 for ac_exec_ext in '' $ac_executable_extensions; do
10742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10743 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10745 break 2
10746 fi
10747done
81ecdfbb
RW
10748 done
10749IFS=$as_save_IFS
c6b750e1 10750
55db4b87
PB
10751fi
10752fi
c6b750e1 10753GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10754if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10756$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10757else
81ecdfbb
RW
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759$as_echo "no" >&6; }
55db4b87
PB
10760fi
10761
81ecdfbb 10762
2429c060
PB
10763 fi
10764 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10766set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10768$as_echo_n "checking for $ac_word... " >&6; }
10769if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10770 $as_echo_n "(cached) " >&6
55db4b87 10771else
05cbd757 10772 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10773 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10774else
10775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10776for as_dir in $PATH
10777do
10778 IFS=$as_save_IFS
10779 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10780 for ac_exec_ext in '' $ac_executable_extensions; do
10781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10782 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10784 break 2
10785 fi
10786done
81ecdfbb
RW
10787 done
10788IFS=$as_save_IFS
c6b750e1 10789
55db4b87
PB
10790fi
10791fi
c6b750e1 10792GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10793if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10795$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10796else
81ecdfbb
RW
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10798$as_echo "no" >&6; }
55db4b87 10799fi
c6b750e1 10800
81ecdfbb 10801
2429c060
PB
10802 fi
10803 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10804 done
10805fi
c6b750e1 10806
05cbd757
PB
10807if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10808 set dummy gfortran
10809 if test $build = $target ; then
10810 GFORTRAN_FOR_TARGET="$2"
55db4b87 10811 else
05cbd757 10812 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10813 fi
d3f5afc4
MS
10814else
10815 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10816fi
10817
2429c060
PB
10818
10819
e552509b
ILT
10820if test -n "$GOC_FOR_TARGET"; then
10821 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10822elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10823 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10824fi
10825
10826if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10827 for ncn_progname in gccgo; do
10828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10829set dummy ${ncn_progname}; ac_word=$2
10830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10831$as_echo_n "checking for $ac_word... " >&6; }
10832if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10833 $as_echo_n "(cached) " >&6
10834else
10835 if test -n "$GOC_FOR_TARGET"; then
10836 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10837else
10838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839for as_dir in $PATH
10840do
10841 IFS=$as_save_IFS
10842 test -z "$as_dir" && as_dir=.
10843 for ac_exec_ext in '' $ac_executable_extensions; do
10844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10845 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10847 break 2
10848 fi
10849done
10850 done
10851IFS=$as_save_IFS
10852
10853fi
10854fi
10855GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10856if test -n "$GOC_FOR_TARGET"; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10858$as_echo "$GOC_FOR_TARGET" >&6; }
10859else
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861$as_echo "no" >&6; }
10862fi
10863
10864
10865 done
10866fi
10867
10868if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10869 for ncn_progname in gccgo; do
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10871$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10872 if test -x $with_build_time_tools/${ncn_progname}; then
10873 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10875$as_echo "yes" >&6; }
10876 break
10877 else
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879$as_echo "no" >&6; }
10880 fi
10881 done
10882fi
10883
10884if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10885 for ncn_progname in gccgo; do
10886 if test -n "$ncn_target_tool_prefix"; then
10887 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10888set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10890$as_echo_n "checking for $ac_word... " >&6; }
10891if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10892 $as_echo_n "(cached) " >&6
10893else
10894 if test -n "$GOC_FOR_TARGET"; then
10895 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10896else
10897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10898for as_dir in $PATH
10899do
10900 IFS=$as_save_IFS
10901 test -z "$as_dir" && as_dir=.
10902 for ac_exec_ext in '' $ac_executable_extensions; do
10903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10904 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10906 break 2
10907 fi
10908done
10909 done
10910IFS=$as_save_IFS
10911
10912fi
10913fi
10914GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10915if test -n "$GOC_FOR_TARGET"; then
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10917$as_echo "$GOC_FOR_TARGET" >&6; }
10918else
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10920$as_echo "no" >&6; }
10921fi
10922
10923
10924 fi
10925 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10927set dummy ${ncn_progname}; ac_word=$2
10928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10929$as_echo_n "checking for $ac_word... " >&6; }
10930if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10931 $as_echo_n "(cached) " >&6
10932else
10933 if test -n "$GOC_FOR_TARGET"; then
10934 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10935else
10936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937for as_dir in $PATH
10938do
10939 IFS=$as_save_IFS
10940 test -z "$as_dir" && as_dir=.
10941 for ac_exec_ext in '' $ac_executable_extensions; do
10942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10943 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10945 break 2
10946 fi
10947done
10948 done
10949IFS=$as_save_IFS
10950
10951fi
10952fi
10953GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10954if test -n "$GOC_FOR_TARGET"; then
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10956$as_echo "$GOC_FOR_TARGET" >&6; }
10957else
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959$as_echo "no" >&6; }
10960fi
10961
10962
10963 fi
10964 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10965 done
10966fi
10967
10968if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10969 set dummy gccgo
10970 if test $build = $target ; then
10971 GOC_FOR_TARGET="$2"
10972 else
10973 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10974 fi
10975else
10976 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10977fi
10978
10979
10980
2429c060
PB
10981cat > conftest.c << \EOF
10982#ifdef __GNUC__
10983 gcc_yay;
10984#endif
10985EOF
10986if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10987 have_gcc_for_target=yes
859789af 10988else
2429c060
PB
10989 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10990 have_gcc_for_target=no
859789af 10991fi
2429c060
PB
10992rm conftest.c
10993
10994
10995
859789af 10996
2429c060
PB
10997if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10998 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11000$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11001 if test -x $with_build_time_tools/ar; then
11002 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11003 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11005$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 11006 else
81ecdfbb
RW
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008$as_echo "no" >&6; }
3a35eeb3 11009 fi
2429c060
PB
11010 elif test $build != $host && test $have_gcc_for_target = yes; then
11011 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
11012 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11013 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 11014 fi
2429c060 11015fi
c6b750e1 11016if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11017 # Extract the first word of "ar", so it can be a program name with args.
11018set dummy ar; ac_word=$2
81ecdfbb
RW
11019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11020$as_echo_n "checking for $ac_word... " >&6; }
11021if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11022 $as_echo_n "(cached) " >&6
859789af 11023else
c6b750e1
DJ
11024 case $AR_FOR_TARGET in
11025 [\\/]* | ?:[\\/]*)
2429c060
PB
11026 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11027 ;;
2429c060 11028 *)
c6b750e1
DJ
11029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030for as_dir in $gcc_cv_tool_dirs
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_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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
2429c060
PB
11044 ;;
11045esac
859789af 11046fi
c6b750e1 11047AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 11048if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11050$as_echo "$AR_FOR_TARGET" >&6; }
859789af 11051else
81ecdfbb
RW
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053$as_echo "no" >&6; }
859789af 11054fi
05cbd757 11055
81ecdfbb 11056
2429c060
PB
11057fi
11058if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
11059
11060
11061if test -n "$AR_FOR_TARGET"; then
11062 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11063elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11064 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11065fi
11066
11067if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11068 for ncn_progname in ar; do
11069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11070set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072$as_echo_n "checking for $ac_word... " >&6; }
11073if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11074 $as_echo_n "(cached) " >&6
9a819804
AO
11075else
11076 if test -n "$AR_FOR_TARGET"; then
11077 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11078else
11079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080for as_dir in $PATH
11081do
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11086 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11088 break 2
11089 fi
11090done
81ecdfbb
RW
11091 done
11092IFS=$as_save_IFS
9a819804
AO
11093
11094fi
11095fi
11096AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11097if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11099$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 11100else
81ecdfbb
RW
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102$as_echo "no" >&6; }
9a819804
AO
11103fi
11104
81ecdfbb 11105
9a819804
AO
11106 done
11107fi
11108
11109if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11110 for ncn_progname in ar; do
81ecdfbb
RW
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11112$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11113 if test -x $with_build_time_tools/${ncn_progname}; then
11114 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11116$as_echo "yes" >&6; }
2429c060
PB
11117 break
11118 else
81ecdfbb
RW
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120$as_echo "no" >&6; }
2429c060
PB
11121 fi
11122 done
859789af
AC
11123fi
11124
2429c060
PB
11125if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11126 for ncn_progname in ar; do
11127 if test -n "$ncn_target_tool_prefix"; then
11128 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11129set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11131$as_echo_n "checking for $ac_word... " >&6; }
11132if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11133 $as_echo_n "(cached) " >&6
7e0f7140 11134else
2429c060
PB
11135 if test -n "$AR_FOR_TARGET"; then
11136 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 11137else
c6b750e1
DJ
11138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139for as_dir in $PATH
11140do
11141 IFS=$as_save_IFS
11142 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11143 for ac_exec_ext in '' $ac_executable_extensions; do
11144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11145 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11147 break 2
11148 fi
11149done
81ecdfbb
RW
11150 done
11151IFS=$as_save_IFS
c6b750e1 11152
7e0f7140
GK
11153fi
11154fi
c6b750e1 11155AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11156if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11158$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11159else
81ecdfbb
RW
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161$as_echo "no" >&6; }
7e0f7140
GK
11162fi
11163
81ecdfbb 11164
2429c060
PB
11165 fi
11166 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11168set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11170$as_echo_n "checking for $ac_word... " >&6; }
11171if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11172 $as_echo_n "(cached) " >&6
7e0f7140 11173else
2429c060
PB
11174 if test -n "$AR_FOR_TARGET"; then
11175 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 11176else
c6b750e1
DJ
11177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178for as_dir in $PATH
11179do
11180 IFS=$as_save_IFS
11181 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11182 for ac_exec_ext in '' $ac_executable_extensions; do
11183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11184 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11186 break 2
11187 fi
11188done
81ecdfbb
RW
11189 done
11190IFS=$as_save_IFS
c6b750e1 11191
7e0f7140
GK
11192fi
11193fi
c6b750e1 11194AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11195if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11197$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11198else
81ecdfbb
RW
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200$as_echo "no" >&6; }
7e0f7140 11201fi
c6b750e1 11202
81ecdfbb 11203
2429c060
PB
11204 fi
11205 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11206 done
11207fi
c6b750e1 11208
2429c060
PB
11209if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11210 set dummy ar
7e0f7140 11211 if test $build = $target ; then
2429c060 11212 AR_FOR_TARGET="$2"
7e0f7140 11213 else
2429c060 11214 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11215 fi
d3f5afc4
MS
11216else
11217 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11218fi
11219
3a35eeb3
PB
11220else
11221 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11222fi
11223
11224
11225
11226
11227if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11228 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11230$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11231 if test -x $with_build_time_tools/as; then
11232 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11233 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11235$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11236 else
81ecdfbb
RW
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238$as_echo "no" >&6; }
3a35eeb3 11239 fi
2429c060
PB
11240 elif test $build != $host && test $have_gcc_for_target = yes; then
11241 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11242 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11243 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11244 fi
11245fi
c6b750e1 11246if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11247 # Extract the first word of "as", so it can be a program name with args.
11248set dummy as; ac_word=$2
81ecdfbb
RW
11249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11250$as_echo_n "checking for $ac_word... " >&6; }
11251if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11252 $as_echo_n "(cached) " >&6
2429c060 11253else
c6b750e1
DJ
11254 case $AS_FOR_TARGET in
11255 [\\/]* | ?:[\\/]*)
2429c060
PB
11256 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11257 ;;
2429c060 11258 *)
c6b750e1
DJ
11259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260for as_dir in $gcc_cv_tool_dirs
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_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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
11274 ;;
11275esac
11276fi
c6b750e1 11277AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11278if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11280$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11281else
81ecdfbb
RW
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11283$as_echo "no" >&6; }
2429c060
PB
11284fi
11285
81ecdfbb 11286
2429c060
PB
11287fi
11288if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11289
11290
11291if test -n "$AS_FOR_TARGET"; then
11292 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11293elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11294 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11295fi
11296
11297if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11298 for ncn_progname in as; do
11299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11300set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11302$as_echo_n "checking for $ac_word... " >&6; }
11303if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
9a819804
AO
11305else
11306 if test -n "$AS_FOR_TARGET"; then
11307 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11308else
11309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11310for as_dir in $PATH
11311do
11312 IFS=$as_save_IFS
11313 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11314 for ac_exec_ext in '' $ac_executable_extensions; do
11315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11316 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11318 break 2
11319 fi
11320done
81ecdfbb
RW
11321 done
11322IFS=$as_save_IFS
9a819804
AO
11323
11324fi
11325fi
11326AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11327if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11329$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11330else
81ecdfbb
RW
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332$as_echo "no" >&6; }
9a819804
AO
11333fi
11334
81ecdfbb 11335
9a819804
AO
11336 done
11337fi
11338
11339if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11340 for ncn_progname in as; do
81ecdfbb
RW
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11342$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11343 if test -x $with_build_time_tools/${ncn_progname}; then
11344 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11346$as_echo "yes" >&6; }
2429c060
PB
11347 break
11348 else
81ecdfbb
RW
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350$as_echo "no" >&6; }
2429c060
PB
11351 fi
11352 done
11353fi
11354
11355if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11356 for ncn_progname in as; do
11357 if test -n "$ncn_target_tool_prefix"; then
11358 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11359set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11361$as_echo_n "checking for $ac_word... " >&6; }
11362if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11363 $as_echo_n "(cached) " >&6
2429c060
PB
11364else
11365 if test -n "$AS_FOR_TARGET"; then
11366 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11367else
c6b750e1
DJ
11368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11369for as_dir in $PATH
11370do
11371 IFS=$as_save_IFS
11372 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11373 for ac_exec_ext in '' $ac_executable_extensions; do
11374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11375 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11377 break 2
11378 fi
11379done
81ecdfbb
RW
11380 done
11381IFS=$as_save_IFS
c6b750e1 11382
2429c060
PB
11383fi
11384fi
c6b750e1 11385AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11386if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11388$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11389else
81ecdfbb
RW
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391$as_echo "no" >&6; }
2429c060
PB
11392fi
11393
81ecdfbb 11394
2429c060
PB
11395 fi
11396 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11398set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11400$as_echo_n "checking for $ac_word... " >&6; }
11401if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11402 $as_echo_n "(cached) " >&6
2429c060
PB
11403else
11404 if test -n "$AS_FOR_TARGET"; then
11405 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11406else
c6b750e1
DJ
11407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408for as_dir in $PATH
11409do
11410 IFS=$as_save_IFS
11411 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11414 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11416 break 2
11417 fi
11418done
81ecdfbb
RW
11419 done
11420IFS=$as_save_IFS
c6b750e1 11421
2429c060
PB
11422fi
11423fi
c6b750e1 11424AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11425if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11427$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11428else
81ecdfbb
RW
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11430$as_echo "no" >&6; }
2429c060 11431fi
c6b750e1 11432
81ecdfbb 11433
2429c060
PB
11434 fi
11435 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11436 done
11437fi
c6b750e1 11438
2429c060
PB
11439if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11440 set dummy as
11441 if test $build = $target ; then
11442 AS_FOR_TARGET="$2"
11443 else
11444 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11445 fi
d3f5afc4
MS
11446else
11447 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11448fi
11449
3a35eeb3
PB
11450else
11451 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11452fi
11453
11454
11455
11456
11457if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11458 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11460$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11461 if test -x $with_build_time_tools/dlltool; then
11462 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11463 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11465$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11466 else
81ecdfbb
RW
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468$as_echo "no" >&6; }
3a35eeb3 11469 fi
2429c060
PB
11470 elif test $build != $host && test $have_gcc_for_target = yes; then
11471 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11472 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11473 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11474 fi
11475fi
c6b750e1 11476if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11477 # Extract the first word of "dlltool", so it can be a program name with args.
11478set dummy dlltool; ac_word=$2
81ecdfbb
RW
11479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11480$as_echo_n "checking for $ac_word... " >&6; }
11481if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11482 $as_echo_n "(cached) " >&6
2429c060 11483else
c6b750e1
DJ
11484 case $DLLTOOL_FOR_TARGET in
11485 [\\/]* | ?:[\\/]*)
2429c060
PB
11486 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11487 ;;
2429c060 11488 *)
c6b750e1
DJ
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490for as_dir in $gcc_cv_tool_dirs
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_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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
11504 ;;
11505esac
11506fi
c6b750e1 11507DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11508if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11510$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11511else
81ecdfbb
RW
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513$as_echo "no" >&6; }
2429c060
PB
11514fi
11515
81ecdfbb 11516
2429c060
PB
11517fi
11518if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11519
11520
11521if test -n "$DLLTOOL_FOR_TARGET"; then
11522 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11523elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11524 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11525fi
11526
11527if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11528 for ncn_progname in dlltool; do
11529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11530set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11532$as_echo_n "checking for $ac_word... " >&6; }
11533if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11534 $as_echo_n "(cached) " >&6
9a819804
AO
11535else
11536 if test -n "$DLLTOOL_FOR_TARGET"; then
11537 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11538else
11539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540for as_dir in $PATH
11541do
11542 IFS=$as_save_IFS
11543 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11544 for ac_exec_ext in '' $ac_executable_extensions; do
11545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11546 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11548 break 2
11549 fi
11550done
81ecdfbb
RW
11551 done
11552IFS=$as_save_IFS
9a819804
AO
11553
11554fi
11555fi
11556DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11557if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11559$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11560else
81ecdfbb
RW
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11562$as_echo "no" >&6; }
9a819804
AO
11563fi
11564
81ecdfbb 11565
9a819804
AO
11566 done
11567fi
11568
11569if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11570 for ncn_progname in dlltool; do
81ecdfbb
RW
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11572$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11573 if test -x $with_build_time_tools/${ncn_progname}; then
11574 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11576$as_echo "yes" >&6; }
2429c060
PB
11577 break
11578 else
81ecdfbb
RW
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580$as_echo "no" >&6; }
2429c060
PB
11581 fi
11582 done
11583fi
11584
11585if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11586 for ncn_progname in dlltool; do
11587 if test -n "$ncn_target_tool_prefix"; then
11588 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11589set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11591$as_echo_n "checking for $ac_word... " >&6; }
11592if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11593 $as_echo_n "(cached) " >&6
2429c060
PB
11594else
11595 if test -n "$DLLTOOL_FOR_TARGET"; then
11596 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11597else
c6b750e1
DJ
11598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11599for as_dir in $PATH
11600do
11601 IFS=$as_save_IFS
11602 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11603 for ac_exec_ext in '' $ac_executable_extensions; do
11604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11605 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11607 break 2
11608 fi
11609done
81ecdfbb
RW
11610 done
11611IFS=$as_save_IFS
c6b750e1 11612
2429c060
PB
11613fi
11614fi
c6b750e1 11615DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11616if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11618$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11619else
81ecdfbb
RW
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621$as_echo "no" >&6; }
2429c060
PB
11622fi
11623
81ecdfbb 11624
2429c060
PB
11625 fi
11626 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11628set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11630$as_echo_n "checking for $ac_word... " >&6; }
11631if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11632 $as_echo_n "(cached) " >&6
2429c060
PB
11633else
11634 if test -n "$DLLTOOL_FOR_TARGET"; then
11635 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11636else
c6b750e1
DJ
11637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638for as_dir in $PATH
11639do
11640 IFS=$as_save_IFS
11641 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11642 for ac_exec_ext in '' $ac_executable_extensions; do
11643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11644 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11646 break 2
11647 fi
11648done
81ecdfbb
RW
11649 done
11650IFS=$as_save_IFS
c6b750e1 11651
2429c060
PB
11652fi
11653fi
c6b750e1 11654DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11655if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11657$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11658else
81ecdfbb
RW
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660$as_echo "no" >&6; }
2429c060 11661fi
c6b750e1 11662
81ecdfbb 11663
2429c060
PB
11664 fi
11665 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11666 done
11667fi
c6b750e1 11668
2429c060
PB
11669if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11670 set dummy dlltool
11671 if test $build = $target ; then
11672 DLLTOOL_FOR_TARGET="$2"
11673 else
11674 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11675 fi
d3f5afc4
MS
11676else
11677 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11678fi
11679
3a35eeb3
PB
11680else
11681 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11682fi
11683
11684
11685
11686
11687if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11688 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11690$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11691 if test -x $with_build_time_tools/ld; then
11692 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11693 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11695$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11696 else
81ecdfbb
RW
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698$as_echo "no" >&6; }
3a35eeb3 11699 fi
2429c060
PB
11700 elif test $build != $host && test $have_gcc_for_target = yes; then
11701 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11702 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11703 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11704 fi
11705fi
c6b750e1 11706if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11707 # Extract the first word of "ld", so it can be a program name with args.
11708set dummy ld; ac_word=$2
81ecdfbb
RW
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11710$as_echo_n "checking for $ac_word... " >&6; }
11711if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11712 $as_echo_n "(cached) " >&6
2429c060 11713else
c6b750e1
DJ
11714 case $LD_FOR_TARGET in
11715 [\\/]* | ?:[\\/]*)
2429c060
PB
11716 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11717 ;;
2429c060 11718 *)
c6b750e1
DJ
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720for as_dir in $gcc_cv_tool_dirs
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_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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
11734 ;;
11735esac
11736fi
c6b750e1 11737LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11738if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11740$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11741else
81ecdfbb
RW
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743$as_echo "no" >&6; }
2429c060
PB
11744fi
11745
81ecdfbb 11746
2429c060
PB
11747fi
11748if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11749
11750
11751if test -n "$LD_FOR_TARGET"; then
11752 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11753elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11754 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11755fi
11756
11757if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11758 for ncn_progname in ld; do
11759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11760set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11762$as_echo_n "checking for $ac_word... " >&6; }
11763if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11764 $as_echo_n "(cached) " >&6
9a819804
AO
11765else
11766 if test -n "$LD_FOR_TARGET"; then
11767 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11768else
11769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11770for as_dir in $PATH
11771do
11772 IFS=$as_save_IFS
11773 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11774 for ac_exec_ext in '' $ac_executable_extensions; do
11775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11776 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11778 break 2
11779 fi
11780done
81ecdfbb
RW
11781 done
11782IFS=$as_save_IFS
9a819804
AO
11783
11784fi
11785fi
11786LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11787if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11789$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11790else
81ecdfbb
RW
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792$as_echo "no" >&6; }
9a819804
AO
11793fi
11794
81ecdfbb 11795
9a819804
AO
11796 done
11797fi
11798
11799if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11800 for ncn_progname in ld; do
81ecdfbb
RW
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11802$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11803 if test -x $with_build_time_tools/${ncn_progname}; then
11804 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11806$as_echo "yes" >&6; }
2429c060
PB
11807 break
11808 else
81ecdfbb
RW
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810$as_echo "no" >&6; }
2429c060
PB
11811 fi
11812 done
11813fi
11814
11815if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11816 for ncn_progname in ld; do
11817 if test -n "$ncn_target_tool_prefix"; then
11818 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11819set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821$as_echo_n "checking for $ac_word... " >&6; }
11822if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11823 $as_echo_n "(cached) " >&6
2429c060
PB
11824else
11825 if test -n "$LD_FOR_TARGET"; then
11826 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11827else
c6b750e1
DJ
11828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829for as_dir in $PATH
11830do
11831 IFS=$as_save_IFS
11832 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11833 for ac_exec_ext in '' $ac_executable_extensions; do
11834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11835 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11837 break 2
11838 fi
11839done
81ecdfbb
RW
11840 done
11841IFS=$as_save_IFS
c6b750e1 11842
2429c060
PB
11843fi
11844fi
c6b750e1 11845LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11846if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11848$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11849else
81ecdfbb
RW
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851$as_echo "no" >&6; }
2429c060
PB
11852fi
11853
81ecdfbb 11854
2429c060
PB
11855 fi
11856 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11858set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11860$as_echo_n "checking for $ac_word... " >&6; }
11861if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11862 $as_echo_n "(cached) " >&6
2429c060
PB
11863else
11864 if test -n "$LD_FOR_TARGET"; then
11865 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11866else
c6b750e1
DJ
11867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868for as_dir in $PATH
11869do
11870 IFS=$as_save_IFS
11871 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11874 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11876 break 2
11877 fi
11878done
81ecdfbb
RW
11879 done
11880IFS=$as_save_IFS
c6b750e1 11881
2429c060
PB
11882fi
11883fi
c6b750e1 11884LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11885if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11887$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11888else
81ecdfbb
RW
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890$as_echo "no" >&6; }
2429c060 11891fi
c6b750e1 11892
81ecdfbb 11893
2429c060
PB
11894 fi
11895 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11896 done
11897fi
c6b750e1 11898
2429c060
PB
11899if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11900 set dummy ld
11901 if test $build = $target ; then
11902 LD_FOR_TARGET="$2"
11903 else
11904 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11905 fi
d3f5afc4
MS
11906else
11907 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11908fi
11909
3a35eeb3
PB
11910else
11911 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11912fi
11913
11914
11915
11916
11917if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11918 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11920$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11921 if test -x $with_build_time_tools/lipo; then
11922 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11923 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11925$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11926 else
81ecdfbb
RW
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928$as_echo "no" >&6; }
3a35eeb3 11929 fi
2429c060
PB
11930 elif test $build != $host && test $have_gcc_for_target = yes; then
11931 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11932 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11933 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11934 fi
11935fi
9a819804
AO
11936if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11937 # Extract the first word of "lipo", so it can be a program name with args.
11938set dummy lipo; ac_word=$2
81ecdfbb
RW
11939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940$as_echo_n "checking for $ac_word... " >&6; }
11941if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11942 $as_echo_n "(cached) " >&6
9a819804
AO
11943else
11944 case $LIPO_FOR_TARGET in
11945 [\\/]* | ?:[\\/]*)
11946 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11947 ;;
11948 *)
11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950for as_dir in $gcc_cv_tool_dirs
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
9a819804 11956 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11958 break 2
11959 fi
11960done
81ecdfbb
RW
11961 done
11962IFS=$as_save_IFS
9a819804
AO
11963
11964 ;;
11965esac
11966fi
11967LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11968if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11970$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11971else
81ecdfbb
RW
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973$as_echo "no" >&6; }
9a819804
AO
11974fi
11975
81ecdfbb 11976
9a819804
AO
11977fi
11978if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11979
11980
11981if test -n "$LIPO_FOR_TARGET"; then
11982 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11983elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11984 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11985fi
11986
11987if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11988 for ncn_progname in lipo; do
11989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11990set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11992$as_echo_n "checking for $ac_word... " >&6; }
11993if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
2429c060 11995else
9a819804
AO
11996 if test -n "$LIPO_FOR_TARGET"; then
11997 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11998else
11999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000for as_dir in $PATH
c6b750e1
DJ
12001do
12002 IFS=$as_save_IFS
12003 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12004 for ac_exec_ext in '' $ac_executable_extensions; do
12005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12006 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12008 break 2
12009 fi
12010done
81ecdfbb
RW
12011 done
12012IFS=$as_save_IFS
c6b750e1 12013
2429c060 12014fi
9a819804
AO
12015fi
12016LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12017if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12019$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12020else
81ecdfbb
RW
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022$as_echo "no" >&6; }
2429c060
PB
12023fi
12024
81ecdfbb 12025
9a819804 12026 done
2429c060 12027fi
9a819804
AO
12028
12029if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12030 for ncn_progname in lipo; do
81ecdfbb
RW
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12032$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12033 if test -x $with_build_time_tools/${ncn_progname}; then
12034 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036$as_echo "yes" >&6; }
2429c060
PB
12037 break
12038 else
81ecdfbb
RW
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040$as_echo "no" >&6; }
2429c060
PB
12041 fi
12042 done
12043fi
12044
12045if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12046 for ncn_progname in lipo; do
12047 if test -n "$ncn_target_tool_prefix"; then
12048 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12049set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051$as_echo_n "checking for $ac_word... " >&6; }
12052if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12053 $as_echo_n "(cached) " >&6
2429c060
PB
12054else
12055 if test -n "$LIPO_FOR_TARGET"; then
12056 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12057else
c6b750e1
DJ
12058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059for as_dir in $PATH
12060do
12061 IFS=$as_save_IFS
12062 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12063 for ac_exec_ext in '' $ac_executable_extensions; do
12064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12065 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12067 break 2
12068 fi
12069done
81ecdfbb
RW
12070 done
12071IFS=$as_save_IFS
c6b750e1 12072
2429c060
PB
12073fi
12074fi
c6b750e1 12075LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12076if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12078$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12079else
81ecdfbb
RW
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081$as_echo "no" >&6; }
2429c060
PB
12082fi
12083
81ecdfbb 12084
2429c060
PB
12085 fi
12086 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12088set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12090$as_echo_n "checking for $ac_word... " >&6; }
12091if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12092 $as_echo_n "(cached) " >&6
2429c060
PB
12093else
12094 if test -n "$LIPO_FOR_TARGET"; then
12095 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12096else
c6b750e1
DJ
12097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098for as_dir in $PATH
12099do
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12104 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12106 break 2
12107 fi
12108done
81ecdfbb
RW
12109 done
12110IFS=$as_save_IFS
c6b750e1 12111
2429c060
PB
12112fi
12113fi
c6b750e1 12114LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12115if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12117$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12118else
81ecdfbb
RW
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120$as_echo "no" >&6; }
2429c060 12121fi
c6b750e1 12122
81ecdfbb 12123
2429c060
PB
12124 fi
12125 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12126 done
12127fi
c6b750e1 12128
2429c060
PB
12129if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12130 set dummy lipo
12131 if test $build = $target ; then
12132 LIPO_FOR_TARGET="$2"
12133 else
12134 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12135 fi
d3f5afc4
MS
12136else
12137 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
12138fi
12139
3a35eeb3
PB
12140else
12141 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
12142fi
12143
12144
12145
12146
12147if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12148 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12150$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12151 if test -x $with_build_time_tools/nm; then
12152 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12153 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12155$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 12156 else
81ecdfbb
RW
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158$as_echo "no" >&6; }
3a35eeb3 12159 fi
2429c060
PB
12160 elif test $build != $host && test $have_gcc_for_target = yes; then
12161 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
12162 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12163 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
12164 fi
12165fi
c6b750e1 12166if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12167 # Extract the first word of "nm", so it can be a program name with args.
12168set dummy nm; ac_word=$2
81ecdfbb
RW
12169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12170$as_echo_n "checking for $ac_word... " >&6; }
12171if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12172 $as_echo_n "(cached) " >&6
2429c060 12173else
c6b750e1
DJ
12174 case $NM_FOR_TARGET in
12175 [\\/]* | ?:[\\/]*)
2429c060
PB
12176 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12177 ;;
2429c060 12178 *)
c6b750e1
DJ
12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180for as_dir in $gcc_cv_tool_dirs
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_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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
2429c060
PB
12194 ;;
12195esac
12196fi
c6b750e1 12197NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12198if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12200$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12201else
81ecdfbb
RW
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203$as_echo "no" >&6; }
2429c060
PB
12204fi
12205
81ecdfbb 12206
2429c060
PB
12207fi
12208if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12209
12210
12211if test -n "$NM_FOR_TARGET"; then
12212 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12213elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12214 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12215fi
12216
12217if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12218 for ncn_progname in nm; do
12219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12220set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222$as_echo_n "checking for $ac_word... " >&6; }
12223if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
9a819804
AO
12225else
12226 if test -n "$NM_FOR_TARGET"; then
12227 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12228else
12229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230for as_dir in $PATH
12231do
12232 IFS=$as_save_IFS
12233 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12234 for ac_exec_ext in '' $ac_executable_extensions; do
12235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12236 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12238 break 2
12239 fi
12240done
81ecdfbb
RW
12241 done
12242IFS=$as_save_IFS
9a819804
AO
12243
12244fi
12245fi
12246NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12247if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12249$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12250else
81ecdfbb
RW
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252$as_echo "no" >&6; }
9a819804
AO
12253fi
12254
81ecdfbb 12255
9a819804
AO
12256 done
12257fi
12258
12259if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12260 for ncn_progname in nm; do
81ecdfbb
RW
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12262$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12263 if test -x $with_build_time_tools/${ncn_progname}; then
12264 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12266$as_echo "yes" >&6; }
2429c060
PB
12267 break
12268 else
81ecdfbb
RW
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270$as_echo "no" >&6; }
2429c060
PB
12271 fi
12272 done
12273fi
12274
12275if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12276 for ncn_progname in nm; do
12277 if test -n "$ncn_target_tool_prefix"; then
12278 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12279set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281$as_echo_n "checking for $ac_word... " >&6; }
12282if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12283 $as_echo_n "(cached) " >&6
859789af 12284else
55db4b87
PB
12285 if test -n "$NM_FOR_TARGET"; then
12286 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12287else
c6b750e1
DJ
12288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289for as_dir in $PATH
12290do
12291 IFS=$as_save_IFS
12292 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12293 for ac_exec_ext in '' $ac_executable_extensions; do
12294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12295 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12297 break 2
12298 fi
12299done
81ecdfbb
RW
12300 done
12301IFS=$as_save_IFS
c6b750e1 12302
859789af
AC
12303fi
12304fi
c6b750e1 12305NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12306if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12308$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12309else
81ecdfbb
RW
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311$as_echo "no" >&6; }
859789af
AC
12312fi
12313
81ecdfbb 12314
2429c060
PB
12315 fi
12316 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12317 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12318set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12320$as_echo_n "checking for $ac_word... " >&6; }
12321if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12322 $as_echo_n "(cached) " >&6
859789af 12323else
05cbd757
PB
12324 if test -n "$NM_FOR_TARGET"; then
12325 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12326else
c6b750e1
DJ
12327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328for as_dir in $PATH
12329do
12330 IFS=$as_save_IFS
12331 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12332 for ac_exec_ext in '' $ac_executable_extensions; do
12333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12334 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12336 break 2
12337 fi
12338done
81ecdfbb
RW
12339 done
12340IFS=$as_save_IFS
c6b750e1 12341
859789af
AC
12342fi
12343fi
c6b750e1 12344NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12345if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12347$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12348else
81ecdfbb
RW
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350$as_echo "no" >&6; }
859789af 12351fi
c6b750e1 12352
81ecdfbb 12353
2429c060
PB
12354 fi
12355 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12356 done
12357fi
c6b750e1 12358
05cbd757
PB
12359if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12360 set dummy nm
12361 if test $build = $target ; then
12362 NM_FOR_TARGET="$2"
859789af 12363 else
05cbd757 12364 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12365 fi
d3f5afc4
MS
12366else
12367 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12368fi
12369
3a35eeb3
PB
12370else
12371 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12372fi
12373
12374
12375
12376
6b91c541
AP
12377if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12378 if test -n "$with_build_time_tools"; then
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12380$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12381 if test -x $with_build_time_tools/objcopy; then
12382 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12383 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12385$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12386 else
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388$as_echo "no" >&6; }
12389 fi
12390 elif test $build != $host && test $have_gcc_for_target = yes; then
12391 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12392 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12393 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12394 fi
12395fi
12396if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12397 # Extract the first word of "objcopy", so it can be a program name with args.
12398set dummy objcopy; ac_word=$2
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12400$as_echo_n "checking for $ac_word... " >&6; }
12401if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12402 $as_echo_n "(cached) " >&6
12403else
12404 case $OBJCOPY_FOR_TARGET in
12405 [\\/]* | ?:[\\/]*)
12406 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12407 ;;
12408 *)
12409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410for as_dir in $gcc_cv_tool_dirs
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_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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
12424 ;;
12425esac
12426fi
12427OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12428if test -n "$OBJCOPY_FOR_TARGET"; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12430$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12431else
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433$as_echo "no" >&6; }
12434fi
12435
12436
12437fi
12438if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12439
12440
12441if test -n "$OBJCOPY_FOR_TARGET"; then
12442 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12443elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12444 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12445fi
12446
12447if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12448 for ncn_progname in objcopy; do
12449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12450set dummy ${ncn_progname}; ac_word=$2
12451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452$as_echo_n "checking for $ac_word... " >&6; }
12453if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12454 $as_echo_n "(cached) " >&6
12455else
12456 if test -n "$OBJCOPY_FOR_TARGET"; then
12457 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12458else
12459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460for as_dir in $PATH
12461do
12462 IFS=$as_save_IFS
12463 test -z "$as_dir" && as_dir=.
12464 for ac_exec_ext in '' $ac_executable_extensions; do
12465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12466 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12468 break 2
12469 fi
12470done
12471 done
12472IFS=$as_save_IFS
12473
12474fi
12475fi
12476OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12477if test -n "$OBJCOPY_FOR_TARGET"; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12479$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12480else
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12482$as_echo "no" >&6; }
12483fi
12484
12485
12486 done
12487fi
12488
12489if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12490 for ncn_progname in objcopy; do
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12492$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12493 if test -x $with_build_time_tools/${ncn_progname}; then
12494 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12496$as_echo "yes" >&6; }
12497 break
12498 else
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12500$as_echo "no" >&6; }
12501 fi
12502 done
12503fi
12504
12505if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12506 for ncn_progname in objcopy; do
12507 if test -n "$ncn_target_tool_prefix"; then
12508 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12509set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12511$as_echo_n "checking for $ac_word... " >&6; }
12512if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12513 $as_echo_n "(cached) " >&6
12514else
12515 if test -n "$OBJCOPY_FOR_TARGET"; then
12516 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12517else
12518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12519for as_dir in $PATH
12520do
12521 IFS=$as_save_IFS
12522 test -z "$as_dir" && as_dir=.
12523 for ac_exec_ext in '' $ac_executable_extensions; do
12524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12525 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12527 break 2
12528 fi
12529done
12530 done
12531IFS=$as_save_IFS
12532
12533fi
12534fi
12535OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12536if test -n "$OBJCOPY_FOR_TARGET"; then
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12538$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12539else
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541$as_echo "no" >&6; }
12542fi
12543
12544
12545 fi
12546 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12547 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12548set dummy ${ncn_progname}; ac_word=$2
12549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12550$as_echo_n "checking for $ac_word... " >&6; }
12551if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12552 $as_echo_n "(cached) " >&6
12553else
12554 if test -n "$OBJCOPY_FOR_TARGET"; then
12555 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12556else
12557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558for as_dir in $PATH
12559do
12560 IFS=$as_save_IFS
12561 test -z "$as_dir" && as_dir=.
12562 for ac_exec_ext in '' $ac_executable_extensions; do
12563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12564 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12566 break 2
12567 fi
12568done
12569 done
12570IFS=$as_save_IFS
12571
12572fi
12573fi
12574OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12575if test -n "$OBJCOPY_FOR_TARGET"; then
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12577$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12578else
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580$as_echo "no" >&6; }
12581fi
12582
12583
12584 fi
12585 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12586 done
12587fi
12588
12589if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12590 set dummy objcopy
12591 if test $build = $target ; then
12592 OBJCOPY_FOR_TARGET="$2"
12593 else
12594 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12595 fi
12596else
12597 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12598fi
12599
12600else
12601 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12602fi
12603
12604
12605
12606
2429c060
PB
12607if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12608 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12610$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12611 if test -x $with_build_time_tools/objdump; then
12612 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12613 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12615$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12616 else
81ecdfbb
RW
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618$as_echo "no" >&6; }
3a35eeb3 12619 fi
2429c060
PB
12620 elif test $build != $host && test $have_gcc_for_target = yes; then
12621 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12622 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12623 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12624 fi
12625fi
c6b750e1 12626if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12627 # Extract the first word of "objdump", so it can be a program name with args.
12628set dummy objdump; ac_word=$2
81ecdfbb
RW
12629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12630$as_echo_n "checking for $ac_word... " >&6; }
12631if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12632 $as_echo_n "(cached) " >&6
2429c060 12633else
c6b750e1
DJ
12634 case $OBJDUMP_FOR_TARGET in
12635 [\\/]* | ?:[\\/]*)
2429c060
PB
12636 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12637 ;;
2429c060 12638 *)
c6b750e1
DJ
12639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12640for as_dir in $gcc_cv_tool_dirs
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_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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
2429c060
PB
12654 ;;
12655esac
12656fi
c6b750e1 12657OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12658if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12660$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12661else
81ecdfbb
RW
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663$as_echo "no" >&6; }
2429c060
PB
12664fi
12665
81ecdfbb 12666
2429c060
PB
12667fi
12668if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12669
12670
12671if test -n "$OBJDUMP_FOR_TARGET"; then
12672 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12673elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12674 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12675fi
12676
12677if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12678 for ncn_progname in objdump; do
12679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12680set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12682$as_echo_n "checking for $ac_word... " >&6; }
12683if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12684 $as_echo_n "(cached) " >&6
9a819804
AO
12685else
12686 if test -n "$OBJDUMP_FOR_TARGET"; then
12687 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12688else
12689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690for as_dir in $PATH
12691do
12692 IFS=$as_save_IFS
12693 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12694 for ac_exec_ext in '' $ac_executable_extensions; do
12695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12696 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12698 break 2
12699 fi
12700done
81ecdfbb
RW
12701 done
12702IFS=$as_save_IFS
9a819804
AO
12703
12704fi
12705fi
12706OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12707if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12709$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12710else
81ecdfbb
RW
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712$as_echo "no" >&6; }
9a819804
AO
12713fi
12714
81ecdfbb 12715
9a819804
AO
12716 done
12717fi
12718
12719if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12720 for ncn_progname in objdump; do
81ecdfbb
RW
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12722$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12723 if test -x $with_build_time_tools/${ncn_progname}; then
12724 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12726$as_echo "yes" >&6; }
2429c060
PB
12727 break
12728 else
81ecdfbb
RW
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730$as_echo "no" >&6; }
2429c060
PB
12731 fi
12732 done
12733fi
12734
12735if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12736 for ncn_progname in objdump; do
12737 if test -n "$ncn_target_tool_prefix"; then
12738 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12739set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12741$as_echo_n "checking for $ac_word... " >&6; }
12742if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12743 $as_echo_n "(cached) " >&6
5ae72758
DJ
12744else
12745 if test -n "$OBJDUMP_FOR_TARGET"; then
12746 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12747else
c6b750e1
DJ
12748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12749for as_dir in $PATH
12750do
12751 IFS=$as_save_IFS
12752 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12753 for ac_exec_ext in '' $ac_executable_extensions; do
12754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12755 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12757 break 2
12758 fi
12759done
81ecdfbb
RW
12760 done
12761IFS=$as_save_IFS
c6b750e1 12762
5ae72758
DJ
12763fi
12764fi
c6b750e1 12765OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12766if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12768$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12769else
81ecdfbb
RW
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771$as_echo "no" >&6; }
5ae72758
DJ
12772fi
12773
81ecdfbb 12774
2429c060
PB
12775 fi
12776 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12778set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12780$as_echo_n "checking for $ac_word... " >&6; }
12781if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12782 $as_echo_n "(cached) " >&6
5ae72758
DJ
12783else
12784 if test -n "$OBJDUMP_FOR_TARGET"; then
12785 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12786else
c6b750e1
DJ
12787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788for as_dir in $PATH
12789do
12790 IFS=$as_save_IFS
12791 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12792 for ac_exec_ext in '' $ac_executable_extensions; do
12793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12794 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12796 break 2
12797 fi
12798done
81ecdfbb
RW
12799 done
12800IFS=$as_save_IFS
c6b750e1 12801
5ae72758
DJ
12802fi
12803fi
c6b750e1 12804OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12805if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12807$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12808else
81ecdfbb
RW
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810$as_echo "no" >&6; }
5ae72758 12811fi
c6b750e1 12812
81ecdfbb 12813
2429c060
PB
12814 fi
12815 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12816 done
12817fi
c6b750e1 12818
5ae72758
DJ
12819if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12820 set dummy objdump
12821 if test $build = $target ; then
12822 OBJDUMP_FOR_TARGET="$2"
12823 else
12824 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12825 fi
d3f5afc4
MS
12826else
12827 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12828fi
12829
3a35eeb3
PB
12830else
12831 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12832fi
12833
12834
12835
12836
12837if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12838 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12840$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12841 if test -x $with_build_time_tools/ranlib; then
12842 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12843 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12845$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12846 else
81ecdfbb
RW
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848$as_echo "no" >&6; }
3a35eeb3 12849 fi
2429c060
PB
12850 elif test $build != $host && test $have_gcc_for_target = yes; then
12851 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12852 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12853 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12854 fi
12855fi
c6b750e1 12856if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12857 # Extract the first word of "ranlib", so it can be a program name with args.
12858set dummy ranlib; ac_word=$2
81ecdfbb
RW
12859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860$as_echo_n "checking for $ac_word... " >&6; }
12861if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12862 $as_echo_n "(cached) " >&6
2429c060 12863else
c6b750e1
DJ
12864 case $RANLIB_FOR_TARGET in
12865 [\\/]* | ?:[\\/]*)
2429c060
PB
12866 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12867 ;;
2429c060 12868 *)
c6b750e1
DJ
12869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870for as_dir in $gcc_cv_tool_dirs
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_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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
2429c060
PB
12884 ;;
12885esac
12886fi
c6b750e1 12887RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12888if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12890$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12891else
81ecdfbb
RW
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893$as_echo "no" >&6; }
2429c060
PB
12894fi
12895
81ecdfbb 12896
2429c060
PB
12897fi
12898if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12899
12900
12901if test -n "$RANLIB_FOR_TARGET"; then
12902 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12903elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12904 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12905fi
12906
12907if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12908 for ncn_progname in ranlib; do
12909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12910set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12912$as_echo_n "checking for $ac_word... " >&6; }
12913if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12914 $as_echo_n "(cached) " >&6
9a819804
AO
12915else
12916 if test -n "$RANLIB_FOR_TARGET"; then
12917 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12918else
12919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920for as_dir in $PATH
12921do
12922 IFS=$as_save_IFS
12923 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12924 for ac_exec_ext in '' $ac_executable_extensions; do
12925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12926 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12928 break 2
12929 fi
12930done
81ecdfbb
RW
12931 done
12932IFS=$as_save_IFS
9a819804
AO
12933
12934fi
12935fi
12936RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12937if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12939$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12940else
81ecdfbb
RW
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942$as_echo "no" >&6; }
9a819804
AO
12943fi
12944
81ecdfbb 12945
9a819804
AO
12946 done
12947fi
12948
12949if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12950 for ncn_progname in ranlib; do
81ecdfbb
RW
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12952$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12953 if test -x $with_build_time_tools/${ncn_progname}; then
12954 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12956$as_echo "yes" >&6; }
2429c060
PB
12957 break
12958 else
81ecdfbb
RW
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960$as_echo "no" >&6; }
2429c060
PB
12961 fi
12962 done
12963fi
12964
12965if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12966 for ncn_progname in ranlib; do
12967 if test -n "$ncn_target_tool_prefix"; then
12968 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12969set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12971$as_echo_n "checking for $ac_word... " >&6; }
12972if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12973 $as_echo_n "(cached) " >&6
859789af 12974else
55db4b87
PB
12975 if test -n "$RANLIB_FOR_TARGET"; then
12976 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12977else
c6b750e1
DJ
12978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979for as_dir in $PATH
12980do
12981 IFS=$as_save_IFS
12982 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12983 for ac_exec_ext in '' $ac_executable_extensions; do
12984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12985 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12987 break 2
12988 fi
12989done
81ecdfbb
RW
12990 done
12991IFS=$as_save_IFS
c6b750e1 12992
859789af
AC
12993fi
12994fi
c6b750e1 12995RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12996if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12998$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12999else
81ecdfbb
RW
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001$as_echo "no" >&6; }
859789af
AC
13002fi
13003
81ecdfbb 13004
2429c060
PB
13005 fi
13006 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13008set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13010$as_echo_n "checking for $ac_word... " >&6; }
13011if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
13012 $as_echo_n "(cached) " >&6
859789af 13013else
05cbd757
PB
13014 if test -n "$RANLIB_FOR_TARGET"; then
13015 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 13016else
c6b750e1
DJ
13017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018for as_dir in $PATH
13019do
13020 IFS=$as_save_IFS
13021 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13022 for ac_exec_ext in '' $ac_executable_extensions; do
13023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13024 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 13025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13026 break 2
13027 fi
13028done
81ecdfbb
RW
13029 done
13030IFS=$as_save_IFS
c6b750e1 13031
859789af
AC
13032fi
13033fi
c6b750e1 13034RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 13035if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13037$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 13038else
81ecdfbb
RW
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13040$as_echo "no" >&6; }
859789af 13041fi
c6b750e1 13042
81ecdfbb 13043
2429c060
PB
13044 fi
13045 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13046 done
13047fi
c6b750e1 13048
2429c060
PB
13049if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13050 set dummy ranlib
13051 if test $build = $target ; then
13052 RANLIB_FOR_TARGET="$2"
13053 else
13054 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13055 fi
d3f5afc4
MS
13056else
13057 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 13058fi
05cbd757 13059
3a35eeb3
PB
13060else
13061 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
13062fi
13063
2429c060
PB
13064
13065
13066
b121d7d4
DD
13067if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13068 if test -n "$with_build_time_tools"; then
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13070$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13071 if test -x $with_build_time_tools/readelf; then
13072 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13073 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13075$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13076 else
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078$as_echo "no" >&6; }
13079 fi
13080 elif test $build != $host && test $have_gcc_for_target = yes; then
13081 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13082 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13083 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13084 fi
13085fi
13086if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13087 # Extract the first word of "readelf", so it can be a program name with args.
13088set dummy readelf; ac_word=$2
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13090$as_echo_n "checking for $ac_word... " >&6; }
13091if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13092 $as_echo_n "(cached) " >&6
13093else
13094 case $READELF_FOR_TARGET in
13095 [\\/]* | ?:[\\/]*)
13096 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13097 ;;
13098 *)
13099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100for as_dir in $gcc_cv_tool_dirs
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_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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
13114 ;;
13115esac
13116fi
13117READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13118if test -n "$READELF_FOR_TARGET"; then
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13120$as_echo "$READELF_FOR_TARGET" >&6; }
13121else
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123$as_echo "no" >&6; }
13124fi
13125
13126
13127fi
13128if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13129
13130
13131if test -n "$READELF_FOR_TARGET"; then
13132 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13133elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13134 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13135fi
13136
13137if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13138 for ncn_progname in readelf; do
13139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13140set dummy ${ncn_progname}; ac_word=$2
13141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142$as_echo_n "checking for $ac_word... " >&6; }
13143if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13144 $as_echo_n "(cached) " >&6
13145else
13146 if test -n "$READELF_FOR_TARGET"; then
13147 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13148else
13149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150for as_dir in $PATH
13151do
13152 IFS=$as_save_IFS
13153 test -z "$as_dir" && as_dir=.
13154 for ac_exec_ext in '' $ac_executable_extensions; do
13155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13156 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13158 break 2
13159 fi
13160done
13161 done
13162IFS=$as_save_IFS
13163
13164fi
13165fi
13166READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13167if test -n "$READELF_FOR_TARGET"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13169$as_echo "$READELF_FOR_TARGET" >&6; }
13170else
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172$as_echo "no" >&6; }
13173fi
13174
13175
13176 done
13177fi
13178
13179if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13180 for ncn_progname in readelf; do
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13182$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13183 if test -x $with_build_time_tools/${ncn_progname}; then
13184 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13186$as_echo "yes" >&6; }
13187 break
13188 else
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190$as_echo "no" >&6; }
13191 fi
13192 done
13193fi
13194
13195if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13196 for ncn_progname in readelf; do
13197 if test -n "$ncn_target_tool_prefix"; then
13198 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13199set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201$as_echo_n "checking for $ac_word... " >&6; }
13202if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13203 $as_echo_n "(cached) " >&6
13204else
13205 if test -n "$READELF_FOR_TARGET"; then
13206 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13207else
13208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209for as_dir in $PATH
13210do
13211 IFS=$as_save_IFS
13212 test -z "$as_dir" && as_dir=.
13213 for ac_exec_ext in '' $ac_executable_extensions; do
13214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13215 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13217 break 2
13218 fi
13219done
13220 done
13221IFS=$as_save_IFS
13222
13223fi
13224fi
13225READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13226if test -n "$READELF_FOR_TARGET"; then
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13228$as_echo "$READELF_FOR_TARGET" >&6; }
13229else
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231$as_echo "no" >&6; }
13232fi
13233
13234
13235 fi
13236 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13238set dummy ${ncn_progname}; ac_word=$2
13239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13240$as_echo_n "checking for $ac_word... " >&6; }
13241if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13242 $as_echo_n "(cached) " >&6
13243else
13244 if test -n "$READELF_FOR_TARGET"; then
13245 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13246else
13247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13248for as_dir in $PATH
13249do
13250 IFS=$as_save_IFS
13251 test -z "$as_dir" && as_dir=.
13252 for ac_exec_ext in '' $ac_executable_extensions; do
13253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13254 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13256 break 2
13257 fi
13258done
13259 done
13260IFS=$as_save_IFS
13261
13262fi
13263fi
13264READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13265if test -n "$READELF_FOR_TARGET"; then
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13267$as_echo "$READELF_FOR_TARGET" >&6; }
13268else
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270$as_echo "no" >&6; }
13271fi
13272
13273
13274 fi
13275 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13276 done
13277fi
13278
13279if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13280 set dummy readelf
13281 if test $build = $target ; then
13282 READELF_FOR_TARGET="$2"
13283 else
13284 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13285 fi
13286else
13287 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13288fi
13289
13290else
13291 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13292fi
13293
13294
13295
13296
2429c060
PB
13297if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13298 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13300$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13301 if test -x $with_build_time_tools/strip; then
13302 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13303 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13305$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 13306 else
81ecdfbb
RW
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308$as_echo "no" >&6; }
3a35eeb3 13309 fi
2429c060
PB
13310 elif test $build != $host && test $have_gcc_for_target = yes; then
13311 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
13312 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13313 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13314 fi
13315fi
c6b750e1 13316if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13317 # Extract the first word of "strip", so it can be a program name with args.
13318set dummy strip; ac_word=$2
81ecdfbb
RW
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13320$as_echo_n "checking for $ac_word... " >&6; }
13321if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13322 $as_echo_n "(cached) " >&6
2429c060 13323else
c6b750e1
DJ
13324 case $STRIP_FOR_TARGET in
13325 [\\/]* | ?:[\\/]*)
2429c060
PB
13326 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13327 ;;
2429c060 13328 *)
c6b750e1
DJ
13329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330for as_dir in $gcc_cv_tool_dirs
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_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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
2429c060
PB
13344 ;;
13345esac
13346fi
c6b750e1 13347STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13348if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13350$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13351else
81ecdfbb
RW
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353$as_echo "no" >&6; }
2429c060
PB
13354fi
13355
81ecdfbb 13356
2429c060
PB
13357fi
13358if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13359
13360
13361if test -n "$STRIP_FOR_TARGET"; then
13362 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13363elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13364 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13365fi
13366
13367if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13368 for ncn_progname in strip; do
13369 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13370set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13372$as_echo_n "checking for $ac_word... " >&6; }
13373if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13374 $as_echo_n "(cached) " >&6
9a819804
AO
13375else
13376 if test -n "$STRIP_FOR_TARGET"; then
13377 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13378else
13379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13380for as_dir in $PATH
13381do
13382 IFS=$as_save_IFS
13383 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13384 for ac_exec_ext in '' $ac_executable_extensions; do
13385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13386 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13388 break 2
13389 fi
13390done
81ecdfbb
RW
13391 done
13392IFS=$as_save_IFS
9a819804
AO
13393
13394fi
13395fi
13396STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13397if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13399$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13400else
81ecdfbb
RW
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13402$as_echo "no" >&6; }
9a819804
AO
13403fi
13404
81ecdfbb 13405
9a819804
AO
13406 done
13407fi
13408
13409if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13410 for ncn_progname in strip; do
81ecdfbb
RW
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13412$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13413 if test -x $with_build_time_tools/${ncn_progname}; then
13414 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13416$as_echo "yes" >&6; }
2429c060
PB
13417 break
13418 else
81ecdfbb
RW
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13420$as_echo "no" >&6; }
2429c060
PB
13421 fi
13422 done
13423fi
13424
13425if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13426 for ncn_progname in strip; do
13427 if test -n "$ncn_target_tool_prefix"; then
13428 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13429set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13431$as_echo_n "checking for $ac_word... " >&6; }
13432if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13433 $as_echo_n "(cached) " >&6
7e0f7140
GK
13434else
13435 if test -n "$STRIP_FOR_TARGET"; then
13436 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13437else
13438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13439for as_dir in $PATH
13440do
13441 IFS=$as_save_IFS
13442 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13443 for ac_exec_ext in '' $ac_executable_extensions; do
13444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13445 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13447 break 2
13448 fi
13449done
81ecdfbb
RW
13450 done
13451IFS=$as_save_IFS
c6b750e1 13452
7e0f7140
GK
13453fi
13454fi
c6b750e1 13455STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13456if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13458$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13459else
81ecdfbb
RW
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13461$as_echo "no" >&6; }
7e0f7140
GK
13462fi
13463
81ecdfbb 13464
2429c060
PB
13465 fi
13466 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13468set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13470$as_echo_n "checking for $ac_word... " >&6; }
13471if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13472 $as_echo_n "(cached) " >&6
7e0f7140
GK
13473else
13474 if test -n "$STRIP_FOR_TARGET"; then
13475 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13476else
c6b750e1
DJ
13477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478for as_dir in $PATH
13479do
13480 IFS=$as_save_IFS
13481 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13482 for ac_exec_ext in '' $ac_executable_extensions; do
13483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13484 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13486 break 2
13487 fi
13488done
81ecdfbb
RW
13489 done
13490IFS=$as_save_IFS
c6b750e1 13491
7e0f7140
GK
13492fi
13493fi
c6b750e1 13494STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13495if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13497$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13498else
81ecdfbb
RW
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500$as_echo "no" >&6; }
7e0f7140 13501fi
c6b750e1 13502
81ecdfbb 13503
2429c060
PB
13504 fi
13505 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13506 done
13507fi
c6b750e1 13508
7e0f7140
GK
13509if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13510 set dummy strip
13511 if test $build = $target ; then
13512 STRIP_FOR_TARGET="$2"
13513 else
13514 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13515 fi
d3f5afc4
MS
13516else
13517 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13518fi
13519
3a35eeb3
PB
13520else
13521 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13522fi
13523
13524
13525
13526
13527if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13528 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13530$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13531 if test -x $with_build_time_tools/windres; then
13532 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13533 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13535$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13536 else
81ecdfbb
RW
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538$as_echo "no" >&6; }
3a35eeb3 13539 fi
2429c060
PB
13540 elif test $build != $host && test $have_gcc_for_target = yes; then
13541 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13542 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13543 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13544 fi
13545fi
c6b750e1 13546if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13547 # Extract the first word of "windres", so it can be a program name with args.
13548set dummy windres; ac_word=$2
81ecdfbb
RW
13549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13550$as_echo_n "checking for $ac_word... " >&6; }
13551if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13552 $as_echo_n "(cached) " >&6
2429c060 13553else
c6b750e1
DJ
13554 case $WINDRES_FOR_TARGET in
13555 [\\/]* | ?:[\\/]*)
2429c060
PB
13556 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13557 ;;
2429c060 13558 *)
c6b750e1
DJ
13559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13560for as_dir in $gcc_cv_tool_dirs
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_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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
2429c060
PB
13574 ;;
13575esac
13576fi
c6b750e1 13577WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13578if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13580$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13581else
81ecdfbb
RW
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583$as_echo "no" >&6; }
2429c060
PB
13584fi
13585
81ecdfbb 13586
2429c060
PB
13587fi
13588if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13589
13590
13591if test -n "$WINDRES_FOR_TARGET"; then
13592 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13593elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13594 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13595fi
13596
13597if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13598 for ncn_progname in windres; do
13599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13600set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13602$as_echo_n "checking for $ac_word... " >&6; }
13603if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13604 $as_echo_n "(cached) " >&6
9a819804
AO
13605else
13606 if test -n "$WINDRES_FOR_TARGET"; then
13607 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13608else
13609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610for as_dir in $PATH
13611do
13612 IFS=$as_save_IFS
13613 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13614 for ac_exec_ext in '' $ac_executable_extensions; do
13615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13616 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13618 break 2
13619 fi
13620done
81ecdfbb
RW
13621 done
13622IFS=$as_save_IFS
9a819804
AO
13623
13624fi
13625fi
13626WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13627if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13629$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13630else
81ecdfbb
RW
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13632$as_echo "no" >&6; }
9a819804
AO
13633fi
13634
81ecdfbb 13635
9a819804
AO
13636 done
13637fi
13638
13639if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13640 for ncn_progname in windres; do
81ecdfbb
RW
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13642$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13643 if test -x $with_build_time_tools/${ncn_progname}; then
13644 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13646$as_echo "yes" >&6; }
2429c060
PB
13647 break
13648 else
81ecdfbb
RW
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650$as_echo "no" >&6; }
2429c060
PB
13651 fi
13652 done
13653fi
13654
13655if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13656 for ncn_progname in windres; do
13657 if test -n "$ncn_target_tool_prefix"; then
13658 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13659set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13661$as_echo_n "checking for $ac_word... " >&6; }
13662if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13663 $as_echo_n "(cached) " >&6
859789af 13664else
55db4b87
PB
13665 if test -n "$WINDRES_FOR_TARGET"; then
13666 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13667else
c6b750e1
DJ
13668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13669for as_dir in $PATH
13670do
13671 IFS=$as_save_IFS
13672 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13673 for ac_exec_ext in '' $ac_executable_extensions; do
13674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13675 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13677 break 2
13678 fi
13679done
81ecdfbb
RW
13680 done
13681IFS=$as_save_IFS
c6b750e1 13682
859789af
AC
13683fi
13684fi
c6b750e1 13685WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13686if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13688$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13689else
81ecdfbb
RW
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691$as_echo "no" >&6; }
859789af
AC
13692fi
13693
81ecdfbb 13694
2429c060
PB
13695 fi
13696 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13697 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13698set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13700$as_echo_n "checking for $ac_word... " >&6; }
13701if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13702 $as_echo_n "(cached) " >&6
859789af 13703else
05cbd757
PB
13704 if test -n "$WINDRES_FOR_TARGET"; then
13705 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13706else
c6b750e1
DJ
13707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13708for as_dir in $PATH
13709do
13710 IFS=$as_save_IFS
13711 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13712 for ac_exec_ext in '' $ac_executable_extensions; do
13713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13714 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13716 break 2
13717 fi
13718done
81ecdfbb
RW
13719 done
13720IFS=$as_save_IFS
c6b750e1 13721
859789af
AC
13722fi
13723fi
c6b750e1 13724WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13725if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13727$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13728else
81ecdfbb
RW
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13730$as_echo "no" >&6; }
859789af 13731fi
c6b750e1 13732
81ecdfbb 13733
2429c060
PB
13734 fi
13735 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13736 done
13737fi
c6b750e1 13738
05cbd757
PB
13739if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13740 set dummy windres
13741 if test $build = $target ; then
13742 WINDRES_FOR_TARGET="$2"
859789af 13743 else
05cbd757 13744 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13745 fi
d3f5afc4
MS
13746else
13747 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13748fi
13749
3a35eeb3
PB
13750else
13751 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13752fi
13753
852e5f18 13754
0c24b341
NC
13755
13756
13757if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13758 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13760$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13761 if test -x $with_build_time_tools/windmc; then
13762 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13763 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13765$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13766 else
81ecdfbb
RW
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13768$as_echo "no" >&6; }
0c24b341
NC
13769 fi
13770 elif test $build != $host && test $have_gcc_for_target = yes; then
13771 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13772 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13773 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13774 fi
13775fi
13776if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13777 # Extract the first word of "windmc", so it can be a program name with args.
13778set dummy windmc; ac_word=$2
81ecdfbb
RW
13779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13780$as_echo_n "checking for $ac_word... " >&6; }
13781if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13782 $as_echo_n "(cached) " >&6
0c24b341
NC
13783else
13784 case $WINDMC_FOR_TARGET in
13785 [\\/]* | ?:[\\/]*)
13786 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13787 ;;
13788 *)
13789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13790for as_dir in $gcc_cv_tool_dirs
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_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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
13804 ;;
13805esac
13806fi
13807WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13808if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13810$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13811else
81ecdfbb
RW
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13813$as_echo "no" >&6; }
0c24b341
NC
13814fi
13815
81ecdfbb 13816
0c24b341
NC
13817fi
13818if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13819
13820
13821if test -n "$WINDMC_FOR_TARGET"; then
13822 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13823elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13824 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13825fi
13826
13827if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13828 for ncn_progname in windmc; do
13829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13830set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13832$as_echo_n "checking for $ac_word... " >&6; }
13833if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13834 $as_echo_n "(cached) " >&6
0c24b341
NC
13835else
13836 if test -n "$WINDMC_FOR_TARGET"; then
13837 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13838else
13839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13840for as_dir in $PATH
13841do
13842 IFS=$as_save_IFS
13843 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13844 for ac_exec_ext in '' $ac_executable_extensions; do
13845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13846 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13848 break 2
13849 fi
13850done
81ecdfbb
RW
13851 done
13852IFS=$as_save_IFS
0c24b341
NC
13853
13854fi
13855fi
13856WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13857if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13859$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13860else
81ecdfbb
RW
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13862$as_echo "no" >&6; }
0c24b341
NC
13863fi
13864
81ecdfbb 13865
0c24b341
NC
13866 done
13867fi
13868
13869if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13870 for ncn_progname in windmc; do
81ecdfbb
RW
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13872$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13873 if test -x $with_build_time_tools/${ncn_progname}; then
13874 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13876$as_echo "yes" >&6; }
0c24b341
NC
13877 break
13878 else
81ecdfbb
RW
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13880$as_echo "no" >&6; }
0c24b341
NC
13881 fi
13882 done
13883fi
13884
13885if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13886 for ncn_progname in windmc; do
13887 if test -n "$ncn_target_tool_prefix"; then
13888 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13889set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13891$as_echo_n "checking for $ac_word... " >&6; }
13892if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13893 $as_echo_n "(cached) " >&6
0c24b341
NC
13894else
13895 if test -n "$WINDMC_FOR_TARGET"; then
13896 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13897else
13898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13899for as_dir in $PATH
13900do
13901 IFS=$as_save_IFS
13902 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13903 for ac_exec_ext in '' $ac_executable_extensions; do
13904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13905 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13907 break 2
13908 fi
13909done
81ecdfbb
RW
13910 done
13911IFS=$as_save_IFS
0c24b341
NC
13912
13913fi
13914fi
13915WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13916if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13918$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13919else
81ecdfbb
RW
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13921$as_echo "no" >&6; }
0c24b341
NC
13922fi
13923
81ecdfbb 13924
0c24b341
NC
13925 fi
13926 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13927 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13928set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13930$as_echo_n "checking for $ac_word... " >&6; }
13931if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13932 $as_echo_n "(cached) " >&6
0c24b341
NC
13933else
13934 if test -n "$WINDMC_FOR_TARGET"; then
13935 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13936else
13937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13938for as_dir in $PATH
13939do
13940 IFS=$as_save_IFS
13941 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13942 for ac_exec_ext in '' $ac_executable_extensions; do
13943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13944 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13946 break 2
13947 fi
13948done
81ecdfbb
RW
13949 done
13950IFS=$as_save_IFS
0c24b341
NC
13951
13952fi
13953fi
13954WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13955if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13957$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13958else
81ecdfbb
RW
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13960$as_echo "no" >&6; }
0c24b341
NC
13961fi
13962
81ecdfbb 13963
0c24b341
NC
13964 fi
13965 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13966 done
13967fi
13968
13969if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13970 set dummy windmc
13971 if test $build = $target ; then
13972 WINDMC_FOR_TARGET="$2"
13973 else
13974 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13975 fi
13976else
13977 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13978fi
13979
13980else
13981 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13982fi
13983
13984
be01d343
PB
13985RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13986
81ecdfbb
RW
13987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13988$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13989if test "x${build}" != "x${host}" ; then
2429c060
PB
13990 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13991 # We already found the complete path
b8025f34 13992 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13994$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13995 else
13996 # Canadian cross, just use what we found
81ecdfbb
RW
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13998$as_echo "pre-installed" >&6; }
2429c060 13999 fi
be01d343
PB
14000else
14001 ok=yes
14002 case " ${configdirs} " in
14003 *" binutils "*) ;;
14004 *) ok=no ;;
14005 esac
c6b750e1 14006
be01d343
PB
14007 if test $ok = yes; then
14008 # An in-tree tool is available and we can use it
14009 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14011$as_echo "just compiled" >&6; }
2429c060
PB
14012 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14013 # We already found the complete path
b8025f34 14014 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14016$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14017 elif test "x$target" = "x$host"; then
14018 # We can use an host tool
14019 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14021$as_echo "host tool" >&6; }
be01d343
PB
14022 else
14023 # We need a cross tool
81ecdfbb
RW
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14025$as_echo "pre-installed" >&6; }
be01d343
PB
14026 fi
14027fi
4b900473 14028
81ecdfbb
RW
14029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14030$as_echo_n "checking where to find the target as... " >&6; }
be01d343 14031if test "x${build}" != "x${host}" ; then
2429c060
PB
14032 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14033 # We already found the complete path
b8025f34 14034 ac_dir=`dirname $AS_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; }
2429c060
PB
14037 else
14038 # Canadian cross, just use what we found
81ecdfbb
RW
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14040$as_echo "pre-installed" >&6; }
2429c060 14041 fi
be01d343
PB
14042else
14043 ok=yes
14044 case " ${configdirs} " in
14045 *" gas "*) ;;
14046 *) ok=no ;;
14047 esac
c6b750e1 14048
be01d343
PB
14049 if test $ok = yes; then
14050 # An in-tree tool is available and we can use it
14051 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14053$as_echo "just compiled" >&6; }
2429c060
PB
14054 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14055 # We already found the complete path
b8025f34 14056 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14058$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14059 elif test "x$target" = "x$host"; then
14060 # We can use an host tool
14061 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14063$as_echo "host tool" >&6; }
be01d343
PB
14064 else
14065 # We need a cross tool
81ecdfbb
RW
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14067$as_echo "pre-installed" >&6; }
be01d343
PB
14068 fi
14069fi
4b900473 14070
81ecdfbb
RW
14071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14072$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 14073if test "x${build}" != "x${host}" ; then
2429c060
PB
14074 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14075 # We already found the complete path
b8025f34 14076 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14078$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14079 else
14080 # Canadian cross, just use what we found
81ecdfbb
RW
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14082$as_echo "pre-installed" >&6; }
2429c060 14083 fi
be01d343
PB
14084else
14085 ok=yes
14086 case " ${configdirs} " in
14087 *" gcc "*) ;;
14088 *) ok=no ;;
14089 esac
c6b750e1 14090
be01d343
PB
14091 if test $ok = yes; then
14092 # An in-tree tool is available and we can use it
14093 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14095$as_echo "just compiled" >&6; }
2429c060
PB
14096 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14097 # We already found the complete path
b8025f34 14098 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14100$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14101 elif test "x$target" = "x$host"; then
14102 # We can use an host tool
14103 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14105$as_echo "host tool" >&6; }
be01d343
PB
14106 else
14107 # We need a cross tool
81ecdfbb
RW
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14109$as_echo "pre-installed" >&6; }
be01d343
PB
14110 fi
14111fi
4b900473 14112
81ecdfbb
RW
14113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14114$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 14115if test "x${build}" != "x${host}" ; then
2429c060
PB
14116 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14117 # We already found the complete path
b8025f34 14118 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14120$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14121 else
14122 # Canadian cross, just use what we found
81ecdfbb
RW
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14124$as_echo "pre-installed" >&6; }
2429c060 14125 fi
be01d343
PB
14126else
14127 ok=yes
14128 case " ${configdirs} " in
14129 *" gcc "*) ;;
14130 *) ok=no ;;
14131 esac
14132 case ,${enable_languages}, in
14133 *,c++,*) ;;
14134 *) ok=no ;;
14135 esac
14136 if test $ok = yes; then
14137 # An in-tree tool is available and we can use it
95e43135 14138 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
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14140$as_echo "just compiled" >&6; }
2429c060
PB
14141 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14142 # We already found the complete path
b8025f34 14143 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14145$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14146 elif test "x$target" = "x$host"; then
14147 # We can use an host tool
14148 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14150$as_echo "host tool" >&6; }
be01d343
PB
14151 else
14152 # We need a cross tool
81ecdfbb
RW
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14154$as_echo "pre-installed" >&6; }
be01d343
PB
14155 fi
14156fi
4b900473 14157
81ecdfbb
RW
14158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14159$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 14160if test "x${build}" != "x${host}" ; then
2429c060
PB
14161 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14162 # We already found the complete path
b8025f34 14163 ac_dir=`dirname $RAW_CXX_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; }
2429c060
PB
14166 else
14167 # Canadian cross, just use what we found
81ecdfbb
RW
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14169$as_echo "pre-installed" >&6; }
2429c060 14170 fi
be01d343
PB
14171else
14172 ok=yes
14173 case " ${configdirs} " in
14174 *" gcc "*) ;;
14175 *) ok=no ;;
14176 esac
14177 case ,${enable_languages}, in
14178 *,c++,*) ;;
14179 *) ok=no ;;
14180 esac
14181 if test $ok = yes; then
14182 # An in-tree tool is available and we can use it
95e43135 14183 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
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14185$as_echo "just compiled" >&6; }
2429c060
PB
14186 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14187 # We already found the complete path
b8025f34 14188 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14190$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14191 elif test "x$target" = "x$host"; then
14192 # We can use an host tool
14193 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14195$as_echo "host tool" >&6; }
be01d343
PB
14196 else
14197 # We need a cross tool
81ecdfbb
RW
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14199$as_echo "pre-installed" >&6; }
be01d343
PB
14200 fi
14201fi
4b900473 14202
81ecdfbb
RW
14203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14204$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 14205if test "x${build}" != "x${host}" ; then
2429c060
PB
14206 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14207 # We already found the complete path
b8025f34 14208 ac_dir=`dirname $DLLTOOL_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; }
2429c060
PB
14211 else
14212 # Canadian cross, just use what we found
81ecdfbb
RW
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14214$as_echo "pre-installed" >&6; }
2429c060 14215 fi
be01d343
PB
14216else
14217 ok=yes
14218 case " ${configdirs} " in
14219 *" binutils "*) ;;
14220 *) ok=no ;;
14221 esac
c6b750e1 14222
be01d343
PB
14223 if test $ok = yes; then
14224 # An in-tree tool is available and we can use it
14225 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14227$as_echo "just compiled" >&6; }
2429c060
PB
14228 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14229 # We already found the complete path
b8025f34 14230 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14232$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14233 elif test "x$target" = "x$host"; then
14234 # We can use an host tool
14235 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14237$as_echo "host tool" >&6; }
be01d343
PB
14238 else
14239 # We need a cross tool
81ecdfbb
RW
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14241$as_echo "pre-installed" >&6; }
be01d343
PB
14242 fi
14243fi
4b900473 14244
81ecdfbb
RW
14245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14246$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 14247if test "x${build}" != "x${host}" ; then
2429c060
PB
14248 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14249 # We already found the complete path
b8025f34 14250 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14252$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14253 else
14254 # Canadian cross, just use what we found
81ecdfbb
RW
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14256$as_echo "pre-installed" >&6; }
2429c060 14257 fi
be01d343
PB
14258else
14259 ok=yes
14260 case " ${configdirs} " in
14261 *" gcc "*) ;;
14262 *) ok=no ;;
14263 esac
c6b750e1 14264
be01d343
PB
14265 if test $ok = yes; then
14266 # An in-tree tool is available and we can use it
14267 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14269$as_echo "just compiled" >&6; }
2429c060
PB
14270 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14271 # We already found the complete path
b8025f34 14272 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14274$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14275 elif test "x$target" = "x$host"; then
14276 # We can use an host tool
14277 GCC_FOR_TARGET='$()'
81ecdfbb
RW
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14279$as_echo "host tool" >&6; }
be01d343
PB
14280 else
14281 # We need a cross tool
81ecdfbb
RW
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14283$as_echo "pre-installed" >&6; }
be01d343
PB
14284 fi
14285fi
4b900473 14286
81ecdfbb
RW
14287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14288$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 14289if test "x${build}" != "x${host}" ; then
2429c060
PB
14290 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14291 # We already found the complete path
b8025f34 14292 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14294$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14295 else
14296 # Canadian cross, just use what we found
81ecdfbb
RW
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14298$as_echo "pre-installed" >&6; }
2429c060 14299 fi
be01d343
PB
14300else
14301 ok=yes
14302 case " ${configdirs} " in
14303 *" gcc "*) ;;
14304 *) ok=no ;;
14305 esac
14306 case ,${enable_languages}, in
14307 *,java,*) ;;
14308 *) ok=no ;;
14309 esac
14310 if test $ok = yes; then
14311 # An in-tree tool is available and we can use it
14312 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14314$as_echo "just compiled" >&6; }
2429c060
PB
14315 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14316 # We already found the complete path
b8025f34 14317 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14319$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14320 elif test "x$target" = "x$host"; then
14321 # We can use an host tool
14322 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14324$as_echo "host tool" >&6; }
be01d343
PB
14325 else
14326 # We need a cross tool
81ecdfbb
RW
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14328$as_echo "pre-installed" >&6; }
be01d343
PB
14329 fi
14330fi
4b900473 14331
81ecdfbb
RW
14332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14333$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 14334if test "x${build}" != "x${host}" ; then
2429c060
PB
14335 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14336 # We already found the complete path
b8025f34 14337 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14339$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14340 else
14341 # Canadian cross, just use what we found
81ecdfbb
RW
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14343$as_echo "pre-installed" >&6; }
2429c060 14344 fi
be01d343
PB
14345else
14346 ok=yes
14347 case " ${configdirs} " in
14348 *" gcc "*) ;;
14349 *) ok=no ;;
14350 esac
14351 case ,${enable_languages}, in
14352 *,fortran,*) ;;
14353 *) ok=no ;;
14354 esac
14355 if test $ok = yes; then
14356 # An in-tree tool is available and we can use it
14357 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14359$as_echo "just compiled" >&6; }
2429c060
PB
14360 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14361 # We already found the complete path
b8025f34 14362 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14364$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14365 elif test "x$target" = "x$host"; then
14366 # We can use an host tool
14367 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14369$as_echo "host tool" >&6; }
be01d343
PB
14370 else
14371 # We need a cross tool
81ecdfbb
RW
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14373$as_echo "pre-installed" >&6; }
be01d343
PB
14374 fi
14375fi
4b900473 14376
e552509b
ILT
14377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14378$as_echo_n "checking where to find the target gccgo... " >&6; }
14379if test "x${build}" != "x${host}" ; then
14380 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14381 # We already found the complete path
14382 ac_dir=`dirname $GOC_FOR_TARGET`
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14384$as_echo "pre-installed in $ac_dir" >&6; }
14385 else
14386 # Canadian cross, just use what we found
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14388$as_echo "pre-installed" >&6; }
14389 fi
14390else
14391 ok=yes
14392 case " ${configdirs} " in
14393 *" gcc "*) ;;
14394 *) ok=no ;;
14395 esac
14396 case ,${enable_languages}, in
14397 *,go,*) ;;
14398 *) ok=no ;;
14399 esac
14400 if test $ok = yes; then
14401 # An in-tree tool is available and we can use it
14402 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14404$as_echo "just compiled" >&6; }
14405 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14406 # We already found the complete path
14407 ac_dir=`dirname $GOC_FOR_TARGET`
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14409$as_echo "pre-installed in $ac_dir" >&6; }
14410 elif test "x$target" = "x$host"; then
14411 # We can use an host tool
14412 GOC_FOR_TARGET='$(GOC)'
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14414$as_echo "host tool" >&6; }
14415 else
14416 # We need a cross tool
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14418$as_echo "pre-installed" >&6; }
14419 fi
14420fi
14421
81ecdfbb
RW
14422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14423$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14424if test "x${build}" != "x${host}" ; then
2429c060
PB
14425 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14426 # We already found the complete path
b8025f34 14427 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14429$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14430 else
14431 # Canadian cross, just use what we found
81ecdfbb
RW
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14433$as_echo "pre-installed" >&6; }
2429c060 14434 fi
be01d343
PB
14435else
14436 ok=yes
14437 case " ${configdirs} " in
14438 *" ld "*) ;;
14439 *) ok=no ;;
14440 esac
c6b750e1 14441
be01d343
PB
14442 if test $ok = yes; then
14443 # An in-tree tool is available and we can use it
14444 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14446$as_echo "just compiled" >&6; }
2429c060
PB
14447 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14448 # We already found the complete path
b8025f34 14449 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14451$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14452 elif test "x$target" = "x$host"; then
14453 # We can use an host tool
14454 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14456$as_echo "host tool" >&6; }
be01d343
PB
14457 else
14458 # We need a cross tool
81ecdfbb
RW
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14460$as_echo "pre-installed" >&6; }
be01d343
PB
14461 fi
14462fi
4b900473 14463
81ecdfbb
RW
14464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14465$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14466if test "x${build}" != "x${host}" ; then
2429c060
PB
14467 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14468 # We already found the complete path
b8025f34 14469 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14471$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14472 else
14473 # Canadian cross, just use what we found
81ecdfbb
RW
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14475$as_echo "pre-installed" >&6; }
2429c060 14476 fi
be01d343 14477else
2429c060
PB
14478 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14479 # We already found the complete path
b8025f34 14480 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14482$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14483 elif test "x$target" = "x$host"; then
be01d343
PB
14484 # We can use an host tool
14485 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14487$as_echo "host tool" >&6; }
be01d343
PB
14488 else
14489 # We need a cross tool
81ecdfbb
RW
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14491$as_echo "pre-installed" >&6; }
be01d343
PB
14492 fi
14493fi
4b900473 14494
81ecdfbb
RW
14495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14496$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14497if test "x${build}" != "x${host}" ; then
2429c060
PB
14498 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14499 # We already found the complete path
b8025f34 14500 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14502$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14503 else
14504 # Canadian cross, just use what we found
81ecdfbb
RW
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14506$as_echo "pre-installed" >&6; }
2429c060 14507 fi
be01d343
PB
14508else
14509 ok=yes
14510 case " ${configdirs} " in
14511 *" binutils "*) ;;
14512 *) ok=no ;;
14513 esac
c6b750e1 14514
be01d343
PB
14515 if test $ok = yes; then
14516 # An in-tree tool is available and we can use it
14517 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14519$as_echo "just compiled" >&6; }
2429c060
PB
14520 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14521 # We already found the complete path
b8025f34 14522 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14524$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14525 elif test "x$target" = "x$host"; then
14526 # We can use an host tool
14527 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14529$as_echo "host tool" >&6; }
be01d343
PB
14530 else
14531 # We need a cross tool
81ecdfbb
RW
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14533$as_echo "pre-installed" >&6; }
be01d343
PB
14534 fi
14535fi
4b900473 14536
6b91c541
AP
14537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14538$as_echo_n "checking where to find the target objcopy... " >&6; }
14539if test "x${build}" != "x${host}" ; then
14540 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14541 # We already found the complete path
14542 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14544$as_echo "pre-installed in $ac_dir" >&6; }
14545 else
14546 # Canadian cross, just use what we found
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14548$as_echo "pre-installed" >&6; }
14549 fi
14550else
14551 ok=yes
14552 case " ${configdirs} " in
14553 *" binutils "*) ;;
14554 *) ok=no ;;
14555 esac
14556
14557 if test $ok = yes; then
14558 # An in-tree tool is available and we can use it
14559 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14561$as_echo "just compiled" >&6; }
14562 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14563 # We already found the complete path
14564 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14566$as_echo "pre-installed in $ac_dir" >&6; }
14567 elif test "x$target" = "x$host"; then
14568 # We can use an host tool
14569 OBJCOPY_FOR_TARGET='$(OBJDUMP)'
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14571$as_echo "host tool" >&6; }
14572 else
14573 # We need a cross tool
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14575$as_echo "pre-installed" >&6; }
14576 fi
14577fi
14578
81ecdfbb
RW
14579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14580$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14581if test "x${build}" != "x${host}" ; then
2429c060
PB
14582 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14583 # We already found the complete path
b8025f34 14584 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14586$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14587 else
14588 # Canadian cross, just use what we found
81ecdfbb
RW
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14590$as_echo "pre-installed" >&6; }
2429c060 14591 fi
be01d343
PB
14592else
14593 ok=yes
14594 case " ${configdirs} " in
14595 *" binutils "*) ;;
14596 *) ok=no ;;
14597 esac
c6b750e1 14598
be01d343
PB
14599 if test $ok = yes; then
14600 # An in-tree tool is available and we can use it
14601 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14603$as_echo "just compiled" >&6; }
2429c060
PB
14604 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14605 # We already found the complete path
b8025f34 14606 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14608$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14609 elif test "x$target" = "x$host"; then
14610 # We can use an host tool
14611 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14613$as_echo "host tool" >&6; }
be01d343
PB
14614 else
14615 # We need a cross tool
81ecdfbb
RW
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14617$as_echo "pre-installed" >&6; }
be01d343
PB
14618 fi
14619fi
4b900473 14620
81ecdfbb
RW
14621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14622$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14623if test "x${build}" != "x${host}" ; then
2429c060
PB
14624 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14625 # We already found the complete path
b8025f34 14626 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14628$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14629 else
14630 # Canadian cross, just use what we found
81ecdfbb
RW
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14632$as_echo "pre-installed" >&6; }
2429c060 14633 fi
be01d343
PB
14634else
14635 ok=yes
14636 case " ${configdirs} " in
14637 *" binutils "*) ;;
14638 *) ok=no ;;
14639 esac
c6b750e1 14640
be01d343
PB
14641 if test $ok = yes; then
14642 # An in-tree tool is available and we can use it
14643 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14645$as_echo "just compiled" >&6; }
2429c060
PB
14646 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14647 # We already found the complete path
b8025f34 14648 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14650$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14651 elif test "x$target" = "x$host"; then
14652 # We can use an host tool
14653 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14655$as_echo "host tool" >&6; }
be01d343
PB
14656 else
14657 # We need a cross tool
81ecdfbb
RW
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14659$as_echo "pre-installed" >&6; }
be01d343
PB
14660 fi
14661fi
4b900473 14662
b121d7d4
DD
14663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14664$as_echo_n "checking where to find the target readelf... " >&6; }
14665if test "x${build}" != "x${host}" ; then
14666 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14667 # We already found the complete path
14668 ac_dir=`dirname $READELF_FOR_TARGET`
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14670$as_echo "pre-installed in $ac_dir" >&6; }
14671 else
14672 # Canadian cross, just use what we found
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14674$as_echo "pre-installed" >&6; }
14675 fi
14676else
14677 ok=yes
14678 case " ${configdirs} " in
14679 *" binutils "*) ;;
14680 *) ok=no ;;
14681 esac
14682
14683 if test $ok = yes; then
14684 # An in-tree tool is available and we can use it
14685 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14687$as_echo "just compiled" >&6; }
14688 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14689 # We already found the complete path
14690 ac_dir=`dirname $READELF_FOR_TARGET`
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14692$as_echo "pre-installed in $ac_dir" >&6; }
14693 elif test "x$target" = "x$host"; then
14694 # We can use an host tool
14695 READELF_FOR_TARGET='$(READELF)'
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14697$as_echo "host tool" >&6; }
14698 else
14699 # We need a cross tool
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14701$as_echo "pre-installed" >&6; }
14702 fi
14703fi
14704
81ecdfbb
RW
14705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14706$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14707if test "x${build}" != "x${host}" ; then
2429c060
PB
14708 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14709 # We already found the complete path
b8025f34 14710 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14712$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14713 else
14714 # Canadian cross, just use what we found
81ecdfbb
RW
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14716$as_echo "pre-installed" >&6; }
2429c060 14717 fi
be01d343
PB
14718else
14719 ok=yes
14720 case " ${configdirs} " in
14721 *" binutils "*) ;;
14722 *) ok=no ;;
14723 esac
c6b750e1 14724
be01d343
PB
14725 if test $ok = yes; then
14726 # An in-tree tool is available and we can use it
9b980aa1 14727 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14729$as_echo "just compiled" >&6; }
2429c060
PB
14730 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14731 # We already found the complete path
b8025f34 14732 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14734$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14735 elif test "x$target" = "x$host"; then
14736 # We can use an host tool
14737 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14739$as_echo "host tool" >&6; }
be01d343
PB
14740 else
14741 # We need a cross tool
81ecdfbb
RW
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14743$as_echo "pre-installed" >&6; }
be01d343
PB
14744 fi
14745fi
4b900473 14746
81ecdfbb
RW
14747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14748$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14749if test "x${build}" != "x${host}" ; then
2429c060
PB
14750 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14751 # We already found the complete path
b8025f34 14752 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14754$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14755 else
14756 # Canadian cross, just use what we found
81ecdfbb
RW
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14758$as_echo "pre-installed" >&6; }
2429c060 14759 fi
be01d343
PB
14760else
14761 ok=yes
14762 case " ${configdirs} " in
14763 *" binutils "*) ;;
14764 *) ok=no ;;
14765 esac
c6b750e1 14766
be01d343
PB
14767 if test $ok = yes; then
14768 # An in-tree tool is available and we can use it
14769 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14771$as_echo "just compiled" >&6; }
2429c060
PB
14772 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14773 # We already found the complete path
b8025f34 14774 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14776$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14777 elif test "x$target" = "x$host"; then
14778 # We can use an host tool
14779 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14781$as_echo "host tool" >&6; }
be01d343
PB
14782 else
14783 # We need a cross tool
81ecdfbb
RW
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14785$as_echo "pre-installed" >&6; }
be01d343 14786 fi
a0da8069 14787fi
54752a6b 14788
81ecdfbb
RW
14789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14790$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14791if test "x${build}" != "x${host}" ; then
14792 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14793 # We already found the complete path
14794 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14796$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14797 else
14798 # Canadian cross, just use what we found
81ecdfbb
RW
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14800$as_echo "pre-installed" >&6; }
0c24b341
NC
14801 fi
14802else
14803 ok=yes
14804 case " ${configdirs} " in
14805 *" binutils "*) ;;
14806 *) ok=no ;;
14807 esac
14808
14809 if test $ok = yes; then
14810 # An in-tree tool is available and we can use it
14811 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14813$as_echo "just compiled" >&6; }
0c24b341
NC
14814 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14815 # We already found the complete path
14816 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14818$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14819 elif test "x$target" = "x$host"; then
14820 # We can use an host tool
14821 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14823$as_echo "host tool" >&6; }
0c24b341
NC
14824 else
14825 # We need a cross tool
81ecdfbb
RW
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14827$as_echo "pre-installed" >&6; }
0c24b341
NC
14828 fi
14829fi
14830
54752a6b
NN
14831
14832
be01d343 14833
4b900473 14834
a0da8069
NN
14835# Certain tools may need extra flags.
14836AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14837RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14838NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14839
be01d343
PB
14840# When building target libraries, except in a Canadian cross, we use
14841# the same toolchain as the compiler we just built.
14842COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14843COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14844COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14845if test $host = $build; then
14846 case " $configdirs " in
14847 *" gcc "*)
14848 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14849 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14850 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14851 ;;
14852 esac
14853fi
14854
14855
14856
14857
14858
81ecdfbb
RW
14859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14860$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14861# Check whether --enable-maintainer-mode was given.
14862if test "${enable_maintainer_mode+set}" = set; then :
14863 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14864else
14865 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14866fi
14867
14868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14869$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14870
14871
14872if test "$USE_MAINTAINER_MODE" = yes; then
14873 MAINTAINER_MODE_TRUE=
14874 MAINTAINER_MODE_FALSE='#'
14875else
14876 MAINTAINER_MODE_TRUE='#'
14877 MAINTAINER_MODE_FALSE=
c6b750e1 14878fi
3d5e36ae
AO
14879MAINT=$MAINTAINER_MODE_TRUE
14880
1d39f329
NN
14881# ---------------------
14882# GCC bootstrap support
14883# ---------------------
14884
14885# Stage specific cflags for build.
14886stage1_cflags="-g"
14887case $build in
14888 vax-*-*)
14889 case ${GCC} in
14890 yes) stage1_cflags="-g -Wa,-J" ;;
14891 *) stage1_cflags="-g -J" ;;
14892 esac ;;
1d39f329
NN
14893esac
14894
1d89b610 14895
1d39f329 14896
8a0d8a5c 14897# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14898# Check whether --enable-stage1-checking was given.
14899if test "${enable_stage1_checking+set}" = set; then :
14900 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14901else
5566c1fa 14902 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14903 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14904else
5566c1fa 14905 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14906fi
81ecdfbb 14907fi
8a0d8a5c
PB
14908
14909
c6b750e1 14910
81ecdfbb
RW
14911# Enable -Werror in bootstrap stage2 and later.
14912# Check whether --enable-werror was given.
14913if test "${enable_werror+set}" = set; then :
14914 enableval=$enable_werror;
1d39f329 14915else
a0323144 14916 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14917 enable_werror=yes
79fcd0ec
PB
14918else
14919 enable_werror=no
14920fi
81ecdfbb
RW
14921fi
14922
1a6f2dc7
NN
14923case ${enable_werror} in
14924 yes) stage2_werror_flag="--enable-werror-always" ;;
14925 *) stage2_werror_flag="" ;;
1d39f329
NN
14926esac
14927
14928
82033c9b
JBG
14929# Enable --enable-host-shared.
14930# Check whether --enable-host-shared was given.
14931if test "${enable_host_shared+set}" = set; then :
14932 enableval=$enable_host_shared; host_shared=$enableval
14933else
14934 host_shared=no
14935fi
14936
14937
14938
e8a5fa9c
RW
14939# Specify what files to not compare during bootstrap.
14940
14941compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14942case "$target" in
14943 hppa*64*-*-hpux*) ;;
14944 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
1488e230 14945 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14946esac
14947
14948
81ecdfbb
RW
14949ac_config_files="$ac_config_files Makefile"
14950
c6b750e1 14951cat >confcache <<\_ACEOF
a0da8069
NN
14952# This file is a shell script that caches the results of configure
14953# tests run on this system so they can be shared between configure
c6b750e1
DJ
14954# scripts and configure runs, see configure's option --config-cache.
14955# It is not useful on other systems. If it contains results you don't
14956# want to keep, you may remove or edit it.
a0da8069 14957#
c6b750e1
DJ
14958# config.status only pays attention to the cache file if you give it
14959# the --recheck option to rerun configure.
a0da8069 14960#
c6b750e1
DJ
14961# `ac_cv_env_foo' variables (set or unset) will be overridden when
14962# loading this file, other *unset* `ac_cv_foo' will be assigned the
14963# following values.
14964
14965_ACEOF
14966
a0da8069
NN
14967# The following way of writing the cache mishandles newlines in values,
14968# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14969# So, we kill variables containing newlines.
a0da8069
NN
14970# Ultrix sh set writes to stderr and can't be redirected directly,
14971# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14972(
14973 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14974 eval ac_val=\$$ac_var
14975 case $ac_val in #(
14976 *${as_nl}*)
14977 case $ac_var in #(
14978 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14979$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14980 esac
14981 case $ac_var in #(
14982 _ | IFS | as_nl) ;; #(
14983 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14984 *) { eval $ac_var=; unset $ac_var;} ;;
14985 esac ;;
14986 esac
14987 done
14988
c6b750e1 14989 (set) 2>&1 |
81ecdfbb
RW
14990 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14991 *${as_nl}ac_space=\ *)
14992 # `set' does not quote correctly, so add quotes: double-quote
14993 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14994 sed -n \
14995 "s/'/'\\\\''/g;
14996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14997 ;; #(
c6b750e1
DJ
14998 *)
14999 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 15000 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 15001 ;;
81ecdfbb
RW
15002 esac |
15003 sort
15004) |
c6b750e1 15005 sed '
81ecdfbb 15006 /^ac_cv_env_/b end
c6b750e1 15007 t clear
81ecdfbb 15008 :clear
c6b750e1
DJ
15009 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15010 t end
81ecdfbb
RW
15011 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15012 :end' >>confcache
15013if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15014 if test -w "$cache_file"; then
15015 test "x$cache_file" != "x/dev/null" &&
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15017$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 15018 cat confcache >$cache_file
a0da8069 15019 else
81ecdfbb
RW
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15021$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 15022 fi
852e5f18 15023fi
a0da8069 15024rm -f confcache
852e5f18 15025
a0da8069
NN
15026test "x$prefix" = xNONE && prefix=$ac_default_prefix
15027# Let make expand exec_prefix.
15028test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 15029
a0da8069
NN
15030# Transform confdefs.h into DEFS.
15031# Protect against shell expansion while executing Makefile rules.
15032# Protect against Makefile macro expansion.
c6b750e1
DJ
15033#
15034# If the first sed substitution is executed (which looks for macros that
81ecdfbb 15035# take arguments), then branch to the quote section. Otherwise,
c6b750e1 15036# look for a macro that doesn't take arguments.
81ecdfbb
RW
15037ac_script='
15038:mline
15039/\\$/{
15040 N
15041 s,\\\n,,
15042 b mline
15043}
c6b750e1 15044t clear
81ecdfbb
RW
15045:clear
15046s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 15047t quote
81ecdfbb 15048s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 15049t quote
81ecdfbb
RW
15050b any
15051:quote
15052s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15053s/\[/\\&/g
15054s/\]/\\&/g
15055s/\$/$$/g
15056H
15057:any
15058${
15059 g
15060 s/^\n//
15061 s/\n/ /g
15062 p
15063}
15064'
15065DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
15066
15067
15068ac_libobjs=
15069ac_ltlibobjs=
15070for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15071 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15072 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15073 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15074 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15075 # will be set to the directory where LIBOBJS objects are built.
15076 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15077 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
15078done
15079LIBOBJS=$ac_libobjs
852e5f18 15080
c6b750e1 15081LTLIBOBJS=$ac_ltlibobjs
376a0e54 15082
cac3d6c4 15083
c6b750e1
DJ
15084
15085: ${CONFIG_STATUS=./config.status}
81ecdfbb 15086ac_write_fail=0
c6b750e1
DJ
15087ac_clean_files_save=$ac_clean_files
15088ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15089{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15090$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15091as_write_fail=0
15092cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
15093#! $SHELL
15094# Generated by $as_me.
a0da8069 15095# Run this file to recreate the current configuration.
a0da8069 15096# Compiler output produced by configure, useful for debugging
c6b750e1 15097# configure, is in config.log if it exists.
376a0e54 15098
c6b750e1
DJ
15099debug=false
15100ac_cs_recheck=false
15101ac_cs_silent=false
c6b750e1 15102
81ecdfbb
RW
15103SHELL=\${CONFIG_SHELL-$SHELL}
15104export SHELL
15105_ASEOF
15106cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15107## -------------------- ##
15108## M4sh Initialization. ##
15109## -------------------- ##
15110
15111# Be more Bourne compatible
15112DUALCASE=1; export DUALCASE # for MKS sh
15113if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
15114 emulate sh
15115 NULLCMD=:
81ecdfbb 15116 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
15117 # is contrary to our usage. Disable this feature.
15118 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15119 setopt NO_GLOB_SUBST
15120else
15121 case `(set -o) 2>/dev/null` in #(
15122 *posix*) :
15123 set -o posix ;; #(
15124 *) :
15125 ;;
15126esac
c6b750e1 15127fi
c6b750e1 15128
81ecdfbb
RW
15129
15130as_nl='
15131'
15132export as_nl
15133# Printing a long string crashes Solaris 7 /usr/bin/printf.
15134as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15135as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15136as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15137# Prefer a ksh shell builtin over an external printf program on Solaris,
15138# but without wasting forks for bash or zsh.
15139if test -z "$BASH_VERSION$ZSH_VERSION" \
15140 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15141 as_echo='print -r --'
15142 as_echo_n='print -rn --'
15143elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15144 as_echo='printf %s\n'
15145 as_echo_n='printf %s'
15146else
15147 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15148 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15149 as_echo_n='/usr/ucb/echo -n'
15150 else
15151 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15152 as_echo_n_body='eval
15153 arg=$1;
15154 case $arg in #(
15155 *"$as_nl"*)
15156 expr "X$arg" : "X\\(.*\\)$as_nl";
15157 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15158 esac;
15159 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15160 '
15161 export as_echo_n_body
15162 as_echo_n='sh -c $as_echo_n_body as_echo'
15163 fi
15164 export as_echo_body
15165 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
15166fi
15167
81ecdfbb
RW
15168# The user is always right.
15169if test "${PATH_SEPARATOR+set}" != set; then
15170 PATH_SEPARATOR=:
15171 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15172 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15173 PATH_SEPARATOR=';'
15174 }
15175fi
15176
15177
15178# IFS
15179# We need space, tab and new line, in precisely that order. Quoting is
15180# there to prevent editors from complaining about space-tab.
15181# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15182# splitting by setting IFS to empty value.)
15183IFS=" "" $as_nl"
15184
15185# Find who we are. Look in the path if we contain no directory separator.
15186case $0 in #((
15187 *[\\/]* ) as_myself=$0 ;;
15188 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15189for as_dir in $PATH
15190do
15191 IFS=$as_save_IFS
15192 test -z "$as_dir" && as_dir=.
15193 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15194 done
15195IFS=$as_save_IFS
15196
15197 ;;
15198esac
15199# We did not find ourselves, most probably we were run as `sh COMMAND'
15200# in which case we are not to be found in the path.
15201if test "x$as_myself" = x; then
15202 as_myself=$0
15203fi
15204if test ! -f "$as_myself"; then
15205 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15206 exit 1
15207fi
c6b750e1 15208
81ecdfbb
RW
15209# Unset variables that we do not need and which cause bugs (e.g. in
15210# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15211# suppresses any "Segmentation fault" message there. '((' could
15212# trigger a bug in pdksh 5.2.14.
15213for as_var in BASH_ENV ENV MAIL MAILPATH
15214do eval test x\${$as_var+set} = xset \
15215 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15216done
c6b750e1
DJ
15217PS1='$ '
15218PS2='> '
15219PS4='+ '
15220
15221# NLS nuisances.
81ecdfbb
RW
15222LC_ALL=C
15223export LC_ALL
15224LANGUAGE=C
15225export LANGUAGE
15226
15227# CDPATH.
15228(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15229
15230
15231# as_fn_error ERROR [LINENO LOG_FD]
15232# ---------------------------------
15233# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15234# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15235# script with status $?, using 1 if that was 0.
15236as_fn_error ()
15237{
15238 as_status=$?; test $as_status -eq 0 && as_status=1
15239 if test "$3"; then
15240 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15241 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 15242 fi
81ecdfbb
RW
15243 $as_echo "$as_me: error: $1" >&2
15244 as_fn_exit $as_status
15245} # as_fn_error
15246
15247
15248# as_fn_set_status STATUS
15249# -----------------------
15250# Set $? to STATUS, without forking.
15251as_fn_set_status ()
15252{
15253 return $1
15254} # as_fn_set_status
15255
15256# as_fn_exit STATUS
15257# -----------------
15258# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15259as_fn_exit ()
15260{
15261 set +e
15262 as_fn_set_status $1
15263 exit $1
15264} # as_fn_exit
15265
15266# as_fn_unset VAR
15267# ---------------
15268# Portably unset VAR.
15269as_fn_unset ()
15270{
15271 { eval $1=; unset $1;}
15272}
15273as_unset=as_fn_unset
15274# as_fn_append VAR VALUE
15275# ----------------------
15276# Append the text in VALUE to the end of the definition contained in VAR. Take
15277# advantage of any shell optimizations that allow amortized linear growth over
15278# repeated appends, instead of the typical quadratic growth present in naive
15279# implementations.
15280if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15281 eval 'as_fn_append ()
15282 {
15283 eval $1+=\$2
15284 }'
15285else
15286 as_fn_append ()
15287 {
15288 eval $1=\$$1\$2
15289 }
15290fi # as_fn_append
15291
15292# as_fn_arith ARG...
15293# ------------------
15294# Perform arithmetic evaluation on the ARGs, and store the result in the
15295# global $as_val. Take advantage of shells that can avoid forks. The arguments
15296# must be portable across $(()) and expr.
15297if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15298 eval 'as_fn_arith ()
15299 {
15300 as_val=$(( $* ))
15301 }'
15302else
15303 as_fn_arith ()
15304 {
15305 as_val=`expr "$@" || test $? -eq 1`
15306 }
15307fi # as_fn_arith
15308
c6b750e1 15309
81ecdfbb
RW
15310if expr a : '\(a\)' >/dev/null 2>&1 &&
15311 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
15312 as_expr=expr
15313else
15314 as_expr=false
15315fi
15316
81ecdfbb 15317if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
15318 as_basename=basename
15319else
15320 as_basename=false
15321fi
15322
81ecdfbb
RW
15323if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15324 as_dirname=dirname
15325else
15326 as_dirname=false
15327fi
c6b750e1 15328
81ecdfbb 15329as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15330$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15331 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15332 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15333$as_echo X/"$0" |
15334 sed '/^.*\/\([^/][^/]*\)\/*$/{
15335 s//\1/
15336 q
15337 }
15338 /^X\/\(\/\/\)$/{
15339 s//\1/
15340 q
15341 }
15342 /^X\/\(\/\).*/{
15343 s//\1/
15344 q
15345 }
15346 s/.*/./; q'`
c6b750e1 15347
c6b750e1
DJ
15348# Avoid depending upon Character Ranges.
15349as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15350as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15351as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15352as_cr_digits='0123456789'
15353as_cr_alnum=$as_cr_Letters$as_cr_digits
15354
81ecdfbb
RW
15355ECHO_C= ECHO_N= ECHO_T=
15356case `echo -n x` in #(((((
15357-n*)
15358 case `echo 'xy\c'` in
15359 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15360 xy) ECHO_C='\c';;
15361 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15362 ECHO_T=' ';;
15363 esac;;
15364*)
15365 ECHO_N='-n';;
c6b750e1
DJ
15366esac
15367
81ecdfbb
RW
15368rm -f conf$$ conf$$.exe conf$$.file
15369if test -d conf$$.dir; then
15370 rm -f conf$$.dir/conf$$.file
c6b750e1 15371else
81ecdfbb
RW
15372 rm -f conf$$.dir
15373 mkdir conf$$.dir 2>/dev/null
c6b750e1 15374fi
81ecdfbb
RW
15375if (echo >conf$$.file) 2>/dev/null; then
15376 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15377 as_ln_s='ln -s'
81ecdfbb
RW
15378 # ... but there are two gotchas:
15379 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15380 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15381 # In both cases, we have to default to `cp -p'.
15382 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15383 as_ln_s='cp -p'
15384 elif ln conf$$.file conf$$ 2>/dev/null; then
15385 as_ln_s=ln
15386 else
15387 as_ln_s='cp -p'
c6b750e1 15388 fi
c6b750e1
DJ
15389else
15390 as_ln_s='cp -p'
15391fi
81ecdfbb
RW
15392rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15393rmdir conf$$.dir 2>/dev/null
15394
15395
15396# as_fn_mkdir_p
15397# -------------
15398# Create "$as_dir" as a directory, including parents if necessary.
15399as_fn_mkdir_p ()
15400{
15401
15402 case $as_dir in #(
15403 -*) as_dir=./$as_dir;;
15404 esac
15405 test -d "$as_dir" || eval $as_mkdir_p || {
15406 as_dirs=
15407 while :; do
15408 case $as_dir in #(
15409 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15410 *) as_qdir=$as_dir;;
15411 esac
15412 as_dirs="'$as_qdir' $as_dirs"
15413 as_dir=`$as_dirname -- "$as_dir" ||
15414$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15415 X"$as_dir" : 'X\(//\)[^/]' \| \
15416 X"$as_dir" : 'X\(//\)$' \| \
15417 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15418$as_echo X"$as_dir" |
15419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15420 s//\1/
15421 q
15422 }
15423 /^X\(\/\/\)[^/].*/{
15424 s//\1/
15425 q
15426 }
15427 /^X\(\/\/\)$/{
15428 s//\1/
15429 q
15430 }
15431 /^X\(\/\).*/{
15432 s//\1/
15433 q
15434 }
15435 s/.*/./; q'`
15436 test -d "$as_dir" && break
15437 done
15438 test -z "$as_dirs" || eval "mkdir $as_dirs"
15439 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15440
c6b750e1 15441
81ecdfbb 15442} # as_fn_mkdir_p
c6b750e1 15443if mkdir -p . 2>/dev/null; then
81ecdfbb 15444 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15445else
15446 test -d ./-p && rmdir ./-p
15447 as_mkdir_p=false
15448fi
15449
81ecdfbb
RW
15450if test -x / >/dev/null 2>&1; then
15451 as_test_x='test -x'
15452else
15453 if ls -dL / >/dev/null 2>&1; then
15454 as_ls_L_option=L
15455 else
15456 as_ls_L_option=
15457 fi
15458 as_test_x='
15459 eval sh -c '\''
15460 if test -d "$1"; then
15461 test -d "$1/.";
15462 else
15463 case $1 in #(
15464 -*)set "./$1";;
15465 esac;
15466 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15467 ???[sx]*):;;*)false;;esac;fi
15468 '\'' sh
15469 '
15470fi
15471as_executable_p=$as_test_x
c6b750e1
DJ
15472
15473# Sed expression to map a string onto a valid CPP name.
15474as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15475
15476# Sed expression to map a string onto a valid variable name.
15477as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15478
15479
c6b750e1 15480exec 6>&1
81ecdfbb
RW
15481## ----------------------------------- ##
15482## Main body of $CONFIG_STATUS script. ##
15483## ----------------------------------- ##
15484_ASEOF
15485test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15486
15487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15488# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15489# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15490# values after options handling.
15491ac_log="
c6b750e1 15492This file was extended by $as_me, which was
81ecdfbb 15493generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
15494
15495 CONFIG_FILES = $CONFIG_FILES
15496 CONFIG_HEADERS = $CONFIG_HEADERS
15497 CONFIG_LINKS = $CONFIG_LINKS
15498 CONFIG_COMMANDS = $CONFIG_COMMANDS
15499 $ $0 $@
15500
81ecdfbb
RW
15501on `(hostname || uname -n) 2>/dev/null | sed 1q`
15502"
15503
c6b750e1
DJ
15504_ACEOF
15505
81ecdfbb
RW
15506case $ac_config_files in *"
15507"*) set x $ac_config_files; shift; ac_config_files=$*;;
15508esac
c6b750e1 15509
c6b750e1 15510
c6b750e1 15511
81ecdfbb
RW
15512cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15513# Files that config.status was made for.
15514config_files="$ac_config_files"
c6b750e1 15515
81ecdfbb 15516_ACEOF
c6b750e1 15517
81ecdfbb 15518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15519ac_cs_usage="\
81ecdfbb
RW
15520\`$as_me' instantiates files and other configuration actions
15521from templates according to the current configuration. Unless the files
15522and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15523
81ecdfbb 15524Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15525
15526 -h, --help print this help, then exit
81ecdfbb
RW
15527 -V, --version print version number and configuration settings, then exit
15528 -q, --quiet, --silent
15529 do not print progress messages
c6b750e1
DJ
15530 -d, --debug don't remove temporary files
15531 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15532 --file=FILE[:TEMPLATE]
15533 instantiate the configuration file FILE
c6b750e1
DJ
15534
15535Configuration files:
15536$config_files
15537
81ecdfbb 15538Report bugs to the package provider."
c6b750e1 15539
81ecdfbb
RW
15540_ACEOF
15541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
15542ac_cs_version="\\
15543config.status
81ecdfbb
RW
15544configured by $0, generated by GNU Autoconf 2.64,
15545 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 15546
81ecdfbb 15547Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
15548This config.status script is free software; the Free Software Foundation
15549gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15550
15551ac_pwd='$ac_pwd'
15552srcdir='$srcdir'
15553INSTALL='$INSTALL'
8e957354 15554AWK='$AWK'
81ecdfbb 15555test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15556_ACEOF
15557
81ecdfbb
RW
15558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15559# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15560ac_need_defaults=:
15561while test $# != 0
a0da8069 15562do
c6b750e1
DJ
15563 case $1 in
15564 --*=*)
81ecdfbb
RW
15565 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15566 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15567 ac_shift=:
15568 ;;
81ecdfbb 15569 *)
c6b750e1
DJ
15570 ac_option=$1
15571 ac_optarg=$2
15572 ac_shift=shift
15573 ;;
c6b750e1
DJ
15574 esac
15575
15576 case $ac_option in
15577 # Handling of the options.
a0da8069 15578 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15579 ac_cs_recheck=: ;;
81ecdfbb
RW
15580 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15581 $as_echo "$ac_cs_version"; exit ;;
15582 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15583 debug=: ;;
15584 --file | --fil | --fi | --f )
15585 $ac_shift
81ecdfbb
RW
15586 case $ac_optarg in
15587 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15588 esac
15589 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15590 ac_need_defaults=false;;
81ecdfbb
RW
15591 --he | --h | --help | --hel | -h )
15592 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15593 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15594 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15595 ac_cs_silent=: ;;
15596
15597 # This is an error.
81ecdfbb
RW
15598 -*) as_fn_error "unrecognized option: \`$1'
15599Try \`$0 --help' for more information." ;;
c6b750e1 15600
81ecdfbb
RW
15601 *) as_fn_append ac_config_targets " $1"
15602 ac_need_defaults=false ;;
c6b750e1 15603
376a0e54 15604 esac
c6b750e1 15605 shift
376a0e54
CM
15606done
15607
c6b750e1 15608ac_configure_extra_args=
376a0e54 15609
c6b750e1
DJ
15610if $ac_cs_silent; then
15611 exec 6>/dev/null
15612 ac_configure_extra_args="$ac_configure_extra_args --silent"
15613fi
376a0e54 15614
c6b750e1 15615_ACEOF
81ecdfbb 15616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15617if \$ac_cs_recheck; then
81ecdfbb
RW
15618 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15619 shift
15620 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15621 CONFIG_SHELL='$SHELL'
15622 export CONFIG_SHELL
15623 exec "\$@"
c6b750e1
DJ
15624fi
15625
15626_ACEOF
81ecdfbb
RW
15627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15628exec 5>>config.log
15629{
15630 echo
15631 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15632## Running $as_me. ##
15633_ASBOX
15634 $as_echo "$ac_log"
15635} >&5
c6b750e1 15636
81ecdfbb
RW
15637_ACEOF
15638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15639#
15640# INIT-COMMANDS
15641#
15642extrasub_build="$extrasub_build"
15643 extrasub_host="$extrasub_host"
15644 extrasub_target="$extrasub_target"
15645
81ecdfbb 15646_ACEOF
c6b750e1 15647
81ecdfbb 15648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15649
81ecdfbb 15650# Handling of arguments.
c6b750e1
DJ
15651for ac_config_target in $ac_config_targets
15652do
81ecdfbb
RW
15653 case $ac_config_target in
15654 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15655
15656 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15657 esac
15658done
15659
81ecdfbb 15660
c6b750e1
DJ
15661# If the user did not use the arguments to specify the items to instantiate,
15662# then the envvar interface is used. Set only those that are not.
15663# We use the long form for the default assignment because of an extremely
15664# bizarre bug on SunOS 4.1.3.
15665if $ac_need_defaults; then
15666 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15667fi
15668
15669# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15670# simply because there is no reason against having it here, and in addition,
c6b750e1 15671# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15672# Hook for its removal unless debugging.
15673# Note that there is a small window in which the directory will not be cleaned:
15674# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15675$debug ||
15676{
81ecdfbb
RW
15677 tmp=
15678 trap 'exit_status=$?
15679 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15680' 0
15681 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15682}
c6b750e1
DJ
15683# Create a (secure) tmp directory for tmp files.
15684
15685{
81ecdfbb 15686 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
15687 test -n "$tmp" && test -d "$tmp"
15688} ||
15689{
81ecdfbb
RW
15690 tmp=./conf$$-$RANDOM
15691 (umask 077 && mkdir "$tmp")
15692} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15693
15694# Set up the scripts for CONFIG_FILES section.
15695# No need to generate them if there are no CONFIG_FILES.
15696# This happens for instance with `./config.status config.h'.
15697if test -n "$CONFIG_FILES"; then
15698
15699if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15700 ac_cs_awk_getline=:
15701 ac_cs_awk_pipe_init=
15702 ac_cs_awk_read_file='
15703 while ((getline aline < (F[key])) > 0)
15704 print(aline)
15705 close(F[key])'
15706 ac_cs_awk_pipe_fini=
15707else
15708 ac_cs_awk_getline=false
15709 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15710 ac_cs_awk_read_file='
15711 print "|#_!!_#|"
15712 print "cat " F[key] " &&"
15713 '$ac_cs_awk_pipe_init
15714 # The final `:' finishes the AND list.
15715 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15716fi
15717ac_cr=`echo X | tr X '\015'`
15718# On cygwin, bash can eat \r inside `` if the user requested igncr.
15719# But we know of no other shell where ac_cr would be empty at this
15720# point, so we can use a bashism as a fallback.
15721if test "x$ac_cr" = x; then
15722 eval ac_cr=\$\'\\r\'
15723fi
15724ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15725if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15726 ac_cs_awk_cr='\r'
15727else
15728 ac_cs_awk_cr=$ac_cr
15729fi
15730
15731echo 'BEGIN {' >"$tmp/subs1.awk" &&
15732_ACEOF
15733
15734# Create commands to substitute file output variables.
c6b750e1 15735{
81ecdfbb
RW
15736 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15737 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15738 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15739 echo "_ACAWK" &&
15740 echo "_ACEOF"
15741} >conf$$files.sh &&
15742. ./conf$$files.sh ||
15743 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15744rm -f conf$$files.sh
c6b750e1 15745
81ecdfbb
RW
15746{
15747 echo "cat >conf$$subs.awk <<_ACEOF" &&
15748 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15749 echo "_ACEOF"
15750} >conf$$subs.sh ||
15751 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15752ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15753ac_delim='%!_!# '
15754for ac_last_try in false false false false false :; do
15755 . ./conf$$subs.sh ||
15756 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15757
15758 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15759 if test $ac_delim_n = $ac_delim_num; then
15760 break
15761 elif $ac_last_try; then
15762 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15763 else
15764 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15765 fi
15766done
15767rm -f conf$$subs.sh
15768
15769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15770cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15771_ACEOF
81ecdfbb
RW
15772sed -n '
15773h
15774s/^/S["/; s/!.*/"]=/
15775p
15776g
15777s/^[^!]*!//
15778:repl
15779t repl
15780s/'"$ac_delim"'$//
15781t delim
15782:nl
15783h
15784s/\(.\{148\}\).*/\1/
15785t more1
15786s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15787p
15788n
15789b repl
15790:more1
15791s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15792p
15793g
15794s/.\{148\}//
15795t nl
15796:delim
15797h
15798s/\(.\{148\}\).*/\1/
15799t more2
15800s/["\\]/\\&/g; s/^/"/; s/$/"/
15801p
15802b
15803:more2
15804s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15805p
15806g
15807s/.\{148\}//
15808t delim
15809' <conf$$subs.awk | sed '
15810/^[^""]/{
15811 N
15812 s/\n//
15813}
15814' >>$CONFIG_STATUS || ac_write_fail=1
15815rm -f conf$$subs.awk
15816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15817_ACAWK
15818cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15819 for (key in S) S_is_set[key] = 1
15820 FS = "\a"
15821 \$ac_cs_awk_pipe_init
15822}
15823{
15824 line = $ 0
15825 nfields = split(line, field, "@")
15826 substed = 0
15827 len = length(field[1])
15828 for (i = 2; i < nfields; i++) {
15829 key = field[i]
15830 keylen = length(key)
15831 if (S_is_set[key]) {
15832 value = S[key]
15833 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15834 len += length(value) + length(field[++i])
15835 substed = 1
15836 } else
15837 len += 1 + keylen
15838 }
15839 if (nfields == 3 && !substed) {
15840 key = field[2]
15841 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15842 \$ac_cs_awk_read_file
15843 next
15844 }
15845 }
15846 print line
15847}
15848\$ac_cs_awk_pipe_fini
15849_ACAWK
15850_ACEOF
15851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15852if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15853 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15854else
15855 cat
15856fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15857 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15858_ACEOF
15859
15860# VPATH may cause trouble with some makes, so we remove $(srcdir),
15861# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15862# trailing colons and then remove the whole line if VPATH becomes empty
15863# (actually we leave an empty line to preserve line numbers).
15864if test "x$srcdir" = x.; then
15865 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15866s/:*\$(srcdir):*/:/
15867s/:*\${srcdir}:*/:/
15868s/:*@srcdir@:*/:/
15869s/^\([^=]*=[ ]*\):*/\1/
15870s/:*$//
15871s/^[^=]*=[ ]*$//
15872}'
15873fi
c6b750e1 15874
81ecdfbb
RW
15875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15876fi # test -n "$CONFIG_FILES"
c6b750e1 15877
c6b750e1 15878
81ecdfbb
RW
15879eval set X " :F $CONFIG_FILES "
15880shift
15881for ac_tag
15882do
15883 case $ac_tag in
15884 :[FHLC]) ac_mode=$ac_tag; continue;;
15885 esac
15886 case $ac_mode$ac_tag in
15887 :[FHL]*:*);;
15888 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15889 :[FH]-) ac_tag=-:-;;
15890 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15891 esac
15892 ac_save_IFS=$IFS
15893 IFS=:
15894 set x $ac_tag
15895 IFS=$ac_save_IFS
15896 shift
15897 ac_file=$1
15898 shift
252b5132 15899
81ecdfbb
RW
15900 case $ac_mode in
15901 :L) ac_source=$1;;
15902 :[FH])
15903 ac_file_inputs=
15904 for ac_f
15905 do
15906 case $ac_f in
15907 -) ac_f="$tmp/stdin";;
15908 *) # Look for the file first in the build tree, then in the source tree
15909 # (if the path is not absolute). The absolute path cannot be DOS-style,
15910 # because $ac_f cannot contain `:'.
15911 test -f "$ac_f" ||
15912 case $ac_f in
15913 [\\/$]*) false;;
15914 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15915 esac ||
15916 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15917 esac
15918 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15919 as_fn_append ac_file_inputs " '$ac_f'"
15920 done
c6b750e1 15921
81ecdfbb
RW
15922 # Let's still pretend it is `configure' which instantiates (i.e., don't
15923 # use $as_me), people would be surprised to read:
15924 # /* config.h. Generated by config.status. */
15925 configure_input='Generated from '`
15926 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15927 `' by configure.'
15928 if test x"$ac_file" != x-; then
15929 configure_input="$ac_file. $configure_input"
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15931$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15932 fi
81ecdfbb
RW
15933 # Neutralize special characters interpreted by sed in replacement strings.
15934 case $configure_input in #(
15935 *\&* | *\|* | *\\* )
15936 ac_sed_conf_input=`$as_echo "$configure_input" |
15937 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15938 *) ac_sed_conf_input=$configure_input;;
15939 esac
cac3d6c4 15940
81ecdfbb
RW
15941 case $ac_tag in
15942 *:-:* | *:-) cat >"$tmp/stdin" \
15943 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15944 esac
15945 ;;
a0da8069 15946 esac
252b5132 15947
81ecdfbb 15948 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15949$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15950 X"$ac_file" : 'X\(//\)[^/]' \| \
15951 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15952 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15953$as_echo X"$ac_file" |
15954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15955 s//\1/
15956 q
15957 }
15958 /^X\(\/\/\)[^/].*/{
15959 s//\1/
15960 q
15961 }
15962 /^X\(\/\/\)$/{
15963 s//\1/
15964 q
15965 }
15966 /^X\(\/\).*/{
15967 s//\1/
15968 q
15969 }
15970 s/.*/./; q'`
15971 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15972 ac_builddir=.
252b5132 15973
81ecdfbb
RW
15974case "$ac_dir" in
15975.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15976*)
15977 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15978 # A ".." for each directory in $ac_dir_suffix.
15979 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15980 case $ac_top_builddir_sub in
15981 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15982 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15983 esac ;;
15984esac
15985ac_abs_top_builddir=$ac_pwd
15986ac_abs_builddir=$ac_pwd$ac_dir_suffix
15987# for backward compatibility:
15988ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15989
15990case $srcdir in
81ecdfbb 15991 .) # We are building in place.
c6b750e1 15992 ac_srcdir=.
81ecdfbb
RW
15993 ac_top_srcdir=$ac_top_builddir_sub
15994 ac_abs_top_srcdir=$ac_pwd ;;
15995 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15996 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15997 ac_top_srcdir=$srcdir
15998 ac_abs_top_srcdir=$srcdir ;;
15999 *) # Relative name.
16000 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16001 ac_top_srcdir=$ac_top_build_prefix$srcdir
16002 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 16003esac
81ecdfbb 16004ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 16005
252b5132 16006
81ecdfbb
RW
16007 case $ac_mode in
16008 :F)
16009 #
16010 # CONFIG_FILE
16011 #
c6b750e1
DJ
16012
16013 case $INSTALL in
16014 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 16015 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 16016 esac
81ecdfbb 16017_ACEOF
252b5132 16018
81ecdfbb
RW
16019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16020# If the template does not know about datarootdir, expand it.
16021# FIXME: This hack should be removed a few years after 2.60.
16022ac_datarootdir_hack=; ac_datarootdir_seen=
16023ac_sed_dataroot='
16024/datarootdir/ {
16025 p
16026 q
16027}
16028/@datadir@/p
16029/@docdir@/p
16030/@infodir@/p
16031/@localedir@/p
16032/@mandir@/p'
16033case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16034*datarootdir*) ac_datarootdir_seen=yes;;
16035*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16037$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 16038_ACEOF
81ecdfbb
RW
16039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16040 ac_datarootdir_hack='
16041 s&@datadir@&$datadir&g
16042 s&@docdir@&$docdir&g
16043 s&@infodir@&$infodir&g
16044 s&@localedir@&$localedir&g
16045 s&@mandir@&$mandir&g
16046 s&\\\${datarootdir}&$datarootdir&g' ;;
16047esac
16048_ACEOF
16049
16050# Neutralize VPATH when `$srcdir' = `.'.
16051# Shell code in configure.ac might set extrasub.
16052# FIXME: do we really want to maintain this feature?
16053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16054ac_sed_extra="$ac_vpsub
c6b750e1
DJ
16055$extrasub
16056_ACEOF
81ecdfbb 16057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
16058:t
16059/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16060s|@configure_input@|$ac_sed_conf_input|;t t
16061s&@top_builddir@&$ac_top_builddir_sub&;t t
16062s&@top_build_prefix@&$ac_top_build_prefix&;t t
16063s&@srcdir@&$ac_srcdir&;t t
16064s&@abs_srcdir@&$ac_abs_srcdir&;t t
16065s&@top_srcdir@&$ac_top_srcdir&;t t
16066s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16067s&@builddir@&$ac_builddir&;t t
16068s&@abs_builddir@&$ac_abs_builddir&;t t
16069s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16070s&@INSTALL@&$ac_INSTALL&;t t
16071$ac_datarootdir_hack
16072"
16073eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16074if $ac_cs_awk_getline; then
16075 $AWK -f "$tmp/subs.awk"
16076else
16077 $AWK -f "$tmp/subs.awk" | $SHELL
16078fi >$tmp/out \
16079 || as_fn_error "could not create $ac_file" "$LINENO" 5
16080
16081test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16082 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16083 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16085which seems to be undefined. Please make sure it is defined." >&5
16086$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16087which seems to be undefined. Please make sure it is defined." >&2;}
16088
16089 rm -f "$tmp/stdin"
16090 case $ac_file in
16091 -) cat "$tmp/out" && rm -f "$tmp/out";;
16092 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16093 esac \
16094 || as_fn_error "could not create $ac_file" "$LINENO" 5
16095 ;;
c148b4cb 16096
c148b4cb 16097
c148b4cb 16098
81ecdfbb
RW
16099 esac
16100
06a51eac
RW
16101
16102 case $ac_file$ac_mode in
16103 "Makefile":F) sed "$extrasub_build" Makefile |
16104 sed "$extrasub_host" |
16105 sed "$extrasub_target" > mf$$
16106 mv -f mf$$ Makefile ;;
16107
16108 esac
81ecdfbb
RW
16109done # for ac_tag
16110
16111
16112as_fn_exit 0
c6b750e1 16113_ACEOF
c6b750e1
DJ
16114ac_clean_files=$ac_clean_files_save
16115
81ecdfbb
RW
16116test $ac_write_fail = 0 ||
16117 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16118
c6b750e1
DJ
16119
16120# configure is writing to config.log, and then calls config.status.
16121# config.status does its own redirection, appending to config.log.
16122# Unfortunately, on DOS this fails, as config.log is still kept open
16123# by configure, so config.status won't be able to write to it; its
16124# output is simply discarded. So we exec the FD to /dev/null,
16125# effectively closing config.log, so it can be properly (re)opened and
16126# appended to by config.status. When coming back to configure, we
16127# need to make the FD available again.
16128if test "$no_create" != yes; then
16129 ac_cs_success=:
16130 ac_config_status_args=
16131 test "$silent" = yes &&
16132 ac_config_status_args="$ac_config_status_args --quiet"
16133 exec 5>/dev/null
16134 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16135 exec 5>>config.log
16136 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16137 # would make configure fail if this is the last instruction.
81ecdfbb
RW
16138 $ac_cs_success || as_fn_exit $?
16139fi
16140if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16142$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 16143fi
c148b4cb 16144
This page took 1.766318 seconds and 4 git commands to generate.