2011-05-04 Tristan Gingold <gingold@adacore.com>
[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
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
573RANLIB_FOR_TARGET
574OBJDUMP_FOR_TARGET
575NM_FOR_TARGET
576LIPO_FOR_TARGET
577LD_FOR_TARGET
578DLLTOOL_FOR_TARGET
579AS_FOR_TARGET
580AR_FOR_TARGET
e552509b 581GOC_FOR_TARGET
81ecdfbb
RW
582GFORTRAN_FOR_TARGET
583GCJ_FOR_TARGET
584GCC_FOR_TARGET
585CXX_FOR_TARGET
586CC_FOR_TARGET
587OBJDUMP
588OBJCOPY
589WINDMC
590WINDRES
591STRIP
592RANLIB
593NM
594LIPO
595LD
596DLLTOOL
597AS
598AR
599RUNTEST
600EXPECT
601MAKEINFO
602FLEX
603LEX
604M4
605BISON
606YACC
81ecdfbb
RW
607WINDRES_FOR_BUILD
608WINDMC_FOR_BUILD
609RANLIB_FOR_BUILD
610NM_FOR_BUILD
611LD_FOR_BUILD
612LDFLAGS_FOR_BUILD
e552509b 613GOC_FOR_BUILD
81ecdfbb
RW
614GFORTRAN_FOR_BUILD
615GCJ_FOR_BUILD
616DLLTOOL_FOR_BUILD
617CXX_FOR_BUILD
618CXXFLAGS_FOR_BUILD
619CFLAGS_FOR_BUILD
620CC_FOR_BUILD
621AS_FOR_BUILD
622AR_FOR_BUILD
911e63d0 623target_configdirs
81ecdfbb 624configdirs
81ecdfbb 625build_configdirs
81ecdfbb
RW
626INSTALL_GDB_TK
627GDB_TK
628CONFIGURE_GDB_TK
629build_tooldir
630tooldir
631GCC_SHLIB_SUBDIR
632RPATH_ENVVAR
4074d5f2
RW
633target_configargs
634host_configargs
635build_configargs
96655cc4 636BUILD_CONFIG
81ecdfbb
RW
637CXXFLAGS_FOR_TARGET
638CFLAGS_FOR_TARGET
639DEBUG_PREFIX_CFLAGS_FOR_TARGET
640SYSROOT_CFLAGS_FOR_TARGET
641stage1_languages
700d40ca 642extra_host_libiberty_configure_flags
81ecdfbb
RW
643clooginc
644clooglibs
645pplinc
646ppllibs
81ecdfbb 647poststage1_ldflags
143754cd 648poststage1_libs
81ecdfbb
RW
649stage1_libs
650stage1_ldflags
651extra_mpc_mpfr_configure_flags
652extra_mpc_gmp_configure_flags
653extra_mpfr_configure_flags
654gmpinc
655gmplibs
656do_compare
657GNATMAKE
658GNATBIND
659ac_ct_CXX
660CXXFLAGS
661CXX
662OBJEXT
663EXEEXT
664ac_ct_CC
665CPPFLAGS
666LDFLAGS
667CFLAGS
668CC
669target_subdir
670host_subdir
671build_subdir
672build_libsubdir
8e957354
PB
673AWK
674SED
81ecdfbb
RW
675LN_S
676LN
677INSTALL_DATA
678INSTALL_SCRIPT
679INSTALL_PROGRAM
680target_os
681target_vendor
682target_cpu
683target
684host_os
685host_vendor
686host_cpu
687host
688target_noncanonical
689host_noncanonical
690build_noncanonical
691build_os
692build_vendor
693build_cpu
694build
695TOPLEVEL_CONFIGURE_ARGUMENTS
696target_alias
697host_alias
698build_alias
699LIBS
700ECHO_T
701ECHO_N
702ECHO_C
703DEFS
704mandir
705localedir
706libdir
707psdir
708pdfdir
709dvidir
710htmldir
711infodir
712docdir
713oldincludedir
714includedir
715localstatedir
716sharedstatedir
717sysconfdir
718datadir
719datarootdir
720libexecdir
721sbindir
722bindir
723program_transform_name
724prefix
725exec_prefix
726PACKAGE_URL
727PACKAGE_BUGREPORT
728PACKAGE_STRING
729PACKAGE_VERSION
730PACKAGE_TARNAME
731PACKAGE_NAME
732PATH_SEPARATOR
733SHELL'
734ac_subst_files='serialization_dependencies
735host_makefile_frag
736target_makefile_frag
737alphaieee_frag
738ospace_frag'
739ac_user_opts='
740enable_option_checking
741with_build_libsubdir
742enable_gold
c7791212 743enable_ld
89a1e9c3
PB
744enable_libquadmath
745enable_libquadmath_support
81ecdfbb
RW
746enable_libada
747enable_libssp
748enable_build_with_cxx
749with_mpc
750with_mpc_include
751with_mpc_lib
752with_mpfr_dir
753with_mpfr
754with_mpfr_include
755with_mpfr_lib
756with_gmp_dir
757with_gmp
758with_gmp_include
759with_gmp_lib
760with_host_libstdcxx
761with_stage1_ldflags
762with_stage1_libs
81ecdfbb 763with_boot_libs
143754cd 764with_boot_ldflags
81ecdfbb
RW
765with_ppl
766with_ppl_include
767with_ppl_lib
768enable_ppl_version_check
769with_cloog
770with_cloog_include
771with_cloog_lib
e552509b 772enable_cloog_backend
81ecdfbb 773enable_cloog_version_check
700d40ca 774enable_lto
81ecdfbb
RW
775enable_stage1_languages
776enable_objc_gc
777with_build_sysroot
778with_debug_prefix_map
779enable_bootstrap
96655cc4 780with_build_config
81ecdfbb
RW
781enable_serial_configure
782with_build_time_tools
783enable_maintainer_mode
784enable_stage1_checking
785enable_werror
81ecdfbb
RW
786'
787 ac_precious_vars='build_alias
788host_alias
789target_alias
790CC
791CFLAGS
792LDFLAGS
793LIBS
794CPPFLAGS
795CXX
796CXXFLAGS
797CCC
4074d5f2
RW
798build_configargs
799host_configargs
800target_configargs
81ecdfbb
RW
801AR
802AS
803DLLTOOL
804LD
805LIPO
806NM
807RANLIB
808STRIP
809WINDRES
810WINDMC
811OBJCOPY
812OBJDUMP
813CC_FOR_TARGET
814CXX_FOR_TARGET
815GCC_FOR_TARGET
816GCJ_FOR_TARGET
817GFORTRAN_FOR_TARGET
e552509b 818GOC_FOR_TARGET
81ecdfbb
RW
819AR_FOR_TARGET
820AS_FOR_TARGET
821DLLTOOL_FOR_TARGET
822LD_FOR_TARGET
823LIPO_FOR_TARGET
824NM_FOR_TARGET
825OBJDUMP_FOR_TARGET
826RANLIB_FOR_TARGET
827STRIP_FOR_TARGET
828WINDRES_FOR_TARGET
829WINDMC_FOR_TARGET'
830
a0da8069
NN
831
832# Initialize some variables set by options.
c6b750e1
DJ
833ac_init_help=
834ac_init_version=false
81ecdfbb
RW
835ac_unrecognized_opts=
836ac_unrecognized_sep=
a0da8069
NN
837# The variables have the same names as the options, with
838# dashes changed to underlines.
c6b750e1 839cache_file=/dev/null
a0da8069 840exec_prefix=NONE
a0da8069 841no_create=
a0da8069
NN
842no_recursion=
843prefix=NONE
844program_prefix=NONE
845program_suffix=NONE
846program_transform_name=s,x,x,
847silent=
848site=
849srcdir=
a0da8069
NN
850verbose=
851x_includes=NONE
852x_libraries=NONE
c6b750e1
DJ
853
854# Installation directory options.
855# These are left unexpanded so users can "make install exec_prefix=/foo"
856# and all the variables that are supposed to be based on exec_prefix
857# by default will actually change.
858# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 859# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
860bindir='${exec_prefix}/bin'
861sbindir='${exec_prefix}/sbin'
862libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
863datarootdir='${prefix}/share'
864datadir='${datarootdir}'
a0da8069
NN
865sysconfdir='${prefix}/etc'
866sharedstatedir='${prefix}/com'
867localstatedir='${prefix}/var'
a0da8069
NN
868includedir='${prefix}/include'
869oldincludedir='/usr/include'
81ecdfbb
RW
870docdir='${datarootdir}/doc/${PACKAGE}'
871infodir='${datarootdir}/info'
872htmldir='${docdir}'
873dvidir='${docdir}'
874pdfdir='${docdir}'
875psdir='${docdir}'
876libdir='${exec_prefix}/lib'
877localedir='${datarootdir}/locale'
878mandir='${datarootdir}/man'
252b5132 879
a0da8069 880ac_prev=
81ecdfbb 881ac_dashdash=
a0da8069
NN
882for ac_option
883do
a0da8069
NN
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
81ecdfbb 886 eval $ac_prev=\$ac_option
a0da8069
NN
887 ac_prev=
888 continue
889 fi
252b5132 890
81ecdfbb
RW
891 case $ac_option in
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *) ac_optarg=yes ;;
894 esac
a0da8069
NN
895
896 # Accept the important Cygnus configure options, so we can diagnose typos.
897
81ecdfbb
RW
898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
a0da8069
NN
901
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 905 bindir=$ac_optarg ;;
a0da8069
NN
906
907 -build | --build | --buil | --bui | --bu)
c6b750e1 908 ac_prev=build_alias ;;
a0da8069 909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 910 build_alias=$ac_optarg ;;
a0da8069
NN
911
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
a0da8069 921
81ecdfbb 922 -datadir | --datadir | --datadi | --datad)
a0da8069 923 ac_prev=datadir ;;
81ecdfbb 924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 925 datadir=$ac_optarg ;;
a0da8069 926
81ecdfbb
RW
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
933
a0da8069 934 -disable-* | --disable-*)
81ecdfbb 935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 936 # Reject names that are not valid shell variable names.
81ecdfbb
RW
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943"enable_$ac_useropt"
944"*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
949
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
954
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
a0da8069
NN
959
960 -enable-* | --enable-*)
81ecdfbb 961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 962 # Reject names that are not valid shell variable names.
81ecdfbb
RW
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969"enable_$ac_useropt"
970"*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
a0da8069 973 esac
81ecdfbb 974 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
975
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
c6b750e1 983 exec_prefix=$ac_optarg ;;
a0da8069
NN
984
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
988
c6b750e1
DJ
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
a0da8069
NN
995
996 -host | --host | --hos | --ho)
c6b750e1 997 ac_prev=host_alias ;;
a0da8069 998 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 999 host_alias=$ac_optarg ;;
a0da8069 1000
81ecdfbb
RW
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1006
a0da8069
NN
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1012 includedir=$ac_optarg ;;
a0da8069
NN
1013
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1017 infodir=$ac_optarg ;;
a0da8069
NN
1018
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1022 libdir=$ac_optarg ;;
a0da8069
NN
1023
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1029 libexecdir=$ac_optarg ;;
a0da8069 1030
81ecdfbb
RW
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1035
a0da8069 1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1037 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1041 localstatedir=$ac_optarg ;;
a0da8069
NN
1042
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1046 mandir=$ac_optarg ;;
a0da8069
NN
1047
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1051
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1053 | --no-cr | --no-c | -n)
a0da8069
NN
1054 no_create=yes ;;
1055
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1059
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1067 oldincludedir=$ac_optarg ;;
a0da8069
NN
1068
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1072 prefix=$ac_optarg ;;
a0da8069
NN
1073
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1079 program_prefix=$ac_optarg ;;
a0da8069
NN
1080
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1086 program_suffix=$ac_optarg ;;
a0da8069
NN
1087
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1103 program_transform_name=$ac_optarg ;;
a0da8069 1104
81ecdfbb
RW
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1109
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1114
a0da8069
NN
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1118
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
c6b750e1 1123 sbindir=$ac_optarg ;;
a0da8069
NN
1124
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
c6b750e1 1134 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1135
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
c6b750e1 1139 site=$ac_optarg ;;
a0da8069
NN
1140
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1144 srcdir=$ac_optarg ;;
a0da8069
NN
1145
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1151 sysconfdir=$ac_optarg ;;
a0da8069
NN
1152
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1154 ac_prev=target_alias ;;
a0da8069 1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1156 target_alias=$ac_optarg ;;
a0da8069
NN
1157
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1160
c6b750e1
DJ
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
a0da8069
NN
1163
1164 -with-* | --with-*)
81ecdfbb 1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1166 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173"with_$ac_useropt"
1174"*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
a0da8069 1177 esac
81ecdfbb 1178 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1179
1180 -without-* | --without-*)
81ecdfbb 1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1182 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189"with_$ac_useropt"
1190"*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
a0da8069
NN
1195
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1199
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1205 x_includes=$ac_optarg ;;
a0da8069
NN
1206
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1212 x_libraries=$ac_optarg ;;
a0da8069 1213
81ecdfbb
RW
1214 -*) as_fn_error "unrecognized option: \`$ac_option'
1215Try \`$0 --help' for more information."
a0da8069
NN
1216 ;;
1217
c6b750e1
DJ
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1224 esac
1225 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1226 export $ac_envvar ;;
1227
a0da8069 1228 *)
c6b750e1 1229 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1233 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1234 ;;
1235
1236 esac
1237done
1238
1239if test -n "$ac_prev"; then
c6b750e1 1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1241 as_fn_error "missing argument to $ac_option"
a0da8069 1242fi
a0da8069 1243
81ecdfbb
RW
1244if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
1247 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1249 esac
81ecdfbb 1250fi
a0da8069 1251
81ecdfbb
RW
1252# Check all directory arguments for consistency.
1253for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
a0da8069 1257do
81ecdfbb
RW
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
c6b750e1 1266 case $ac_val in
81ecdfbb
RW
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1269 esac
81ecdfbb 1270 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1271done
1272
c6b750e1
DJ
1273# There might be people who depend on the old broken behavior: `$host'
1274# used to hold the argument of --host etc.
1275# FIXME: To remove some day.
1276build=$build_alias
1277host=$host_alias
1278target=$target_alias
376a0e54 1279
c6b750e1
DJ
1280# FIXME: To remove some day.
1281if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
81ecdfbb 1284 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1285 If a cross compiler is detected then cross compile mode will be used." >&2
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289fi
1290
1291ac_tool_prefix=
1292test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294test "$silent" = yes && exec 6>/dev/null
a0da8069 1295
a0da8069 1296
81ecdfbb
RW
1297ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298ac_ls_di=`ls -di .` &&
1299ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error "working directory cannot be determined"
1301test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error "pwd does not report name of working directory"
1303
1304
a0da8069
NN
1305# Find the source files, if location was not specified.
1306if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
81ecdfbb
RW
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314$as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
a0da8069 1332 srcdir=$ac_confdir
81ecdfbb 1333 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1334 srcdir=..
1335 fi
1336else
1337 ac_srcdir_defaulted=no
1338fi
81ecdfbb
RW
1339if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1342fi
1343ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1346 pwd)`
1347# When building in place, set srcdir=.
1348if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350fi
1351# Remove unnecessary trailing slashes from srcdir.
1352# Double slashes in file names in object file debugging info
1353# mess up M-x gdb in Emacs.
1354case $srcdir in
1355*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356esac
6d0cd39e
AM
1357case $srcdir in
1358 *" "*)
1359 as_fn_error "path to source, $srcdir, contains spaces"
1360 ;;
1361esac
9cc8ae67
PB
1362ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1363
81ecdfbb
RW
1364for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369done
c6b750e1
DJ
1370
1371#
1372# Report the --help message.
1373#
1374if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378\`configure' configures this package to adapt to many kinds of systems.
1379
1380Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383VAR=VALUE. See below for descriptions of some of the useful variables.
1384
1385Defaults for the options are specified in brackets.
1386
1387Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397
c6b750e1
DJ
1398Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1400 [$ac_default_prefix]
c6b750e1 1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1402 [PREFIX]
c6b750e1
DJ
1403
1404By default, \`make install' will install all the files in
1405\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407for instance \`--prefix=\$HOME'.
1408
1409For better control, use the options below.
1410
1411Fine tuning of the installation directories:
81ecdfbb
RW
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1431_ACEOF
1432
1433 cat <<\_ACEOF
1434
1435Program names:
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1439
1440System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 --target=TARGET configure for building compilers for TARGET [HOST]
1444_ACEOF
a0da8069 1445fi
a0da8069 1446
c6b750e1
DJ
1447if test -n "$ac_init_help"; then
1448
1449 cat <<\_ACEOF
1450
1451Optional Features:
81ecdfbb 1452 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212 1455 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1456 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
89a1e9c3
PB
1457 --disable-libquadmath do not build libquadmath directory
1458 --disable-libquadmath-support
1459 disable libquadmath support for Fortran
521ec477
DD
1460 --enable-libada build libada directory
1461 --enable-libssp build libssp directory
e8a5fa9c 1462 --enable-build-with-cxx build with C++ compiler instead of C compiler
7837304f
AS
1463 --disable-ppl-version-check
1464 disable check for PPL version
ceca0218
PB
1465 --enable-cloog-backend[=BACKEND]
1466 set the CLooG BACKEND used to either isl, ppl or
1467 ppl-legacy (default)
e552509b
ILT
1468 --disable-cloog-version-check
1469 disable check for CLooG version
700d40ca 1470 --enable-lto enable link time optimization support
7837304f
AS
1471 --enable-stage1-languages[=all]
1472 choose additional languages to build during stage1.
1473 Mostly useful for compiler development
1474 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1475 Objective-C runtime
521ec477
DD
1476 --enable-bootstrap enable bootstrapping [yes if native build]
1477 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1478 force sequential configuration of sub-packages for
1479 the host, target or build machine, or all
1480 sub-packages
1481 --enable-maintainer-mode
1482 enable make rules and dependencies not useful (and
1483 sometimes confusing) to the casual installer
1484 --enable-stage1-checking[=all]
1485 choose additional checking for stage1 of the
1486 compiler
c6b750e1
DJ
1487 --enable-werror enable -Werror in bootstrap stage2 and later
1488
1489Optional Packages:
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-build-libsubdir=DIR Directory where to find libraries for build system
7837304f
AS
1493 --with-mpc=PATH specify prefix directory for installed MPC package.
1494 Equivalent to --with-mpc-include=PATH/include plus
1495 --with-mpc-lib=PATH/lib
1496 --with-mpc-include=PATH specify directory for installed MPC include files
1497 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1498 --with-mpfr-dir=PATH this option has been REMOVED
1499 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1500 Equivalent to --with-mpfr-include=PATH/include plus
1501 --with-mpfr-lib=PATH/lib
c6b750e1 1502 --with-mpfr-include=PATH
521ec477
DD
1503 specify directory for installed MPFR include files
1504 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1505 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1506 --with-gmp=PATH specify prefix directory for the installed GMP
1507 package. Equivalent to
1508 --with-gmp-include=PATH/include plus
1509 --with-gmp-lib=PATH/lib
521ec477
DD
1510 --with-gmp-include=PATH specify directory for installed GMP include files
1511 --with-gmp-lib=PATH specify directory for the installed GMP library
7837304f
AS
1512 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1513 linking with PPL
1514 --with-stage1-ldflags=FLAGS
1515 linker flags for stage1
1516 --with-stage1-libs=LIBS libraries for stage1
1517 --with-boot-libs=LIBS libraries for stage2 and later
1518 --with-boot-ldflags=FLAGS
1519 linker flags for stage2 and later
1520 --with-ppl=PATH specify prefix directory for the installed PPL
1521 package. Equivalent to
1522 --with-ppl-include=PATH/include plus
1523 --with-ppl-lib=PATH/lib
1524 --with-ppl-include=PATH specify directory for installed PPL include files
1525 --with-ppl-lib=PATH specify directory for the installed PPL library
e552509b
ILT
1526 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1527 package. Equivalent to
1528 --with-cloog-include=PATH/include plus
1529 --with-cloog-lib=PATH/lib
1530 --with-cloog-include=PATH
1531 Specify directory for installed CLooG include files
1532 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1533 library
521ec477 1534 --with-build-sysroot=SYSROOT
c6b750e1 1535 use sysroot as the system root during the build
8a6ee3ab 1536 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1537 map A to B, C to D ... in debug information
1538 --with-build-config='NAME NAME2...'
1539 use config/NAME.mk build configuration
521ec477 1540 --with-build-time-tools=PATH
c6b750e1 1541 use given path to find target tools during the build
c6b750e1
DJ
1542
1543Some influential environment variables:
1544 CC C compiler command
1545 CFLAGS C compiler flags
1546 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1547 nonstandard directory <lib dir>
81ecdfbb
RW
1548 LIBS libraries to pass to the linker, e.g. -l<library>
1549 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1550 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1551 CXX C++ compiler command
1552 CXXFLAGS C++ compiler flags
4074d5f2
RW
1553 build_configargs
1554 additional configure arguments for build directories
1555 host_configargs
1556 additional configure arguments for host directories
1557 target_configargs
1558 additional configure arguments for target directories
9a819804
AO
1559 AR AR for the host
1560 AS AS for the host
1561 DLLTOOL DLLTOOL for the host
1562 LD LD for the host
1563 LIPO LIPO for the host
1564 NM NM for the host
1565 RANLIB RANLIB for the host
1566 STRIP STRIP for the host
1567 WINDRES WINDRES for the host
0c24b341 1568 WINDMC WINDMC for the host
9a819804
AO
1569 OBJCOPY OBJCOPY for the host
1570 OBJDUMP OBJDUMP for the host
1571 CC_FOR_TARGET
1572 CC for the target
1573 CXX_FOR_TARGET
1574 CXX for the target
1575 GCC_FOR_TARGET
1576 GCC for the target
1577 GCJ_FOR_TARGET
1578 GCJ for the target
1579 GFORTRAN_FOR_TARGET
1580 GFORTRAN for the target
e552509b
ILT
1581 GOC_FOR_TARGET
1582 GOC for the target
9a819804
AO
1583 AR_FOR_TARGET
1584 AR for the target
1585 AS_FOR_TARGET
1586 AS for the target
1587 DLLTOOL_FOR_TARGET
1588 DLLTOOL for the target
1589 LD_FOR_TARGET
1590 LD for the target
1591 LIPO_FOR_TARGET
1592 LIPO for the target
1593 NM_FOR_TARGET
1594 NM for the target
1595 OBJDUMP_FOR_TARGET
1596 OBJDUMP for the target
1597 RANLIB_FOR_TARGET
1598 RANLIB for the target
1599 STRIP_FOR_TARGET
1600 STRIP for the target
1601 WINDRES_FOR_TARGET
1602 WINDRES for the target
0c24b341
NC
1603 WINDMC_FOR_TARGET
1604 WINDMC for the target
c6b750e1
DJ
1605
1606Use these variables to override the choices made by `configure' or to help
1607it to find libraries and programs with nonstandard names/locations.
1608
81ecdfbb 1609Report bugs to the package provider.
c6b750e1 1610_ACEOF
81ecdfbb 1611ac_status=$?
c6b750e1
DJ
1612fi
1613
1614if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
c6b750e1 1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1617 test -d "$ac_dir" ||
1618 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619 continue
c6b750e1
DJ
1620 ac_builddir=.
1621
81ecdfbb
RW
1622case "$ac_dir" in
1623.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624*)
1625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1626 # A ".." for each directory in $ac_dir_suffix.
1627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1628 case $ac_top_builddir_sub in
1629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1631 esac ;;
1632esac
1633ac_abs_top_builddir=$ac_pwd
1634ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635# for backward compatibility:
1636ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1637
1638case $srcdir in
81ecdfbb 1639 .) # We are building in place.
c6b750e1 1640 ac_srcdir=.
81ecdfbb
RW
1641 ac_top_srcdir=$ac_top_builddir_sub
1642 ac_abs_top_srcdir=$ac_pwd ;;
1643 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1644 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1645 ac_top_srcdir=$srcdir
1646 ac_abs_top_srcdir=$srcdir ;;
1647 *) # Relative name.
1648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649 ac_top_srcdir=$ac_top_build_prefix$srcdir
1650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1651esac
81ecdfbb
RW
1652ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653
1654 cd "$ac_dir" || { ac_status=$?; continue; }
1655 # Check for guested configure.
1656 if test -f "$ac_srcdir/configure.gnu"; then
1657 echo &&
1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659 elif test -f "$ac_srcdir/configure"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1662 else
81ecdfbb
RW
1663 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 fi || ac_status=$?
1665 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1666 done
1667fi
1668
81ecdfbb 1669test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1670if $ac_init_version; then
1671 cat <<\_ACEOF
81ecdfbb
RW
1672configure
1673generated by GNU Autoconf 2.64
c6b750e1 1674
81ecdfbb 1675Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1676This configure script is free software; the Free Software Foundation
1677gives unlimited permission to copy, distribute and modify it.
1678_ACEOF
81ecdfbb 1679 exit
c6b750e1 1680fi
81ecdfbb
RW
1681
1682## ------------------------ ##
1683## Autoconf initialization. ##
1684## ------------------------ ##
1685
1686# ac_fn_c_try_compile LINENO
1687# --------------------------
1688# Try to compile conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_compile ()
1690{
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext
1693 if { { ac_try="$ac_compile"
1694case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_compile") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest.$ac_objext; then :
1712 ac_retval=0
1713else
1714 $as_echo "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=1
1718fi
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 return $ac_retval
1721
1722} # ac_fn_c_try_compile
1723
1724# ac_fn_cxx_try_compile LINENO
1725# ----------------------------
1726# Try to compile conftest.$ac_ext, and return whether this succeeded.
1727ac_fn_cxx_try_compile ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext
1731 if { { ac_try="$ac_compile"
1732case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_cxx_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext; then :
1750 ac_retval=0
1751else
1752 $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756fi
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 return $ac_retval
1759
1760} # ac_fn_cxx_try_compile
1761
1762# ac_fn_c_try_link LINENO
1763# -----------------------
1764# Try to link conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_c_try_link ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest$ac_exeext
1769 if { { ac_try="$ac_link"
1770case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest$ac_exeext && {
1788 test "$cross_compiling" = yes ||
1789 $as_test_x conftest$ac_exeext
1790 }; then :
1791 ac_retval=0
1792else
1793 $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797fi
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 return $ac_retval
1805
1806} # ac_fn_c_try_link
1807cat >config.log <<_ACEOF
c6b750e1
DJ
1808This file contains any messages produced by compilers while
1809running configure, to aid debugging if configure makes a mistake.
1810
1811It was created by $as_me, which was
81ecdfbb 1812generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1813
1814 $ $0 $@
1815
1816_ACEOF
81ecdfbb 1817exec 5>>config.log
c6b750e1
DJ
1818{
1819cat <<_ASUNAME
1820## --------- ##
1821## Platform. ##
1822## --------- ##
1823
1824hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1825uname -m = `(uname -m) 2>/dev/null || echo unknown`
1826uname -r = `(uname -r) 2>/dev/null || echo unknown`
1827uname -s = `(uname -s) 2>/dev/null || echo unknown`
1828uname -v = `(uname -v) 2>/dev/null || echo unknown`
1829
1830/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1831/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1832
1833/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1834/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1835/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1836/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1837/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1838/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1839/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1840
1841_ASUNAME
1842
1843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844for as_dir in $PATH
1845do
1846 IFS=$as_save_IFS
1847 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1848 $as_echo "PATH: $as_dir"
1849 done
1850IFS=$as_save_IFS
c6b750e1
DJ
1851
1852} >&5
1853
1854cat >&5 <<_ACEOF
1855
1856
1857## ----------- ##
1858## Core tests. ##
1859## ----------- ##
1860
1861_ACEOF
1862
1863
1864# Keep a trace of the command line.
1865# Strip out --no-create and --no-recursion so they do not pile up.
1866# Strip out --silent because we don't want to record it for future runs.
1867# Also quote any args containing shell meta-characters.
1868# Make two passes to allow for proper duplicate-argument suppression.
1869ac_configure_args=
1870ac_configure_args0=
1871ac_configure_args1=
c6b750e1
DJ
1872ac_must_keep_next=false
1873for ac_pass in 1 2
1874do
1875 for ac_arg
1876 do
1877 case $ac_arg in
1878 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1879 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1880 | -silent | --silent | --silen | --sile | --sil)
1881 continue ;;
81ecdfbb
RW
1882 *\'*)
1883 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1884 esac
1885 case $ac_pass in
81ecdfbb 1886 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1887 2)
81ecdfbb 1888 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1889 if test $ac_must_keep_next = true; then
1890 ac_must_keep_next=false # Got value, back to normal.
1891 else
1892 case $ac_arg in
1893 *=* | --config-cache | -C | -disable-* | --disable-* \
1894 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1895 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1896 | -with-* | --with-* | -without-* | --without-* | --x)
1897 case "$ac_configure_args0 " in
1898 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1899 esac
1900 ;;
1901 -* ) ac_must_keep_next=true ;;
1902 esac
1903 fi
81ecdfbb 1904 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1905 ;;
1906 esac
1907 done
1908done
81ecdfbb
RW
1909{ ac_configure_args0=; unset ac_configure_args0;}
1910{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1911
1912# When interrupted or exit'd, cleanup temporary files, and complete
1913# config.log. We remove comments because anyway the quotes in there
1914# would cause problems or look ugly.
81ecdfbb
RW
1915# WARNING: Use '\'' to represent an apostrophe within the trap.
1916# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1917trap 'exit_status=$?
1918 # Save into config.log some information that might help in debugging.
1919 {
1920 echo
1921
1922 cat <<\_ASBOX
1923## ---------------- ##
1924## Cache variables. ##
1925## ---------------- ##
1926_ASBOX
1927 echo
1928 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1929(
1930 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1931 eval ac_val=\$$ac_var
1932 case $ac_val in #(
1933 *${as_nl}*)
1934 case $ac_var in #(
1935 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1936$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1937 esac
1938 case $ac_var in #(
1939 _ | IFS | as_nl) ;; #(
1940 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1941 *) { eval $ac_var=; unset $ac_var;} ;;
1942 esac ;;
1943 esac
1944 done
c6b750e1 1945 (set) 2>&1 |
81ecdfbb
RW
1946 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1947 *${as_nl}ac_space=\ *)
c6b750e1 1948 sed -n \
81ecdfbb
RW
1949 "s/'\''/'\''\\\\'\'''\''/g;
1950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1951 ;; #(
c6b750e1 1952 *)
81ecdfbb 1953 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 1954 ;;
81ecdfbb
RW
1955 esac |
1956 sort
1957)
c6b750e1
DJ
1958 echo
1959
1960 cat <<\_ASBOX
1961## ----------------- ##
1962## Output variables. ##
1963## ----------------- ##
1964_ASBOX
1965 echo
1966 for ac_var in $ac_subst_vars
1967 do
81ecdfbb
RW
1968 eval ac_val=\$$ac_var
1969 case $ac_val in
1970 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1971 esac
1972 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1973 done | sort
1974 echo
1975
1976 if test -n "$ac_subst_files"; then
1977 cat <<\_ASBOX
81ecdfbb
RW
1978## ------------------- ##
1979## File substitutions. ##
1980## ------------------- ##
c6b750e1
DJ
1981_ASBOX
1982 echo
1983 for ac_var in $ac_subst_files
1984 do
81ecdfbb
RW
1985 eval ac_val=\$$ac_var
1986 case $ac_val in
1987 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1988 esac
1989 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1990 done | sort
1991 echo
1992 fi
1993
1994 if test -s confdefs.h; then
1995 cat <<\_ASBOX
1996## ----------- ##
1997## confdefs.h. ##
1998## ----------- ##
1999_ASBOX
2000 echo
81ecdfbb 2001 cat confdefs.h
c6b750e1
DJ
2002 echo
2003 fi
2004 test "$ac_signal" != 0 &&
81ecdfbb
RW
2005 $as_echo "$as_me: caught signal $ac_signal"
2006 $as_echo "$as_me: exit $exit_status"
c6b750e1 2007 } >&5
81ecdfbb
RW
2008 rm -f core *.core core.conftest.* &&
2009 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2010 exit $exit_status
81ecdfbb 2011' 0
c6b750e1 2012for ac_signal in 1 2 13 15; do
81ecdfbb 2013 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2014done
2015ac_signal=0
2016
2017# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2018rm -f -r conftest* confdefs.h
2019
2020$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2021
2022# Predefined preprocessor variables.
2023
2024cat >>confdefs.h <<_ACEOF
2025#define PACKAGE_NAME "$PACKAGE_NAME"
2026_ACEOF
2027
c6b750e1
DJ
2028cat >>confdefs.h <<_ACEOF
2029#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2030_ACEOF
2031
c6b750e1
DJ
2032cat >>confdefs.h <<_ACEOF
2033#define PACKAGE_VERSION "$PACKAGE_VERSION"
2034_ACEOF
2035
c6b750e1
DJ
2036cat >>confdefs.h <<_ACEOF
2037#define PACKAGE_STRING "$PACKAGE_STRING"
2038_ACEOF
2039
c6b750e1
DJ
2040cat >>confdefs.h <<_ACEOF
2041#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2042_ACEOF
2043
81ecdfbb
RW
2044cat >>confdefs.h <<_ACEOF
2045#define PACKAGE_URL "$PACKAGE_URL"
2046_ACEOF
2047
c6b750e1
DJ
2048
2049# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2050# Prefer an explicitly selected file to automatically selected ones.
2051ac_site_file1=NONE
2052ac_site_file2=NONE
2053if test -n "$CONFIG_SITE"; then
2054 ac_site_file1=$CONFIG_SITE
2055elif test "x$prefix" != xNONE; then
2056 ac_site_file1=$prefix/share/config.site
2057 ac_site_file2=$prefix/etc/config.site
2058else
2059 ac_site_file1=$ac_default_prefix/share/config.site
2060 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2061fi
81ecdfbb
RW
2062for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2063do
2064 test "x$ac_site_file" = xNONE && continue
a0da8069 2065 if test -r "$ac_site_file"; then
81ecdfbb
RW
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2067$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2068 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2069 . "$ac_site_file"
2070 fi
2071done
2072
2073if test -r "$cache_file"; then
c6b750e1
DJ
2074 # Some versions of bash will fail to source /dev/null (special
2075 # files actually), so we avoid doing that.
2076 if test -f "$cache_file"; then
81ecdfbb
RW
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2078$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2079 case $cache_file in
81ecdfbb
RW
2080 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2081 *) . "./$cache_file";;
c6b750e1
DJ
2082 esac
2083 fi
a0da8069 2084else
81ecdfbb
RW
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2086$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2087 >$cache_file
2088fi
2089
2090# Check that the precious variables saved in the cache have kept the same
2091# value.
2092ac_cache_corrupted=false
81ecdfbb 2093for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2094 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2095 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2096 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2097 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2098 case $ac_old_set,$ac_new_set in
2099 set,)
81ecdfbb
RW
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2101$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2102 ac_cache_corrupted=: ;;
2103 ,set)
81ecdfbb
RW
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2105$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2106 ac_cache_corrupted=: ;;
2107 ,);;
2108 *)
2109 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2110 # differences in whitespace do not lead to failure.
2111 ac_old_val_w=`echo x $ac_old_val`
2112 ac_new_val_w=`echo x $ac_new_val`
2113 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2115$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2116 ac_cache_corrupted=:
2117 else
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2119$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2120 eval $ac_var=\$ac_old_val
2121 fi
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2123$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2125$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2126 fi;;
2127 esac
2128 # Pass precious variables to config.status.
2129 if test "$ac_new_set" = set; then
2130 case $ac_new_val in
81ecdfbb 2131 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2132 *) ac_arg=$ac_var=$ac_new_val ;;
2133 esac
2134 case " $ac_configure_args " in
2135 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2136 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2137 esac
2138 fi
2139done
2140if $ac_cache_corrupted; then
81ecdfbb
RW
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2144$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2145 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2146fi
81ecdfbb
RW
2147## -------------------- ##
2148## Main body of script. ##
2149## -------------------- ##
a0da8069
NN
2150
2151ac_ext=c
a0da8069 2152ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155ac_compiler_gnu=$ac_cv_c_compiler_gnu
2156
2157
2158
2159
c6b750e1
DJ
2160
2161
34a0f3cf 2162
c6b750e1 2163
5b553f7e
RW
2164
2165progname=$0
2166# if PWD already has a value, it is probably wrong.
2167if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2168
2169# Export original configure arguments for use by sub-configures.
2170# Quote arguments with shell meta charatcers.
2171TOPLEVEL_CONFIGURE_ARGUMENTS=
2172set -- "$progname" "$@"
2173for ac_arg
2174do
2175 case "$ac_arg" in
2176 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2177 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2178 # if the argument is of the form -foo=baz, quote the baz part only
2179 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2180 *) ;;
2181 esac
2182 # Add the quoted argument to the list.
2183 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2184done
2185if test "$silent" = yes; then
2186 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2187fi
2188# Remove the initial space we just introduced and, as these will be
2189# expanded by make, quote '$'.
2190TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2191
c6b750e1
DJ
2192
2193# Find the build, host, and target systems.
a0da8069 2194ac_aux_dir=
81ecdfbb
RW
2195for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2196 for ac_t in install-sh install.sh shtool; do
2197 if test -f "$ac_dir/$ac_t"; then
2198 ac_aux_dir=$ac_dir
2199 ac_install_sh="$ac_aux_dir/$ac_t -c"
2200 break 2
2201 fi
2202 done
a0da8069
NN
2203done
2204if test -z "$ac_aux_dir"; then
81ecdfbb 2205 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2206fi
81ecdfbb
RW
2207
2208# These three variables are undocumented and unsupported,
2209# and are intended to be withdrawn in a future Autoconf release.
2210# They can cause serious problems if a builder's source tree is in a directory
2211# whose full name contains unusual characters.
2212ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2213ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2214ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2215
a0da8069 2216
c6b750e1 2217# Make sure we can run config.sub.
81ecdfbb
RW
2218$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2219 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2220
2221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2222$as_echo_n "checking build system type... " >&6; }
2223if test "${ac_cv_build+set}" = set; then :
2224 $as_echo_n "(cached) " >&6
2225else
2226 ac_build_alias=$build_alias
2227test "x$ac_build_alias" = x &&
2228 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2229test "x$ac_build_alias" = x &&
2230 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2231ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2232 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2233
2234fi
2235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2236$as_echo "$ac_cv_build" >&6; }
2237case $ac_cv_build in
2238*-*-*) ;;
2239*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2240esac
c6b750e1 2241build=$ac_cv_build
81ecdfbb
RW
2242ac_save_IFS=$IFS; IFS='-'
2243set x $ac_cv_build
2244shift
2245build_cpu=$1
2246build_vendor=$2
2247shift; shift
2248# Remember, the first character of IFS is used to create $*,
2249# except with old shells:
2250build_os=$*
2251IFS=$ac_save_IFS
2252case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2253
a0da8069 2254
c6b750e1
DJ
2255 case ${build_alias} in
2256 "") build_noncanonical=${build} ;;
2257 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2258esac
2259
2260
cac3d6c4 2261
c6b750e1
DJ
2262 case ${host_alias} in
2263 "") host_noncanonical=${build_noncanonical} ;;
2264 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2265esac
2266
cac3d6c4 2267
c6b750e1
DJ
2268
2269 case ${target_alias} in
2270 "") target_noncanonical=${host_noncanonical} ;;
2271 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2272esac
2273
cac3d6c4 2274
c6b750e1
DJ
2275
2276
2277test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2278 test "$program_prefix$program_suffix$program_transform_name" = \
2279 NONENONEs,x,x, &&
c6b750e1 2280 program_transform_name=s,y,y,
cac3d6c4 2281
81ecdfbb
RW
2282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2283$as_echo_n "checking host system type... " >&6; }
2284if test "${ac_cv_host+set}" = set; then :
2285 $as_echo_n "(cached) " >&6
cac3d6c4 2286else
81ecdfbb
RW
2287 if test "x$host_alias" = x; then
2288 ac_cv_host=$ac_cv_build
2289else
2290 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2291 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2292fi
c6b750e1
DJ
2293
2294fi
81ecdfbb
RW
2295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2296$as_echo "$ac_cv_host" >&6; }
2297case $ac_cv_host in
2298*-*-*) ;;
2299*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2300esac
c6b750e1 2301host=$ac_cv_host
81ecdfbb
RW
2302ac_save_IFS=$IFS; IFS='-'
2303set x $ac_cv_host
2304shift
2305host_cpu=$1
2306host_vendor=$2
2307shift; shift
2308# Remember, the first character of IFS is used to create $*,
2309# except with old shells:
2310host_os=$*
2311IFS=$ac_save_IFS
2312case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2313
2314
81ecdfbb
RW
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2316$as_echo_n "checking target system type... " >&6; }
2317if test "${ac_cv_target+set}" = set; then :
2318 $as_echo_n "(cached) " >&6
c6b750e1 2319else
81ecdfbb
RW
2320 if test "x$target_alias" = x; then
2321 ac_cv_target=$ac_cv_host
2322else
2323 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2324 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2325fi
c6b750e1 2326
cac3d6c4 2327fi
81ecdfbb
RW
2328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2329$as_echo "$ac_cv_target" >&6; }
2330case $ac_cv_target in
2331*-*-*) ;;
2332*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2333esac
c6b750e1 2334target=$ac_cv_target
81ecdfbb
RW
2335ac_save_IFS=$IFS; IFS='-'
2336set x $ac_cv_target
2337shift
2338target_cpu=$1
2339target_vendor=$2
2340shift; shift
2341# Remember, the first character of IFS is used to create $*,
2342# except with old shells:
2343target_os=$*
2344IFS=$ac_save_IFS
2345case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2346
2347
2348# The aliases save the names the user supplied, while $host etc.
2349# will get canonicalized.
2350test -n "$target_alias" &&
2351 test "$program_prefix$program_suffix$program_transform_name" = \
2352 NONENONEs,x,x, &&
2353 program_prefix=${target_alias}-
81ecdfbb 2354
a0da8069 2355test "$program_prefix" != NONE &&
81ecdfbb 2356 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2357# Use a double $ so make ignores it.
2358test "$program_suffix" != NONE &&
81ecdfbb
RW
2359 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2360# Double any \ or $.
c6b750e1 2361# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2362ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2363program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2364
a0da8069
NN
2365
2366
e5c3f801
NN
2367# Get 'install' or 'install-sh' and its variants.
2368# Find a good install program. We prefer a C program (faster),
2369# so one script is as good as another. But avoid the broken or
2370# incompatible versions:
2371# SysV /etc/install, /usr/sbin/install
2372# SunOS /usr/etc/install
2373# IRIX /sbin/install
2374# AIX /bin/install
c6b750e1 2375# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2376# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2377# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2378# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2379# OS/2's system install, which has a completely different semantic
e5c3f801 2380# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2381# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2383$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2384if test -z "$INSTALL"; then
81ecdfbb
RW
2385if test "${ac_cv_path_install+set}" = set; then :
2386 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2387else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389for as_dir in $PATH
2390do
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2393 # Account for people who put trailing slashes in PATH elements.
2394case $as_dir/ in #((
2395 ./ | .// | /[cC]/* | \
c6b750e1 2396 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2397 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2398 /usr/ucb/* ) ;;
2399 *)
2400 # OSF1 and SCO ODT 3.0 have their own names for install.
2401 # Don't use installbsd from OSF since it installs stuff as root
2402 # by default.
2403 for ac_prog in ginstall scoinst install; do
2404 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2405 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2406 if test $ac_prog = install &&
c6b750e1 2407 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2408 # AIX install. It has an incompatible calling convention.
2409 :
c6b750e1
DJ
2410 elif test $ac_prog = install &&
2411 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2412 # program-specific install script used by HP pwplus--don't use.
2413 :
e5c3f801 2414 else
58c85be7
RW
2415 rm -rf conftest.one conftest.two conftest.dir
2416 echo one > conftest.one
2417 echo two > conftest.two
2418 mkdir conftest.dir
2419 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2420 test -s conftest.one && test -s conftest.two &&
2421 test -s conftest.dir/conftest.one &&
2422 test -s conftest.dir/conftest.two
2423 then
2424 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2425 break 3
2426 fi
e5c3f801
NN
2427 fi
2428 fi
2429 done
c6b750e1
DJ
2430 done
2431 ;;
2432esac
81ecdfbb
RW
2433
2434 done
2435IFS=$as_save_IFS
c6b750e1 2436
58c85be7 2437rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2438
2439fi
2440 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2441 INSTALL=$ac_cv_path_install
e5c3f801 2442 else
58c85be7
RW
2443 # As a last resort, use the slow shell script. Don't cache a
2444 # value for INSTALL within a source directory, because that will
e5c3f801 2445 # break other packages using the cache if that directory is
58c85be7 2446 # removed, or if the value is a relative name.
c6b750e1 2447 INSTALL=$ac_install_sh
e5c3f801
NN
2448 fi
2449fi
81ecdfbb
RW
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2451$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2452
2453# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2454# It thinks the first close brace ends the variable substitution.
2455test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2456
c6b750e1 2457test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2458
2459test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2460
81ecdfbb
RW
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2462$as_echo_n "checking whether ln works... " >&6; }
2463if test "${acx_cv_prog_LN+set}" = set; then :
2464 $as_echo_n "(cached) " >&6
656fdd47
PB
2465else
2466 rm -f conftestdata_t
2467echo >conftestdata_f
2468if ln conftestdata_f conftestdata_t 2>/dev/null
2469then
2470 acx_cv_prog_LN=ln
2471else
2472 acx_cv_prog_LN=no
2473fi
2474rm -f conftestdata_f conftestdata_t
2475
2476fi
2477if test $acx_cv_prog_LN = no; then
2478 LN="cp"
81ecdfbb
RW
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2480$as_echo "no, using $LN" >&6; }
656fdd47
PB
2481else
2482 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2484$as_echo "yes" >&6; }
656fdd47
PB
2485fi
2486
81ecdfbb
RW
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2488$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2489LN_S=$as_ln_s
2490if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2492$as_echo "yes" >&6; }
cac3d6c4 2493else
81ecdfbb
RW
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2495$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2496fi
2497
8e957354
PB
2498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2499$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2500if test "${ac_cv_path_SED+set}" = set; then :
2501 $as_echo_n "(cached) " >&6
2502else
2503 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2504 for ac_i in 1 2 3 4 5 6 7; do
2505 ac_script="$ac_script$as_nl$ac_script"
2506 done
2507 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2508 { ac_script=; unset ac_script;}
2509 if test -z "$SED"; then
2510 ac_path_SED_found=false
2511 # Loop through the user's path and test for each of PROGNAME-LIST
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_prog in sed gsed; do
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2520 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2521# Check for GNU ac_path_SED and select it if it is found.
2522 # Check for GNU $ac_path_SED
2523case `"$ac_path_SED" --version 2>&1` in
2524*GNU*)
2525 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2526*)
2527 ac_count=0
2528 $as_echo_n 0123456789 >"conftest.in"
2529 while :
2530 do
2531 cat "conftest.in" "conftest.in" >"conftest.tmp"
2532 mv "conftest.tmp" "conftest.in"
2533 cp "conftest.in" "conftest.nl"
2534 $as_echo '' >> "conftest.nl"
2535 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2537 as_fn_arith $ac_count + 1 && ac_count=$as_val
2538 if test $ac_count -gt ${ac_path_SED_max-0}; then
2539 # Best one so far, save it but keep looking for a better one
2540 ac_cv_path_SED="$ac_path_SED"
2541 ac_path_SED_max=$ac_count
2542 fi
2543 # 10*(2^10) chars as input seems more than enough
2544 test $ac_count -gt 10 && break
2545 done
2546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2547esac
2548
2549 $ac_path_SED_found && break 3
2550 done
2551 done
2552 done
2553IFS=$as_save_IFS
2554 if test -z "$ac_cv_path_SED"; then
2555 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2556 fi
2557else
2558 ac_cv_path_SED=$SED
2559fi
2560
2561fi
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2563$as_echo "$ac_cv_path_SED" >&6; }
2564 SED="$ac_cv_path_SED"
2565 rm -f conftest.sed
2566
2567for ac_prog in gawk mawk nawk awk
2568do
2569 # Extract the first word of "$ac_prog", so it can be a program name with args.
2570set dummy $ac_prog; ac_word=$2
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572$as_echo_n "checking for $ac_word... " >&6; }
2573if test "${ac_cv_prog_AWK+set}" = set; then :
2574 $as_echo_n "(cached) " >&6
2575else
2576 if test -n "$AWK"; then
2577 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2578else
2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_AWK="$ac_prog"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590done
2591 done
2592IFS=$as_save_IFS
2593
2594fi
2595fi
2596AWK=$ac_cv_prog_AWK
2597if test -n "$AWK"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2599$as_echo "$AWK" >&6; }
2600else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602$as_echo "no" >&6; }
2603fi
2604
2605
2606 test -n "$AWK" && break
2607done
2608
e5c3f801 2609
0fdbe983
DJ
2610srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2611
2612# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2613# a relative path.
2614if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2615 INSTALL="${srcpwd}/install-sh -c"
2616fi
2617
a0da8069
NN
2618# Set srcdir to "." if that's what it is.
2619# This is important for multilib support.
2620pwd=`${PWDCMD-pwd}`
a0da8069
NN
2621if test "${pwd}" = "${srcpwd}" ; then
2622 srcdir=.
252b5132
RH
2623fi
2624
a0da8069 2625topsrcdir=$srcpwd
252b5132 2626
a0da8069 2627extra_host_args=
afefada0 2628
a0da8069
NN
2629### To add a new directory to the tree, first choose whether it is a target
2630### or a host dependent tool. Then put it into the appropriate list
2631### (library or tools, host or target), doing a dependency sort.
252b5132 2632
c6b750e1 2633# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2634# configdirs, or target_configdirs; see the serialization section below.
252b5132 2635
c6b750e1
DJ
2636# Dependency sorting is only needed when *configuration* must be done in
2637# a particular order. In all cases a dependency should be specified in
a0da8069 2638# the Makefile, whether or not it's implicitly specified here.
252b5132 2639
a0da8069
NN
2640# Double entries in build_configdirs, configdirs, or target_configdirs may
2641# cause circular dependencies and break everything horribly.
252b5132 2642
6a9cf61e
PB
2643# these library is used by various programs built for the build
2644# environment
2645#
2646build_libs="build-libiberty"
2647
2648# these tools are built for the build environment
a90ef4bf 2649build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2650
a0da8069
NN
2651# these libraries are used by various programs built for the host environment
2652#
a90ef4bf 2653host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
a0da8069 2654
a0da8069
NN
2655# these tools are built for the host environment
2656# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2657# know that we are building the simulator.
2658# binutils, gas and ld appear in that order because it makes sense to run
2659# "make check" in that particular order.
e6de499b 2660# If --enable-gold is used, "gold" may replace "ld".
a90ef4bf 2661host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
a0da8069
NN
2662
2663# libgcj represents the runtime libraries only used by gcj.
2664libgcj="target-libffi \
a0da8069 2665 target-zlib \
a0da8069
NN
2666 target-libjava"
2667
2668# these libraries are built for the target environment, and are built after
2669# the host libraries and the host tools (which may be a cross compiler)
2670#
b1299c4e
DJ
2671target_libraries="target-libgcc \
2672 target-libiberty \
a0da8069
NN
2673 target-libgloss \
2674 target-newlib \
cff87f51 2675 target-libgomp \
b9459e83 2676 target-libstdc++-v3 \
4b1cb4fe 2677 target-libmudflap \
bb780410 2678 target-libssp \
e552509b 2679 target-libquadmath \
4b1cb4fe 2680 target-libgfortran \
4f0ef2d8 2681 target-boehm-gc \
83326456 2682 ${libgcj} \
a2592b1b 2683 target-libobjc \
e552509b
ILT
2684 target-libada \
2685 target-libgo"
a0da8069 2686
9c14acb8
NN
2687# these tools are built using the target libraries, and are intended to
2688# run only in the target environment
a0da8069 2689#
9c14acb8 2690# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2691# list belongs in this list.
a0da8069 2692#
a90ef4bf 2693target_tools="target-rda"
252b5132 2694
a0da8069 2695################################################################################
252b5132 2696
a0da8069
NN
2697## All tools belong in one of the four categories, and are assigned above
2698## We assign ${configdirs} this way to remove all embedded newlines. This
2699## is important because configure will choke if they ever get through.
2700## ${configdirs} is directories we build using the host tools.
2701## ${target_configdirs} is directories we build using the target tools.
a0da8069 2702configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2703target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2704build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2705
9cc8ae67
PB
2706
2707
a0da8069 2708################################################################################
252b5132 2709
a0da8069 2710srcname="gnu development package"
252b5132 2711
a0da8069
NN
2712# This gets set non-empty for some net releases of packages.
2713appdirs=""
252b5132 2714
a0da8069
NN
2715# Define is_cross_compiler to save on calls to 'test'.
2716is_cross_compiler=
2717if test x"${host}" = x"${target}" ; then
2718 is_cross_compiler=no
252b5132 2719else
a0da8069 2720 is_cross_compiler=yes
c6b750e1 2721fi
252b5132 2722
9175bfc0 2723# Find the build and target subdir names.
dd12c3a8 2724
66a79c16
DJ
2725# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2726# have matching libraries, they should use host libraries: Makefile.tpl
2727# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2728# However, they still use the build modules, because the corresponding
2729# host modules (e.g. bison) are only built for the host when bootstrap
2730# finishes. So:
2731# - build_subdir is where we find build modules, and never changes.
2732# - build_libsubdir is where we find build libraries, and can be overridden.
2733
2734# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2735build_subdir="build-${build_noncanonical}"
c6b750e1 2736
81ecdfbb
RW
2737# Check whether --with-build-libsubdir was given.
2738if test "${with_build_libsubdir+set}" = set; then :
2739 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2740else
2741 build_libsubdir="$build_subdir"
81ecdfbb
RW
2742fi
2743
b00612cc
PB
2744# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2745if ( test $srcdir = . && test -d gcc ) \
2746 || test -d $srcdir/../host-${host_noncanonical}; then
2747 host_subdir="host-${host_noncanonical}"
2748else
2749 host_subdir=.
2750fi
dd12c3a8
NN
2751# No prefix.
2752target_subdir=${target_noncanonical}
c6b750e1 2753
2fd0b40b
RW
2754# Be sure to cover against remnants of an in-tree build.
2755if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2756 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2757Use a pristine source tree when building in a separate tree" "$LINENO" 5
2758fi
252b5132 2759
a0da8069
NN
2760# Skipdirs are removed silently.
2761skipdirs=
2762# Noconfigdirs are removed loudly.
2763noconfigdirs=""
252b5132 2764
a0da8069
NN
2765use_gnu_ld=
2766# Make sure we don't let GNU ld be added if we didn't want it.
2767if test x$with_gnu_ld = xno ; then
2768 use_gnu_ld=no
93f9b408 2769 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2770fi
2771
a0da8069
NN
2772use_gnu_as=
2773# Make sure we don't let GNU as be added if we didn't want it.
2774if test x$with_gnu_as = xno ; then
2775 use_gnu_as=no
2776 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2777fi
2778
700d40ca
ILT
2779use_included_zlib=
2780# Make sure we don't let ZLIB be added if we didn't want it.
2781if test x$with_system_zlib = xyes ; then
2782 use_included_zlib=no
2783 noconfigdirs="$noconfigdirs zlib"
2784fi
2785
c6b750e1 2786# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2787# it's not even worth trying to configure, much less build, that tool.
252b5132 2788
a0da8069
NN
2789case ${with_x} in
2790 yes | "") ;; # the default value for this tree is that X11 is available
2791 no)
675c6968 2792 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2793 # We won't be able to build gdbtk without X.
c6b750e1 2794 enable_gdbtk=no
a0da8069
NN
2795 ;;
2796 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2797esac
252b5132 2798
0377a422 2799# Some are only suitable for cross toolchains.
a0da8069
NN
2800# Remove these if host=target.
2801cross_only="target-libgloss target-newlib target-opcodes"
2802
2803case $is_cross_compiler in
2804 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2805esac
252b5132 2806
a0da8069
NN
2807# If both --with-headers and --with-libs are specified, default to
2808# --without-newlib.
32be62b5
RS
2809if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2810 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2811 if test x"${with_newlib}" = x ; then
2812 with_newlib=no
2813 fi
252b5132
RH
2814fi
2815
a0da8069
NN
2816# Recognize --with-newlib/--without-newlib.
2817case ${with_newlib} in
2818 no) skipdirs="${skipdirs} target-newlib" ;;
2819 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2820esac
252b5132 2821
c7791212
NC
2822# Handle --enable-gold, --enable-ld.
2823# --disable-gold [--enable-ld]
2824# Build only ld. Default option.
d3b50760
L
2825# --enable-gold [--enable-ld]
2826# Build both gold and ld. Install gold as "ld.gold", install ld
2827# as "ld.bfd" and "ld".
2828# --enable-gold=default [--enable-ld]
c7791212
NC
2829# Build both gold and ld. Install gold as "ld.gold" and "ld",
2830# install ld as "ld.bfd".
2831# --enable-gold[=default] --disable-ld
2832# Build only gold, which is then installed as both "ld.gold" and "ld".
2833# --enable-gold --enable-ld=default
d3b50760
L
2834# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2835# and ld.bfd).
c7791212
NC
2836# In other words, ld is default
2837# --enable-gold=default --enable-ld=default
2838# Error.
2839
2840default_ld=
81ecdfbb
RW
2841# Check whether --enable-gold was given.
2842if test "${enable_gold+set}" = set; then :
2843 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2844else
2845 ENABLE_GOLD=no
81ecdfbb
RW
2846fi
2847
c7791212
NC
2848case "${ENABLE_GOLD}" in
2849 yes|default)
e6de499b
NC
2850 # Check for ELF target.
2851 is_elf=no
2852 case "${target}" in
2853 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2854 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27
NC
2855 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2856 | *-*-solaris2* | *-*-nto*)
e6de499b
NC
2857 case "${target}" in
2858 *-*-linux*aout* | *-*-linux*oldld*)
2859 ;;
2860 *)
2861 is_elf=yes
2862 ;;
2863 esac
2864 esac
2865
2866 if test "$is_elf" = "yes"; then
2867 # Check for target supported by gold.
93f9b408 2868 case "${target}" in
e6de499b 2869 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
c7791212
NC
2870 configdirs="$configdirs gold"
2871 if test x${ENABLE_GOLD} = xdefault; then
2872 default_ld=gold
2873 fi
e6de499b 2874 ENABLE_GOLD=yes
93f9b408
ILT
2875 ;;
2876 esac
e6de499b
NC
2877 fi
2878 ;;
2879 no)
2880 ;;
2881 *)
2882 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2883 ;;
c7791212
NC
2884esac
2885
2886# Check whether --enable-ld was given.
2887if test "${enable_ld+set}" = set; then :
2888 enableval=$enable_ld; ENABLE_LD=$enableval
2889else
2890 ENABLE_LD=yes
2891fi
2892
2893
2894case "${ENABLE_LD}" in
2895 default)
d3b50760 2896 if test x${default_ld} != x; then
c7791212
NC
2897 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2898 fi
2899 ;;
2900 yes)
2901 ;;
2902 no)
2903 if test x${ENABLE_GOLD} != xyes; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2905$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2906 fi
2907 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2908 ;;
2909 *)
2910 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2911 ;;
2912esac
93f9b408 2913
a0da8069 2914# Configure extra directories which are host specific
252b5132 2915
a0da8069
NN
2916case "${host}" in
2917 *-cygwin*)
2918 configdirs="$configdirs libtermcap" ;;
2919esac
252b5132 2920
59f7ec45
HPN
2921# A target can indicate whether a language isn't supported for some reason.
2922# Only spaces may be used in this macro; not newlines or tabs.
2923unsupported_languages=
2924
c6b750e1 2925# Remove more programs from consideration, based on the host or
a0da8069
NN
2926# target this usually means that a port of the program doesn't
2927# exist yet.
252b5132 2928
a0da8069 2929case "${host}" in
3516a403 2930 i[3456789]86-*-msdosdjgpp*)
6a608608 2931 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 2932 ;;
a0da8069 2933esac
252b5132 2934
4b1cb4fe 2935
89a1e9c3
PB
2936# Check whether --enable-libquadmath was given.
2937if test "${enable_libquadmath+set}" = set; then :
2938 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2939else
2940 ENABLE_LIBQUADMATH=yes
2941fi
2942
2943if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2944 noconfigdirs="$noconfigdirs target-libquadmath"
2945fi
2946
2947
2948# Check whether --enable-libquadmath-support was given.
2949if test "${enable_libquadmath_support+set}" = set; then :
2950 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2951else
2952 ENABLE_LIBQUADMATH_SUPPORT=yes
2953fi
2954
2955enable_libquadmath_support=
2956if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2957 enable_libquadmath_support=no
2958fi
2959
2960
81ecdfbb
RW
2961# Check whether --enable-libada was given.
2962if test "${enable_libada+set}" = set; then :
2963 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
2964else
2965 ENABLE_LIBADA=yes
81ecdfbb
RW
2966fi
2967
a2592b1b 2968if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2969 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2970fi
2971
81ecdfbb
RW
2972# Check whether --enable-libssp was given.
2973if test "${enable_libssp+set}" = set; then :
2974 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
2975else
2976 ENABLE_LIBSSP=yes
81ecdfbb
RW
2977fi
2978
5f128533 2979
a0da8069
NN
2980# Save it here so that, even in case of --enable-libgcj, if the Java
2981# front-end isn't enabled, we still get libgcj disabled.
2982libgcj_saved=$libgcj
2983case $enable_libgcj in
2984yes)
2985 # If we reset it here, it won't get added to noconfigdirs in the
2986 # target-specific build rules, so it will be forcibly enabled
2987 # (unless the Java language itself isn't enabled).
2988 libgcj=
2989 ;;
2990no)
2991 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
2992 # Don't disable libffi, though, other languages use it.
2993 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
33d23ee8
ILT
2994 # Clear libgcj_saved so that even if java is enabled libffi won't be
2995 # built.
2996 libgcj_saved=
a0da8069
NN
2997 ;;
2998esac
252b5132 2999
4b1cb4fe 3000
a6df5a19
PB
3001# Disable libmudflap on some systems.
3002if test x$enable_libmudflap = x ; then
3e707e94 3003 case "${target}" in
29383458 3004 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 3005 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
3006 ;;
3007 *-*-freebsd*)
3008 # Enable libmudflap by default in FreeBSD.
3009 ;;
3010 *)
3011 # Disable it by default everywhere else.
3012 noconfigdirs="$noconfigdirs target-libmudflap"
3013 ;;
3014 esac
a6df5a19 3015fi
4b1cb4fe 3016
a6df5a19
PB
3017# Disable libgomp on non POSIX hosted systems.
3018if test x$enable_libgomp = x ; then
b3ded179
PB
3019 # Enable libgomp by default on hosted POSIX systems.
3020 case "${target}" in
29383458 3021 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3022 ;;
5b806d27 3023 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3024 ;;
1f111696 3025 *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
3026 ;;
3027 *-*-darwin* | *-*-aix*)
3028 ;;
3029 *)
3030 noconfigdirs="$noconfigdirs target-libgomp"
3031 ;;
3032 esac
a6df5a19 3033fi
b3ded179 3034
065a5627
JM
3035# Disable libssp for some systems.
3036case "${target}" in
3037 avr-*-*)
c5f5c3c2 3038 # No hosted I/O support.
065a5627
JM
3039 noconfigdirs="$noconfigdirs target-libssp"
3040 ;;
3041 powerpc-*-aix* | rs6000-*-aix*)
3042 noconfigdirs="$noconfigdirs target-libssp"
3043 ;;
065a5627
JM
3044esac
3045
3046# Disable target libiberty for some systems.
3047case "${target}" in
3048 *-*-kaos*)
3049 # Remove unsupported stuff on all kaOS configurations.
3050 skipdirs="target-libiberty"
3051 ;;
3052 *-*-netbsd*)
3053 # Skip some stuff on all NetBSD configurations.
3054 noconfigdirs="$noconfigdirs target-libiberty"
3055 ;;
3056 *-*-netware*)
3057 noconfigdirs="$noconfigdirs target-libiberty"
3058 ;;
3059 *-*-rtems*)
3060 skipdirs="${skipdirs} target-libiberty"
3061 ;;
3062 *-*-tpf*)
3063 noconfigdirs="$noconfigdirs target-libiberty"
3064 ;;
3065 *-*-vxworks*)
3066 noconfigdirs="$noconfigdirs target-libiberty"
3067 ;;
3068 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3069 noconfigdirs="$noconfigdirs target-libiberty"
3070 ;;
3071 arm*-*-symbianelf*)
3072 noconfigdirs="$noconfigdirs target-libiberty"
3073 ;;
3074 avr-*-*)
3075 noconfigdirs="$noconfigdirs target-libiberty"
3076 ;;
3077 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3078 noconfigdirs="$noconfigdirs target-libiberty"
3079 ;;
3080 picochip-*-*)
3081 noconfigdirs="$noconfigdirs target-libiberty"
3082 ;;
3083 mips*-sde-elf*)
3084 skipdirs="$skipdirs target-libiberty"
3085 ;;
3086 ip2k-*-*)
3087 noconfigdirs="$noconfigdirs target-libiberty"
3088 ;;
3089esac
3090
3091# Disable libstdc++-v3 for some systems.
3092case "${target}" in
3093 *-*-vxworks*)
3094 # VxWorks uses the Dinkumware C++ library.
3095 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3096 ;;
3097 arm*-wince-pe*)
3098 # the C++ libraries don't build on top of CE's C libraries
3099 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3100 ;;
3101 avr-*-*)
3102 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3103 ;;
3104esac
3105
3106# Disable Fortran for some systems.
3107case "${target}" in
3108 mmix-*-*)
3109 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3110 unsupported_languages="$unsupported_languages fortran"
3111 ;;
3112esac
3113
0827f9a6 3114# Disable Java if libffi is not supported.
9863d716 3115case "${target}" in
0827f9a6
JM
3116 alpha*-*-*)
3117 ;;
3118 arm*-*-*)
3119 ;;
3120 cris-*-*)
3121 ;;
3122 frv-*-*)
3123 ;;
3124 hppa*-*-linux*)
3125 ;;
3126 hppa*-*-hpux*)
3127 ;;
3128 i?86-*-*)
3129 ;;
3130 ia64*-*-*)
3131 ;;
3132 m32r*-*-*)
3133 ;;
3134 m68k-*-*)
3135 ;;
3136 mips-sgi-irix6.* | mips*-*-rtems*)
3137 ;;
3138 mips*-*-linux*)
3139 ;;
3140 powerpc*-*-linux*)
3141 ;;
3142 powerpc-*-darwin*)
3143 ;;
3144 powerpc-*-aix* | rs6000-*-aix*)
3145 ;;
3146 powerpc-*-freebsd*)
3147 ;;
3148 powerpc64-*-freebsd*)
3149 ;;
3150 powerpc*-*-rtems*)
9863d716 3151 ;;
0827f9a6
JM
3152 s390-*-* | s390x-*-*)
3153 ;;
3154 sh-*-* | sh[34]*-*-*)
3155 ;;
3156 sh64-*-* | sh5*-*-*)
3157 ;;
3158 sparc*-*-*)
3159 ;;
3160 x86_64-*-*)
3161 ;;
3162 *-*-*)
3163 unsupported_languages="$unsupported_languages java"
3164 ;;
3165esac
3166
3167# Disable Java, libgcj or related libraries for some systems.
3168case "${target}" in
9863d716
JM
3169 powerpc-*-darwin*)
3170 ;;
3171 i[3456789]86-*-darwin*)
3172 ;;
3173 x86_64-*-darwin[912]*)
3174 ;;
3175 *-*-darwin*)
3176 noconfigdirs="$noconfigdirs ${libgcj}"
3177 ;;
9863d716
JM
3178 *-*-netware*)
3179 noconfigdirs="$noconfigdirs ${libgcj}"
3180 ;;
3181 *-*-rtems*)
3182 noconfigdirs="$noconfigdirs ${libgcj}"
3183 ;;
3184 *-*-tpf*)
3185 noconfigdirs="$noconfigdirs ${libgcj}"
3186 ;;
3187 *-*-uclinux*)
3188 noconfigdirs="$noconfigdirs ${libgcj}"
3189 ;;
3190 *-*-vxworks*)
3191 noconfigdirs="$noconfigdirs ${libgcj}"
3192 ;;
9863d716
JM
3193 alpha*-*-*vms*)
3194 noconfigdirs="$noconfigdirs ${libgcj}"
3195 ;;
0827f9a6 3196 arm-wince-pe)
9863d716
JM
3197 noconfigdirs="$noconfigdirs ${libgcj}"
3198 ;;
9863d716
JM
3199 arm*-*-symbianelf*)
3200 noconfigdirs="$noconfigdirs ${libgcj}"
3201 ;;
9863d716 3202 bfin-*-*)
9863d716
JM
3203 noconfigdirs="$noconfigdirs target-boehm-gc"
3204 ;;
9863d716
JM
3205 cris-*-* | crisv32-*-*)
3206 unsupported_languages="$unsupported_languages java"
3207 case "${target}" in
3208 *-*-linux*)
3209 ;;
3210 *) # See PR46792 regarding target-libffi.
3211 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3212 esac
3213 ;;
9863d716
JM
3214 hppa*64*-*-linux*)
3215 # In this case, it's because the hppa64-linux target is for
3216 # the kernel only at this point and has no libc, and thus no
3217 # headers, crt*.o, etc., all of which are needed by these.
82ae827f 3218 unsupported_languages="$unsupported_languages java"
9863d716 3219 ;;
82ae827f 3220 hppa*64*-*-hpux*)
9863d716
JM
3221 noconfigdirs="$noconfigdirs ${libgcj}"
3222 ;;
3223 hppa*-hp-hpux11*)
3224 ;;
82ae827f 3225 hppa*-*-hpux*)
9863d716
JM
3226 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3227 # build on HP-UX 10.20.
3228 noconfigdirs="$noconfigdirs ${libgcj}"
3229 ;;
9863d716
JM
3230 ia64*-*-*vms*)
3231 noconfigdirs="$noconfigdirs ${libgcj}"
3232 ;;
9863d716
JM
3233 i[3456789]86-w64-mingw*)
3234 noconfigdirs="$noconfigdirs ${libgcj}"
3235 ;;
3236 i[3456789]86-*-mingw*)
3237 noconfigdirs="$noconfigdirs ${libgcj}"
3238 ;;
3239 x86_64-*-mingw*)
3240 noconfigdirs="$noconfigdirs ${libgcj}"
3241 ;;
9863d716
JM
3242 mmix-*-*)
3243 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
9863d716
JM
3244 ;;
3245 powerpc-*-aix*)
3246 # copied from rs6000-*-* entry
3247 noconfigdirs="$noconfigdirs ${libgcj}"
3248 ;;
9863d716
JM
3249 rs6000-*-aix*)
3250 noconfigdirs="$noconfigdirs ${libgcj}"
3251 ;;
9863d716
JM
3252 mips*-*-irix6*)
3253 # Linking libjava exceeds command-line length limits on at least
3254 # IRIX 6.2, but not on IRIX 6.5.
3255 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3256 # <oldham@codesourcery.com>
3257 noconfigdirs="$noconfigdirs ${libgcj}"
3258 ;;
9863d716
JM
3259 *-*-lynxos*)
3260 noconfigdirs="$noconfigdirs ${libgcj}"
3261 ;;
9863d716
JM
3262esac
3263
691bb5a1
DD
3264# Default libgloss CPU subdirectory.
3265libgloss_dir="$target_cpu"
4b1cb4fe 3266
a0da8069
NN
3267case "${target}" in
3268 *-*-chorusos)
b2f14e4a 3269 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3270 ;;
24741ab2 3271 powerpc-*-darwin*)
9d39db92 3272 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3273 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3274 ;;
85bd1942
TG
3275 i[3456789]86-*-darwin*)
3276 noconfigdirs="$noconfigdirs ld gprof"
3277 noconfigdirs="$noconfigdirs sim target-rda"
3278 ;;
e8a5fa9c 3279 x86_64-*-darwin[912]*)
652dec25
TG
3280 noconfigdirs="$noconfigdirs ld gas gprof"
3281 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3282 ;;
04d1ab34 3283 *-*-darwin*)
d320aacb 3284 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3285 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3286 ;;
5b806d27
NC
3287 *-*-dragonfly*)
3288 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3289 ;;
de0b4a87 3290 *-*-freebsd*)
4b1cb4fe
DD
3291 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3292 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3293 && test -f /usr/local/include/gmp.h; then
3294 with_gmp=/usr/local
3295 fi
4b1cb4fe 3296 ;;
f8a495c8
NC
3297 *-*-kaos*)
3298 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3299 noconfigdirs="$noconfigdirs target-libgloss"
3300 ;;
a0da8069
NN
3301 *-*-netbsd*)
3302 # Skip some stuff on all NetBSD configurations.
065a5627 3303 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3304 ;;
2a3124ca 3305 *-*-netware*)
9863d716 3306 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069
NN
3307 ;;
3308 *-*-rtems*)
9863d716 3309 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3310 ;;
1587117a
EC
3311 # The tpf target doesn't support gdb yet.
3312 *-*-tpf*)
9863d716 3313 noconfigdirs="$noconfigdirs target-newlib target-libgloss gdb tcl tk libgui itcl"
1587117a 3314 ;;
c1968181 3315 *-*-uclinux*)
9863d716 3316 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda"
c1968181 3317 ;;
a0da8069 3318 *-*-vxworks*)
9863d716 3319 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069
NN
3320 ;;
3321 alpha*-dec-osf*)
3322 # ld works, but does not support shared libraries.
0377a422 3323 # newlib is not 64 bit ready.
a0da8069 3324 # gas doesn't generate exception information.
0377a422 3325 noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss"
a0da8069
NN
3326 ;;
3327 alpha*-*-*vms*)
9863d716 3328 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069
NN
3329 ;;
3330 alpha*-*-linux*)
3331 # newlib is not 64 bit ready
3332 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3333 ;;
a0da8069
NN
3334 alpha*-*-*)
3335 # newlib is not 64 bit ready
9863d716 3336 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3337 ;;
4a18bd6b 3338 am33_2.0-*-linux*)
9863d716 3339 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4a18bd6b 3340 ;;
a0da8069 3341 sh-*-linux*)
9863d716 3342 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
c6b750e1 3343 ;;
a0da8069 3344 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3345 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3346 noconfigdirs="$noconfigdirs target-newlib"
691bb5a1 3347 libgloss_dir=wince
a0da8069
NN
3348 ;;
3349 arc-*-*)
782cb41f 3350 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3351 ;;
93cc359e 3352 arm-*-coff)
691bb5a1 3353 libgloss_dir=arm
a0da8069 3354 ;;
93cc359e 3355 arm-*-elf* | arm*-*-eabi* )
691bb5a1 3356 libgloss_dir=arm
a0da8069 3357 ;;
bd70a46f 3358 arm*-*-linux-gnueabi)
a5b3b4dd
DD
3359 case ${with_newlib} in
3360 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3361 esac
691bb5a1 3362 libgloss_dir=arm
bd70a46f 3363 ;;
df4a6958 3364 arm*-*-symbianelf*)
691bb5a1 3365 libgloss_dir=arm
df4a6958 3366 ;;
a0da8069 3367 arm-*-pe*)
9863d716 3368 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3369 ;;
a0da8069 3370 arm-*-riscix*)
b2f14e4a 3371 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069
NN
3372 ;;
3373 avr-*-*)
a0da8069 3374 ;;
376a0e54 3375 bfin-*-*)
376a0e54 3376 ;;
a0da8069 3377 c4x-*-* | tic4x-*-*)
b2f14e4a 3378 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3379 ;;
b2f14e4a
JM
3380 tic54x-*-*)
3381 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3382 ;;
52310858 3383 cr16-*-*)
9863d716 3384 noconfigdirs="$noconfigdirs gdb"
52310858 3385 ;;
c7e66c6d
HPN
3386 cris-*-* | crisv32-*-*)
3387 case "${target}" in
2faa2958 3388 *-*-linux*)
5e818318 3389 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 3390 esac
691bb5a1 3391 libgloss_dir=cris
a0da8069
NN
3392 ;;
3393 d10v-*-*)
b2f14e4a 3394 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3395 ;;
3396 d30v-*-*)
b2f14e4a 3397 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3398 ;;
3399 fr30-*-elf*)
9863d716 3400 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3401 ;;
3402 frv-*-*)
a0da8069 3403 ;;
20135e4c 3404 moxie-*-*)
20135e4c
NC
3405 noconfigdirs="$noconfigdirs gprof"
3406 ;;
a0da8069 3407 h8300*-*-*)
9863d716 3408 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3409 ;;
3410 h8500-*-*)
b2f14e4a 3411 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3412 ;;
caeba88f 3413 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3414 ;;
93cc359e 3415 hppa*64*-*-linux*)
a0da8069 3416 ;;
f0ff0f90 3417 hppa*-*-linux*)
5dcac624 3418 ;;
a0da8069 3419 hppa*-*-*elf* | \
a0da8069
NN
3420 hppa*-*-lites* | \
3421 hppa*-*-openbsd* | \
3422 hppa*64*-*-*)
4f0ef2d8
CD
3423 ;;
3424 hppa*-hp-hpux11*)
0377a422 3425 noconfigdirs="$noconfigdirs ld"
a0da8069 3426 ;;
691bb5a1
DD
3427 hppa*-*-pro*)
3428 libgloss_dir=pa
3429 ;;
a0da8069 3430 hppa*-*-*)
9863d716 3431 noconfigdirs="$noconfigdirs ld"
a0da8069 3432 ;;
b07c2aad 3433 i960-*-*)
b2f14e4a 3434 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3435 ;;
a0da8069
NN
3436 ia64*-*-elf*)
3437 # No gdb support yet.
0377a422 3438 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3439 ;;
3440 ia64*-**-hpux*)
92c9a463 3441 # No ld support yet.
9863d716 3442 noconfigdirs="$noconfigdirs libgui itcl ld"
a0da8069 3443 ;;
19e99079
NC
3444 ia64*-*-*vms*)
3445 # No gdb or ld support yet.
9863d716 3446 noconfigdirs="$noconfigdirs readline libgui itcl gdb ld"
19e99079 3447 ;;
ec11bdc6 3448 i[3456789]86-*-coff | i[3456789]86-*-elf)
691bb5a1 3449 libgloss_dir=i386
a0da8069 3450 ;;
ec11bdc6 3451 i[3456789]86-*-linux*)
a0da8069
NN
3452 # This section makes it possible to build newlib natively on linux.
3453 # If we are using a cross compiler then don't configure newlib.
3454 if test x${is_cross_compiler} != xno ; then
bba45b8b 3455 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3456 fi
3457 noconfigdirs="$noconfigdirs target-libgloss"
3458 # If we are not using a cross compiler, do configure newlib.
3459 # Note however, that newlib will only be configured in this situation
3460 # if the --with-newlib option has been given, because otherwise
3461 # 'target-newlib' will appear in skipdirs.
3462 ;;
1f53ca9a 3463 i[3456789]86-w64-mingw*)
9863d716 3464 noconfigdirs="$noconfigdirs target-libgloss target-newlib"
1f53ca9a
AO
3465 ;;
3466 i[3456789]86-*-mingw*)
45055374 3467 target_configdirs="$target_configdirs target-winsup"
9863d716 3468 noconfigdirs="$noconfigdirs target-libgloss target-newlib"
c6b750e1 3469 ;;
2d1e8239 3470 x86_64-*-mingw*)
9863d716 3471 noconfigdirs="$noconfigdirs target-libgloss target-newlib"
c6b750e1 3472 ;;
a0da8069
NN
3473 *-*-cygwin*)
3474 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3475 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3476 # always build newlib if winsup directory is present.
45055374 3477 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3478 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3479 elif test -d "$srcdir/newlib"; then
45055374 3480 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3481 fi
c6b750e1 3482 ;;
f0ff0f90 3483 i[3456789]86-*-interix* )
caeba88f 3484 ;;
ec11bdc6 3485 i[3456789]86-*-pe)
782cb41f 3486 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3487 ;;
ec11bdc6 3488 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3489 # The linker does not yet know about weak symbols in COFF,
3490 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3491 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3492 ;;
ec11bdc6 3493 i[3456789]86-*-sco*)
b2f14e4a 3494 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3495 ;;
ec11bdc6 3496 i[3456789]86-*-solaris2*)
a0da8069
NN
3497 noconfigdirs="$noconfigdirs target-libgloss"
3498 ;;
ec11bdc6 3499 i[3456789]86-*-sysv4*)
b2f14e4a 3500 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3501 ;;
ec11bdc6 3502 i[3456789]86-*-beos*)
b2f14e4a 3503 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
bba45b8b 3504 ;;
b59bea8a 3505 i[3456789]86-*-rdos*)
2429c060
PB
3506 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3507 ;;
b07c2aad 3508 m32r-*-*)
b07c2aad 3509 ;;
a0da8069 3510 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
691bb5a1 3511 libgloss_dir=m68hc11
a0da8069
NN
3512 ;;
3513 m68k-*-elf*)
a0da8069 3514 ;;
691bb5a1
DD
3515 m68*-*-* | fido-*-*)
3516 libgloss_dir=m68k
3517 ;;
a0da8069 3518 mmix-*-*)
9863d716 3519 noconfigdirs="$noconfigdirs gdb"
a0da8069 3520 ;;
4970f871 3521 mt-*-*)
cdb9b172
AH
3522 noconfigdirs="$noconfigdirs sim"
3523 ;;
a0da8069
NN
3524 powerpc-*-aix*)
3525 # copied from rs6000-*-* entry
9863d716 3526 noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib"
a0da8069 3527 ;;
93cc359e 3528 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3529 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3530 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3531 # always build newlib.
3532 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3533 ;;
3534 # This is temporary until we can link against shared libraries
3535 powerpcle-*-solaris*)
b2f14e4a 3536 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
691bb5a1 3537 libgloss_dir=rs6000
a0da8069
NN
3538 ;;
3539 powerpc-*-beos*)
b2f14e4a 3540 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3541 ;;
a0da8069 3542 powerpc-*-eabi)
691bb5a1 3543 libgloss_dir=rs6000
caeba88f
AL
3544 ;;
3545 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3546 libgloss_dir=rs6000
a0da8069 3547 ;;
a0da8069 3548 rs6000-*-lynxos*)
9863d716 3549 noconfigdirs="$noconfigdirs target-newlib gprof"
a0da8069
NN
3550 ;;
3551 rs6000-*-aix*)
9863d716 3552 noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib"
a0da8069
NN
3553 ;;
3554 rs6000-*-*)
9863d716 3555 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3556 ;;
3557 m68k-apollo-*)
b2f14e4a 3558 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3559 ;;
25a07265 3560 microblaze*)
9863d716 3561 noconfigdirs="$noconfigdirs gprof"
25a07265 3562 ;;
5bd8be13 3563 mips*-sde-elf*)
5bd8be13
RS
3564 if test x$with_newlib = xyes; then
3565 noconfigdirs="$noconfigdirs gprof"
3566 fi
3567 libgloss_dir=mips
3568 ;;
a0da8069 3569 mips*-*-irix5*)
b2f14e4a 3570 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3571 ;;
3572 mips*-*-irix6*)
9863d716 3573 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3574 ;;
a0da8069 3575 mips*-*-bsd*)
b2f14e4a 3576 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3577 ;;
a0da8069
NN
3578 mips*-*-linux*)
3579 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3580 ;;
3581 mips*-*-*)
9863d716 3582 noconfigdirs="$noconfigdirs gprof"
691bb5a1 3583 libgloss_dir=mips
a0da8069 3584 ;;
dbf85af7 3585 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3586 case "${target}" in
3587 sh*-*-elf)
9863d716 3588 ;;
e8a5fa9c 3589 *)
9863d716 3590 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3591 esac
a0da8069 3592 ;;
691bb5a1
DD
3593 sparclet-*-aout* | sparc86x-*-*)
3594 libgloss_dir=sparc
3595 ;;
a0da8069 3596 sparc-*-elf*)
a0da8069
NN
3597 ;;
3598 sparc64-*-elf*)
691bb5a1 3599 libgloss_dir=sparc
a0da8069
NN
3600 ;;
3601 sparclite-*-*)
691bb5a1 3602 libgloss_dir=sparc
a0da8069
NN
3603 ;;
3604 sparc-*-sunos4*)
a0da8069
NN
3605 if test x${is_cross_compiler} != xno ; then
3606 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3607 else
3608 use_gnu_ld=no
3609 fi
3610 ;;
3611 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3612 ;;
619a3713 3613 tic6x-*-*)
9863d716 3614 noconfigdirs="$noconfigdirs gdb sim"
619a3713 3615 ;;
a0da8069 3616 v810-*-*)
b2f14e4a 3617 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3618 ;;
3619 vax-*-*)
9863d716 3620 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3621 ;;
29383458 3622 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3623 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3624 ;;
3625 *-*-lynxos*)
9863d716 3626 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
c6b750e1 3627 ;;
a0da8069 3628 *-*-*)
a0da8069
NN
3629 ;;
3630esac
252b5132 3631
a0da8069
NN
3632# If we aren't building newlib, then don't build libgloss, since libgloss
3633# depends upon some newlib header files.
3634case "${noconfigdirs}" in
3635 *target-libgloss*) ;;
3636 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3637esac
3638
a0da8069 3639# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3640host_makefile_frag=/dev/null
3641if test -d ${srcdir}/config ; then
3642case "${host}" in
ec11bdc6 3643 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3644 host_makefile_frag="config/mh-djgpp"
3645 ;;
3646 *-cygwin*)
e33b51a6 3647
81ecdfbb
RW
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3649$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3650echo a >cygwin-cat-check
1f53ca9a 3651if test `cat cygwin-cat-check` = a ; then
8ade07e9 3652 rm cygwin-cat-check
81ecdfbb
RW
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3654$as_echo "yes" >&6; }
e33b51a6 3655else
8ade07e9 3656 rm cygwin-cat-check
81ecdfbb
RW
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658$as_echo "no" >&6; }
3659 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3660 Please either mount the build directory in binary mode or run the following
3661 commands before running any configure script:
3662set -o igncr
3663export SHELLOPTS
81ecdfbb 3664 " "$LINENO" 5
e33b51a6 3665fi
e33b51a6 3666
a0da8069
NN
3667 host_makefile_frag="config/mh-cygwin"
3668 ;;
8a1599ab 3669 *-mingw*)
84e7906e 3670 host_makefile_frag="config/mh-mingw"
2d1e8239 3671 ;;
a0da8069
NN
3672 *-interix*)
3673 host_makefile_frag="config/mh-interix"
3674 ;;
da888c87 3675 hppa*-hp-hpux10*)
da888c87 3676 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3677 ;;
3516a403 3678 hppa*-hp-hpux*)
da888c87
PB
3679 host_makefile_frag="config/mh-pa"
3680 ;;
3681 hppa*-*)
3682 host_makefile_frag="config/mh-pa"
3683 ;;
e552509b
ILT
3684 *-*-darwin*)
3685 host_makefile_frag="config/mh-darwin"
0df3d27f 3686 ;;
f6d183c0
PB
3687 powerpc-*-aix*)
3688 host_makefile_frag="config/mh-ppc-aix"
3689 ;;
3690 rs6000-*-aix*)
3691 host_makefile_frag="config/mh-ppc-aix"
3692 ;;
a0da8069
NN
3693esac
3694fi
3695
9e07f89d 3696if test "${build}" != "${host}" ; then
1576798e
PB
3697 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3698 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3699 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3700 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3701 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3702 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3703 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3704 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3705 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3706 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3707 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3708 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3709 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3710else
3711 AR_FOR_BUILD="\$(AR)"
3712 AS_FOR_BUILD="\$(AS)"
512b7dfb 3713 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3714 CXX_FOR_BUILD="\$(CXX)"
3715 GCJ_FOR_BUILD="\$(GCJ)"
3716 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3717 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3718 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3719 LD_FOR_BUILD="\$(LD)"
3720 NM_FOR_BUILD="\$(NM)"
3721 RANLIB_FOR_BUILD="\$(RANLIB)"
3722 WINDRES_FOR_BUILD="\$(WINDRES)"
3723 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3724fi
3725
3726ac_ext=c
c6b750e1
DJ
3727ac_cpp='$CPP $CPPFLAGS'
3728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731if test -n "$ac_tool_prefix"; then
3732 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3733set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735$as_echo_n "checking for $ac_word... " >&6; }
3736if test "${ac_cv_prog_CC+set}" = set; then :
3737 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3738else
3739 if test -n "$CC"; then
3740 ac_cv_prog_CC="$CC" # Let the user override the test.
3741else
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3749 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3751 break 2
3752 fi
3753done
81ecdfbb
RW
3754 done
3755IFS=$as_save_IFS
c6b750e1
DJ
3756
3757fi
3758fi
3759CC=$ac_cv_prog_CC
3760if test -n "$CC"; then
81ecdfbb
RW
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3762$as_echo "$CC" >&6; }
c6b750e1 3763else
81ecdfbb
RW
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765$as_echo "no" >&6; }
c6b750e1
DJ
3766fi
3767
81ecdfbb 3768
c6b750e1
DJ
3769fi
3770if test -z "$ac_cv_prog_CC"; then
3771 ac_ct_CC=$CC
6a9cf61e 3772 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3773set dummy gcc; ac_word=$2
81ecdfbb
RW
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775$as_echo_n "checking for $ac_word... " >&6; }
3776if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3777 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3778else
3779 if test -n "$ac_ct_CC"; then
3780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3781else
3782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783for as_dir in $PATH
3784do
3785 IFS=$as_save_IFS
3786 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3789 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3791 break 2
3792 fi
3793done
81ecdfbb
RW
3794 done
3795IFS=$as_save_IFS
c6b750e1
DJ
3796
3797fi
3798fi
3799ac_ct_CC=$ac_cv_prog_ac_ct_CC
3800if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3802$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3803else
81ecdfbb
RW
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805$as_echo "no" >&6; }
c6b750e1
DJ
3806fi
3807
81ecdfbb
RW
3808 if test "x$ac_ct_CC" = x; then
3809 CC=""
3810 else
3811 case $cross_compiling:$ac_tool_warned in
3812yes:)
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3815ac_tool_warned=yes ;;
3816esac
3817 CC=$ac_ct_CC
3818 fi
c6b750e1
DJ
3819else
3820 CC="$ac_cv_prog_CC"
3821fi
3822
3823if test -z "$CC"; then
81ecdfbb
RW
3824 if test -n "$ac_tool_prefix"; then
3825 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3826set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828$as_echo_n "checking for $ac_word... " >&6; }
3829if test "${ac_cv_prog_CC+set}" = set; then :
3830 $as_echo_n "(cached) " >&6
9e07f89d
NN
3831else
3832 if test -n "$CC"; then
3833 ac_cv_prog_CC="$CC" # Let the user override the test.
3834else
c6b750e1
DJ
3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH
3837do
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3842 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3844 break 2
3845 fi
3846done
81ecdfbb
RW
3847 done
3848IFS=$as_save_IFS
c6b750e1 3849
9e07f89d
NN
3850fi
3851fi
c6b750e1 3852CC=$ac_cv_prog_CC
9e07f89d 3853if test -n "$CC"; then
81ecdfbb
RW
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3855$as_echo "$CC" >&6; }
c6b750e1 3856else
81ecdfbb
RW
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858$as_echo "no" >&6; }
c6b750e1
DJ
3859fi
3860
c6b750e1 3861
81ecdfbb 3862 fi
c6b750e1 3863fi
9e07f89d
NN
3864if test -z "$CC"; then
3865 # Extract the first word of "cc", so it can be a program name with args.
3866set dummy cc; ac_word=$2
81ecdfbb
RW
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868$as_echo_n "checking for $ac_word... " >&6; }
3869if test "${ac_cv_prog_CC+set}" = set; then :
3870 $as_echo_n "(cached) " >&6
9e07f89d
NN
3871else
3872 if test -n "$CC"; then
3873 ac_cv_prog_CC="$CC" # Let the user override the test.
3874else
9e07f89d 3875 ac_prog_rejected=no
c6b750e1
DJ
3876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH
3878do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3883 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3884 ac_prog_rejected=yes
3885 continue
3886 fi
3887 ac_cv_prog_CC="cc"
81ecdfbb 3888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3889 break 2
3890 fi
3891done
81ecdfbb
RW
3892 done
3893IFS=$as_save_IFS
c6b750e1 3894
9e07f89d
NN
3895if test $ac_prog_rejected = yes; then
3896 # We found a bogon in the path, so make sure we never use it.
3897 set dummy $ac_cv_prog_CC
3898 shift
c6b750e1 3899 if test $# != 0; then
9e07f89d
NN
3900 # We chose a different compiler from the bogus one.
3901 # However, it has the same basename, so the bogon will be chosen
3902 # first if we set CC to just the basename; use the full file name.
3903 shift
c6b750e1 3904 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3905 fi
3906fi
3907fi
3908fi
c6b750e1 3909CC=$ac_cv_prog_CC
9e07f89d 3910if test -n "$CC"; then
81ecdfbb
RW
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3912$as_echo "$CC" >&6; }
9e07f89d 3913else
81ecdfbb
RW
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915$as_echo "no" >&6; }
9e07f89d
NN
3916fi
3917
81ecdfbb 3918
c6b750e1
DJ
3919fi
3920if test -z "$CC"; then
3921 if test -n "$ac_tool_prefix"; then
81ecdfbb 3922 for ac_prog in cl.exe
c6b750e1
DJ
3923 do
3924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3925set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927$as_echo_n "checking for $ac_word... " >&6; }
3928if test "${ac_cv_prog_CC+set}" = set; then :
3929 $as_echo_n "(cached) " >&6
9e07f89d
NN
3930else
3931 if test -n "$CC"; then
3932 ac_cv_prog_CC="$CC" # Let the user override the test.
3933else
c6b750e1
DJ
3934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935for as_dir in $PATH
3936do
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3941 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 3943 break 2
376a0e54 3944 fi
c6b750e1 3945done
81ecdfbb
RW
3946 done
3947IFS=$as_save_IFS
cac3d6c4 3948
c6b750e1
DJ
3949fi
3950fi
3951CC=$ac_cv_prog_CC
3952if test -n "$CC"; then
81ecdfbb
RW
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3954$as_echo "$CC" >&6; }
cac3d6c4 3955else
81ecdfbb
RW
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957$as_echo "no" >&6; }
9e07f89d 3958fi
cac3d6c4 3959
81ecdfbb 3960
c6b750e1
DJ
3961 test -n "$CC" && break
3962 done
cac3d6c4 3963fi
c6b750e1
DJ
3964if test -z "$CC"; then
3965 ac_ct_CC=$CC
81ecdfbb 3966 for ac_prog in cl.exe
c6b750e1
DJ
3967do
3968 # Extract the first word of "$ac_prog", so it can be a program name with args.
3969set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971$as_echo_n "checking for $ac_word... " >&6; }
3972if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3973 $as_echo_n "(cached) " >&6
cac3d6c4 3974else
c6b750e1
DJ
3975 if test -n "$ac_ct_CC"; then
3976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3977else
c6b750e1
DJ
3978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979for as_dir in $PATH
3980do
3981 IFS=$as_save_IFS
3982 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3985 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3987 break 2
3988 fi
3989done
81ecdfbb
RW
3990 done
3991IFS=$as_save_IFS
c6b750e1 3992
cac3d6c4
CM
3993fi
3994fi
c6b750e1
DJ
3995ac_ct_CC=$ac_cv_prog_ac_ct_CC
3996if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3998$as_echo "$ac_ct_CC" >&6; }
9e07f89d 3999else
81ecdfbb
RW
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001$as_echo "no" >&6; }
cac3d6c4 4002fi
376a0e54 4003
81ecdfbb 4004
c6b750e1
DJ
4005 test -n "$ac_ct_CC" && break
4006done
4007
81ecdfbb
RW
4008 if test "x$ac_ct_CC" = x; then
4009 CC=""
4010 else
4011 case $cross_compiling:$ac_tool_warned in
4012yes:)
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4015ac_tool_warned=yes ;;
4016esac
4017 CC=$ac_ct_CC
4018 fi
c6b750e1
DJ
4019fi
4020
4021fi
4022
4023
81ecdfbb
RW
4024test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026as_fn_error "no acceptable C compiler found in \$PATH
4027See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4028
4029# Provide some information about the compiler.
81ecdfbb
RW
4030$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4031set X $ac_compile
4032ac_compiler=$2
4033for ac_option in --version -v -V -qversion; do
4034 { { ac_try="$ac_compiler $ac_option >&5"
4035case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038esac
4039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4040$as_echo "$ac_try_echo"; } >&5
4041 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4042 ac_status=$?
81ecdfbb
RW
4043 if test -s conftest.err; then
4044 sed '10a\
4045... rest of stderr output deleted ...
4046 10q' conftest.err >conftest.er1
4047 cat conftest.er1 >&5
4048 rm -f conftest.er1 conftest.err
4049 fi
4050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4051 test $ac_status = 0; }
4052done
c6b750e1 4053
81ecdfbb 4054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4055/* end confdefs.h. */
4056
4057int
4058main ()
4059{
4060
4061 ;
4062 return 0;
4063}
4064_ACEOF
4065ac_clean_files_save=$ac_clean_files
81ecdfbb 4066ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4067# Try to create an executable without -o first, disregard a.out.
4068# It will help us diagnose broken compilers, and finding out an intuition
4069# of exeext.
81ecdfbb
RW
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4071$as_echo_n "checking for C compiler default output file name... " >&6; }
4072ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4073
4074# The possible output files:
4075ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4076
4077ac_rmfiles=
4078for ac_file in $ac_files
4079do
4080 case $ac_file in
4081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4082 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4083 esac
4084done
4085rm -f $ac_rmfiles
4086
4087if { { ac_try="$ac_link_default"
4088case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091esac
4092eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4093$as_echo "$ac_try_echo"; } >&5
4094 (eval "$ac_link_default") 2>&5
c6b750e1 4095 ac_status=$?
81ecdfbb
RW
4096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4097 test $ac_status = 0; }; then :
4098 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4099# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4100# in a Makefile. We should not override ac_cv_exeext if it was cached,
4101# so that the user can short-circuit this test for compilers unknown to
4102# Autoconf.
4103for ac_file in $ac_files ''
c6b750e1
DJ
4104do
4105 test -f "$ac_file" || continue
4106 case $ac_file in
81ecdfbb 4107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4108 ;;
4109 [ab].out )
4110 # We found the default executable, but exeext='' is most
4111 # certainly right.
4112 break;;
4113 *.* )
81ecdfbb
RW
4114 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4115 then :; else
4116 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4117 fi
4118 # We set ac_cv_exeext here because the later test for it is not
4119 # safe: cross compilers may not add the suffix if given an `-o'
4120 # argument, so we may need to know it at that point already.
4121 # Even if this section looks crufty: it has the advantage of
4122 # actually working.
c6b750e1
DJ
4123 break;;
4124 * )
4125 break;;
4126 esac
4127done
81ecdfbb
RW
4128test "$ac_cv_exeext" = no && ac_cv_exeext=
4129
c6b750e1 4130else
81ecdfbb
RW
4131 ac_file=''
4132fi
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4134$as_echo "$ac_file" >&6; }
4135if test -z "$ac_file"; then :
4136 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4137sed 's/^/| /' conftest.$ac_ext >&5
4138
81ecdfbb
RW
4139{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4141{ as_fn_set_status 77
4142as_fn_error "C compiler cannot create executables
4143See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4144fi
c6b750e1 4145ac_exeext=$ac_cv_exeext
c6b750e1 4146
81ecdfbb 4147# Check that the compiler produces executables we can run. If not, either
c6b750e1 4148# the compiler is broken, or we cross compile.
81ecdfbb
RW
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4150$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4151# If not cross compiling, check that we can run a simple program.
4152if test "$cross_compiling" != yes; then
4153 if { ac_try='./$ac_file'
81ecdfbb
RW
4154 { { case "(($ac_try" in
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4157esac
4158eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4159$as_echo "$ac_try_echo"; } >&5
4160 (eval "$ac_try") 2>&5
c6b750e1 4161 ac_status=$?
81ecdfbb
RW
4162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4163 test $ac_status = 0; }; }; then
c6b750e1
DJ
4164 cross_compiling=no
4165 else
4166 if test "$cross_compiling" = maybe; then
4167 cross_compiling=yes
4168 else
81ecdfbb
RW
4169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4171as_fn_error "cannot run C compiled programs.
c6b750e1 4172If you meant to cross compile, use \`--host'.
81ecdfbb 4173See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4174 fi
4175 fi
4176fi
81ecdfbb
RW
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4178$as_echo "yes" >&6; }
c6b750e1 4179
81ecdfbb 4180rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4181ac_clean_files=$ac_clean_files_save
81ecdfbb 4182# Check that the compiler produces executables we can run. If not, either
c6b750e1 4183# the compiler is broken, or we cross compile.
81ecdfbb
RW
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4185$as_echo_n "checking whether we are cross compiling... " >&6; }
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4187$as_echo "$cross_compiling" >&6; }
4188
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4190$as_echo_n "checking for suffix of executables... " >&6; }
4191if { { ac_try="$ac_link"
4192case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195esac
4196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4197$as_echo "$ac_try_echo"; } >&5
4198 (eval "$ac_link") 2>&5
c6b750e1 4199 ac_status=$?
81ecdfbb
RW
4200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4201 test $ac_status = 0; }; then :
c6b750e1
DJ
4202 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4203# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4204# work properly (i.e., refer to `conftest.exe'), while it won't with
4205# `rm'.
4206for ac_file in conftest.exe conftest conftest.*; do
4207 test -f "$ac_file" || continue
4208 case $ac_file in
81ecdfbb 4209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4210 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4211 break;;
4212 * ) break;;
4213 esac
4214done
4215else
81ecdfbb
RW
4216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4218as_fn_error "cannot compute suffix of executables: cannot compile and link
4219See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4220fi
c6b750e1 4221rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4223$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4224
4225rm -f conftest.$ac_ext
4226EXEEXT=$ac_cv_exeext
4227ac_exeext=$EXEEXT
81ecdfbb
RW
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4229$as_echo_n "checking for suffix of object files... " >&6; }
4230if test "${ac_cv_objext+set}" = set; then :
4231 $as_echo_n "(cached) " >&6
c6b750e1 4232else
81ecdfbb 4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4234/* end confdefs.h. */
4235
4236int
4237main ()
4238{
4239
4240 ;
4241 return 0;
4242}
4243_ACEOF
4244rm -f conftest.o conftest.obj
81ecdfbb
RW
4245if { { ac_try="$ac_compile"
4246case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4249esac
4250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4251$as_echo "$ac_try_echo"; } >&5
4252 (eval "$ac_compile") 2>&5
c6b750e1 4253 ac_status=$?
81ecdfbb
RW
4254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4255 test $ac_status = 0; }; then :
4256 for ac_file in conftest.o conftest.obj conftest.*; do
4257 test -f "$ac_file" || continue;
c6b750e1 4258 case $ac_file in
81ecdfbb 4259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4260 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4261 break;;
4262 esac
4263done
cac3d6c4 4264else
81ecdfbb 4265 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4266sed 's/^/| /' conftest.$ac_ext >&5
4267
81ecdfbb
RW
4268{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4270as_fn_error "cannot compute suffix of object files: cannot compile
4271See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4272fi
c6b750e1
DJ
4273rm -f conftest.$ac_cv_objext conftest.$ac_ext
4274fi
81ecdfbb
RW
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4276$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4277OBJEXT=$ac_cv_objext
4278ac_objext=$OBJEXT
81ecdfbb
RW
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4280$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4281if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4282 $as_echo_n "(cached) " >&6
c6b750e1 4283else
81ecdfbb 4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4285/* end confdefs.h. */
4286
4287int
4288main ()
4289{
4290#ifndef __GNUC__
4291 choke me
4292#endif
4293
4294 ;
4295 return 0;
4296}
4297_ACEOF
81ecdfbb 4298if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4299 ac_compiler_gnu=yes
4300else
81ecdfbb 4301 ac_compiler_gnu=no
c6b750e1 4302fi
81ecdfbb 4303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4304ac_cv_c_compiler_gnu=$ac_compiler_gnu
4305
4306fi
81ecdfbb
RW
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4308$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4309if test $ac_compiler_gnu = yes; then
4310 GCC=yes
4311else
4312 GCC=
4313fi
c6b750e1
DJ
4314ac_test_CFLAGS=${CFLAGS+set}
4315ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4317$as_echo_n "checking whether $CC accepts -g... " >&6; }
4318if test "${ac_cv_prog_cc_g+set}" = set; then :
4319 $as_echo_n "(cached) " >&6
4320else
4321 ac_save_c_werror_flag=$ac_c_werror_flag
4322 ac_c_werror_flag=yes
4323 ac_cv_prog_cc_g=no
4324 CFLAGS="-g"
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4326/* end confdefs.h. */
4327
4328int
4329main ()
4330{
4331
4332 ;
4333 return 0;
4334}
4335_ACEOF
81ecdfbb 4336if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4337 ac_cv_prog_cc_g=yes
4338else
81ecdfbb
RW
4339 CFLAGS=""
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341/* end confdefs.h. */
4342
4343int
4344main ()
4345{
4346
4347 ;
4348 return 0;
4349}
4350_ACEOF
4351if ac_fn_c_try_compile "$LINENO"; then :
4352
4353else
4354 ac_c_werror_flag=$ac_save_c_werror_flag
4355 CFLAGS="-g"
4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357/* end confdefs.h. */
cac3d6c4 4358
81ecdfbb
RW
4359int
4360main ()
4361{
4362
4363 ;
4364 return 0;
4365}
4366_ACEOF
4367if ac_fn_c_try_compile "$LINENO"; then :
4368 ac_cv_prog_cc_g=yes
4369fi
4370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4371fi
81ecdfbb 4372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4373fi
81ecdfbb
RW
4374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 ac_c_werror_flag=$ac_save_c_werror_flag
4376fi
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4378$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4379if test "$ac_test_CFLAGS" = set; then
c6b750e1 4380 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4381elif test $ac_cv_prog_cc_g = yes; then
4382 if test "$GCC" = yes; then
4383 CFLAGS="-g -O2"
4384 else
4385 CFLAGS="-g"
4386 fi
4387else
4388 if test "$GCC" = yes; then
4389 CFLAGS="-O2"
4390 else
4391 CFLAGS=
4392 fi
4393fi
81ecdfbb
RW
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4395$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4396if test "${ac_cv_prog_cc_c89+set}" = set; then :
4397 $as_echo_n "(cached) " >&6
c6b750e1 4398else
81ecdfbb 4399 ac_cv_prog_cc_c89=no
c6b750e1 4400ac_save_CC=$CC
81ecdfbb 4401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4402/* end confdefs.h. */
4403#include <stdarg.h>
4404#include <stdio.h>
4405#include <sys/types.h>
4406#include <sys/stat.h>
4407/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4408struct buf { int x; };
4409FILE * (*rcsopen) (struct buf *, struct stat *, int);
4410static char *e (p, i)
4411 char **p;
4412 int i;
4413{
4414 return p[i];
4415}
4416static char *f (char * (*g) (char **, int), char **p, ...)
4417{
4418 char *s;
4419 va_list v;
4420 va_start (v,p);
4421 s = g (p, va_arg (v,int));
4422 va_end (v);
4423 return s;
4424}
4425
4426/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4427 function prototypes and stuff, but not '\xHH' hex character constants.
4428 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4429 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4430 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4431 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4432 that's true only with -std. */
c6b750e1
DJ
4433int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4434
81ecdfbb
RW
4435/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4436 inside strings and character constants. */
4437#define FOO(x) 'x'
4438int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4439
c6b750e1
DJ
4440int test (int i, double x);
4441struct s1 {int (*f) (int a);};
4442struct s2 {int (*f) (double a);};
4443int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4444int argc;
4445char **argv;
4446int
4447main ()
4448{
4449return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4450 ;
4451 return 0;
4452}
4453_ACEOF
81ecdfbb
RW
4454for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4455 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4456do
4457 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4458 if ac_fn_c_try_compile "$LINENO"; then :
4459 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4460fi
81ecdfbb
RW
4461rm -f core conftest.err conftest.$ac_objext
4462 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4463done
81ecdfbb 4464rm -f conftest.$ac_ext
c6b750e1
DJ
4465CC=$ac_save_CC
4466
4467fi
81ecdfbb
RW
4468# AC_CACHE_VAL
4469case "x$ac_cv_prog_cc_c89" in
4470 x)
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4472$as_echo "none needed" >&6; } ;;
4473 xno)
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4475$as_echo "unsupported" >&6; } ;;
c6b750e1 4476 *)
81ecdfbb
RW
4477 CC="$CC $ac_cv_prog_cc_c89"
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4479$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4480esac
81ecdfbb 4481if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4482
c6b750e1
DJ
4483fi
4484
c6b750e1
DJ
4485ac_ext=c
4486ac_cpp='$CPP $CPPFLAGS'
4487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4490
81ecdfbb 4491ac_ext=cpp
18f6b6ee
PB
4492ac_cpp='$CXXCPP $CPPFLAGS'
4493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4496if test -z "$CXX"; then
4497 if test -n "$CCC"; then
4498 CXX=$CCC
4499 else
4500 if test -n "$ac_tool_prefix"; then
4501 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4502 do
4503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4504set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506$as_echo_n "checking for $ac_word... " >&6; }
4507if test "${ac_cv_prog_CXX+set}" = set; then :
4508 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4509else
4510 if test -n "$CXX"; then
4511 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4512else
4513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH
4515do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4520 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4522 break 2
4523 fi
4524done
81ecdfbb
RW
4525 done
4526IFS=$as_save_IFS
512b7dfb 4527
18f6b6ee
PB
4528fi
4529fi
4530CXX=$ac_cv_prog_CXX
4531if test -n "$CXX"; then
81ecdfbb
RW
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4533$as_echo "$CXX" >&6; }
18f6b6ee 4534else
81ecdfbb
RW
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536$as_echo "no" >&6; }
18f6b6ee
PB
4537fi
4538
81ecdfbb 4539
18f6b6ee
PB
4540 test -n "$CXX" && break
4541 done
4542fi
4543if test -z "$CXX"; then
4544 ac_ct_CXX=$CXX
81ecdfbb 4545 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4546do
4547 # Extract the first word of "$ac_prog", so it can be a program name with args.
4548set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550$as_echo_n "checking for $ac_word... " >&6; }
4551if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4553else
4554 if test -n "$ac_ct_CXX"; then
4555 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4556else
4557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH
4559do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4564 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4566 break 2
512b7dfb 4567 fi
18f6b6ee 4568done
81ecdfbb
RW
4569 done
4570IFS=$as_save_IFS
512b7dfb 4571
18f6b6ee
PB
4572fi
4573fi
4574ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4575if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4577$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4578else
81ecdfbb
RW
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580$as_echo "no" >&6; }
18f6b6ee
PB
4581fi
4582
81ecdfbb 4583
18f6b6ee
PB
4584 test -n "$ac_ct_CXX" && break
4585done
18f6b6ee 4586
81ecdfbb
RW
4587 if test "x$ac_ct_CXX" = x; then
4588 CXX="g++"
4589 else
4590 case $cross_compiling:$ac_tool_warned in
4591yes:)
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4594ac_tool_warned=yes ;;
4595esac
4596 CXX=$ac_ct_CXX
4597 fi
18f6b6ee
PB
4598fi
4599
81ecdfbb
RW
4600 fi
4601fi
18f6b6ee 4602# Provide some information about the compiler.
81ecdfbb
RW
4603$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4604set X $ac_compile
4605ac_compiler=$2
4606for ac_option in --version -v -V -qversion; do
4607 { { ac_try="$ac_compiler $ac_option >&5"
4608case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611esac
4612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4613$as_echo "$ac_try_echo"; } >&5
4614 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4615 ac_status=$?
81ecdfbb
RW
4616 if test -s conftest.err; then
4617 sed '10a\
4618... rest of stderr output deleted ...
4619 10q' conftest.err >conftest.er1
4620 cat conftest.er1 >&5
4621 rm -f conftest.er1 conftest.err
4622 fi
4623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4624 test $ac_status = 0; }
4625done
18f6b6ee 4626
81ecdfbb
RW
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4628$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4629if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4630 $as_echo_n "(cached) " >&6
18f6b6ee 4631else
81ecdfbb 4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4633/* end confdefs.h. */
4634
4635int
4636main ()
4637{
4638#ifndef __GNUC__
4639 choke me
4640#endif
4641
4642 ;
4643 return 0;
4644}
4645_ACEOF
81ecdfbb 4646if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4647 ac_compiler_gnu=yes
4648else
81ecdfbb 4649 ac_compiler_gnu=no
18f6b6ee 4650fi
81ecdfbb 4651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4652ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4653
4654fi
81ecdfbb
RW
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4656$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4657if test $ac_compiler_gnu = yes; then
4658 GXX=yes
4659else
4660 GXX=
4661fi
18f6b6ee
PB
4662ac_test_CXXFLAGS=${CXXFLAGS+set}
4663ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4665$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4666if test "${ac_cv_prog_cxx_g+set}" = set; then :
4667 $as_echo_n "(cached) " >&6
4668else
4669 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4670 ac_cxx_werror_flag=yes
4671 ac_cv_prog_cxx_g=no
4672 CXXFLAGS="-g"
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4674/* end confdefs.h. */
4675
4676int
4677main ()
4678{
4679
4680 ;
4681 return 0;
4682}
4683_ACEOF
81ecdfbb 4684if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4685 ac_cv_prog_cxx_g=yes
4686else
81ecdfbb
RW
4687 CXXFLAGS=""
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4689/* end confdefs.h. */
81ecdfbb 4690
18f6b6ee
PB
4691int
4692main ()
4693{
81ecdfbb 4694
18f6b6ee
PB
4695 ;
4696 return 0;
4697}
4698_ACEOF
81ecdfbb 4699if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4700
81ecdfbb
RW
4701else
4702 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4703 CXXFLAGS="-g"
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4705/* end confdefs.h. */
81ecdfbb 4706
18f6b6ee
PB
4707int
4708main ()
4709{
81ecdfbb 4710
18f6b6ee
PB
4711 ;
4712 return 0;
4713}
4714_ACEOF
81ecdfbb
RW
4715if ac_fn_cxx_try_compile "$LINENO"; then :
4716 ac_cv_prog_cxx_g=yes
18f6b6ee 4717fi
81ecdfbb
RW
4718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719fi
4720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721fi
4722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4724fi
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4726$as_echo "$ac_cv_prog_cxx_g" >&6; }
4727if test "$ac_test_CXXFLAGS" = set; then
4728 CXXFLAGS=$ac_save_CXXFLAGS
4729elif test $ac_cv_prog_cxx_g = yes; then
4730 if test "$GXX" = yes; then
4731 CXXFLAGS="-g -O2"
4732 else
4733 CXXFLAGS="-g"
4734 fi
4735else
4736 if test "$GXX" = yes; then
4737 CXXFLAGS="-O2"
4738 else
4739 CXXFLAGS=
4740 fi
18f6b6ee 4741fi
18f6b6ee
PB
4742ac_ext=c
4743ac_cpp='$CPP $CPPFLAGS'
4744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4746ac_compiler_gnu=$ac_cv_c_compiler_gnu
4747
4748
4749# We must set the default linker to the linker used by gcc for the correct
4750# operation of libtool. If LD is not defined and we are using gcc, try to
4751# set the LD default to the ld used by gcc.
4752if test -z "$LD"; then
4753 if test "$GCC" = yes; then
4754 case $build in
4755 *-*-mingw*)
4756 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4757 *)
4758 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4759 esac
4760 case $gcc_prog_ld in
4761 # Accept absolute paths.
4762 [\\/]* | [A-Za-z]:[\\/]*)
4763 LD="$gcc_prog_ld" ;;
4764 esac
4765 fi
512b7dfb
PB
4766fi
4767
4768
4769
4770
c6b750e1 4771if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4772 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4773set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775$as_echo_n "checking for $ac_word... " >&6; }
4776if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4777 $as_echo_n "(cached) " >&6
9e07f89d 4778else
512b7dfb
PB
4779 if test -n "$GNATBIND"; then
4780 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4781else
c6b750e1
DJ
4782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783for as_dir in $PATH
4784do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4789 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4791 break 2
4792 fi
4793done
81ecdfbb
RW
4794 done
4795IFS=$as_save_IFS
c6b750e1 4796
9e07f89d
NN
4797fi
4798fi
512b7dfb
PB
4799GNATBIND=$ac_cv_prog_GNATBIND
4800if test -n "$GNATBIND"; then
81ecdfbb
RW
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4802$as_echo "$GNATBIND" >&6; }
9e07f89d 4803else
81ecdfbb
RW
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805$as_echo "no" >&6; }
9e07f89d
NN
4806fi
4807
81ecdfbb 4808
c6b750e1 4809fi
512b7dfb
PB
4810if test -z "$ac_cv_prog_GNATBIND"; then
4811 ac_ct_GNATBIND=$GNATBIND
4812 # Extract the first word of "gnatbind", so it can be a program name with args.
4813set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815$as_echo_n "checking for $ac_word... " >&6; }
4816if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
9e07f89d 4818else
512b7dfb
PB
4819 if test -n "$ac_ct_GNATBIND"; then
4820 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4821else
c6b750e1
DJ
4822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823for as_dir in $PATH
4824do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4829 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4831 break 2
4832 fi
4833done
81ecdfbb
RW
4834 done
4835IFS=$as_save_IFS
c6b750e1 4836
9e07f89d
NN
4837fi
4838fi
512b7dfb
PB
4839ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4840if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4842$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4843else
81ecdfbb
RW
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845$as_echo "no" >&6; }
9e07f89d
NN
4846fi
4847
81ecdfbb
RW
4848 if test "x$ac_ct_GNATBIND" = x; then
4849 GNATBIND="no"
4850 else
4851 case $cross_compiling:$ac_tool_warned in
4852yes:)
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4855ac_tool_warned=yes ;;
4856esac
4857 GNATBIND=$ac_ct_GNATBIND
4858 fi
24ff9987 4859else
512b7dfb 4860 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4861fi
4862
7df2cd5d 4863if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4864 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4865set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867$as_echo_n "checking for $ac_word... " >&6; }
4868if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4869 $as_echo_n "(cached) " >&6
7df2cd5d 4870else
512b7dfb
PB
4871 if test -n "$GNATMAKE"; then
4872 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4873else
4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4881 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4883 break 2
4884 fi
4885done
81ecdfbb
RW
4886 done
4887IFS=$as_save_IFS
7df2cd5d
PB
4888
4889fi
4890fi
512b7dfb
PB
4891GNATMAKE=$ac_cv_prog_GNATMAKE
4892if test -n "$GNATMAKE"; then
81ecdfbb
RW
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4894$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4895else
81ecdfbb
RW
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897$as_echo "no" >&6; }
7df2cd5d
PB
4898fi
4899
81ecdfbb 4900
7df2cd5d 4901fi
512b7dfb
PB
4902if test -z "$ac_cv_prog_GNATMAKE"; then
4903 ac_ct_GNATMAKE=$GNATMAKE
4904 # Extract the first word of "gnatmake", so it can be a program name with args.
4905set dummy gnatmake; ac_word=$2
81ecdfbb
RW
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907$as_echo_n "checking for $ac_word... " >&6; }
4908if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4909 $as_echo_n "(cached) " >&6
7df2cd5d 4910else
512b7dfb
PB
4911 if test -n "$ac_ct_GNATMAKE"; then
4912 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4913else
4914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915for as_dir in $PATH
4916do
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4921 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 4922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4923 break 2
4924 fi
4925done
81ecdfbb
RW
4926 done
4927IFS=$as_save_IFS
7df2cd5d 4928
7df2cd5d
PB
4929fi
4930fi
512b7dfb
PB
4931ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4932if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4934$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 4935else
81ecdfbb
RW
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937$as_echo "no" >&6; }
7df2cd5d
PB
4938fi
4939
81ecdfbb
RW
4940 if test "x$ac_ct_GNATMAKE" = x; then
4941 GNATMAKE="no"
4942 else
4943 case $cross_compiling:$ac_tool_warned in
4944yes:)
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4947ac_tool_warned=yes ;;
4948esac
4949 GNATMAKE=$ac_ct_GNATMAKE
4950 fi
7df2cd5d 4951else
512b7dfb 4952 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4953fi
4954
81ecdfbb
RW
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4956$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4957if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4958 $as_echo_n "(cached) " >&6
9e07f89d
NN
4959else
4960 cat >conftest.adb <<EOF
4961procedure conftest is begin null; end conftest;
4962EOF
4963acx_cv_cc_gcc_supports_ada=no
4964# There is a bug in old released versions of GCC which causes the
4965# driver to exit successfully when the appropriate language module
4966# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4967# Therefore we must check for the error message as well as an
4968# unsuccessful exit.
b8908782
DD
4969# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4970# given a .adb file, but produce no object file. So we must check
4971# if an object file was really produced to guard against this.
9e07f89d 4972errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4973if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4974 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4975fi
4976rm -f conftest.*
4977fi
81ecdfbb
RW
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4979$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 4980
512b7dfb 4981if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4982 have_gnat=yes
4983else
4984 have_gnat=no
4985fi
4986
81ecdfbb
RW
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4988$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4989if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4990 $as_echo_n "(cached) " >&6
b8908782
DD
4991else
4992 echo abfoo >t1
4993 echo cdfoo >t2
4994 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4995 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4996 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4997 :
4998 else
4999 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5000 fi
5001 fi
b8908782
DD
5002 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5003 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5004 :
b8908782
DD
5005 else
5006 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5007 fi
5008 fi
5009 rm t1 t2
5010
5011fi
81ecdfbb
RW
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5013$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5014do_compare="$gcc_cv_prog_cmp_skip"
5015
5016
9e07f89d 5017
e8a5fa9c 5018# See if we are building gcc with C++.
81ecdfbb
RW
5019# Check whether --enable-build-with-cxx was given.
5020if test "${enable_build_with_cxx+set}" = set; then :
5021 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
5022else
5023 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
5024fi
5025
e8a5fa9c 5026
d5f2ee2e
KG
5027# Used for setting $lt_cv_objdir
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5029$as_echo_n "checking for objdir... " >&6; }
5030if test "${lt_cv_objdir+set}" = set; then :
5031 $as_echo_n "(cached) " >&6
5032else
5033 rm -f .libs 2>/dev/null
5034mkdir .libs 2>/dev/null
5035if test -d .libs; then
5036 lt_cv_objdir=.libs
5037else
5038 # MS-DOS does not allow filenames that begin with a dot.
5039 lt_cv_objdir=_libs
5040fi
5041rmdir .libs 2>/dev/null
5042fi
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5044$as_echo "$lt_cv_objdir" >&6; }
5045objdir=$lt_cv_objdir
5046
5047
5048
5049
5050
5051cat >>confdefs.h <<_ACEOF
5052#define LT_OBJDIR "$lt_cv_objdir/"
5053_ACEOF
5054
5055
5056
e8a5fa9c 5057# Check for GMP, MPFR and MPC
d9b76ff9 5058gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5059gmpinc=
4b900473 5060have_gmp=no
e8a5fa9c
RW
5061
5062# Specify a location for mpc
5063# check for this first so it ends up on the link line before mpfr.
5064
81ecdfbb
RW
5065# Check whether --with-mpc was given.
5066if test "${with_mpc+set}" = set; then :
5067 withval=$with_mpc;
5068fi
e8a5fa9c 5069
e8a5fa9c 5070
e552509b 5071# Check whether --with-mpc-include was given.
81ecdfbb
RW
5072if test "${with_mpc_include+set}" = set; then :
5073 withval=$with_mpc_include;
5074fi
e8a5fa9c 5075
e8a5fa9c 5076
e552509b 5077# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5078if test "${with_mpc_lib+set}" = set; then :
5079 withval=$with_mpc_lib;
5080fi
e8a5fa9c 5081
e8a5fa9c
RW
5082
5083if test "x$with_mpc" != x; then
d9b76ff9
KG
5084 gmplibs="-L$with_mpc/lib $gmplibs"
5085 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5086fi
5087if test "x$with_mpc_include" != x; then
d9b76ff9 5088 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5089fi
5090if test "x$with_mpc_lib" != x; then
d9b76ff9 5091 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5092fi
5093if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5094 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5095 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5096 # Do not test the mpc version. Assume that it is sufficient, since
5097 # it is in the source tree, and the library has not been built yet
5098 # but it would be included on the link line in the version check below
5099 # hence making the test fail.
d9b76ff9 5100 have_gmp=yes
e8a5fa9c 5101fi
4b900473 5102
11b04d1f
DD
5103# Specify a location for mpfr
5104# check for this first so it ends up on the link line before gmp.
c6b750e1 5105
81ecdfbb
RW
5106# Check whether --with-mpfr-dir was given.
5107if test "${with_mpfr_dir+set}" = set; then :
5108 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5109Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5110fi
5111
11b04d1f
DD
5112
5113
81ecdfbb
RW
5114# Check whether --with-mpfr was given.
5115if test "${with_mpfr+set}" = set; then :
5116 withval=$with_mpfr;
5117fi
c6b750e1 5118
11b04d1f 5119
e552509b 5120# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5121if test "${with_mpfr_include+set}" = set; then :
5122 withval=$with_mpfr_include;
5123fi
c6b750e1 5124
8a0d8a5c 5125
e552509b 5126# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5127if test "${with_mpfr_lib+set}" = set; then :
5128 withval=$with_mpfr_lib;
5129fi
8a0d8a5c 5130
11b04d1f
DD
5131
5132if test "x$with_mpfr" != x; then
5133 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5134 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5135fi
8a0d8a5c 5136if test "x$with_mpfr_include" != x; then
d9b76ff9 5137 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5138fi
5139if test "x$with_mpfr_lib" != x; then
5140 gmplibs="-L$with_mpfr_lib $gmplibs"
5141fi
4b900473 5142if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
d5f2ee2e 5143 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
4b900473 5144 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
d5f2ee2e 5145 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
4b900473
PB
5146 # Do not test the mpfr version. Assume that it is sufficient, since
5147 # it is in the source tree, and the library has not been built yet
5148 # but it would be included on the link line in the version check below
5149 # hence making the test fail.
5150 have_gmp=yes
5151fi
11b04d1f 5152
4b1cb4fe 5153# Specify a location for gmp
c6b750e1 5154
81ecdfbb
RW
5155# Check whether --with-gmp-dir was given.
5156if test "${with_gmp_dir+set}" = set; then :
5157 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5158Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5159fi
5160
4b1cb4fe
DD
5161
5162
81ecdfbb
RW
5163# Check whether --with-gmp was given.
5164if test "${with_gmp+set}" = set; then :
5165 withval=$with_gmp;
5166fi
c6b750e1 5167
4b1cb4fe 5168
e552509b 5169# Check whether --with-gmp-include was given.
81ecdfbb
RW
5170if test "${with_gmp_include+set}" = set; then :
5171 withval=$with_gmp_include;
5172fi
c6b750e1 5173
8a0d8a5c 5174
e552509b 5175# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5176if test "${with_gmp_lib+set}" = set; then :
5177 withval=$with_gmp_lib;
5178fi
8a0d8a5c
PB
5179
5180
4b1cb4fe 5181
11b04d1f
DD
5182if test "x$with_gmp" != x; then
5183 gmplibs="-L$with_gmp/lib $gmplibs"
5184 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5185fi
8a0d8a5c
PB
5186if test "x$with_gmp_include" != x; then
5187 gmpinc="-I$with_gmp_include $gmpinc"
5188fi
5189if test "x$with_gmp_lib" != x; then
5190 gmplibs="-L$with_gmp_lib $gmplibs"
5191fi
4b900473 5192if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5193 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5194 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5195 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5196 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
4b900473
PB
5197 # Do not test the gmp version. Assume that it is sufficient, since
5198 # it is in the source tree, and the library has not been built yet
5199 # but it would be included on the link line in the version check below
5200 # hence making the test fail.
5201 have_gmp=yes
5202fi
4b1cb4fe 5203
ceb92e78 5204if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5205 have_gmp=yes
5206 saved_CFLAGS="$CFLAGS"
5207 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5208 # Check for the recommended and required versions of GMP.
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5210$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5211
5212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5213/* end confdefs.h. */
5214#include "gmp.h"
5215int
5216main ()
5217{
5218
5219 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5220 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5221 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5222 choke me
5223 #endif
5224
5225 ;
5226 return 0;
5227}
5228_ACEOF
5229if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5231/* end confdefs.h. */
a6b5846e 5232#include <gmp.h>
c6b750e1
DJ
5233int
5234main ()
5235{
4b1cb4fe 5236
a6b5846e
KG
5237 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5238 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5239 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5240 choke me
5241 #endif
c6b750e1
DJ
5242
5243 ;
5244 return 0;
5245}
5246_ACEOF
81ecdfbb
RW
5247if ac_fn_c_try_compile "$LINENO"; then :
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5249$as_echo "yes" >&6; }
a6b5846e
KG
5250else
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5252$as_echo "buggy but acceptable" >&6; }
5253fi
5254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5255else
81ecdfbb
RW
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5258fi
81ecdfbb 5259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5260
e8a5fa9c 5261 # If we have GMP, check the MPFR version.
4b900473 5262 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5263 # Check for the recommended and required versions of MPFR.
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5265$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5267/* end confdefs.h. */
9b134994 5268#include <gmp.h>
4b900473 5269 #include <mpfr.h>
c6b750e1
DJ
5270int
5271main ()
5272{
9b134994 5273
ef699244 5274 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5275 choke me
5276 #endif
c6b750e1
DJ
5277
5278 ;
5279 return 0;
5280}
5281_ACEOF
81ecdfbb
RW
5282if ac_fn_c_try_compile "$LINENO"; then :
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5284/* end confdefs.h. */
4b1cb4fe 5285#include <gmp.h>
4b900473 5286 #include <mpfr.h>
c6b750e1
DJ
5287int
5288main ()
5289{
9dbaa842 5290
a6b5846e 5291 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5292 choke me
5293 #endif
e8a5fa9c
RW
5294
5295 ;
5296 return 0;
5297}
5298_ACEOF
81ecdfbb
RW
5299if ac_fn_c_try_compile "$LINENO"; then :
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5301$as_echo "yes" >&6; }
e8a5fa9c 5302else
81ecdfbb
RW
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5304$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5305fi
81ecdfbb 5306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5307else
81ecdfbb
RW
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5310fi
81ecdfbb 5311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5312 fi
5313
5314 # Check for the MPC header version.
d9b76ff9 5315 if test x"$have_gmp" = xyes ; then
a6b5846e 5316 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5318$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5320/* end confdefs.h. */
5321#include <mpc.h>
5322int
5323main ()
5324{
5325
a6b5846e
KG
5326 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5327 choke me
5328 #endif
5329
5330 ;
5331 return 0;
5332}
5333_ACEOF
5334if ac_fn_c_try_compile "$LINENO"; then :
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336/* end confdefs.h. */
5337#include <mpc.h>
5338int
5339main ()
5340{
5341
5342 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5343 choke me
5344 #endif
5345
5346 ;
5347 return 0;
5348}
5349_ACEOF
81ecdfbb
RW
5350if ac_fn_c_try_compile "$LINENO"; then :
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5352$as_echo "yes" >&6; }
a6b5846e
KG
5353else
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5355$as_echo "buggy but acceptable" >&6; }
5356fi
5357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5358else
81ecdfbb 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5360$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5361fi
81ecdfbb 5362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5363 fi
5364
5365 # Now check the MPFR library.
5366 if test x"$have_gmp" = xyes; then
5367 saved_LIBS="$LIBS"
5368 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5370$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5372/* end confdefs.h. */
d9b76ff9 5373#include <mpc.h>
e8a5fa9c
RW
5374int
5375main ()
5376{
5377
5378 mpfr_t n;
5379 mpfr_t x;
d9b76ff9 5380 mpc_t c;
e8a5fa9c
RW
5381 int t;
5382 mpfr_init (n);
5383 mpfr_init (x);
5384 mpfr_atan2 (n, n, x, GMP_RNDN);
5385 mpfr_erfc (n, x, GMP_RNDN);
5386 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5387 mpfr_clear(n);
5388 mpfr_clear(x);
5389 mpc_init2 (c, 53);
5390 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5391 mpc_cosh (c, c, MPC_RNDNN);
5392 mpc_pow (c, c, c, MPC_RNDNN);
5393 mpc_acosh (c, c, MPC_RNDNN);
5394 mpc_clear (c);
c6b750e1
DJ
5395
5396 ;
5397 return 0;
5398}
5399_ACEOF
81ecdfbb
RW
5400if ac_fn_c_try_link "$LINENO"; then :
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5402$as_echo "yes" >&6; }
c6b750e1 5403else
81ecdfbb
RW
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5406fi
81ecdfbb
RW
5407rm -f core conftest.err conftest.$ac_objext \
5408 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5409 LIBS="$saved_LIBS"
5410 fi
5411
4b900473 5412 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5413
a6b5846e
KG
5414# The library versions listed in the error message below should match
5415# the HARD-minimums enforced above.
4b900473 5416 if test x$have_gmp != xyes; then
a6b5846e 5417 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
d9b76ff9
KG
5418Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5419their locations. Source code for these libraries can be found at
5420their respective hosting sites as well as at
5421ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5422http://gcc.gnu.org/install/prerequisites.html for additional info. If
5423you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5424make sure that you have installed both the libraries and the header
5425files. They may be located in separate packages." "$LINENO" 5
4b900473 5426 fi
9dbaa842
DD
5427fi
5428
e8a5fa9c
RW
5429# Flags needed for both GMP, MPFR and/or MPC.
5430
5431
5432
4b1cb4fe
DD
5433
5434
5435
29383458
JM
5436# Allow host libstdc++ to be specified for static linking with PPL.
5437
81ecdfbb
RW
5438# Check whether --with-host-libstdcxx was given.
5439if test "${with_host_libstdcxx+set}" = set; then :
5440 withval=$with_host_libstdcxx;
5441fi
29383458 5442
29383458
JM
5443
5444case $with_host_libstdcxx in
5445 no|yes)
81ecdfbb 5446 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5447 ;;
5448esac
e28c595f 5449
e8a5fa9c
RW
5450# Linker flags to use for stage1 or when not boostrapping.
5451
81ecdfbb
RW
5452# Check whether --with-stage1-ldflags was given.
5453if test "${with_stage1_ldflags+set}" = set; then :
5454 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5455 stage1_ldflags=
5456 else
5457 stage1_ldflags=$withval
5458 fi
5459else
5460 stage1_ldflags=
81ecdfbb
RW
5461fi
5462
e8a5fa9c
RW
5463
5464
5465# Libraries to use for stage1 or when not bootstrapping.
5466
81ecdfbb
RW
5467# Check whether --with-stage1-libs was given.
5468if test "${with_stage1_libs+set}" = set; then :
5469 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5470 stage1_libs=
5471 else
5472 stage1_libs=$withval
5473 fi
5474else
5475 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5476fi
5477
e8a5fa9c
RW
5478
5479
e8a5fa9c
RW
5480# Libraries to use for stage2 and later builds. This defaults to the
5481# argument passed to --with-host-libstdcxx.
5482
81ecdfbb
RW
5483# Check whether --with-boot-libs was given.
5484if test "${with_boot_libs+set}" = set; then :
5485 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5486 poststage1_libs=
5487 else
5488 poststage1_libs=$withval
5489 fi
5490else
5491 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5492fi
5493
e8a5fa9c
RW
5494
5495
143754cd
NC
5496# Linker flags to use for stage2 and later builds.
5497
5498# Check whether --with-boot-ldflags was given.
5499if test "${with_boot_ldflags+set}" = set; then :
5500 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5501 poststage1_ldflags=
5502 else
5503 poststage1_ldflags=$withval
5504 fi
5505else
5506 poststage1_ldflags=
4f11b223
ILT
5507 # In stages 2 and 3, default to linking libstdc++ and libgcc
5508 # statically. But if the user explicitly specified the libraries to
5509 # use, trust that they are doing what they want.
5510 if test "$poststage1_libs" = ""; then
143754cd
NC
5511 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5512 fi
5513fi
5514
5515
5516
e28c595f 5517# Check for PPL
b123da99 5518ppllibs=
e28c595f 5519pplinc=
b123da99 5520pwllib=
e28c595f
JM
5521
5522
81ecdfbb
RW
5523# Check whether --with-ppl was given.
5524if test "${with_ppl+set}" = set; then :
5525 withval=$with_ppl;
81ecdfbb 5526fi
e28c595f 5527
e28c595f 5528
e552509b 5529# Check whether --with-ppl-include was given.
81ecdfbb
RW
5530if test "${with_ppl_include+set}" = set; then :
5531 withval=$with_ppl_include;
5532fi
5533
e28c595f 5534
e552509b 5535# Check whether --with-ppl-lib was given.
81ecdfbb
RW
5536if test "${with_ppl_lib+set}" = set; then :
5537 withval=$with_ppl_lib;
5538fi
e28c595f 5539
e28c595f 5540
b123da99
SP
5541# Check whether --enable-ppl-version-check was given.
5542if test "${enable_ppl_version_check+set}" = set; then :
5543 enableval=$enable_ppl_version_check;
5544fi
5545
5546
29383458 5547case $with_ppl in
b123da99 5548 yes | no | "")
1f53ca9a 5549 ;;
29383458 5550 *)
b123da99 5551 ppllibs="-L$with_ppl/lib"
29383458 5552 pplinc="-I$with_ppl/include $pplinc"
b123da99
SP
5553 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5554 with_ppl=yes
5555 else
5556 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5557 fi
29383458
JM
5558 ;;
5559esac
b123da99
SP
5560
5561if test x"$with_ppl_include" != x; then
e28c595f 5562 pplinc="-I$with_ppl_include $pplinc"
b123da99 5563 with_ppl=yes
e28c595f 5564fi
b123da99 5565
e28c595f 5566if test "x$with_ppl_lib" != x; then
b123da99
SP
5567 ppllibs="-L$with_ppl_lib"
5568 with_ppl=yes
e28c595f 5569fi
b123da99
SP
5570
5571if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5572 if test x"$enable_watchdog" = xyes; then
5573 pwllib="-lpwl"
5574 fi
5575 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
1f53ca9a
AO
5576 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5577 enable_ppl_version_check=no
b123da99 5578 with_ppl=yes
e28c595f
JM
5579fi
5580
86ed8cf6 5581if test "x$with_ppl" != xno; then
b123da99 5582 if test "x$pwllib" = x; then
0e8ad34f
RO
5583 saved_LIBS="$LIBS"
5584 LIBS="$LIBS $ppllibs -lstdc++ -lm"
b123da99
SP
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5586$as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5587if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5588 $as_echo_n "(cached) " >&6
5589else
5590 ac_check_lib_save_LIBS=$LIBS
5591LIBS="-lpwl $LIBS"
5592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593/* end confdefs.h. */
5594
5595/* Override any GCC internal prototype to avoid an error.
5596 Use char because int might match the return type of a GCC
5597 builtin and then its argument prototype would still apply. */
5598#ifdef __cplusplus
5599extern "C"
5600#endif
5601char PWL_handle_timeout ();
5602int
5603main ()
5604{
5605return PWL_handle_timeout ();
5606 ;
5607 return 0;
5608}
5609_ACEOF
5610if ac_fn_c_try_link "$LINENO"; then :
5611 ac_cv_lib_pwl_PWL_handle_timeout=yes
e28c595f 5612else
b123da99
SP
5613 ac_cv_lib_pwl_PWL_handle_timeout=no
5614fi
5615rm -f core conftest.err conftest.$ac_objext \
5616 conftest$ac_exeext conftest.$ac_ext
5617LIBS=$ac_check_lib_save_LIBS
5618fi
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5620$as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5621if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5622 pwllib="-lpwl"
81ecdfbb
RW
5623fi
5624
0e8ad34f 5625 LIBS="$saved_LIBS"
b123da99 5626 fi
e28c595f 5627
b123da99
SP
5628 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5629
5630 if test "$enable_ppl_version_check" != no; then
5631 saved_CFLAGS="$CFLAGS"
5632 CFLAGS="$CFLAGS $pplinc $gmpinc"
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5634$as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5636/* end confdefs.h. */
5637#include "ppl_c.h"
5638int
5639main ()
5640{
5641
b123da99
SP
5642 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5643 choke me
5644 #endif
e28c595f
JM
5645
5646 ;
5647 return 0;
5648}
5649_ACEOF
81ecdfbb
RW
5650if ac_fn_c_try_compile "$LINENO"; then :
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5652$as_echo "yes" >&6; }
e28c595f 5653else
81ecdfbb 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1f53ca9a 5655$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
e28c595f 5656fi
81ecdfbb 5657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b123da99
SP
5658 CFLAGS="$saved_CFLAGS"
5659 fi
e28c595f
JM
5660fi
5661
5662# Flags needed for PPL
5663
5664
5665
5666
5667# Check for CLOOG
e552509b 5668
e28c595f
JM
5669
5670
81ecdfbb
RW
5671# Check whether --with-cloog was given.
5672if test "${with_cloog+set}" = set; then :
5673 withval=$with_cloog;
81ecdfbb
RW
5674fi
5675
e28c595f 5676
e552509b 5677# Check whether --with-cloog-include was given.
81ecdfbb
RW
5678if test "${with_cloog_include+set}" = set; then :
5679 withval=$with_cloog_include;
5680fi
e28c595f 5681
e28c595f 5682
e552509b 5683# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5684if test "${with_cloog_lib+set}" = set; then :
5685 withval=$with_cloog_lib;
5686fi
e28c595f 5687
e28c595f 5688
e552509b
ILT
5689 # Check whether --enable-cloog-backend was given.
5690if test "${enable_cloog_backend+set}" = set; then :
5691 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5692 cloog_backend=isl
5693 elif test "x${enableval}" = "xppl"; then
5694 cloog_backend=ppl
5695 else
5696 cloog_backend=ppl-legacy
5697 fi
5698else
5699 cloog_backend=ppl-legacy
5700fi
5701
5702 # Check whether --enable-cloog-version-check was given.
5703if test "${enable_cloog_version_check+set}" = set; then :
5704 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5705else
5706 ENABLE_CLOOG_CHECK=yes
5707fi
5708
5709
5710 # Initialize clooglibs and clooginc.
5711 case $with_cloog in
5712 no)
5713 clooglibs=
5714 clooginc=
5715 ;;
5716 "" | yes)
5717 ;;
5718 *)
5719 clooglibs="-L$with_cloog/lib"
5720 clooginc="-I$with_cloog/include"
5721 ;;
5722 esac
5723 if test "x${with_cloog_include}" != x ; then
5724 clooginc="-I$with_cloog_include"
5725 fi
5726 if test "x${with_cloog_lib}" != x; then
5727 clooglibs="-L$with_cloog_lib"
5728 fi
5729
5730
5731
5732
5733
1f53ca9a 5734if test "x$with_ppl" = "xno"; then
8d8eef9a
RW
5735
5736
5737
5738 if test "x${with_cloog}" = xno; then
5739 graphite_requested=no
5740 elif test "x${with_cloog}" != x \
5741 || test "x${with_cloog_include}" != x \
5742 || test "x${with_cloog_lib}" != x ; then
5743 graphite_requested=yes
5744 else
5745 graphite_requested=no
5746 fi
5747
5748
5749 if test "${graphite_requested}" = yes; then
5750 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
5751 fi
1f53ca9a
AO
5752 with_cloog=no
5753fi
e552509b
ILT
5754if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5755 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5756 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5757 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5758fi
5759if test "x$with_cloog" != "xno"; then
1f53ca9a 5760
e552509b
ILT
5761
5762
5763 _cloog_saved_CFLAGS=$CFLAGS
5764 _cloog_saved_CPPFLAGS=$CPPFLAGS
5765 _cloog_saved_LDFLAGS=$LDFLAGS
5766 _cloog_saved_LIBS=$LIBS
5767
5768 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5769
5770 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5771 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5772 LDFLAGS="${LDFLAGS} ${clooglibs}"
5773
5774 case $cloog_backend in
5775 "ppl-legacy")
5776 CFLAGS="${CFLAGS} ${pplinc}"
5777 LDFLAGS="${LDFLAGS} ${ppllibs}"
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5779$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5780if test "${gcc_cv_cloog_type+set}" = set; then :
5781 $as_echo_n "(cached) " >&6
5782else
5783 LIBS="-lcloog ${_cloog_saved_LIBS}"
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785/* end confdefs.h. */
5786#include "cloog/cloog.h"
5787int
5788main ()
5789{
5790#ifndef CLOOG_PPL_BACKEND
5791 choke me
5792 #endif
5793 ;
5794 return 0;
5795}
5796_ACEOF
5797if ac_fn_c_try_link "$LINENO"; then :
5798 gcc_cv_cloog_type="PPL Legacy"
5799else
5800 gcc_cv_cloog_type=no
5801fi
5802rm -f core conftest.err conftest.$ac_objext \
5803 conftest$ac_exeext conftest.$ac_ext
e28c595f 5804fi
e552509b
ILT
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5806$as_echo "$gcc_cv_cloog_type" >&6; }
5807 ;;
5808 "isl")
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5810$as_echo_n "checking for installed CLooG ISL... " >&6; }
5811if test "${gcc_cv_cloog_type+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5813else
5814 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816/* end confdefs.h. */
5817#include "cloog/cloog.h"
5818int
5819main ()
5820{
5821cloog_version ()
5822 ;
5823 return 0;
5824}
5825_ACEOF
5826if ac_fn_c_try_link "$LINENO"; then :
5827 gcc_cv_cloog_type="ISL"
5828else
5829 gcc_cv_cloog_type=no
e28c595f 5830fi
e552509b
ILT
5831rm -f core conftest.err conftest.$ac_objext \
5832 conftest$ac_exeext conftest.$ac_ext
e28c595f 5833fi
e552509b
ILT
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5835$as_echo "$gcc_cv_cloog_type" >&6; }
5836 ;;
5837 "ppl")
5838 CFLAGS="${CFLAGS} ${pplinc}"
5839 LDFLAGS="${LDFLAGS} ${ppllibs}"
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5841$as_echo_n "checking for installed CLooG PPL... " >&6; }
5842if test "${gcc_cv_cloog_type+set}" = set; then :
5843 $as_echo_n "(cached) " >&6
e28c595f 5844else
e552509b
ILT
5845 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847/* end confdefs.h. */
5848#include "cloog/cloog.h"
5849 #include "cloog/ppl/cloog.h"
5850int
5851main ()
5852{
5853cloog_version ()
5854 ;
5855 return 0;
5856}
5857_ACEOF
5858if ac_fn_c_try_link "$LINENO"; then :
5859 gcc_cv_cloog_type="PPL"
5860else
5861 gcc_cv_cloog_type=no
81ecdfbb 5862fi
e552509b
ILT
5863rm -f core conftest.err conftest.$ac_objext \
5864 conftest$ac_exeext conftest.$ac_ext
5865fi
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5867$as_echo "$gcc_cv_cloog_type" >&6; }
5868 ;;
5869 *)
5870 gcc_cv_cloog_type=""
5871 esac
5872
5873 case $gcc_cv_cloog_type in
5874 "PPL Legacy")
5875 clooginc="${clooginc}"
5876 clooglibs="${clooglibs} -lcloog"
5877 cloog_org=no
5878 ;;
5879 "ISL")
5880 clooginc="${clooginc} ${_cloogorginc}"
b123da99 5881 clooglibs="${clooglibs} -lcloog-isl -lisl"
e552509b
ILT
5882 cloog_org=yes
5883 ;;
5884 "PPL")
5885 clooginc="${clooginc} ${_cloogorginc}"
5886 clooglibs="${clooglibs} -lcloog-ppl"
5887 cloog_org=yes
5888 ;;
5889 *)
5890 clooglibs=
5891 clooginc=
5892 cloog_org=
5893 ;;
5894 esac
81ecdfbb 5895
e552509b
ILT
5896 LIBS=$_cloog_saved_LIBS
5897 CFLAGS=$_cloog_saved_CFLAGS
5898 CPPFLAGS=$_cloog_saved_CPPFLAGS
5899 LDFLAGS=$_cloog_saved_LDFLAGS
e28c595f 5900
e552509b
ILT
5901
5902
5903
5904
5905 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5906 _cloog_saved_CFLAGS=$CFLAGS
5907 _cloog_saved_LDFLAGS=$LDFLAGS
5908
5909 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5910 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5911
5912 if test "${cloog_org}" = yes ; then
8d8eef9a
RW
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5914$as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
e552509b
ILT
5915if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5917else
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919/* end confdefs.h. */
5920#include "cloog/cloog.h"
5921int
5922main ()
5923{
5924#if CLOOG_VERSION_MAJOR != 0 \
8d8eef9a
RW
5925 || CLOOG_VERSION_MINOR != 16 \
5926 || CLOOG_VERSION_REVISION < 1
e552509b
ILT
5927 choke me
5928 #endif
5929 ;
5930 return 0;
5931}
5932_ACEOF
5933if ac_fn_c_try_compile "$LINENO"; then :
5934 gcc_cv_cloog_ct_0_14_0=yes
5935else
5936 gcc_cv_cloog_ct_0_14_0=no
5937fi
5938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939fi
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5941$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5942 elif test "${cloog_org}" = no ; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
143754cd 5944$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
e552509b
ILT
5945if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
5947else
81ecdfbb 5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5949/* end confdefs.h. */
5950#include "cloog/cloog.h"
5951int
5952main ()
5953{
e552509b
ILT
5954#if CLOOG_VERSION_MAJOR != 0 \
5955 || CLOOG_VERSION_MINOR != 15 \
5956 || CLOOG_VERSION_REVISION < 5
5957 choke me
5958 #endif
e28c595f
JM
5959 ;
5960 return 0;
5961}
5962_ACEOF
a009f2e7
RW
5963if ac_fn_c_try_compile "$LINENO"; then :
5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965/* end confdefs.h. */
5966#include "cloog/cloog.h"
5967int
5968main ()
5969{
e552509b
ILT
5970#if CLOOG_VERSION_MAJOR != 0 \
5971 || CLOOG_VERSION_MINOR != 15 \
5972 || CLOOG_VERSION_REVISION < 9
5973 choke me
5974 #endif
a009f2e7
RW
5975 ;
5976 return 0;
5977}
5978_ACEOF
81ecdfbb 5979if ac_fn_c_try_compile "$LINENO"; then :
e552509b 5980 gcc_cv_cloog_ct_0_15_5=yes
a009f2e7 5981else
e552509b 5982 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
a009f2e7
RW
5983fi
5984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 5985else
e552509b 5986 gcc_cv_cloog_ct_0_15_5=no
e28c595f 5987fi
81ecdfbb 5988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 5989fi
e552509b
ILT
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5991$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5992 fi
5993
5994 CFLAGS=$_cloog_saved_CFLAGS
5995 LDFLAGS=$_cloog_saved_LDFLAGS
5996 fi
5997
5998
5999
e28c595f 6000
e28c595f
JM
6001
6002
6003
8d8eef9a
RW
6004 if test "x${with_cloog}" = xno; then
6005 graphite_requested=no
6006 elif test "x${with_cloog}" != x \
e552509b
ILT
6007 || test "x${with_cloog_include}" != x \
6008 || test "x${with_cloog_lib}" != x ; then
6009 graphite_requested=yes
6010 else
6011 graphite_requested=no
6012 fi
6013
6014
6015
6016 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6017 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6018 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6019 clooglibs=
6020 clooginc=
6021 fi
6022
6023 if test "${graphite_requested}" = yes \
6024 && test "x${clooglibs}" = x \
6025 && test "x${clooginc}" = x ; then
6026
8d8eef9a 6027 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
e552509b
ILT
6028 fi
6029
6030
6031fi
6032
700d40ca
ILT
6033# Check for LTO support.
6034# Check whether --enable-lto was given.
6035if test "${enable_lto+set}" = set; then :
6036 enableval=$enable_lto; enable_lto=$enableval
6037else
6038 enable_lto=yes; default_enable_lto=yes
6039fi
6040
6041
143754cd 6042
e49e5c92
DK
6043
6044
6045target_elf=no
6046case $target in
6047 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6048 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 6049 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
6050 target_elf=no
6051 ;;
6052 *)
6053 target_elf=yes
6054 ;;
6055esac
6056
6057if test $target_elf = yes; then :
74cea91b
DK
6058 # ELF platforms build the lto-plugin always.
6059 build_lto_plugin=yes
e49e5c92 6060
e49e5c92
DK
6061else
6062 if test x"$default_enable_lto" = x"yes" ; then
29821356 6063 case $target in
899b04ef 6064 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
74cea91b 6065 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6066 *) enable_lto=no ;;
6067 esac
e49e5c92 6068 else
29821356
RW
6069 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6070 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6071 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6072 # warn during gcc/ subconfigure; unless you're bootstrapping with
6073 # -flto it won't be needed until after installation anyway.
6074 case $target in
a8eb3f0a 6075 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6076 *) if test x"$enable_lto" = x"yes"; then
6077 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6078 fi
6079 ;;
6080 esac
6081 fi
a8eb3f0a 6082 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6083 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6084 case $target in
74cea91b 6085 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6086 *) ;;
6087 esac
74cea91b 6088
e49e5c92
DK
6089fi
6090
700d40ca 6091
e28c595f 6092
947f426e 6093# By default, C is the only stage 1 language.
9b134994 6094stage1_languages=,c,
1d39f329 6095
e8a5fa9c 6096# Target libraries that we bootstrap.
2aa2364a 6097bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6098
9e07f89d
NN
6099# Figure out what language subdirectories are present.
6100# Look if the user specified --enable-languages="..."; if not, use
6101# the environment variable $LANGUAGES if defined. $LANGUAGES might
6102# go away some day.
6103# NB: embedded tabs in this IF block -- do not untabify
6104if test -d ${srcdir}/gcc; then
6105 if test x"${enable_languages+set}" != xset; then
6106 if test x"${LANGUAGES+set}" = xset; then
6107 enable_languages="${LANGUAGES}"
6108 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6109 else
6110 enable_languages=all
6111 fi
6112 else
6113 if test x"${enable_languages}" = x ||
6114 test x"${enable_languages}" = xyes;
6115 then
6116 echo configure.in: --enable-languages needs at least one language argument 1>&2
6117 exit 1
6118 fi
6119 fi
6120 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6121
096f7d00
DE
6122 # 'f95' is the old name for the 'fortran' language. We issue a warning
6123 # and make the substitution.
6124 case ,${enable_languages}, in
6125 *,f95,*)
6126 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6127 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6128 ;;
6129 esac
6130
9e07f89d
NN
6131 # First scan to see if an enabled language requires some other language.
6132 # We assume that a given config-lang.in will list all the language
6133 # front ends it requires, even if some are required indirectly.
6134 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6135 case ${lang_frag} in
6136 ..) ;;
6137 # The odd quoting in the next line works around
6138 # an apparent bug in bash 1.12 on linux.
6139 ${srcdir}/gcc/[*]/config-lang.in) ;;
6140 *)
e552509b
ILT
6141 # From the config-lang.in, get $language, $lang_requires, and
6142 # $lang_requires_boot_languages.
9e07f89d
NN
6143 language=
6144 lang_requires=
e552509b 6145 lang_requires_boot_languages=
9e07f89d 6146 . ${lang_frag}
e552509b 6147 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6148 case ,${enable_languages}, in
6149 *,$other,*) ;;
6150 *,all,*) ;;
6151 *,$language,*)
6152 echo " \`$other' language required by \`$language'; enabling" 1>&2
6153 enable_languages="${enable_languages},${other}"
6154 ;;
6155 esac
6156 done
e552509b
ILT
6157 for other in ${lang_requires_boot_languages} ; do
6158 if test "$other" != "c"; then
6159 case ,${enable_stage1_languages}, in
6160 *,$other,*) ;;
6161 *,all,*) ;;
6162 *)
6163 case ,${enable_languages}, in
6164 *,$language,*)
6165 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6166 enable_stage1_languages="$enable_stage1_languages,${other}"
6167 ;;
6168 esac
6169 ;;
6170 esac
6171 fi
6172 done
9e07f89d
NN
6173 ;;
6174 esac
6175 done
6176
9b134994 6177 new_enable_languages=,c,
700d40ca
ILT
6178
6179 # If LTO is enabled, add the LTO front end.
6180 extra_host_libiberty_configure_flags=
6181 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6182 case ,${enable_languages}, in
6183 *,lto,*) ;;
6184 *) enable_languages="${enable_languages},lto" ;;
6185 esac
a8eb3f0a 6186 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6187 configdirs="$configdirs lto-plugin"
6188 extra_host_libiberty_configure_flags=--enable-shared
6189 fi
6190 fi
6191
6192
9e07f89d 6193 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6194 potential_languages=,c,
9e07f89d 6195
9e1a94f4
ILT
6196 enabled_target_libs=
6197 disabled_target_libs=
6198
9e07f89d
NN
6199 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6200 case ${lang_frag} in
6201 ..) ;;
6202 # The odd quoting in the next line works around
6203 # an apparent bug in bash 1.12 on linux.
6204 ${srcdir}/gcc/[*]/config-lang.in) ;;
6205 *)
c6b750e1 6206 # From the config-lang.in, get $language, $target_libs,
1d39f329 6207 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6208 language=
6209 target_libs=
6210 lang_dirs=
64ce424c 6211 subdir_requires=
9b134994
PB
6212 boot_language=no
6213 build_by_default=yes
9e07f89d 6214 . ${lang_frag}
9b134994
PB
6215 if test x${language} = x; then
6216 echo "${lang_frag} doesn't set \$language." 1>&2
6217 exit 1
6218 fi
6219
1f53ca9a
AO
6220 if test "$language" = "c++" \
6221 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
e8a5fa9c
RW
6222 boot_language=yes
6223 fi
6224
9b134994
PB
6225 case ,${enable_languages}, in
6226 *,${language},*)
9e07f89d
NN
6227 # Language was explicitly selected; include it.
6228 add_this_lang=yes
6229 ;;
9b134994
PB
6230 *,all,*)
6231 # 'all' was selected, select it if it is a default language
6232 add_this_lang=${build_by_default}
9e07f89d
NN
6233 ;;
6234 *)
6235 add_this_lang=no
6236 ;;
6237 esac
4b1cb4fe 6238
64ce424c 6239 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6240 for i in $subdir_requires; do
3d3adb43 6241 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6242 case ,${enable_languages}, in
6243 *,${language},*)
6244 # Specifically requested language; tell them.
81ecdfbb 6245 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6246 ;;
6247 *)
6248 # Silently disable.
9b134994 6249 add_this_lang=unsupported
64ce424c
PB
6250 ;;
6251 esac
6252 done
6253
9b134994
PB
6254 # Disable Ada if no preexisting GNAT is available.
6255 case ,${enable_languages},:${language}:${have_gnat} in
6256 *,${language},*:ada:no)
6257 # Specifically requested language; tell them.
81ecdfbb 6258 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6259 ;;
6260 *:ada:no)
6261 # Silently disable.
6262 add_this_lang=unsupported
6263 ;;
6264 esac
6265
59f7ec45
HPN
6266 # Disable a language that is unsupported by the target.
6267 case " $unsupported_languages " in
6268 *" $language "*)
9b134994 6269 add_this_lang=unsupported
59f7ec45
HPN
6270 ;;
6271 esac
6272
4b1cb4fe 6273 case $add_this_lang in
9b134994 6274 unsupported)
9e07f89d 6275 # Remove language-dependent dirs.
9e1a94f4
ILT
6276 disabled_target_libs="$disabled_target_libs $target_libs"
6277 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6278 ;;
9b134994
PB
6279 no)
6280 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6281 disabled_target_libs="$disabled_target_libs $target_libs"
6282 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6283 potential_languages="${potential_languages}${language},"
6284 ;;
6285 yes)
6286 new_enable_languages="${new_enable_languages}${language},"
6287 potential_languages="${potential_languages}${language},"
1d39f329 6288 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6289 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6290 case "${boot_language}:,$enable_stage1_languages," in
6291 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6292 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6293 case ",$stage1_languages," in
6294 *,$language,* | ,yes, | ,all,) ;;
6295 *) stage1_languages="${stage1_languages}${language}," ;;
6296 esac
e8a5fa9c
RW
6297 # We need to bootstrap any supporting libraries.
6298 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6299 ;;
6300 esac
6301 ;;
9e07f89d
NN
6302 esac
6303 ;;
6304 esac
6305 done
6306
9e1a94f4
ILT
6307 # Add target libraries which are only needed for disabled languages
6308 # to noconfigdirs.
6309 if test -n "$disabled_target_libs"; then
6310 for dir in $disabled_target_libs; do
6311 case " $enabled_target_libs " in
6312 *" ${dir} "*) ;;
6313 *) noconfigdirs="$noconfigdirs $dir" ;;
6314 esac
6315 done
6316 fi
6317
81ecdfbb
RW
6318 # Check whether --enable-stage1-languages was given.
6319if test "${enable_stage1_languages+set}" = set; then :
6320 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6321 ,no,|,,)
6322 # Set it to something that will have no effect in the loop below
6323 enable_stage1_languages=c ;;
6324 ,yes,)
6325 enable_stage1_languages=`echo $new_enable_languages | \
6326 sed -e "s/^,//" -e "s/,$//" ` ;;
6327 *,all,*)
6328 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6329 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6330 esac
6331
6332 # Add "good" languages from enable_stage1_languages to stage1_languages,
6333 # while "bad" languages go in missing_languages. Leave no duplicates.
6334 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6335 case $potential_languages in
6336 *,$i,*)
6337 case $stage1_languages in
6338 *,$i,*) ;;
6339 *) stage1_languages="$stage1_languages$i," ;;
6340 esac ;;
6341 *)
6342 case $missing_languages in
6343 *,$i,*) ;;
6344 *) missing_languages="$missing_languages$i," ;;
6345 esac ;;
6346 esac
6347 done
81ecdfbb
RW
6348fi
6349
9b134994
PB
6350
6351 # Remove leading/trailing commas that were added for simplicity
6352 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6353 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6354 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6355 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6356
9e07f89d 6357 if test "x$missing_languages" != x; then
81ecdfbb 6358 as_fn_error "
27258dd4 6359The following requested languages could not be built: ${missing_languages}
81ecdfbb 6360Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6361 fi
9e07f89d
NN
6362 if test "x$new_enable_languages" != "x$enable_languages"; then
6363 echo The following languages will be built: ${new_enable_languages}
9b134994 6364 enable_languages="$new_enable_languages"
9e07f89d 6365 fi
9b134994 6366
c6b750e1 6367
81ec575a 6368 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6369fi
6370
a6df5a19
PB
6371# Handle --disable-<component> generically.
6372for dir in $configdirs $build_configdirs $target_configdirs ; do
6373 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6374 varname=`echo $dirname | sed -e s/+/_/g`
6375 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6376 noconfigdirs="$noconfigdirs $dir"
6377 fi
6378done
6379
4f0ef2d8 6380# Check for Boehm's garbage collector
81ecdfbb
RW
6381# Check whether --enable-objc-gc was given.
6382if test "${enable_objc_gc+set}" = set; then :
6383 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6384 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6385 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6386 ;;
6387esac
81ecdfbb
RW
6388fi
6389
4f0ef2d8
CD
6390
6391# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6392case ,${enable_languages},:${enable_objc_gc} in
6393 *,objc,*:yes)
4f0ef2d8
CD
6394 # Keep target-boehm-gc if requested for Objective-C.
6395 ;;
4f0ef2d8 6396 *)
d42c4017
DA
6397 # Otherwise remove target-boehm-gc depending on target-libjava.
6398 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6399 noconfigdirs="$noconfigdirs target-boehm-gc"
6400 fi
4f0ef2d8
CD
6401 ;;
6402esac
6403
caeba88f
AL
6404# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6405# $build_configdirs and $target_configdirs.
9e07f89d
NN
6406# If we have the source for $noconfigdirs entries, add them to $notsupp.
6407
6408notsupp=""
6409for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6410 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6411 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6412 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6413 if test -r $srcdir/$dirname/configure ; then
6414 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6415 true
6416 else
6417 notsupp="$notsupp $dir"
6418 fi
6419 fi
6420 fi
caeba88f
AL
6421 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6422 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6423 if test -r $srcdir/$dirname/configure ; then
6424 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6425 true
6426 else
6427 notsupp="$notsupp $dir"
6428 fi
6429 fi
6430 fi
9e07f89d
NN
6431 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6432 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6433 if test -r $srcdir/$dirname/configure ; then
6434 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6435 true
6436 else
6437 notsupp="$notsupp $dir"
6438 fi
6439 fi
6440 fi
6441done
6442
6443# Sometimes the tools are distributed with libiberty but with no other
6444# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 6445# Don't let libgcc imply libiberty either.
9e07f89d 6446if test -n "${target_configdirs}" ; then
f86e35b8 6447 libgcc=
9e07f89d
NN
6448 others=
6449 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
6450 if test "$i" = "libgcc"; then
6451 libgcc=target-libgcc
6452 elif test "$i" != "libiberty" ; then
9e07f89d
NN
6453 if test -r $srcdir/$i/configure ; then
6454 others=yes;
6455 break;
6456 fi
6457 fi
6458 done
6459 if test -z "${others}" ; then
f86e35b8 6460 target_configdirs=$libgcc
9e07f89d
NN
6461 fi
6462fi
6463
6464# Quietly strip out all directories which aren't configurable in this tree.
6465# This relies on all configurable subdirectories being autoconfiscated, which
6466# is now the case.
6a9cf61e
PB
6467build_configdirs_all="$build_configdirs"
6468build_configdirs=
6469for i in ${build_configdirs_all} ; do
c6b750e1 6470 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6471 if test -f ${srcdir}/$j/configure ; then
6472 build_configdirs="${build_configdirs} $i"
6473 fi
6474done
6475
9e07f89d
NN
6476configdirs_all="$configdirs"
6477configdirs=
6478for i in ${configdirs_all} ; do
6479 if test -f ${srcdir}/$i/configure ; then
6480 configdirs="${configdirs} $i"
6481 fi
6482done
6a9cf61e 6483
9e07f89d
NN
6484target_configdirs_all="$target_configdirs"
6485target_configdirs=
6486for i in ${target_configdirs_all} ; do
c6b750e1 6487 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6488 if test -f ${srcdir}/$j/configure ; then
6489 target_configdirs="${target_configdirs} $i"
6490 fi
6491done
6492
6493# Produce a warning message for the subdirs we can't configure.
6494# This isn't especially interesting in the Cygnus tree, but in the individual
6495# FSF releases, it's important to let people know when their machine isn't
6496# supported by the one or two programs in a package.
6497
6498if test -n "${notsupp}" && test -z "${norecursion}" ; then
6499 # If $appdirs is non-empty, at least one of those directories must still
6500 # be configured, or we error out. (E.g., if the gas release supports a
6501 # specified target in some subdirs but not the gas subdir, we shouldn't
6502 # pretend that all is well.)
6503 if test -n "$appdirs" ; then
6504 for dir in $appdirs ; do
6505 if test -r $dir/Makefile.in ; then
6506 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6507 appdirs=""
6508 break
6509 fi
6a9cf61e 6510 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6511 appdirs=""
6512 break
6513 fi
6514 fi
6515 done
6516 if test -n "$appdirs" ; then
6517 echo "*** This configuration is not supported by this package." 1>&2
6518 exit 1
6519 fi
6520 fi
6521 # Okay, some application will build, or we don't care to check. Still
6522 # notify of subdirs not getting built.
6523 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6524 echo " ${notsupp}" 1>&2
6525 echo " (Any other directories should still work fine.)" 1>&2
6526fi
6527
6528case "$host" in
6529 *msdosdjgpp*)
6530 enable_gdbtk=no ;;
6531esac
6532
18f6b6ee
PB
6533# To find our prefix, in gcc_cv_tool_prefix.
6534
6535# The user is always right.
6536if test "${PATH_SEPARATOR+set}" != set; then
6537 echo "#! /bin/sh" >conf$$.sh
6538 echo "exit 0" >>conf$$.sh
6539 chmod +x conf$$.sh
6540 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6541 PATH_SEPARATOR=';'
6542 else
6543 PATH_SEPARATOR=:
6544 fi
6545 rm -f conf$$.sh
6546fi
6547
6548
6549
6550if test "x$exec_prefix" = xNONE; then
6551 if test "x$prefix" = xNONE; then
6552 gcc_cv_tool_prefix=$ac_default_prefix
6553 else
6554 gcc_cv_tool_prefix=$prefix
6555 fi
6556else
6557 gcc_cv_tool_prefix=$exec_prefix
6558fi
6559
6560# If there is no compiler in the tree, use the PATH only. In any
6561# case, if there is no compiler in the tree nobody should use
6562# AS_FOR_TARGET and LD_FOR_TARGET.
6563if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6564 gcc_version=`cat $srcdir/gcc/BASE-VER`
6565 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6566 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6567 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6568 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6569 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6570 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6571else
6572 gcc_cv_tool_dirs=
6573fi
6574
6575if test x$build = x$target && test -n "$md_exec_prefix"; then
6576 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6577fi
6578
6579
6580
9e07f89d
NN
6581copy_dirs=
6582
c6b750e1 6583
81ecdfbb
RW
6584# Check whether --with-build-sysroot was given.
6585if test "${with_build_sysroot+set}" = set; then :
6586 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6587 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6588 fi
6589else
6590 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6591fi
a19b6204
MM
6592
6593
8a6ee3ab 6594
81ecdfbb
RW
6595
6596# Check whether --with-debug-prefix-map was given.
6597if test "${with_debug_prefix_map+set}" = set; then :
6598 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6599 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6600 for debug_map in $withval; do
6601 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6602 done
6603 fi
6604else
6605 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6606fi
6607
8a6ee3ab
JM
6608
6609
7f6ef0c0
PB
6610# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6611# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6612# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6613# We want to ensure that TARGET libraries (which we know are built with
6614# gcc) are built with "-O2 -g", so include those options when setting
6615# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6616if test "x$CFLAGS_FOR_TARGET" = x; then
6617 CFLAGS_FOR_TARGET=$CFLAGS
6618 case " $CFLAGS " in
6619 *" -O2 "*) ;;
6620 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6621 esac
6622 case " $CFLAGS " in
6623 *" -g "* | *" -g3 "*) ;;
6624 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6625 esac
6626fi
6627
6628
6629if test "x$CXXFLAGS_FOR_TARGET" = x; then
6630 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6631 case " $CXXFLAGS " in
6632 *" -O2 "*) ;;
6633 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6634 esac
6635 case " $CXXFLAGS " in
6636 *" -g "* | *" -g3 "*) ;;
6637 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6638 esac
6639fi
6640
6641
9e07f89d
NN
6642# Handle --with-headers=XXX. If the value is not "yes", the contents of
6643# the named directory are copied to $(tooldir)/sys-include.
6644if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6645 if test x${is_cross_compiler} = xno ; then
6646 echo 1>&2 '***' --with-headers is only supported when cross compiling
6647 exit 1
6648 fi
6649 if test x"${with_headers}" != xyes ; then
18f6b6ee 6650 x=${gcc_cv_tool_prefix}
c6b750e1 6651 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6652 fi
6653fi
6654
6655# Handle --with-libs=XXX. If the value is not "yes", the contents of
6656# the name directories are copied to $(tooldir)/lib. Multiple directories
6657# are permitted.
6658if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6659 if test x${is_cross_compiler} = xno ; then
6660 echo 1>&2 '***' --with-libs is only supported when cross compiling
6661 exit 1
6662 fi
6663 if test x"${with_libs}" != xyes ; then
6664 # Copy the libraries in reverse order, so that files in the first named
6665 # library override files in subsequent libraries.
18f6b6ee 6666 x=${gcc_cv_tool_prefix}
9e07f89d 6667 for l in ${with_libs}; do
c6b750e1 6668 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6669 done
6670 fi
6671fi
6672
700d40ca 6673# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6674#
6675# This is done by determining whether or not the appropriate directory
6676# is available, and by checking whether or not specific configurations
6677# have requested that this magic not happen.
c6b750e1
DJ
6678#
6679# The command line options always override the explicit settings in
2429c060
PB
6680# configure.in, and the settings in configure.in override this magic.
6681#
c6b750e1 6682# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6683# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6684# --without-gnu-ld options for the configure script. Similarly, if
6685# the default is to use the included zlib and you don't want to do that,
6686# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6687
6688if test x${use_gnu_as} = x &&
6689 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6690 with_gnu_as=yes
6691 extra_host_args="$extra_host_args --with-gnu-as"
6692fi
6693
6694if test x${use_gnu_ld} = x &&
93f9b408 6695 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6696 with_gnu_ld=yes
6697 extra_host_args="$extra_host_args --with-gnu-ld"
6698fi
6699
700d40ca
ILT
6700if test x${use_included_zlib} = x &&
6701 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6702 :
6703else
6704 with_system_zlib=yes
6705 extra_host_args="$extra_host_args --with-system-zlib"
6706fi
6707
2429c060
PB
6708# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6709# can detect this case.
6710
6711if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6712 with_newlib=yes
6713 extra_host_args="$extra_host_args --with-newlib"
6714fi
6715
9e07f89d
NN
6716# Handle ${copy_dirs}
6717set fnord ${copy_dirs}
6718shift
6719while test $# != 0 ; do
6720 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6721 :
6722 else
6723 echo Copying $1 to $2
6724
6725 # Use the install script to create the directory and all required
6726 # parent directories.
6727 if test -d $2 ; then
6728 :
6729 else
6730 echo >config.temp
6731 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6732 fi
6733
6734 # Copy the directory, assuming we have tar.
6735 # FIXME: Should we use B in the second tar? Not all systems support it.
6736 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6737
6738 # It is the responsibility of the user to correctly adjust all
6739 # symlinks. If somebody can figure out how to handle them correctly
6740 # here, feel free to add the code.
6741
6742 echo $1 > $2/COPIED
6743 fi
6744 shift; shift
6745done
6746
2429c060
PB
6747# Determine a target-dependent exec_prefix that the installed
6748# gcc will search in. Keep this list sorted by triplet, with
6749# the *-*-osname triplets last.
6750md_exec_prefix=
6751case "${target}" in
521ec477 6752 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6753 md_exec_prefix=/dev/env/DJDIR/bin
6754 ;;
2429c060 6755 *-*-hpux* | \
2429c060 6756 *-*-nto-qnx* | \
1f111696 6757 *-*-solaris2*)
2429c060
PB
6758 md_exec_prefix=/usr/ccs/bin
6759 ;;
6760esac
6761
a0da8069
NN
6762extra_arflags_for_target=
6763extra_nmflags_for_target=
6764extra_ranlibflags_for_target=
6765target_makefile_frag=/dev/null
6766case "${target}" in
77d7106f
AM
6767 spu-*-*)
6768 target_makefile_frag="config/mt-spu"
6769 ;;
429acdec
RS
6770 mips*-sde-elf*)
6771 target_makefile_frag="config/mt-sde"
6772 ;;
f3b1e08e
RS
6773 mipsisa*-*-elfoabi*)
6774 target_makefile_frag="config/mt-mips-elfoabi"
6775 ;;
e7c8859c
RS
6776 mips*-*-*linux* | mips*-*-gnu*)
6777 target_makefile_frag="config/mt-mips-gnu"
6778 ;;
29383458 6779 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6780 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6781 ;;
6782 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6783 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6784 # commands to handle both 32-bit and 64-bit objects. These flags are
6785 # harmless if we're using GNU nm or ar.
6786 extra_arflags_for_target=" -X32_64"
6787 extra_nmflags_for_target=" -B -X32_64"
6788 ;;
92f4e989
JM
6789 *-*-darwin[3-9]*)
6790 # ranlib before Darwin10 requires the -c flag to look at common symbols.
a0da8069
NN
6791 extra_ranlibflags_for_target=" -c"
6792 ;;
a0da8069
NN
6793esac
6794
6795alphaieee_frag=/dev/null
6796case $target in
6797 alpha*-*-*)
6798 # This just makes sure to use the -mieee option to build target libs.
6799 # This should probably be set individually by each library.
6800 alphaieee_frag="config/mt-alphaieee"
6801 ;;
6802esac
6803
6804# If --enable-target-optspace always use -Os instead of -O2 to build
6805# the target libraries, similarly if it is not specified, use -Os
6806# on selected platforms.
6807ospace_frag=/dev/null
6808case "${enable_target_optspace}:${target}" in
6809 yes:*)
6810 ospace_frag="config/mt-ospace"
6811 ;;
6812 :d30v-*)
6813 ospace_frag="config/mt-d30v"
6814 ;;
6815 :m32r-* | :d10v-* | :fr30-*)
6816 ospace_frag="config/mt-ospace"
6817 ;;
6818 no:* | :*)
6819 ;;
6820 *)
6821 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6822 ;;
6823esac
6824
a0da8069
NN
6825# Default to using --with-stabs for certain targets.
6826if test x${with_stabs} = x ; then
6827 case "${target}" in
e31d1ea3 6828 mips*-*-irix[56]*)
a0da8069
NN
6829 ;;
6830 mips*-*-* | alpha*-*-osf*)
6831 with_stabs=yes;
6832 extra_host_args="${extra_host_args} --with-stabs"
6833 ;;
6834 esac
6835fi
6836
6837# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6838# them automatically.
6839case "${host}" in
c6b750e1 6840 hppa*64*-*-hpux11*)
a0da8069
NN
6841 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6842 ;;
6843esac
6844
a0da8069
NN
6845# Some systems (e.g., one of the i386-aix systems the gas testers are
6846# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6847tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6848build_tooldir=${tooldir}
6849
a0da8069
NN
6850# Create a .gdbinit file which runs the one in srcdir
6851# and tells GDB to look there for source files.
6852
6853if test -r ${srcdir}/.gdbinit ; then
6854 case ${srcdir} in
6855 .) ;;
6856 *) cat > ./.gdbinit <<EOF
6857# ${NO_EDIT}
6858dir ${srcdir}
6859dir .
6860source ${srcdir}/.gdbinit
6861EOF
6862 ;;
6863 esac
6864fi
6865
a0da8069
NN
6866# Make sure that the compiler is able to generate an executable. If it
6867# can't, we are probably in trouble. We don't care whether we can run the
6868# executable--we might be using a cross compiler--we only care whether it
6869# can be created. At this point the main configure script has set CC.
6870we_are_ok=no
6871echo "int main () { return 0; }" > conftest.c
6872${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6873if test $? = 0 ; then
6874 if test -s conftest || test -s conftest.exe ; then
6875 we_are_ok=yes
6876 fi
c6b750e1 6877fi
a0da8069
NN
6878case $we_are_ok in
6879 no)
6880 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6881 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6882 rm -f conftest*
6883 exit 1
6884 ;;
6885esac
6886rm -f conftest*
6887
6888# The Solaris /usr/ucb/cc compiler does not appear to work.
6889case "${host}" in
6890 sparc-sun-solaris2*)
6891 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6892 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6893 could_use=
6894 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6895 if test -d /opt/cygnus/bin ; then
6896 if test "$could_use" = "" ; then
6897 could_use="/opt/cygnus/bin"
6898 else
6899 could_use="$could_use or /opt/cygnus/bin"
6900 fi
6901 fi
6902 if test "$could_use" = "" ; then
6903 echo "Warning: compilation may fail because you're using"
6904 echo "/usr/ucb/cc. You should change your PATH or CC "
6905 echo "variable and rerun configure."
6906 else
6907 echo "Warning: compilation may fail because you're using"
6908 echo "/usr/ucb/cc, when you should use the C compiler from"
6909 echo "$could_use. You should change your"
6910 echo "PATH or CC variable and rerun configure."
6911 fi
6912 fi
6913 ;;
6914esac
6915
3bbd2f8f 6916# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6917case "${host}" in
6918 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 6919 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6920 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6921 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6922esac
6923
3bbd2f8f 6924# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6925# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6926# built executables to PATH.
3bbd2f8f
AL
6927if test "$RPATH_ENVVAR" = PATH; then
6928 GCC_SHLIB_SUBDIR=/shlib
6929else
6930 GCC_SHLIB_SUBDIR=
6931fi
6932
a0da8069
NN
6933# Record target_configdirs and the configure arguments for target and
6934# build configuration in Makefile.
6935target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6936build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6937
2aa2364a
JR
6938# If we are building libgomp, bootstrap it.
6939if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6940 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6941fi
6942
a0da8069
NN
6943# Determine whether gdb needs tk/tcl or not.
6944# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6945# and in that case we want gdb to be built without tk. Ugh!
6946# In fact I believe gdb is the *only* package directly dependent on tk,
6947# so we should be able to put the 'maybe's in unconditionally and
6948# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6949# 100% sure that that's safe though.
c180f501 6950
675c6968 6951gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6952case "$enable_gdbtk" in
6953 no)
6954 GDB_TK="" ;;
c180f501
AC
6955 yes)
6956 GDB_TK="${gdb_tk}" ;;
a0da8069 6957 *)
c180f501
AC
6958 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6959 # distro. Eventually someone will fix this and move Insight, nee
6960 # gdbtk to a separate directory.
6961 if test -d ${srcdir}/gdb/gdbtk ; then
6962 GDB_TK="${gdb_tk}"
6963 else
6964 GDB_TK=""
6965 fi
6966 ;;
a0da8069 6967esac
907be67c
DJ
6968CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6969INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6970
6bd3dfaa 6971# Strip out unwanted targets.
dd12c3a8
NN
6972
6973# While at that, we remove Makefiles if we were started for recursive
6974# configuration, so that the top-level Makefile reconfigures them,
6975# like we used to do when configure itself was recursive.
dd12c3a8 6976
06a51eac
RW
6977# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6978# but now we're fixing up the Makefile ourselves with the additional
6979# commands passed to AC_CONFIG_FILES. Use separate variables
6980# extrasub-{build,host,target} not because there is any reason to split
6981# the substitutions up that way, but only to remain below the limit of
6982# 99 commands in a script, for HP-UX sed.
6983# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 6984
81ecdfbb
RW
6985# Check whether --enable-bootstrap was given.
6986if test "${enable_bootstrap+set}" = set; then :
6987 enableval=$enable_bootstrap;
319cab08 6988else
9cb3fa6f 6989 enable_bootstrap=default
81ecdfbb
RW
6990fi
6991
319cab08 6992
9cb3fa6f
PB
6993# Issue errors and warnings for invalid/strange bootstrap combinations.
6994case "$configdirs" in
6995 *gcc*) have_compiler=yes ;;
6996 *) have_compiler=no ;;
6997esac
6998
6999case "$have_compiler:$host:$target:$enable_bootstrap" in
7000 *:*:*:no) ;;
7001
0aed8855 7002 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
7003 # and we are in a native configuration.
7004 yes:$build:$build:default)
0aed8855 7005 enable_bootstrap=yes ;;
9cb3fa6f
PB
7006
7007 *:*:*:default)
7008 enable_bootstrap=no ;;
7009
7010 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 7011 yes:$build:$build:yes)
9cb3fa6f
PB
7012 ;;
7013
7014 # Other configurations, but we have a compiler. Assume the user knows
7015 # what he's doing.
80911fe1 7016 yes:*:*:yes)
81ecdfbb
RW
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7018$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
7019 ;;
7020
7021 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 7022 no:*:*:yes)
81ecdfbb 7023 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
7024
7025 # Fail if wrong command line
7026 *)
81ecdfbb 7027 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
7028 ;;
7029esac
7030
4385ad3c
RW
7031case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7032 *,c++,*:yes:yes) ;;
7033 *:yes:yes)
7034 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7035 ;;
7036esac
7037
16b1ad29
RW
7038case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7039 yes:yes:*\ gold\ *:*,c++,*) ;;
7040 yes:yes:*\ gold\ *:*)
7041 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7042 ;;
7043esac
7044
9cb3fa6f 7045# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 7046case $enable_bootstrap in
319cab08 7047 yes)
96655cc4
AO
7048 bootstrap_suffix=bootstrap
7049 BUILD_CONFIG=bootstrap-debug
7050 ;;
319cab08 7051 no)
96655cc4
AO
7052 bootstrap_suffix=no-bootstrap
7053 BUILD_CONFIG=
7054 ;;
319cab08
PB
7055esac
7056
96655cc4
AO
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7058$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7059
7060
7061# Check whether --with-build-config was given.
7062if test "${with_build_config+set}" = set; then :
7063 withval=$with_build_config; case $with_build_config in
7064 yes) with_build_config= ;;
7065 no) with_build_config= BUILD_CONFIG= ;;
7066 esac
7067fi
7068
7069
7070if test "x${with_build_config}" != x; then
7071 BUILD_CONFIG=$with_build_config
7072else
7073 case $BUILD_CONFIG in
7074 bootstrap-debug)
7075 if echo "int f (void) { return 0; }" > conftest.c &&
7076 ${CC} -c conftest.c &&
7077 mv conftest.o conftest.o.g0 &&
7078 ${CC} -c -g conftest.c &&
7079 mv conftest.o conftest.o.g &&
a009f2e7 7080 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
7081 :
7082 else
7083 BUILD_CONFIG=
7084 fi
7085 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7086 ;;
7087 esac
7088fi
7089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7090$as_echo "$BUILD_CONFIG" >&6; }
7091
7092
06a51eac 7093extrasub_build=
6a9cf61e 7094for module in ${build_configdirs} ; do
498d4a71
CF
7095 if test -z "${no_recursion}" \
7096 && test -f ${build_subdir}/${module}/Makefile; then
7097 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7098 rm -f ${build_subdir}/${module}/Makefile
7099 fi
06a51eac 7100 extrasub_build="$extrasub_build
498d4a71
CF
7101/^@if build-$module\$/d
7102/^@endif build-$module\$/d
7103/^@if build-$module-$bootstrap_suffix\$/d
7104/^@endif build-$module-$bootstrap_suffix\$/d"
7105done
06a51eac 7106extrasub_host=
498d4a71 7107for module in ${configdirs} ; do
80911fe1 7108 if test -z "${no_recursion}"; then
8cf39b1b 7109 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7110 if test -f ${file}; then
7111 echo 1>&2 "*** removing ${file} to force reconfigure"
7112 rm -f ${file}
7113 fi
7114 done
498d4a71 7115 fi
06a51eac 7116 extrasub_host="$extrasub_host
498d4a71
CF
7117/^@if $module\$/d
7118/^@endif $module\$/d
7119/^@if $module-$bootstrap_suffix\$/d
7120/^@endif $module-$bootstrap_suffix\$/d"
7121done
06a51eac 7122extrasub_target=
498d4a71
CF
7123for module in ${target_configdirs} ; do
7124 if test -z "${no_recursion}" \
7125 && test -f ${target_subdir}/${module}/Makefile; then
7126 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7127 rm -f ${target_subdir}/${module}/Makefile
7128 fi
e8a5fa9c
RW
7129
7130 # We only bootstrap target libraries listed in bootstrap_target_libs.
7131 case $bootstrap_target_libs in
7132 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7133 *) target_bootstrap_suffix=no-bootstrap ;;
7134 esac
7135
06a51eac 7136 extrasub_target="$extrasub_target
498d4a71
CF
7137/^@if target-$module\$/d
7138/^@endif target-$module\$/d
e8a5fa9c
RW
7139/^@if target-$module-$target_bootstrap_suffix\$/d
7140/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7141done
7142
06a51eac
RW
7143# Do the final fixup along with target modules.
7144extrasub_target="$extrasub_target
6bd3dfaa 7145/^@if /,/^@endif /d"
a0da8069
NN
7146
7147# Create the serialization dependencies. This uses a temporary file.
7148
81ecdfbb
RW
7149# Check whether --enable-serial-configure was given.
7150if test "${enable_serial_configure+set}" = set; then :
7151 enableval=$enable_serial_configure;
7152fi
e6bfb94a
AO
7153
7154
1047cb91
DD
7155case ${enable_serial_configure} in
7156 yes)
7157 enable_serial_build_configure=yes
7158 enable_serial_host_configure=yes
7159 enable_serial_target_configure=yes
7160 ;;
7161esac
7162
a0da8069
NN
7163# These force 'configure's to be done one at a time, to avoid problems
7164# with contention over a shared config.cache.
7165rm -f serdep.tmp
e6bfb94a 7166echo '# serdep.tmp' > serdep.tmp
a0da8069 7167olditem=
1047cb91 7168test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7169for item in ${build_configdirs} ; do
7170 case ${olditem} in
7171 "") ;;
e6bfb94a 7172 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7173 esac
7174 olditem=${item}
7175done
7176olditem=
1047cb91 7177test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7178for item in ${configdirs} ; do
7179 case ${olditem} in
7180 "") ;;
e6bfb94a 7181 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7182 esac
7183 olditem=${item}
7184done
7185olditem=
1047cb91 7186test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7187for item in ${target_configdirs} ; do
7188 case ${olditem} in
7189 "") ;;
e6bfb94a 7190 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7191 esac
7192 olditem=${item}
7193done
7194serialization_dependencies=serdep.tmp
7195
7196
e6bfb94a 7197# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7198# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7199# might not want to pass down to subconfigures. The exception being
7200# --cache-file=/dev/null, which is used to turn off the use of cache
7201# files altogether, and which should be passed on to subconfigures.
7202# Also strip program-prefix, program-suffix, and program-transform-name,
7203# so that we can pass down a consistent program-transform-name.
c6b750e1 7204baseargs=
65b4571a 7205tbaseargs=
c6b750e1
DJ
7206keep_next=no
7207skip_next=no
7208eval "set -- $ac_configure_args"
18f6b6ee
PB
7209for ac_arg
7210do
c6b750e1
DJ
7211 if test X"$skip_next" = X"yes"; then
7212 skip_next=no
7213 continue
7214 fi
7215 if test X"$keep_next" = X"yes"; then
7216 case $ac_arg in
7217 *\'*)
7218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7219 esac
7220 baseargs="$baseargs '$ac_arg'"
65b4571a 7221 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7222 keep_next=no
7223 continue
7224 fi
7225
7226 # Handle separated arguments. Based on the logic generated by
7227 # autoconf 2.59.
7228 case $ac_arg in
7229 *=* | --config-cache | -C | -disable-* | --disable-* \
7230 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7231 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7232 | -with-* | --with-* | -without-* | --without-* | --x)
7233 separate_arg=no
7234 ;;
7235 -*)
7236 separate_arg=yes
7237 ;;
7238 *)
7239 separate_arg=no
7240 ;;
7241 esac
7242
65b4571a
AO
7243 skip_targ=no
7244 case $ac_arg in
7245
7246 --with-* | --without-*)
7247 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7248
7249 case $libopt in
7250 *[-_]include)
7251 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7252 ;;
7253 *[-_]lib)
7254 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7255 ;;
7256 *)
7257 lib=$libopt
7258 ;;
7259 esac
7260
7261
7262 case $lib in
7263 mpc | mpfr | gmp | ppl | cloog)
7264 # If we're processing --with-$lib, --with-$lib-include or
7265 # --with-$lib-lib, for one of the libs above, and target is
7266 # different from host, don't pass the current argument to any
7267 # target library's configure.
7268 if test x$is_cross_compiler = xyes; then
7269 skip_targ=yes
7270 fi
7271 ;;
7272 esac
7273 ;;
7274 esac
7275
c6b750e1 7276 case "$ac_arg" in
30167e0a
NC
7277 --cache-file=/dev/null | \
7278 -cache-file=/dev/null )
7279 # Handled here to avoid the test to skip args below.
7280 baseargs="$baseargs '$ac_arg'"
65b4571a 7281 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7282 # Assert: $separate_arg should always be no.
7283 keep_next=$separate_arg
7284 ;;
c6b750e1
DJ
7285 --no*)
7286 continue
7287 ;;
7288 --c* | \
7289 --sr* | \
7290 --ho* | \
7291 --bu* | \
7292 --t* | \
7293 --program-* | \
7294 -cache_file* | \
7295 -srcdir* | \
7296 -host* | \
7297 -build* | \
7298 -target* | \
7299 -program-prefix* | \
7300 -program-suffix* | \
7301 -program-transform-name* )
7302 skip_next=$separate_arg
7303 continue
7304 ;;
7305 -*)
7306 # An option. Add it.
7307 case $ac_arg in
7308 *\'*)
7309 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7310 esac
7311 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7312 if test X"$skip_targ" = Xno; then
7313 tbaseargs="$tbaseargs '$ac_arg'"
7314 fi
c6b750e1
DJ
7315 keep_next=$separate_arg
7316 ;;
7317 *)
7318 # Either a variable assignment, or a nonopt (triplet). Don't
7319 # pass it down; let the Makefile handle this.
7320 continue
7321 ;;
7322 esac
7323done
7324# Remove the initial space we just introduced and, as these will be
7325# expanded by make, quote '$'.
7326baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7327
f27d4f92
DJ
7328# Add in --program-transform-name, after --program-prefix and
7329# --program-suffix have been applied to it. Autoconf has already
7330# doubled dollar signs and backslashes in program_transform_name; we want
7331# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7332# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7333# Also, because we want to override the logic in subdir configure scripts to
7334# choose program_transform_name, replace any s,x,x, with s,y,y,.
7335sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7336${program_transform_name}
7337EOF_SED
7338gcc_transform_name=`cat conftestsed.out`
7339rm -f conftestsed.out
7340baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7341tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7342if test "$silent" = yes; then
7343 baseargs="$baseargs --silent"
65b4571a 7344 tbaseargs="$tbaseargs --silent"
2444379b 7345fi
34a0f3cf 7346baseargs="$baseargs --disable-option-checking"
65b4571a 7347tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7348
4074d5f2
RW
7349# Record and document user additions to sub configure arguments.
7350
7351
7352
7353
a0da8069
NN
7354# For the build-side libraries, we just need to pretend we're native,
7355# and not use the same cache file. Multilibs are neither needed nor
7356# desired.
4074d5f2 7357build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7358
7359# For host modules, accept cache file option, or specification as blank.
7360case "${cache_file}" in
7361"") # empty
7362 cache_file_option="" ;;
7363/* | [A-Za-z]:[\\/]* ) # absolute path
7364 cache_file_option="--cache-file=${cache_file}" ;;
7365*) # relative path
7366 cache_file_option="--cache-file=../${cache_file}" ;;
7367esac
7368
82252c06
NN
7369# Host dirs don't like to share a cache file either, horribly enough.
7370# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7371host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7372
65b4571a 7373target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7374
7375# Passing a --with-cross-host argument lets the target libraries know
7376# whether they are being built with a cross-compiler or being built
7377# native. However, it would be better to use other mechanisms to make the
7378# sorts of decisions they want to make on this basis. Please consider
7379# this option to be deprecated. FIXME.
7380if test x${is_cross_compiler} = xyes ; then
c6b750e1 7381 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7382fi
7383
938d2b74
RW
7384# Default to --enable-multilib.
7385if test x${enable_multilib} = x ; then
a0da8069 7386 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7387fi
a0da8069
NN
7388
7389# Pass --with-newlib if appropriate. Note that target_configdirs has
7390# changed from the earlier setting of with_newlib.
7391if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7392 target_configargs="--with-newlib ${target_configargs}"
7393fi
7394
95036d20
NN
7395# Different target subdirs use different values of certain variables
7396# (notably CXX). Worse, multilibs use *lots* of different values.
7397# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7398# it doesn't automatically accept command-line overrides of them.
7399# This means it's not safe for target subdirs to share a cache file,
7400# which is disgusting, but there you have it. Hopefully this can be
7401# fixed in future. It's still worthwhile to use a cache file for each
7402# directory. I think.
7403
ae380b45
MS
7404# Pass the appropriate --build, --host, --target and --cache-file arguments.
7405# We need to pass --target, as newer autoconf's requires consistency
7406# for target_alias and gcc doesn't manage it consistently.
4b900473 7407target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7408
a0da8069
NN
7409FLAGS_FOR_TARGET=
7410case " $target_configdirs " in
7411 *" newlib "*)
7412 case " $target_configargs " in
7413 *" --with-newlib "*)
7414 case "$target" in
1f53ca9a
AO
7415 *-cygwin*)
7416 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
7417 ;;
a0da8069
NN
7418 esac
7419
7420 # If we're not building GCC, don't discard standard headers.
7421 if test -d ${srcdir}/gcc; then
7422 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7423
7424 if test "${build}" != "${host}"; then
7425 # On Canadian crosses, CC_FOR_TARGET will have already been set
7426 # by `configure', so we won't have an opportunity to add -Bgcc/
7427 # to it. This is right: we don't want to search that directory
7428 # for binaries, but we want the header files in there, so add
7429 # them explicitly.
e552509b 7430 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7431
7432 # Someone might think of using the pre-installed headers on
7433 # Canadian crosses, in case the installed compiler is not fully
7434 # compatible with the compiler being built. In this case, it
7435 # would be better to flag an error than risking having
7436 # incompatible object files being constructed. We can't
7437 # guarantee that an error will be flagged, but let's hope the
7438 # compiler will do it, when presented with incompatible header
7439 # files.
7440 fi
7441 fi
7442
7443 case "${target}-${is_cross_compiler}" in
ec11bdc6 7444 i[3456789]86-*-linux*-no)
a0da8069
NN
7445 # Here host == target, so we don't need to build gcc,
7446 # so we don't want to discard standard headers.
7447 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7448 ;;
7449 *)
7450 # If we're building newlib, use its generic headers last, but search
7451 # for any libc-related directories first (so make it the last -B
7452 # switch).
7453 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
7454
7455 # If we're building libgloss, find the startup file, simulator library
7456 # and linker script.
7457 case " $target_configdirs " in
7458 *" libgloss "*)
7459 # Look for startup file, simulator library and maybe linker script.
7460 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7461 # Look for libnosys.a in case the target needs it.
7462 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7463 # Most targets have the linker script in the source directory.
7464 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7465 ;;
7466 esac
a0da8069
NN
7467 ;;
7468 esac
7469 ;;
7470 esac
7471 ;;
7472esac
1f53ca9a 7473
45055374 7474case "$target" in
1f53ca9a
AO
7475 x86_64-*mingw* | *-w64-mingw*)
7476 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7477 # however, use a symlink named 'mingw' in ${prefix} .
7478 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7479 ;;
7480 *-mingw*)
7481 # MinGW can't be handled as Cygwin above since it does not use newlib.
7482 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'
7483 ;;
45055374 7484esac
a0da8069 7485
5fbad20a
DD
7486# Allow the user to override the flags for
7487# our build compiler if desired.
c66487f8
NC
7488if test x"${build}" = x"${host}" ; then
7489 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7490 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7491 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7492fi
5fbad20a 7493
a0da8069
NN
7494# On Canadian crosses, we'll be searching the right directories for
7495# the previously-installed cross compiler, so don't bother to add
7496# flags for directories within the install tree of the compiler
7497# being built; programs in there won't even run.
7498if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7499 # Search for pre-installed headers if nothing else fits.
bba45b8b 7500 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
7501fi
7502
7503if test "x${use_gnu_ld}" = x &&
7504 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7505 # Arrange for us to find uninstalled linker scripts.
b00612cc 7506 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7507fi
7508
a481dbb7
DD
7509# Search for other target-specific linker scripts and such.
7510case "${target}" in
4e206d7e
DB
7511 mep*)
7512 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7513 ;;
7514esac
7515
a0da8069 7516# Makefile fragments.
3e707e94
PB
7517for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7518do
7519 eval fragval=\$$frag
7520 if test $fragval != /dev/null; then
7521 eval $frag=${srcdir}/$fragval
7522 fi
7523done
a0da8069
NN
7524
7525
7526
7527
7528
7529# Miscellanea: directories, flags, etc.
7530
7531
7532
7533
7534
7535
7536
3bbd2f8f 7537
6a9cf61e 7538# Build module lists & subconfigure args.
a0da8069
NN
7539
7540
7541
be01d343
PB
7542# Host module lists & subconfigure args.
7543
7544
7545
911e63d0 7546
be01d343
PB
7547# Target module lists & subconfigure args.
7548
7549
7550
7551# Build tools.
7552
7553
7554
1576798e
PB
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
be01d343
PB
7569# Generate default definitions for YACC, M4, LEX and other programs that run
7570# on the build machine. These are used if the Makefile can't locate these
7571# programs in objdir.
7572MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7573
7574for ac_prog in 'bison -y' byacc yacc
7575do
c6b750e1 7576 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7577set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579$as_echo_n "checking for $ac_word... " >&6; }
7580if test "${ac_cv_prog_YACC+set}" = set; then :
7581 $as_echo_n "(cached) " >&6
be01d343
PB
7582else
7583 if test -n "$YACC"; then
7584 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7585else
c6b750e1
DJ
7586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7593 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7595 break 2
7596 fi
7597done
81ecdfbb
RW
7598 done
7599IFS=$as_save_IFS
c6b750e1 7600
be01d343
PB
7601fi
7602fi
c6b750e1 7603YACC=$ac_cv_prog_YACC
be01d343 7604if test -n "$YACC"; then
81ecdfbb
RW
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7606$as_echo "$YACC" >&6; }
be01d343 7607else
81ecdfbb
RW
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609$as_echo "no" >&6; }
be01d343
PB
7610fi
7611
81ecdfbb 7612
c6b750e1 7613 test -n "$YACC" && break
be01d343
PB
7614done
7615test -n "$YACC" || YACC="$MISSING bison -y"
7616
7617case " $build_configdirs " in
7618 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7619esac
7620
7621for ac_prog in bison
7622do
c6b750e1 7623 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7624set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626$as_echo_n "checking for $ac_word... " >&6; }
7627if test "${ac_cv_prog_BISON+set}" = set; then :
7628 $as_echo_n "(cached) " >&6
be01d343
PB
7629else
7630 if test -n "$BISON"; then
7631 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7632else
c6b750e1
DJ
7633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634for as_dir in $PATH
7635do
7636 IFS=$as_save_IFS
7637 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7640 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7642 break 2
7643 fi
7644done
81ecdfbb
RW
7645 done
7646IFS=$as_save_IFS
c6b750e1 7647
be01d343
PB
7648fi
7649fi
c6b750e1 7650BISON=$ac_cv_prog_BISON
be01d343 7651if test -n "$BISON"; then
81ecdfbb
RW
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7653$as_echo "$BISON" >&6; }
be01d343 7654else
81ecdfbb
RW
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656$as_echo "no" >&6; }
be01d343
PB
7657fi
7658
81ecdfbb 7659
c6b750e1 7660 test -n "$BISON" && break
be01d343
PB
7661done
7662test -n "$BISON" || BISON="$MISSING bison"
7663
7664case " $build_configdirs " in
7665 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7666esac
7667
7668for ac_prog in gm4 gnum4 m4
7669do
c6b750e1 7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7671set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673$as_echo_n "checking for $ac_word... " >&6; }
7674if test "${ac_cv_prog_M4+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
be01d343
PB
7676else
7677 if test -n "$M4"; then
7678 ac_cv_prog_M4="$M4" # Let the user override the test.
7679else
c6b750e1
DJ
7680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681for as_dir in $PATH
7682do
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7687 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7689 break 2
7690 fi
7691done
81ecdfbb
RW
7692 done
7693IFS=$as_save_IFS
c6b750e1 7694
be01d343
PB
7695fi
7696fi
c6b750e1 7697M4=$ac_cv_prog_M4
be01d343 7698if test -n "$M4"; then
81ecdfbb
RW
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7700$as_echo "$M4" >&6; }
be01d343 7701else
81ecdfbb
RW
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703$as_echo "no" >&6; }
be01d343
PB
7704fi
7705
81ecdfbb 7706
c6b750e1 7707 test -n "$M4" && break
be01d343
PB
7708done
7709test -n "$M4" || M4="$MISSING m4"
7710
7711case " $build_configdirs " in
7712 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7713esac
7714
7715for ac_prog in flex lex
7716do
c6b750e1 7717 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7718set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720$as_echo_n "checking for $ac_word... " >&6; }
7721if test "${ac_cv_prog_LEX+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
be01d343
PB
7723else
7724 if test -n "$LEX"; then
7725 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7726else
c6b750e1
DJ
7727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728for as_dir in $PATH
7729do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7734 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7736 break 2
7737 fi
7738done
81ecdfbb
RW
7739 done
7740IFS=$as_save_IFS
c6b750e1 7741
be01d343
PB
7742fi
7743fi
c6b750e1 7744LEX=$ac_cv_prog_LEX
be01d343 7745if test -n "$LEX"; then
81ecdfbb
RW
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7747$as_echo "$LEX" >&6; }
be01d343 7748else
81ecdfbb
RW
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750$as_echo "no" >&6; }
be01d343
PB
7751fi
7752
81ecdfbb 7753
c6b750e1 7754 test -n "$LEX" && break
be01d343
PB
7755done
7756test -n "$LEX" || LEX="$MISSING flex"
7757
7758case " $build_configdirs " in
7759 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7760 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7761esac
7762
7763for ac_prog in flex
7764do
c6b750e1 7765 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7766set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768$as_echo_n "checking for $ac_word... " >&6; }
7769if test "${ac_cv_prog_FLEX+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
be01d343
PB
7771else
7772 if test -n "$FLEX"; then
7773 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7774else
c6b750e1
DJ
7775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776for as_dir in $PATH
7777do
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7782 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7784 break 2
7785 fi
7786done
81ecdfbb
RW
7787 done
7788IFS=$as_save_IFS
c6b750e1 7789
be01d343
PB
7790fi
7791fi
c6b750e1 7792FLEX=$ac_cv_prog_FLEX
be01d343 7793if test -n "$FLEX"; then
81ecdfbb
RW
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7795$as_echo "$FLEX" >&6; }
be01d343 7796else
81ecdfbb
RW
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798$as_echo "no" >&6; }
be01d343
PB
7799fi
7800
81ecdfbb 7801
c6b750e1 7802 test -n "$FLEX" && break
be01d343
PB
7803done
7804test -n "$FLEX" || FLEX="$MISSING flex"
7805
7806case " $build_configdirs " in
7807 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7808esac
7809
7810for ac_prog in makeinfo
7811do
c6b750e1 7812 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7813set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815$as_echo_n "checking for $ac_word... " >&6; }
7816if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
be01d343
PB
7818else
7819 if test -n "$MAKEINFO"; then
7820 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7821else
c6b750e1
DJ
7822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823for as_dir in $PATH
7824do
7825 IFS=$as_save_IFS
7826 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7829 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7831 break 2
7832 fi
7833done
81ecdfbb
RW
7834 done
7835IFS=$as_save_IFS
c6b750e1 7836
be01d343
PB
7837fi
7838fi
c6b750e1 7839MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7840if test -n "$MAKEINFO"; then
81ecdfbb
RW
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7842$as_echo "$MAKEINFO" >&6; }
be01d343 7843else
81ecdfbb
RW
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845$as_echo "no" >&6; }
be01d343
PB
7846fi
7847
81ecdfbb 7848
c6b750e1 7849 test -n "$MAKEINFO" && break
be01d343
PB
7850done
7851test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7852
7853case " $build_configdirs " in
7854 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7855 *)
7856
10ad8ef3 7857 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7858 # higher, else we use the "missing" dummy.
7859 if ${MAKEINFO} --version \
10ad8ef3 7860 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7861 :
7862 else
7863 MAKEINFO="$MISSING makeinfo"
7864 fi
7865 ;;
7866
7867esac
a0da8069 7868
be01d343 7869# FIXME: expect and dejagnu may become build tools?
a0da8069 7870
be01d343
PB
7871for ac_prog in expect
7872do
c6b750e1 7873 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7874set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876$as_echo_n "checking for $ac_word... " >&6; }
7877if test "${ac_cv_prog_EXPECT+set}" = set; then :
7878 $as_echo_n "(cached) " >&6
be01d343
PB
7879else
7880 if test -n "$EXPECT"; then
7881 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7882else
c6b750e1
DJ
7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884for as_dir in $PATH
7885do
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7890 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7892 break 2
7893 fi
7894done
81ecdfbb
RW
7895 done
7896IFS=$as_save_IFS
c6b750e1 7897
be01d343
PB
7898fi
7899fi
c6b750e1 7900EXPECT=$ac_cv_prog_EXPECT
be01d343 7901if test -n "$EXPECT"; then
81ecdfbb
RW
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7903$as_echo "$EXPECT" >&6; }
be01d343 7904else
81ecdfbb
RW
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906$as_echo "no" >&6; }
be01d343 7907fi
a0da8069 7908
81ecdfbb 7909
c6b750e1 7910 test -n "$EXPECT" && break
be01d343
PB
7911done
7912test -n "$EXPECT" || EXPECT="expect"
a0da8069 7913
be01d343
PB
7914case " $configdirs " in
7915 *" expect "*)
7916 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7917 ;;
7918esac
a0da8069 7919
be01d343
PB
7920for ac_prog in runtest
7921do
c6b750e1 7922 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7923set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925$as_echo_n "checking for $ac_word... " >&6; }
7926if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
be01d343
PB
7928else
7929 if test -n "$RUNTEST"; then
7930 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7931else
c6b750e1
DJ
7932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933for as_dir in $PATH
7934do
7935 IFS=$as_save_IFS
7936 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7939 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7941 break 2
7942 fi
7943done
81ecdfbb
RW
7944 done
7945IFS=$as_save_IFS
c6b750e1 7946
be01d343
PB
7947fi
7948fi
c6b750e1 7949RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7950if test -n "$RUNTEST"; then
81ecdfbb
RW
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7952$as_echo "$RUNTEST" >&6; }
be01d343 7953else
81ecdfbb
RW
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955$as_echo "no" >&6; }
be01d343 7956fi
a0da8069 7957
81ecdfbb 7958
c6b750e1 7959 test -n "$RUNTEST" && break
be01d343
PB
7960done
7961test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7962
be01d343
PB
7963case " $configdirs " in
7964 *" dejagnu "*)
6b89cc21 7965 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7966 ;;
7967esac
a0da8069
NN
7968
7969
a0da8069 7970# Host tools.
859789af
AC
7971ncn_tool_prefix=
7972test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7973ncn_target_tool_prefix=
7974test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7975
9a819804
AO
7976
7977
7978if test -n "$AR"; then
7979 ac_cv_prog_AR=$AR
7980elif test -n "$ac_cv_prog_AR"; then
7981 AR=$ac_cv_prog_AR
7982fi
7983
7984if test -n "$ac_cv_prog_AR"; then
7985 for ncn_progname in ar; do
7986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7987set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989$as_echo_n "checking for $ac_word... " >&6; }
7990if test "${ac_cv_prog_AR+set}" = set; then :
7991 $as_echo_n "(cached) " >&6
9a819804
AO
7992else
7993 if test -n "$AR"; then
7994 ac_cv_prog_AR="$AR" # Let the user override the test.
7995else
7996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997for as_dir in $PATH
7998do
7999 IFS=$as_save_IFS
8000 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8003 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8005 break 2
8006 fi
8007done
81ecdfbb
RW
8008 done
8009IFS=$as_save_IFS
9a819804
AO
8010
8011fi
8012fi
8013AR=$ac_cv_prog_AR
8014if test -n "$AR"; then
81ecdfbb
RW
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8016$as_echo "$AR" >&6; }
9a819804 8017else
81ecdfbb
RW
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019$as_echo "no" >&6; }
9a819804
AO
8020fi
8021
81ecdfbb 8022
9a819804
AO
8023 done
8024fi
8025
8026for ncn_progname in ar; do
05cbd757
PB
8027 if test -n "$ncn_tool_prefix"; then
8028 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8029set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031$as_echo_n "checking for $ac_word... " >&6; }
8032if test "${ac_cv_prog_AR+set}" = set; then :
8033 $as_echo_n "(cached) " >&6
859789af
AC
8034else
8035 if test -n "$AR"; then
8036 ac_cv_prog_AR="$AR" # Let the user override the test.
8037else
c6b750e1
DJ
8038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8045 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8047 break 2
8048 fi
8049done
81ecdfbb
RW
8050 done
8051IFS=$as_save_IFS
c6b750e1 8052
859789af
AC
8053fi
8054fi
c6b750e1 8055AR=$ac_cv_prog_AR
859789af 8056if test -n "$AR"; then
81ecdfbb
RW
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8058$as_echo "$AR" >&6; }
859789af 8059else
81ecdfbb
RW
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061$as_echo "no" >&6; }
859789af
AC
8062fi
8063
81ecdfbb 8064
05cbd757
PB
8065 fi
8066 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8068set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070$as_echo_n "checking for $ac_word... " >&6; }
8071if test "${ac_cv_prog_AR+set}" = set; then :
8072 $as_echo_n "(cached) " >&6
859789af 8073else
05cbd757
PB
8074 if test -n "$AR"; then
8075 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8076else
c6b750e1
DJ
8077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078for as_dir in $PATH
8079do
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8084 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8086 break 2
8087 fi
8088done
81ecdfbb
RW
8089 done
8090IFS=$as_save_IFS
c6b750e1 8091
859789af
AC
8092fi
8093fi
c6b750e1 8094AR=$ac_cv_prog_AR
05cbd757 8095if test -n "$AR"; then
81ecdfbb
RW
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8097$as_echo "$AR" >&6; }
859789af 8098else
81ecdfbb
RW
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100$as_echo "no" >&6; }
859789af 8101fi
c6b750e1 8102
81ecdfbb 8103
05cbd757
PB
8104 fi
8105 test -n "$ac_cv_prog_AR" && break
8106done
8107
8108if test -z "$ac_cv_prog_AR" ; then
8109 set dummy ar
8110 if test $build = $host ; then
8111 AR="$2"
859789af 8112 else
05cbd757 8113 AR="${ncn_tool_prefix}$2"
859789af 8114 fi
859789af
AC
8115fi
8116
9a819804
AO
8117
8118
8119if test -n "$AS"; then
8120 ac_cv_prog_AS=$AS
8121elif test -n "$ac_cv_prog_AS"; then
8122 AS=$ac_cv_prog_AS
8123fi
8124
8125if test -n "$ac_cv_prog_AS"; then
8126 for ncn_progname in as; do
8127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8128set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130$as_echo_n "checking for $ac_word... " >&6; }
8131if test "${ac_cv_prog_AS+set}" = set; then :
8132 $as_echo_n "(cached) " >&6
9a819804
AO
8133else
8134 if test -n "$AS"; then
8135 ac_cv_prog_AS="$AS" # Let the user override the test.
8136else
8137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138for as_dir in $PATH
8139do
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8144 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8146 break 2
8147 fi
8148done
81ecdfbb
RW
8149 done
8150IFS=$as_save_IFS
9a819804
AO
8151
8152fi
8153fi
8154AS=$ac_cv_prog_AS
8155if test -n "$AS"; then
81ecdfbb
RW
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8157$as_echo "$AS" >&6; }
9a819804 8158else
81ecdfbb
RW
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160$as_echo "no" >&6; }
9a819804
AO
8161fi
8162
81ecdfbb 8163
9a819804
AO
8164 done
8165fi
8166
8167for ncn_progname in as; do
05cbd757
PB
8168 if test -n "$ncn_tool_prefix"; then
8169 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8170set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172$as_echo_n "checking for $ac_word... " >&6; }
8173if test "${ac_cv_prog_AS+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
859789af
AC
8175else
8176 if test -n "$AS"; then
8177 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8178else
8179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180for as_dir in $PATH
8181do
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8186 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8188 break 2
8189 fi
8190done
81ecdfbb
RW
8191 done
8192IFS=$as_save_IFS
c6b750e1 8193
859789af
AC
8194fi
8195fi
c6b750e1 8196AS=$ac_cv_prog_AS
859789af 8197if test -n "$AS"; then
81ecdfbb
RW
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8199$as_echo "$AS" >&6; }
859789af 8200else
81ecdfbb
RW
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202$as_echo "no" >&6; }
859789af
AC
8203fi
8204
81ecdfbb 8205
05cbd757
PB
8206 fi
8207 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8209set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211$as_echo_n "checking for $ac_word... " >&6; }
8212if test "${ac_cv_prog_AS+set}" = set; then :
8213 $as_echo_n "(cached) " >&6
859789af 8214else
05cbd757
PB
8215 if test -n "$AS"; then
8216 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8217else
c6b750e1
DJ
8218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219for as_dir in $PATH
8220do
8221 IFS=$as_save_IFS
8222 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8225 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8227 break 2
8228 fi
8229done
81ecdfbb
RW
8230 done
8231IFS=$as_save_IFS
c6b750e1 8232
859789af
AC
8233fi
8234fi
c6b750e1 8235AS=$ac_cv_prog_AS
05cbd757 8236if test -n "$AS"; then
81ecdfbb
RW
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8238$as_echo "$AS" >&6; }
859789af 8239else
81ecdfbb
RW
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241$as_echo "no" >&6; }
859789af 8242fi
c6b750e1 8243
81ecdfbb 8244
05cbd757
PB
8245 fi
8246 test -n "$ac_cv_prog_AS" && break
8247done
8248
8249if test -z "$ac_cv_prog_AS" ; then
8250 set dummy as
8251 if test $build = $host ; then
8252 AS="$2"
859789af 8253 else
05cbd757 8254 AS="${ncn_tool_prefix}$2"
859789af 8255 fi
859789af
AC
8256fi
8257
9a819804
AO
8258
8259
8260if test -n "$DLLTOOL"; then
8261 ac_cv_prog_DLLTOOL=$DLLTOOL
8262elif test -n "$ac_cv_prog_DLLTOOL"; then
8263 DLLTOOL=$ac_cv_prog_DLLTOOL
8264fi
8265
8266if test -n "$ac_cv_prog_DLLTOOL"; then
8267 for ncn_progname in dlltool; do
8268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8269set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271$as_echo_n "checking for $ac_word... " >&6; }
8272if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
9a819804
AO
8274else
8275 if test -n "$DLLTOOL"; then
8276 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8277else
8278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279for as_dir in $PATH
8280do
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8285 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8287 break 2
8288 fi
8289done
81ecdfbb
RW
8290 done
8291IFS=$as_save_IFS
9a819804
AO
8292
8293fi
8294fi
8295DLLTOOL=$ac_cv_prog_DLLTOOL
8296if test -n "$DLLTOOL"; then
81ecdfbb
RW
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8298$as_echo "$DLLTOOL" >&6; }
9a819804 8299else
81ecdfbb
RW
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301$as_echo "no" >&6; }
9a819804
AO
8302fi
8303
81ecdfbb 8304
9a819804
AO
8305 done
8306fi
8307
8308for ncn_progname in dlltool; do
05cbd757
PB
8309 if test -n "$ncn_tool_prefix"; then
8310 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8311set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313$as_echo_n "checking for $ac_word... " >&6; }
8314if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
859789af
AC
8316else
8317 if test -n "$DLLTOOL"; then
8318 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8319else
c6b750e1
DJ
8320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321for as_dir in $PATH
8322do
8323 IFS=$as_save_IFS
8324 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8327 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8329 break 2
8330 fi
8331done
81ecdfbb
RW
8332 done
8333IFS=$as_save_IFS
c6b750e1 8334
859789af
AC
8335fi
8336fi
c6b750e1 8337DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8338if test -n "$DLLTOOL"; then
81ecdfbb
RW
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8340$as_echo "$DLLTOOL" >&6; }
859789af 8341else
81ecdfbb
RW
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343$as_echo "no" >&6; }
859789af
AC
8344fi
8345
81ecdfbb 8346
05cbd757
PB
8347 fi
8348 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8350set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352$as_echo_n "checking for $ac_word... " >&6; }
8353if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
859789af 8355else
05cbd757
PB
8356 if test -n "$DLLTOOL"; then
8357 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8358else
c6b750e1
DJ
8359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360for as_dir in $PATH
8361do
8362 IFS=$as_save_IFS
8363 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8366 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8368 break 2
8369 fi
8370done
81ecdfbb
RW
8371 done
8372IFS=$as_save_IFS
c6b750e1 8373
859789af
AC
8374fi
8375fi
c6b750e1 8376DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8377if test -n "$DLLTOOL"; then
81ecdfbb
RW
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8379$as_echo "$DLLTOOL" >&6; }
859789af 8380else
81ecdfbb
RW
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382$as_echo "no" >&6; }
859789af 8383fi
c6b750e1 8384
81ecdfbb 8385
05cbd757
PB
8386 fi
8387 test -n "$ac_cv_prog_DLLTOOL" && break
8388done
8389
8390if test -z "$ac_cv_prog_DLLTOOL" ; then
8391 set dummy dlltool
8392 if test $build = $host ; then
8393 DLLTOOL="$2"
859789af 8394 else
05cbd757 8395 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8396 fi
859789af
AC
8397fi
8398
9a819804
AO
8399
8400
8401if test -n "$LD"; then
8402 ac_cv_prog_LD=$LD
8403elif test -n "$ac_cv_prog_LD"; then
8404 LD=$ac_cv_prog_LD
8405fi
8406
8407if test -n "$ac_cv_prog_LD"; then
8408 for ncn_progname in ld; do
8409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8410set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412$as_echo_n "checking for $ac_word... " >&6; }
8413if test "${ac_cv_prog_LD+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
9a819804
AO
8415else
8416 if test -n "$LD"; then
8417 ac_cv_prog_LD="$LD" # Let the user override the test.
8418else
8419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8426 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8428 break 2
8429 fi
8430done
81ecdfbb
RW
8431 done
8432IFS=$as_save_IFS
9a819804
AO
8433
8434fi
8435fi
8436LD=$ac_cv_prog_LD
8437if test -n "$LD"; then
81ecdfbb
RW
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8439$as_echo "$LD" >&6; }
9a819804 8440else
81ecdfbb
RW
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442$as_echo "no" >&6; }
9a819804
AO
8443fi
8444
81ecdfbb 8445
9a819804
AO
8446 done
8447fi
8448
8449for ncn_progname in ld; do
05cbd757
PB
8450 if test -n "$ncn_tool_prefix"; then
8451 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8452set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454$as_echo_n "checking for $ac_word... " >&6; }
8455if test "${ac_cv_prog_LD+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
859789af
AC
8457else
8458 if test -n "$LD"; then
8459 ac_cv_prog_LD="$LD" # Let the user override the test.
8460else
c6b750e1
DJ
8461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462for as_dir in $PATH
8463do
8464 IFS=$as_save_IFS
8465 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8468 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8470 break 2
8471 fi
8472done
81ecdfbb
RW
8473 done
8474IFS=$as_save_IFS
c6b750e1 8475
859789af
AC
8476fi
8477fi
c6b750e1 8478LD=$ac_cv_prog_LD
859789af 8479if test -n "$LD"; then
81ecdfbb
RW
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8481$as_echo "$LD" >&6; }
859789af 8482else
81ecdfbb
RW
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484$as_echo "no" >&6; }
859789af
AC
8485fi
8486
81ecdfbb 8487
05cbd757
PB
8488 fi
8489 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8491set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493$as_echo_n "checking for $ac_word... " >&6; }
8494if test "${ac_cv_prog_LD+set}" = set; then :
8495 $as_echo_n "(cached) " >&6
859789af 8496else
05cbd757
PB
8497 if test -n "$LD"; then
8498 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8499else
c6b750e1
DJ
8500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501for as_dir in $PATH
8502do
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8507 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8509 break 2
8510 fi
8511done
81ecdfbb
RW
8512 done
8513IFS=$as_save_IFS
c6b750e1 8514
859789af
AC
8515fi
8516fi
c6b750e1 8517LD=$ac_cv_prog_LD
05cbd757 8518if test -n "$LD"; then
81ecdfbb
RW
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8520$as_echo "$LD" >&6; }
859789af 8521else
81ecdfbb
RW
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523$as_echo "no" >&6; }
859789af 8524fi
c6b750e1 8525
81ecdfbb 8526
05cbd757
PB
8527 fi
8528 test -n "$ac_cv_prog_LD" && break
8529done
8530
8531if test -z "$ac_cv_prog_LD" ; then
8532 set dummy ld
8533 if test $build = $host ; then
8534 LD="$2"
859789af 8535 else
05cbd757 8536 LD="${ncn_tool_prefix}$2"
859789af 8537 fi
859789af
AC
8538fi
8539
9a819804
AO
8540
8541
8542if test -n "$LIPO"; then
8543 ac_cv_prog_LIPO=$LIPO
8544elif test -n "$ac_cv_prog_LIPO"; then
8545 LIPO=$ac_cv_prog_LIPO
8546fi
8547
8548if test -n "$ac_cv_prog_LIPO"; then
8549 for ncn_progname in lipo; do
8550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8551set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553$as_echo_n "checking for $ac_word... " >&6; }
8554if test "${ac_cv_prog_LIPO+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
9a819804
AO
8556else
8557 if test -n "$LIPO"; then
8558 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8559else
8560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561for as_dir in $PATH
8562do
8563 IFS=$as_save_IFS
8564 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8567 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8569 break 2
8570 fi
8571done
81ecdfbb
RW
8572 done
8573IFS=$as_save_IFS
9a819804
AO
8574
8575fi
8576fi
8577LIPO=$ac_cv_prog_LIPO
8578if test -n "$LIPO"; then
81ecdfbb
RW
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8580$as_echo "$LIPO" >&6; }
9a819804 8581else
81ecdfbb
RW
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583$as_echo "no" >&6; }
9a819804
AO
8584fi
8585
81ecdfbb 8586
9a819804
AO
8587 done
8588fi
8589
8590for ncn_progname in lipo; do
be01d343
PB
8591 if test -n "$ncn_tool_prefix"; then
8592 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8593set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595$as_echo_n "checking for $ac_word... " >&6; }
8596if test "${ac_cv_prog_LIPO+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
be01d343
PB
8598else
8599 if test -n "$LIPO"; then
8600 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8601else
c6b750e1
DJ
8602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603for as_dir in $PATH
8604do
8605 IFS=$as_save_IFS
8606 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8609 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8611 break 2
8612 fi
8613done
81ecdfbb
RW
8614 done
8615IFS=$as_save_IFS
c6b750e1 8616
be01d343
PB
8617fi
8618fi
c6b750e1 8619LIPO=$ac_cv_prog_LIPO
be01d343 8620if test -n "$LIPO"; then
81ecdfbb
RW
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8622$as_echo "$LIPO" >&6; }
be01d343 8623else
81ecdfbb
RW
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625$as_echo "no" >&6; }
be01d343
PB
8626fi
8627
81ecdfbb 8628
be01d343
PB
8629 fi
8630 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8632set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8634$as_echo_n "checking for $ac_word... " >&6; }
8635if test "${ac_cv_prog_LIPO+set}" = set; then :
8636 $as_echo_n "(cached) " >&6
be01d343
PB
8637else
8638 if test -n "$LIPO"; then
8639 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8640else
c6b750e1
DJ
8641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642for as_dir in $PATH
8643do
8644 IFS=$as_save_IFS
8645 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8646 for ac_exec_ext in '' $ac_executable_extensions; do
8647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8648 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8650 break 2
8651 fi
8652done
81ecdfbb
RW
8653 done
8654IFS=$as_save_IFS
c6b750e1 8655
be01d343
PB
8656fi
8657fi
c6b750e1 8658LIPO=$ac_cv_prog_LIPO
be01d343 8659if test -n "$LIPO"; then
81ecdfbb
RW
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8661$as_echo "$LIPO" >&6; }
be01d343 8662else
81ecdfbb
RW
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664$as_echo "no" >&6; }
be01d343 8665fi
c6b750e1 8666
81ecdfbb 8667
be01d343
PB
8668 fi
8669 test -n "$ac_cv_prog_LIPO" && break
8670done
8671
8672if test -z "$ac_cv_prog_LIPO" ; then
8673 set dummy lipo
8674 if test $build = $host ; then
8675 LIPO="$2"
8676 else
8677 LIPO="${ncn_tool_prefix}$2"
8678 fi
8679fi
8680
9a819804
AO
8681
8682
8683if test -n "$NM"; then
8684 ac_cv_prog_NM=$NM
8685elif test -n "$ac_cv_prog_NM"; then
8686 NM=$ac_cv_prog_NM
8687fi
8688
8689if test -n "$ac_cv_prog_NM"; then
8690 for ncn_progname in nm; do
8691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8692set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694$as_echo_n "checking for $ac_word... " >&6; }
8695if test "${ac_cv_prog_NM+set}" = set; then :
8696 $as_echo_n "(cached) " >&6
859789af
AC
8697else
8698 if test -n "$NM"; then
8699 ac_cv_prog_NM="$NM" # Let the user override the test.
8700else
c6b750e1
DJ
8701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702for as_dir in $PATH
8703do
8704 IFS=$as_save_IFS
8705 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8706 for ac_exec_ext in '' $ac_executable_extensions; do
8707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8708 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8710 break 2
8711 fi
8712done
81ecdfbb
RW
8713 done
8714IFS=$as_save_IFS
c6b750e1 8715
859789af
AC
8716fi
8717fi
c6b750e1 8718NM=$ac_cv_prog_NM
859789af 8719if test -n "$NM"; then
81ecdfbb
RW
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8721$as_echo "$NM" >&6; }
859789af 8722else
81ecdfbb
RW
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724$as_echo "no" >&6; }
859789af
AC
8725fi
8726
81ecdfbb 8727
9a819804
AO
8728 done
8729fi
8730
8731for ncn_progname in nm; do
8732 if test -n "$ncn_tool_prefix"; then
8733 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8734set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736$as_echo_n "checking for $ac_word... " >&6; }
8737if test "${ac_cv_prog_NM+set}" = set; then :
8738 $as_echo_n "(cached) " >&6
859789af 8739else
05cbd757
PB
8740 if test -n "$NM"; then
8741 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8742else
c6b750e1
DJ
8743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744for as_dir in $PATH
8745do
8746 IFS=$as_save_IFS
8747 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8750 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8752 break 2
8753 fi
8754done
81ecdfbb
RW
8755 done
8756IFS=$as_save_IFS
c6b750e1 8757
859789af
AC
8758fi
8759fi
c6b750e1 8760NM=$ac_cv_prog_NM
05cbd757 8761if test -n "$NM"; then
81ecdfbb
RW
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8763$as_echo "$NM" >&6; }
859789af 8764else
81ecdfbb
RW
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766$as_echo "no" >&6; }
859789af 8767fi
c6b750e1 8768
81ecdfbb 8769
05cbd757 8770 fi
9a819804
AO
8771 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8773set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775$as_echo_n "checking for $ac_word... " >&6; }
8776if test "${ac_cv_prog_NM+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
9a819804
AO
8778else
8779 if test -n "$NM"; then
8780 ac_cv_prog_NM="$NM" # Let the user override the test.
8781else
8782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783for as_dir in $PATH
8784do
8785 IFS=$as_save_IFS
8786 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8787 for ac_exec_ext in '' $ac_executable_extensions; do
8788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8789 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8791 break 2
8792 fi
8793done
81ecdfbb
RW
8794 done
8795IFS=$as_save_IFS
9a819804
AO
8796
8797fi
8798fi
8799NM=$ac_cv_prog_NM
8800if test -n "$NM"; then
81ecdfbb
RW
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8802$as_echo "$NM" >&6; }
9a819804 8803else
81ecdfbb
RW
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805$as_echo "no" >&6; }
9a819804
AO
8806fi
8807
81ecdfbb 8808
9a819804
AO
8809 fi
8810 test -n "$ac_cv_prog_NM" && break
8811done
8812
8813if test -z "$ac_cv_prog_NM" ; then
8814 set dummy nm
8815 if test $build = $host ; then
8816 NM="$2"
8817 else
8818 NM="${ncn_tool_prefix}$2"
8819 fi
8820fi
8821
8822
8823
8824if test -n "$RANLIB"; then
8825 ac_cv_prog_RANLIB=$RANLIB
8826elif test -n "$ac_cv_prog_RANLIB"; then
8827 RANLIB=$ac_cv_prog_RANLIB
8828fi
8829
8830if test -n "$ac_cv_prog_RANLIB"; then
8831 for ncn_progname in ranlib; do
8832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8833set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835$as_echo_n "checking for $ac_word... " >&6; }
8836if test "${ac_cv_prog_RANLIB+set}" = set; then :
8837 $as_echo_n "(cached) " >&6
9a819804
AO
8838else
8839 if test -n "$RANLIB"; then
8840 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8841else
8842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843for as_dir in $PATH
8844do
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8849 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8851 break 2
8852 fi
8853done
81ecdfbb
RW
8854 done
8855IFS=$as_save_IFS
9a819804
AO
8856
8857fi
8858fi
8859RANLIB=$ac_cv_prog_RANLIB
8860if test -n "$RANLIB"; then
81ecdfbb
RW
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8862$as_echo "$RANLIB" >&6; }
9a819804 8863else
81ecdfbb
RW
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865$as_echo "no" >&6; }
9a819804
AO
8866fi
8867
81ecdfbb 8868
9a819804
AO
8869 done
8870fi
859789af 8871
9a819804 8872for ncn_progname in ranlib; do
05cbd757
PB
8873 if test -n "$ncn_tool_prefix"; then
8874 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8875set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877$as_echo_n "checking for $ac_word... " >&6; }
8878if test "${ac_cv_prog_RANLIB+set}" = set; then :
8879 $as_echo_n "(cached) " >&6
859789af
AC
8880else
8881 if test -n "$RANLIB"; then
8882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8883else
c6b750e1
DJ
8884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885for as_dir in $PATH
8886do
8887 IFS=$as_save_IFS
8888 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8889 for ac_exec_ext in '' $ac_executable_extensions; do
8890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8891 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8893 break 2
8894 fi
8895done
81ecdfbb
RW
8896 done
8897IFS=$as_save_IFS
c6b750e1 8898
859789af
AC
8899fi
8900fi
c6b750e1 8901RANLIB=$ac_cv_prog_RANLIB
859789af 8902if test -n "$RANLIB"; then
81ecdfbb
RW
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8904$as_echo "$RANLIB" >&6; }
859789af 8905else
81ecdfbb
RW
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907$as_echo "no" >&6; }
859789af
AC
8908fi
8909
81ecdfbb 8910
05cbd757
PB
8911 fi
8912 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8914set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8916$as_echo_n "checking for $ac_word... " >&6; }
8917if test "${ac_cv_prog_RANLIB+set}" = set; then :
8918 $as_echo_n "(cached) " >&6
859789af 8919else
05cbd757
PB
8920 if test -n "$RANLIB"; then
8921 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8922else
c6b750e1
DJ
8923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924for as_dir in $PATH
8925do
8926 IFS=$as_save_IFS
8927 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8928 for ac_exec_ext in '' $ac_executable_extensions; do
8929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8930 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8932 break 2
8933 fi
8934done
81ecdfbb
RW
8935 done
8936IFS=$as_save_IFS
c6b750e1 8937
859789af
AC
8938fi
8939fi
c6b750e1 8940RANLIB=$ac_cv_prog_RANLIB
05cbd757 8941if test -n "$RANLIB"; then
81ecdfbb
RW
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8943$as_echo "$RANLIB" >&6; }
859789af 8944else
81ecdfbb
RW
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946$as_echo "no" >&6; }
859789af 8947fi
c6b750e1 8948
81ecdfbb 8949
859789af 8950 fi
05cbd757
PB
8951 test -n "$ac_cv_prog_RANLIB" && break
8952done
8953
8954if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 8955 RANLIB="true"
859789af
AC
8956fi
8957
9a819804
AO
8958
8959
8960if test -n "$STRIP"; then
8961 ac_cv_prog_STRIP=$STRIP
8962elif test -n "$ac_cv_prog_STRIP"; then
8963 STRIP=$ac_cv_prog_STRIP
8964fi
8965
8966if test -n "$ac_cv_prog_STRIP"; then
8967 for ncn_progname in strip; do
8968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8969set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8971$as_echo_n "checking for $ac_word... " >&6; }
8972if test "${ac_cv_prog_STRIP+set}" = set; then :
8973 $as_echo_n "(cached) " >&6
9a819804
AO
8974else
8975 if test -n "$STRIP"; then
8976 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8977else
8978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979for as_dir in $PATH
8980do
8981 IFS=$as_save_IFS
8982 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8983 for ac_exec_ext in '' $ac_executable_extensions; do
8984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8985 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8987 break 2
8988 fi
8989done
81ecdfbb
RW
8990 done
8991IFS=$as_save_IFS
9a819804
AO
8992
8993fi
8994fi
8995STRIP=$ac_cv_prog_STRIP
8996if test -n "$STRIP"; then
81ecdfbb
RW
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8998$as_echo "$STRIP" >&6; }
9a819804 8999else
81ecdfbb
RW
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001$as_echo "no" >&6; }
9a819804
AO
9002fi
9003
81ecdfbb 9004
9a819804
AO
9005 done
9006fi
9007
9008for ncn_progname in strip; do
be01d343
PB
9009 if test -n "$ncn_tool_prefix"; then
9010 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9011set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9013$as_echo_n "checking for $ac_word... " >&6; }
9014if test "${ac_cv_prog_STRIP+set}" = set; then :
9015 $as_echo_n "(cached) " >&6
be01d343
PB
9016else
9017 if test -n "$STRIP"; then
9018 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9019else
c6b750e1
DJ
9020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9021for as_dir in $PATH
9022do
9023 IFS=$as_save_IFS
9024 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9025 for ac_exec_ext in '' $ac_executable_extensions; do
9026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9027 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9029 break 2
9030 fi
9031done
81ecdfbb
RW
9032 done
9033IFS=$as_save_IFS
c6b750e1 9034
be01d343
PB
9035fi
9036fi
c6b750e1 9037STRIP=$ac_cv_prog_STRIP
be01d343 9038if test -n "$STRIP"; then
81ecdfbb
RW
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9040$as_echo "$STRIP" >&6; }
be01d343 9041else
81ecdfbb
RW
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9043$as_echo "no" >&6; }
be01d343
PB
9044fi
9045
81ecdfbb 9046
be01d343
PB
9047 fi
9048 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9050set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9052$as_echo_n "checking for $ac_word... " >&6; }
9053if test "${ac_cv_prog_STRIP+set}" = set; then :
9054 $as_echo_n "(cached) " >&6
be01d343
PB
9055else
9056 if test -n "$STRIP"; then
9057 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9058else
c6b750e1
DJ
9059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9060for as_dir in $PATH
9061do
9062 IFS=$as_save_IFS
9063 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9064 for ac_exec_ext in '' $ac_executable_extensions; do
9065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9066 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9068 break 2
9069 fi
9070done
81ecdfbb
RW
9071 done
9072IFS=$as_save_IFS
c6b750e1 9073
be01d343
PB
9074fi
9075fi
c6b750e1 9076STRIP=$ac_cv_prog_STRIP
be01d343 9077if test -n "$STRIP"; then
81ecdfbb
RW
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9079$as_echo "$STRIP" >&6; }
be01d343 9080else
81ecdfbb
RW
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082$as_echo "no" >&6; }
be01d343 9083fi
c6b750e1 9084
81ecdfbb 9085
be01d343
PB
9086 fi
9087 test -n "$ac_cv_prog_STRIP" && break
9088done
9089
9090if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9091 STRIP="true"
be01d343
PB
9092fi
9093
9a819804
AO
9094
9095
9096if test -n "$WINDRES"; then
9097 ac_cv_prog_WINDRES=$WINDRES
9098elif test -n "$ac_cv_prog_WINDRES"; then
9099 WINDRES=$ac_cv_prog_WINDRES
9100fi
9101
9102if test -n "$ac_cv_prog_WINDRES"; then
9103 for ncn_progname in windres; do
9104 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9105set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9107$as_echo_n "checking for $ac_word... " >&6; }
9108if test "${ac_cv_prog_WINDRES+set}" = set; then :
9109 $as_echo_n "(cached) " >&6
9a819804
AO
9110else
9111 if test -n "$WINDRES"; then
9112 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9113else
9114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9115for as_dir in $PATH
9116do
9117 IFS=$as_save_IFS
9118 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9119 for ac_exec_ext in '' $ac_executable_extensions; do
9120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9121 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9123 break 2
9124 fi
9125done
81ecdfbb
RW
9126 done
9127IFS=$as_save_IFS
9a819804
AO
9128
9129fi
9130fi
9131WINDRES=$ac_cv_prog_WINDRES
9132if test -n "$WINDRES"; then
81ecdfbb
RW
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9134$as_echo "$WINDRES" >&6; }
9a819804 9135else
81ecdfbb
RW
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137$as_echo "no" >&6; }
9a819804
AO
9138fi
9139
81ecdfbb 9140
9a819804
AO
9141 done
9142fi
9143
9144for ncn_progname in windres; do
05cbd757
PB
9145 if test -n "$ncn_tool_prefix"; then
9146 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9147set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149$as_echo_n "checking for $ac_word... " >&6; }
9150if test "${ac_cv_prog_WINDRES+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
859789af
AC
9152else
9153 if test -n "$WINDRES"; then
9154 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9155else
c6b750e1
DJ
9156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9157for as_dir in $PATH
9158do
9159 IFS=$as_save_IFS
9160 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9161 for ac_exec_ext in '' $ac_executable_extensions; do
9162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9163 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9165 break 2
9166 fi
9167done
81ecdfbb
RW
9168 done
9169IFS=$as_save_IFS
c6b750e1 9170
859789af
AC
9171fi
9172fi
c6b750e1 9173WINDRES=$ac_cv_prog_WINDRES
859789af 9174if test -n "$WINDRES"; then
81ecdfbb
RW
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9176$as_echo "$WINDRES" >&6; }
859789af 9177else
81ecdfbb
RW
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179$as_echo "no" >&6; }
859789af
AC
9180fi
9181
81ecdfbb 9182
05cbd757
PB
9183 fi
9184 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9185 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9186set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9188$as_echo_n "checking for $ac_word... " >&6; }
9189if test "${ac_cv_prog_WINDRES+set}" = set; then :
9190 $as_echo_n "(cached) " >&6
859789af 9191else
05cbd757
PB
9192 if test -n "$WINDRES"; then
9193 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9194else
c6b750e1
DJ
9195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9196for as_dir in $PATH
9197do
9198 IFS=$as_save_IFS
9199 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9200 for ac_exec_ext in '' $ac_executable_extensions; do
9201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9202 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9204 break 2
9205 fi
9206done
81ecdfbb
RW
9207 done
9208IFS=$as_save_IFS
c6b750e1 9209
859789af
AC
9210fi
9211fi
c6b750e1 9212WINDRES=$ac_cv_prog_WINDRES
05cbd757 9213if test -n "$WINDRES"; then
81ecdfbb
RW
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9215$as_echo "$WINDRES" >&6; }
859789af 9216else
81ecdfbb
RW
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9218$as_echo "no" >&6; }
859789af 9219fi
c6b750e1 9220
81ecdfbb 9221
05cbd757
PB
9222 fi
9223 test -n "$ac_cv_prog_WINDRES" && break
9224done
9225
9226if test -z "$ac_cv_prog_WINDRES" ; then
9227 set dummy windres
9228 if test $build = $host ; then
9229 WINDRES="$2"
859789af 9230 else
05cbd757 9231 WINDRES="${ncn_tool_prefix}$2"
859789af 9232 fi
859789af
AC
9233fi
9234
9a819804
AO
9235
9236
0c24b341
NC
9237if test -n "$WINDMC"; then
9238 ac_cv_prog_WINDMC=$WINDMC
9239elif test -n "$ac_cv_prog_WINDMC"; then
9240 WINDMC=$ac_cv_prog_WINDMC
9241fi
9242
9243if test -n "$ac_cv_prog_WINDMC"; then
9244 for ncn_progname in windmc; do
9245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9246set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248$as_echo_n "checking for $ac_word... " >&6; }
9249if test "${ac_cv_prog_WINDMC+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
0c24b341
NC
9251else
9252 if test -n "$WINDMC"; then
9253 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9254else
9255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256for as_dir in $PATH
9257do
9258 IFS=$as_save_IFS
9259 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9262 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9264 break 2
9265 fi
9266done
81ecdfbb
RW
9267 done
9268IFS=$as_save_IFS
0c24b341
NC
9269
9270fi
9271fi
9272WINDMC=$ac_cv_prog_WINDMC
9273if test -n "$WINDMC"; then
81ecdfbb
RW
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9275$as_echo "$WINDMC" >&6; }
0c24b341 9276else
81ecdfbb
RW
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278$as_echo "no" >&6; }
0c24b341
NC
9279fi
9280
81ecdfbb 9281
0c24b341
NC
9282 done
9283fi
9284
9285for ncn_progname in windmc; do
9286 if test -n "$ncn_tool_prefix"; then
9287 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9288set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290$as_echo_n "checking for $ac_word... " >&6; }
9291if test "${ac_cv_prog_WINDMC+set}" = set; then :
9292 $as_echo_n "(cached) " >&6
0c24b341
NC
9293else
9294 if test -n "$WINDMC"; then
9295 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9296else
9297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298for as_dir in $PATH
9299do
9300 IFS=$as_save_IFS
9301 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9302 for ac_exec_ext in '' $ac_executable_extensions; do
9303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9304 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9306 break 2
9307 fi
9308done
81ecdfbb
RW
9309 done
9310IFS=$as_save_IFS
0c24b341
NC
9311
9312fi
9313fi
9314WINDMC=$ac_cv_prog_WINDMC
9315if test -n "$WINDMC"; then
81ecdfbb
RW
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9317$as_echo "$WINDMC" >&6; }
0c24b341 9318else
81ecdfbb
RW
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320$as_echo "no" >&6; }
0c24b341
NC
9321fi
9322
81ecdfbb 9323
0c24b341
NC
9324 fi
9325 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9327set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9329$as_echo_n "checking for $ac_word... " >&6; }
9330if test "${ac_cv_prog_WINDMC+set}" = set; then :
9331 $as_echo_n "(cached) " >&6
0c24b341
NC
9332else
9333 if test -n "$WINDMC"; then
9334 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9335else
9336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337for as_dir in $PATH
9338do
9339 IFS=$as_save_IFS
9340 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9341 for ac_exec_ext in '' $ac_executable_extensions; do
9342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9343 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9345 break 2
9346 fi
9347done
81ecdfbb
RW
9348 done
9349IFS=$as_save_IFS
0c24b341
NC
9350
9351fi
9352fi
9353WINDMC=$ac_cv_prog_WINDMC
9354if test -n "$WINDMC"; then
81ecdfbb
RW
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9356$as_echo "$WINDMC" >&6; }
0c24b341 9357else
81ecdfbb
RW
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9359$as_echo "no" >&6; }
0c24b341
NC
9360fi
9361
81ecdfbb 9362
0c24b341
NC
9363 fi
9364 test -n "$ac_cv_prog_WINDMC" && break
9365done
9366
9367if test -z "$ac_cv_prog_WINDMC" ; then
9368 set dummy windmc
9369 if test $build = $host ; then
9370 WINDMC="$2"
9371 else
9372 WINDMC="${ncn_tool_prefix}$2"
9373 fi
9374fi
9375
9376
9377
9a819804
AO
9378if test -n "$OBJCOPY"; then
9379 ac_cv_prog_OBJCOPY=$OBJCOPY
9380elif test -n "$ac_cv_prog_OBJCOPY"; then
9381 OBJCOPY=$ac_cv_prog_OBJCOPY
9382fi
9383
9384if test -n "$ac_cv_prog_OBJCOPY"; then
9385 for ncn_progname in objcopy; do
9386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9387set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9389$as_echo_n "checking for $ac_word... " >&6; }
9390if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9391 $as_echo_n "(cached) " >&6
9a819804
AO
9392else
9393 if test -n "$OBJCOPY"; then
9394 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9395else
9396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397for as_dir in $PATH
9398do
9399 IFS=$as_save_IFS
9400 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9401 for ac_exec_ext in '' $ac_executable_extensions; do
9402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9403 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9405 break 2
9406 fi
9407done
81ecdfbb
RW
9408 done
9409IFS=$as_save_IFS
9a819804
AO
9410
9411fi
9412fi
9413OBJCOPY=$ac_cv_prog_OBJCOPY
9414if test -n "$OBJCOPY"; then
81ecdfbb
RW
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9416$as_echo "$OBJCOPY" >&6; }
9a819804 9417else
81ecdfbb
RW
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419$as_echo "no" >&6; }
9a819804
AO
9420fi
9421
81ecdfbb 9422
9a819804
AO
9423 done
9424fi
9425
9426for ncn_progname in objcopy; do
05cbd757
PB
9427 if test -n "$ncn_tool_prefix"; then
9428 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9429set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9431$as_echo_n "checking for $ac_word... " >&6; }
9432if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
859789af
AC
9434else
9435 if test -n "$OBJCOPY"; then
9436 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9437else
c6b750e1
DJ
9438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439for as_dir in $PATH
9440do
9441 IFS=$as_save_IFS
9442 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9443 for ac_exec_ext in '' $ac_executable_extensions; do
9444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9445 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9447 break 2
9448 fi
9449done
81ecdfbb
RW
9450 done
9451IFS=$as_save_IFS
c6b750e1 9452
859789af
AC
9453fi
9454fi
c6b750e1 9455OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9456if test -n "$OBJCOPY"; then
81ecdfbb
RW
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9458$as_echo "$OBJCOPY" >&6; }
859789af 9459else
81ecdfbb
RW
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461$as_echo "no" >&6; }
859789af
AC
9462fi
9463
81ecdfbb 9464
05cbd757
PB
9465 fi
9466 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9468set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9470$as_echo_n "checking for $ac_word... " >&6; }
9471if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9472 $as_echo_n "(cached) " >&6
859789af 9473else
05cbd757
PB
9474 if test -n "$OBJCOPY"; then
9475 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9476else
c6b750e1
DJ
9477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478for as_dir in $PATH
9479do
9480 IFS=$as_save_IFS
9481 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9482 for ac_exec_ext in '' $ac_executable_extensions; do
9483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9484 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9486 break 2
9487 fi
9488done
81ecdfbb
RW
9489 done
9490IFS=$as_save_IFS
c6b750e1 9491
859789af
AC
9492fi
9493fi
c6b750e1 9494OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9495if test -n "$OBJCOPY"; then
81ecdfbb
RW
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9497$as_echo "$OBJCOPY" >&6; }
859789af 9498else
81ecdfbb
RW
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500$as_echo "no" >&6; }
859789af 9501fi
c6b750e1 9502
81ecdfbb 9503
05cbd757
PB
9504 fi
9505 test -n "$ac_cv_prog_OBJCOPY" && break
9506done
9507
9508if test -z "$ac_cv_prog_OBJCOPY" ; then
9509 set dummy objcopy
9510 if test $build = $host ; then
9511 OBJCOPY="$2"
859789af 9512 else
05cbd757 9513 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9514 fi
859789af
AC
9515fi
9516
9a819804
AO
9517
9518
9519if test -n "$OBJDUMP"; then
9520 ac_cv_prog_OBJDUMP=$OBJDUMP
9521elif test -n "$ac_cv_prog_OBJDUMP"; then
9522 OBJDUMP=$ac_cv_prog_OBJDUMP
9523fi
9524
9525if test -n "$ac_cv_prog_OBJDUMP"; then
9526 for ncn_progname in objdump; do
9527 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9528set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530$as_echo_n "checking for $ac_word... " >&6; }
9531if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
9a819804
AO
9533else
9534 if test -n "$OBJDUMP"; then
9535 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9536else
9537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538for as_dir in $PATH
9539do
9540 IFS=$as_save_IFS
9541 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9544 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9546 break 2
9547 fi
9548done
81ecdfbb
RW
9549 done
9550IFS=$as_save_IFS
9a819804
AO
9551
9552fi
9553fi
9554OBJDUMP=$ac_cv_prog_OBJDUMP
9555if test -n "$OBJDUMP"; then
81ecdfbb
RW
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9557$as_echo "$OBJDUMP" >&6; }
9a819804 9558else
81ecdfbb
RW
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560$as_echo "no" >&6; }
9a819804
AO
9561fi
9562
81ecdfbb 9563
9a819804
AO
9564 done
9565fi
9566
9567for ncn_progname in objdump; do
05cbd757
PB
9568 if test -n "$ncn_tool_prefix"; then
9569 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9570set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9572$as_echo_n "checking for $ac_word... " >&6; }
9573if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9574 $as_echo_n "(cached) " >&6
859789af
AC
9575else
9576 if test -n "$OBJDUMP"; then
9577 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9578else
c6b750e1
DJ
9579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580for as_dir in $PATH
9581do
9582 IFS=$as_save_IFS
9583 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9584 for ac_exec_ext in '' $ac_executable_extensions; do
9585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9586 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9588 break 2
9589 fi
9590done
81ecdfbb
RW
9591 done
9592IFS=$as_save_IFS
c6b750e1 9593
859789af
AC
9594fi
9595fi
c6b750e1 9596OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9597if test -n "$OBJDUMP"; then
81ecdfbb
RW
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9599$as_echo "$OBJDUMP" >&6; }
859789af 9600else
81ecdfbb
RW
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602$as_echo "no" >&6; }
859789af
AC
9603fi
9604
81ecdfbb 9605
05cbd757
PB
9606 fi
9607 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9608 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9609set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9611$as_echo_n "checking for $ac_word... " >&6; }
9612if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9613 $as_echo_n "(cached) " >&6
859789af 9614else
05cbd757
PB
9615 if test -n "$OBJDUMP"; then
9616 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9617else
c6b750e1
DJ
9618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619for as_dir in $PATH
9620do
9621 IFS=$as_save_IFS
9622 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9623 for ac_exec_ext in '' $ac_executable_extensions; do
9624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9625 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9627 break 2
9628 fi
9629done
81ecdfbb
RW
9630 done
9631IFS=$as_save_IFS
c6b750e1 9632
859789af
AC
9633fi
9634fi
c6b750e1 9635OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9636if test -n "$OBJDUMP"; then
81ecdfbb
RW
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9638$as_echo "$OBJDUMP" >&6; }
859789af 9639else
81ecdfbb
RW
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9641$as_echo "no" >&6; }
859789af 9642fi
c6b750e1 9643
81ecdfbb 9644
05cbd757
PB
9645 fi
9646 test -n "$ac_cv_prog_OBJDUMP" && break
9647done
9648
9649if test -z "$ac_cv_prog_OBJDUMP" ; then
9650 set dummy objdump
9651 if test $build = $host ; then
9652 OBJDUMP="$2"
859789af 9653 else
05cbd757 9654 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9655 fi
859789af
AC
9656fi
9657
a0da8069
NN
9658
9659
9660
9661
9662
be01d343 9663# Target tools.
c6b750e1 9664
81ecdfbb
RW
9665# Check whether --with-build-time-tools was given.
9666if test "${with_build_time_tools+set}" = set; then :
9667 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9668 x/*) ;;
9669 *)
9670 with_build_time_tools=
81ecdfbb
RW
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9672$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9673 ;;
9674 esac
859789af 9675else
2429c060 9676 with_build_time_tools=
81ecdfbb
RW
9677fi
9678
859789af 9679
9a819804
AO
9680
9681
9682if test -n "$CC_FOR_TARGET"; then
9683 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9684elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9685 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9686fi
9687
9688if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9689 for ncn_progname in cc gcc; do
9690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9691set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9693$as_echo_n "checking for $ac_word... " >&6; }
9694if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9695 $as_echo_n "(cached) " >&6
9a819804
AO
9696else
9697 if test -n "$CC_FOR_TARGET"; then
9698 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9699else
9700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9701for as_dir in $PATH
9702do
9703 IFS=$as_save_IFS
9704 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9705 for ac_exec_ext in '' $ac_executable_extensions; do
9706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9707 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9709 break 2
9710 fi
9711done
81ecdfbb
RW
9712 done
9713IFS=$as_save_IFS
9a819804
AO
9714
9715fi
9716fi
9717CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9718if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9720$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9721else
81ecdfbb
RW
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9723$as_echo "no" >&6; }
9a819804
AO
9724fi
9725
81ecdfbb 9726
9a819804
AO
9727 done
9728fi
9729
9730if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9731 for ncn_progname in cc gcc; do
81ecdfbb
RW
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9733$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9734 if test -x $with_build_time_tools/${ncn_progname}; then
9735 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9737$as_echo "yes" >&6; }
cac3d6c4 9738 break
2429c060 9739 else
81ecdfbb
RW
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741$as_echo "no" >&6; }
cac3d6c4
CM
9742 fi
9743 done
55db4b87
PB
9744fi
9745
2429c060
PB
9746if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9747 for ncn_progname in cc gcc; do
9748 if test -n "$ncn_target_tool_prefix"; then
9749 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9750set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9752$as_echo_n "checking for $ac_word... " >&6; }
9753if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9754 $as_echo_n "(cached) " >&6
55db4b87
PB
9755else
9756 if test -n "$CC_FOR_TARGET"; then
9757 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9758else
c6b750e1
DJ
9759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760for as_dir in $PATH
9761do
9762 IFS=$as_save_IFS
9763 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9764 for ac_exec_ext in '' $ac_executable_extensions; do
9765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9766 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9768 break 2
9769 fi
9770done
81ecdfbb
RW
9771 done
9772IFS=$as_save_IFS
c6b750e1 9773
55db4b87
PB
9774fi
9775fi
c6b750e1 9776CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9777if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9779$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9780else
81ecdfbb
RW
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782$as_echo "no" >&6; }
55db4b87
PB
9783fi
9784
81ecdfbb 9785
2429c060
PB
9786 fi
9787 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9788 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9789set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9791$as_echo_n "checking for $ac_word... " >&6; }
9792if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9793 $as_echo_n "(cached) " >&6
55db4b87 9794else
05cbd757
PB
9795 if test -n "$CC_FOR_TARGET"; then
9796 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9797else
c6b750e1
DJ
9798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9799for as_dir in $PATH
9800do
9801 IFS=$as_save_IFS
9802 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9803 for ac_exec_ext in '' $ac_executable_extensions; do
9804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9805 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9807 break 2
9808 fi
9809done
81ecdfbb
RW
9810 done
9811IFS=$as_save_IFS
c6b750e1 9812
55db4b87
PB
9813fi
9814fi
c6b750e1 9815CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9816if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9818$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9819else
81ecdfbb
RW
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9821$as_echo "no" >&6; }
55db4b87 9822fi
c6b750e1 9823
81ecdfbb 9824
2429c060
PB
9825 fi
9826 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9827 done
9828fi
c6b750e1 9829
05cbd757
PB
9830if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9831 set dummy cc gcc
9832 if test $build = $target ; then
9833 CC_FOR_TARGET="$2"
55db4b87 9834 else
05cbd757 9835 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9836 fi
d3f5afc4
MS
9837else
9838 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9839fi
9840
9a819804
AO
9841
9842
9843if test -n "$CXX_FOR_TARGET"; then
9844 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9845elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9846 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9847fi
9848
9849if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9850 for ncn_progname in c++ g++ cxx gxx; do
9851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9852set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9854$as_echo_n "checking for $ac_word... " >&6; }
9855if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9856 $as_echo_n "(cached) " >&6
9a819804
AO
9857else
9858 if test -n "$CXX_FOR_TARGET"; then
9859 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9860else
9861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862for as_dir in $PATH
9863do
9864 IFS=$as_save_IFS
9865 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9866 for ac_exec_ext in '' $ac_executable_extensions; do
9867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9868 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9870 break 2
9871 fi
9872done
81ecdfbb
RW
9873 done
9874IFS=$as_save_IFS
9a819804
AO
9875
9876fi
9877fi
9878CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9879if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9881$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9882else
81ecdfbb
RW
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884$as_echo "no" >&6; }
9a819804
AO
9885fi
9886
81ecdfbb 9887
9a819804
AO
9888 done
9889fi
9890
9891if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9892 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9894$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9895 if test -x $with_build_time_tools/${ncn_progname}; then
9896 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9898$as_echo "yes" >&6; }
2429c060
PB
9899 break
9900 else
81ecdfbb
RW
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9902$as_echo "no" >&6; }
2429c060
PB
9903 fi
9904 done
9905fi
9906
9907if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9908 for ncn_progname in c++ g++ cxx gxx; do
9909 if test -n "$ncn_target_tool_prefix"; then
9910 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9911set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9913$as_echo_n "checking for $ac_word... " >&6; }
9914if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9915 $as_echo_n "(cached) " >&6
55db4b87
PB
9916else
9917 if test -n "$CXX_FOR_TARGET"; then
9918 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9919else
c6b750e1
DJ
9920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921for as_dir in $PATH
9922do
9923 IFS=$as_save_IFS
9924 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9925 for ac_exec_ext in '' $ac_executable_extensions; do
9926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9927 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9929 break 2
9930 fi
9931done
81ecdfbb
RW
9932 done
9933IFS=$as_save_IFS
c6b750e1 9934
55db4b87
PB
9935fi
9936fi
c6b750e1 9937CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9938if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9940$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9941else
81ecdfbb
RW
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9943$as_echo "no" >&6; }
55db4b87
PB
9944fi
9945
81ecdfbb 9946
2429c060
PB
9947 fi
9948 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9950set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9952$as_echo_n "checking for $ac_word... " >&6; }
9953if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9954 $as_echo_n "(cached) " >&6
55db4b87 9955else
05cbd757
PB
9956 if test -n "$CXX_FOR_TARGET"; then
9957 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9958else
c6b750e1
DJ
9959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9960for as_dir in $PATH
9961do
9962 IFS=$as_save_IFS
9963 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9964 for ac_exec_ext in '' $ac_executable_extensions; do
9965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9966 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9968 break 2
9969 fi
9970done
81ecdfbb
RW
9971 done
9972IFS=$as_save_IFS
c6b750e1 9973
55db4b87
PB
9974fi
9975fi
c6b750e1 9976CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9977if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9979$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9980else
81ecdfbb
RW
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9982$as_echo "no" >&6; }
55db4b87 9983fi
c6b750e1 9984
81ecdfbb 9985
2429c060
PB
9986 fi
9987 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9988 done
9989fi
c6b750e1 9990
05cbd757
PB
9991if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9992 set dummy c++ g++ cxx gxx
9993 if test $build = $target ; then
9994 CXX_FOR_TARGET="$2"
55db4b87 9995 else
05cbd757 9996 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9997 fi
d3f5afc4
MS
9998else
9999 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10000fi
10001
9a819804
AO
10002
10003
10004if test -n "$GCC_FOR_TARGET"; then
10005 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10006elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10007 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10008fi
10009
10010if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10011 for ncn_progname in gcc; do
10012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10013set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10015$as_echo_n "checking for $ac_word... " >&6; }
10016if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10017 $as_echo_n "(cached) " >&6
9a819804
AO
10018else
10019 if test -n "$GCC_FOR_TARGET"; then
10020 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10021else
10022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10023for as_dir in $PATH
10024do
10025 IFS=$as_save_IFS
10026 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10027 for ac_exec_ext in '' $ac_executable_extensions; do
10028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10029 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10031 break 2
10032 fi
10033done
81ecdfbb
RW
10034 done
10035IFS=$as_save_IFS
9a819804
AO
10036
10037fi
10038fi
10039GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10040if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10042$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10043else
81ecdfbb
RW
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10045$as_echo "no" >&6; }
9a819804
AO
10046fi
10047
81ecdfbb 10048
9a819804
AO
10049 done
10050fi
10051
10052if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10053 for ncn_progname in gcc; do
81ecdfbb
RW
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10055$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10056 if test -x $with_build_time_tools/${ncn_progname}; then
10057 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10059$as_echo "yes" >&6; }
2429c060
PB
10060 break
10061 else
81ecdfbb
RW
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10063$as_echo "no" >&6; }
2429c060
PB
10064 fi
10065 done
10066fi
10067
10068if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10069 for ncn_progname in gcc; do
10070 if test -n "$ncn_target_tool_prefix"; then
10071 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10072set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10074$as_echo_n "checking for $ac_word... " >&6; }
10075if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10076 $as_echo_n "(cached) " >&6
859789af 10077else
2429c060
PB
10078 if test -n "$GCC_FOR_TARGET"; then
10079 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10080else
c6b750e1
DJ
10081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10082for as_dir in $PATH
10083do
10084 IFS=$as_save_IFS
10085 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10086 for ac_exec_ext in '' $ac_executable_extensions; do
10087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10088 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10090 break 2
10091 fi
10092done
81ecdfbb
RW
10093 done
10094IFS=$as_save_IFS
c6b750e1 10095
55db4b87
PB
10096fi
10097fi
c6b750e1 10098GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10099if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10101$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10102else
81ecdfbb
RW
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10104$as_echo "no" >&6; }
55db4b87
PB
10105fi
10106
81ecdfbb 10107
2429c060
PB
10108 fi
10109 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10111set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10113$as_echo_n "checking for $ac_word... " >&6; }
10114if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10115 $as_echo_n "(cached) " >&6
55db4b87 10116else
05cbd757
PB
10117 if test -n "$GCC_FOR_TARGET"; then
10118 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10119else
c6b750e1
DJ
10120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10121for as_dir in $PATH
10122do
10123 IFS=$as_save_IFS
10124 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10125 for ac_exec_ext in '' $ac_executable_extensions; do
10126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10127 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10129 break 2
10130 fi
10131done
81ecdfbb
RW
10132 done
10133IFS=$as_save_IFS
c6b750e1 10134
55db4b87
PB
10135fi
10136fi
c6b750e1 10137GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10138if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10140$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10141else
81ecdfbb
RW
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10143$as_echo "no" >&6; }
55db4b87 10144fi
c6b750e1 10145
81ecdfbb 10146
2429c060
PB
10147 fi
10148 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10149 done
10150fi
c6b750e1 10151
05cbd757
PB
10152if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10153 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10154else
10155 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10156fi
10157
9a819804
AO
10158
10159
10160if test -n "$GCJ_FOR_TARGET"; then
10161 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10162elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10163 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10164fi
10165
10166if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10167 for ncn_progname in gcj; do
10168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10169set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10171$as_echo_n "checking for $ac_word... " >&6; }
10172if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10173 $as_echo_n "(cached) " >&6
9a819804
AO
10174else
10175 if test -n "$GCJ_FOR_TARGET"; then
10176 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10177else
10178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179for as_dir in $PATH
10180do
10181 IFS=$as_save_IFS
10182 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10183 for ac_exec_ext in '' $ac_executable_extensions; do
10184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10185 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10187 break 2
10188 fi
10189done
81ecdfbb
RW
10190 done
10191IFS=$as_save_IFS
9a819804
AO
10192
10193fi
10194fi
10195GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10196if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10198$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10199else
81ecdfbb
RW
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10201$as_echo "no" >&6; }
9a819804
AO
10202fi
10203
81ecdfbb 10204
9a819804
AO
10205 done
10206fi
10207
10208if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10209 for ncn_progname in gcj; do
81ecdfbb
RW
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10211$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10212 if test -x $with_build_time_tools/${ncn_progname}; then
10213 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10215$as_echo "yes" >&6; }
2429c060
PB
10216 break
10217 else
81ecdfbb
RW
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10219$as_echo "no" >&6; }
2429c060
PB
10220 fi
10221 done
10222fi
10223
10224if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10225 for ncn_progname in gcj; do
10226 if test -n "$ncn_target_tool_prefix"; then
10227 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10228set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10230$as_echo_n "checking for $ac_word... " >&6; }
10231if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10232 $as_echo_n "(cached) " >&6
55db4b87
PB
10233else
10234 if test -n "$GCJ_FOR_TARGET"; then
10235 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10236else
c6b750e1
DJ
10237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238for as_dir in $PATH
10239do
10240 IFS=$as_save_IFS
10241 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10242 for ac_exec_ext in '' $ac_executable_extensions; do
10243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10244 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10246 break 2
10247 fi
10248done
81ecdfbb
RW
10249 done
10250IFS=$as_save_IFS
c6b750e1 10251
55db4b87
PB
10252fi
10253fi
9a819804
AO
10254GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10255if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10257$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10258else
81ecdfbb
RW
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10260$as_echo "no" >&6; }
9a819804
AO
10261fi
10262
81ecdfbb 10263
9a819804
AO
10264 fi
10265 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10267set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269$as_echo_n "checking for $ac_word... " >&6; }
10270if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10271 $as_echo_n "(cached) " >&6
9a819804
AO
10272else
10273 if test -n "$GCJ_FOR_TARGET"; then
10274 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10275else
10276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277for as_dir in $PATH
10278do
10279 IFS=$as_save_IFS
10280 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10281 for ac_exec_ext in '' $ac_executable_extensions; do
10282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10283 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10285 break 2
10286 fi
10287done
81ecdfbb
RW
10288 done
10289IFS=$as_save_IFS
9a819804
AO
10290
10291fi
10292fi
10293GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10294if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10296$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10297else
81ecdfbb
RW
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299$as_echo "no" >&6; }
9a819804
AO
10300fi
10301
81ecdfbb 10302
9a819804
AO
10303 fi
10304 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10305 done
10306fi
10307
10308if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10309 set dummy gcj
10310 if test $build = $target ; then
10311 GCJ_FOR_TARGET="$2"
10312 else
10313 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10314 fi
d3f5afc4
MS
10315else
10316 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10317fi
10318
10319
10320
10321if test -n "$GFORTRAN_FOR_TARGET"; then
10322 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10323elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10324 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10325fi
10326
9a819804
AO
10327if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10328 for ncn_progname in gfortran; do
10329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10330set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10332$as_echo_n "checking for $ac_word... " >&6; }
10333if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10334 $as_echo_n "(cached) " >&6
55db4b87 10335else
9a819804
AO
10336 if test -n "$GFORTRAN_FOR_TARGET"; then
10337 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10338else
c6b750e1
DJ
10339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10340for as_dir in $PATH
10341do
10342 IFS=$as_save_IFS
10343 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10344 for ac_exec_ext in '' $ac_executable_extensions; do
10345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10346 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10348 break 2
10349 fi
10350done
81ecdfbb
RW
10351 done
10352IFS=$as_save_IFS
c6b750e1 10353
55db4b87
PB
10354fi
10355fi
9a819804
AO
10356GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10357if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10359$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10360else
81ecdfbb
RW
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362$as_echo "no" >&6; }
55db4b87 10363fi
c6b750e1 10364
81ecdfbb 10365
2429c060
PB
10366 done
10367fi
c6b750e1 10368
9a819804 10369if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10370 for ncn_progname in gfortran; do
81ecdfbb
RW
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10372$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10373 if test -x $with_build_time_tools/${ncn_progname}; then
10374 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10376$as_echo "yes" >&6; }
2429c060
PB
10377 break
10378 else
81ecdfbb
RW
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380$as_echo "no" >&6; }
2429c060
PB
10381 fi
10382 done
10383fi
10384
10385if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10386 for ncn_progname in gfortran; do
10387 if test -n "$ncn_target_tool_prefix"; then
10388 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10389set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10391$as_echo_n "checking for $ac_word... " >&6; }
10392if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10393 $as_echo_n "(cached) " >&6
55db4b87
PB
10394else
10395 if test -n "$GFORTRAN_FOR_TARGET"; then
10396 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10397else
c6b750e1
DJ
10398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10399for as_dir in $PATH
10400do
10401 IFS=$as_save_IFS
10402 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10403 for ac_exec_ext in '' $ac_executable_extensions; do
10404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10405 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10407 break 2
10408 fi
10409done
81ecdfbb
RW
10410 done
10411IFS=$as_save_IFS
c6b750e1 10412
55db4b87
PB
10413fi
10414fi
c6b750e1 10415GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10416if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10418$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10419else
81ecdfbb
RW
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10421$as_echo "no" >&6; }
55db4b87
PB
10422fi
10423
81ecdfbb 10424
2429c060
PB
10425 fi
10426 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10428set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430$as_echo_n "checking for $ac_word... " >&6; }
10431if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10432 $as_echo_n "(cached) " >&6
55db4b87 10433else
05cbd757 10434 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10435 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10436else
10437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438for as_dir in $PATH
10439do
10440 IFS=$as_save_IFS
10441 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10442 for ac_exec_ext in '' $ac_executable_extensions; do
10443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10444 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10446 break 2
10447 fi
10448done
81ecdfbb
RW
10449 done
10450IFS=$as_save_IFS
c6b750e1 10451
55db4b87
PB
10452fi
10453fi
c6b750e1 10454GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10455if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10457$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10458else
81ecdfbb
RW
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460$as_echo "no" >&6; }
55db4b87 10461fi
c6b750e1 10462
81ecdfbb 10463
2429c060
PB
10464 fi
10465 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10466 done
10467fi
c6b750e1 10468
05cbd757
PB
10469if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10470 set dummy gfortran
10471 if test $build = $target ; then
10472 GFORTRAN_FOR_TARGET="$2"
55db4b87 10473 else
05cbd757 10474 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10475 fi
d3f5afc4
MS
10476else
10477 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10478fi
10479
2429c060
PB
10480
10481
e552509b
ILT
10482if test -n "$GOC_FOR_TARGET"; then
10483 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10484elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10485 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10486fi
10487
10488if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10489 for ncn_progname in gccgo; do
10490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10491set dummy ${ncn_progname}; ac_word=$2
10492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10493$as_echo_n "checking for $ac_word... " >&6; }
10494if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10495 $as_echo_n "(cached) " >&6
10496else
10497 if test -n "$GOC_FOR_TARGET"; then
10498 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10499else
10500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501for as_dir in $PATH
10502do
10503 IFS=$as_save_IFS
10504 test -z "$as_dir" && as_dir=.
10505 for ac_exec_ext in '' $ac_executable_extensions; do
10506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10507 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10509 break 2
10510 fi
10511done
10512 done
10513IFS=$as_save_IFS
10514
10515fi
10516fi
10517GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10518if test -n "$GOC_FOR_TARGET"; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10520$as_echo "$GOC_FOR_TARGET" >&6; }
10521else
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523$as_echo "no" >&6; }
10524fi
10525
10526
10527 done
10528fi
10529
10530if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10531 for ncn_progname in gccgo; do
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10533$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10534 if test -x $with_build_time_tools/${ncn_progname}; then
10535 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10537$as_echo "yes" >&6; }
10538 break
10539 else
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10541$as_echo "no" >&6; }
10542 fi
10543 done
10544fi
10545
10546if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10547 for ncn_progname in gccgo; do
10548 if test -n "$ncn_target_tool_prefix"; then
10549 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10550set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10552$as_echo_n "checking for $ac_word... " >&6; }
10553if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10554 $as_echo_n "(cached) " >&6
10555else
10556 if test -n "$GOC_FOR_TARGET"; then
10557 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10558else
10559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10560for as_dir in $PATH
10561do
10562 IFS=$as_save_IFS
10563 test -z "$as_dir" && as_dir=.
10564 for ac_exec_ext in '' $ac_executable_extensions; do
10565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10566 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10568 break 2
10569 fi
10570done
10571 done
10572IFS=$as_save_IFS
10573
10574fi
10575fi
10576GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10577if test -n "$GOC_FOR_TARGET"; then
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10579$as_echo "$GOC_FOR_TARGET" >&6; }
10580else
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10582$as_echo "no" >&6; }
10583fi
10584
10585
10586 fi
10587 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10588 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10589set dummy ${ncn_progname}; ac_word=$2
10590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10591$as_echo_n "checking for $ac_word... " >&6; }
10592if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10593 $as_echo_n "(cached) " >&6
10594else
10595 if test -n "$GOC_FOR_TARGET"; then
10596 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10597else
10598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10599for as_dir in $PATH
10600do
10601 IFS=$as_save_IFS
10602 test -z "$as_dir" && as_dir=.
10603 for ac_exec_ext in '' $ac_executable_extensions; do
10604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10605 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10607 break 2
10608 fi
10609done
10610 done
10611IFS=$as_save_IFS
10612
10613fi
10614fi
10615GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10616if test -n "$GOC_FOR_TARGET"; then
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10618$as_echo "$GOC_FOR_TARGET" >&6; }
10619else
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10621$as_echo "no" >&6; }
10622fi
10623
10624
10625 fi
10626 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10627 done
10628fi
10629
10630if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10631 set dummy gccgo
10632 if test $build = $target ; then
10633 GOC_FOR_TARGET="$2"
10634 else
10635 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10636 fi
10637else
10638 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10639fi
10640
10641
10642
2429c060
PB
10643cat > conftest.c << \EOF
10644#ifdef __GNUC__
10645 gcc_yay;
10646#endif
10647EOF
10648if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10649 have_gcc_for_target=yes
859789af 10650else
2429c060
PB
10651 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10652 have_gcc_for_target=no
859789af 10653fi
2429c060
PB
10654rm conftest.c
10655
10656
10657
859789af 10658
2429c060
PB
10659if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10660 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10662$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10663 if test -x $with_build_time_tools/ar; then
10664 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10665 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10667$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10668 else
81ecdfbb
RW
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670$as_echo "no" >&6; }
3a35eeb3 10671 fi
2429c060
PB
10672 elif test $build != $host && test $have_gcc_for_target = yes; then
10673 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10674 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10675 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10676 fi
2429c060 10677fi
c6b750e1 10678if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10679 # Extract the first word of "ar", so it can be a program name with args.
10680set dummy ar; ac_word=$2
81ecdfbb
RW
10681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10682$as_echo_n "checking for $ac_word... " >&6; }
10683if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10684 $as_echo_n "(cached) " >&6
859789af 10685else
c6b750e1
DJ
10686 case $AR_FOR_TARGET in
10687 [\\/]* | ?:[\\/]*)
2429c060
PB
10688 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10689 ;;
2429c060 10690 *)
c6b750e1
DJ
10691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10692for as_dir in $gcc_cv_tool_dirs
10693do
10694 IFS=$as_save_IFS
10695 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10696 for ac_exec_ext in '' $ac_executable_extensions; do
10697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10698 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10700 break 2
10701 fi
10702done
81ecdfbb
RW
10703 done
10704IFS=$as_save_IFS
c6b750e1 10705
2429c060
PB
10706 ;;
10707esac
859789af 10708fi
c6b750e1 10709AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10710if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10712$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10713else
81ecdfbb
RW
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715$as_echo "no" >&6; }
859789af 10716fi
05cbd757 10717
81ecdfbb 10718
2429c060
PB
10719fi
10720if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10721
10722
10723if test -n "$AR_FOR_TARGET"; then
10724 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10725elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10726 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10727fi
10728
10729if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10730 for ncn_progname in ar; do
10731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10732set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10734$as_echo_n "checking for $ac_word... " >&6; }
10735if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10736 $as_echo_n "(cached) " >&6
9a819804
AO
10737else
10738 if test -n "$AR_FOR_TARGET"; then
10739 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10740else
10741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10742for as_dir in $PATH
10743do
10744 IFS=$as_save_IFS
10745 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10746 for ac_exec_ext in '' $ac_executable_extensions; do
10747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10748 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10750 break 2
10751 fi
10752done
81ecdfbb
RW
10753 done
10754IFS=$as_save_IFS
9a819804
AO
10755
10756fi
10757fi
10758AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10759if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10761$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10762else
81ecdfbb
RW
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764$as_echo "no" >&6; }
9a819804
AO
10765fi
10766
81ecdfbb 10767
9a819804
AO
10768 done
10769fi
10770
10771if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10772 for ncn_progname in ar; do
81ecdfbb
RW
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10774$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10775 if test -x $with_build_time_tools/${ncn_progname}; then
10776 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10778$as_echo "yes" >&6; }
2429c060
PB
10779 break
10780 else
81ecdfbb
RW
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782$as_echo "no" >&6; }
2429c060
PB
10783 fi
10784 done
859789af
AC
10785fi
10786
2429c060
PB
10787if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10788 for ncn_progname in ar; do
10789 if test -n "$ncn_target_tool_prefix"; then
10790 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10791set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10793$as_echo_n "checking for $ac_word... " >&6; }
10794if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10795 $as_echo_n "(cached) " >&6
7e0f7140 10796else
2429c060
PB
10797 if test -n "$AR_FOR_TARGET"; then
10798 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10799else
c6b750e1
DJ
10800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801for as_dir in $PATH
10802do
10803 IFS=$as_save_IFS
10804 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10807 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10809 break 2
10810 fi
10811done
81ecdfbb
RW
10812 done
10813IFS=$as_save_IFS
c6b750e1 10814
7e0f7140
GK
10815fi
10816fi
c6b750e1 10817AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10818if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10820$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10821else
81ecdfbb
RW
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823$as_echo "no" >&6; }
7e0f7140
GK
10824fi
10825
81ecdfbb 10826
2429c060
PB
10827 fi
10828 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10830set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10832$as_echo_n "checking for $ac_word... " >&6; }
10833if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10834 $as_echo_n "(cached) " >&6
7e0f7140 10835else
2429c060
PB
10836 if test -n "$AR_FOR_TARGET"; then
10837 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10838else
c6b750e1
DJ
10839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840for as_dir in $PATH
10841do
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10846 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10848 break 2
10849 fi
10850done
81ecdfbb
RW
10851 done
10852IFS=$as_save_IFS
c6b750e1 10853
7e0f7140
GK
10854fi
10855fi
c6b750e1 10856AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10857if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10859$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10860else
81ecdfbb
RW
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862$as_echo "no" >&6; }
7e0f7140 10863fi
c6b750e1 10864
81ecdfbb 10865
2429c060
PB
10866 fi
10867 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10868 done
10869fi
c6b750e1 10870
2429c060
PB
10871if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10872 set dummy ar
7e0f7140 10873 if test $build = $target ; then
2429c060 10874 AR_FOR_TARGET="$2"
7e0f7140 10875 else
2429c060 10876 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10877 fi
d3f5afc4
MS
10878else
10879 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10880fi
10881
3a35eeb3
PB
10882else
10883 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10884fi
10885
10886
10887
10888
10889if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10890 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10892$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10893 if test -x $with_build_time_tools/as; then
10894 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10895 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10897$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10898 else
81ecdfbb
RW
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10900$as_echo "no" >&6; }
3a35eeb3 10901 fi
2429c060
PB
10902 elif test $build != $host && test $have_gcc_for_target = yes; then
10903 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10904 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10905 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10906 fi
10907fi
c6b750e1 10908if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10909 # Extract the first word of "as", so it can be a program name with args.
10910set dummy as; ac_word=$2
81ecdfbb
RW
10911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10912$as_echo_n "checking for $ac_word... " >&6; }
10913if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10914 $as_echo_n "(cached) " >&6
2429c060 10915else
c6b750e1
DJ
10916 case $AS_FOR_TARGET in
10917 [\\/]* | ?:[\\/]*)
2429c060
PB
10918 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10919 ;;
2429c060 10920 *)
c6b750e1
DJ
10921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10922for as_dir in $gcc_cv_tool_dirs
10923do
10924 IFS=$as_save_IFS
10925 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10926 for ac_exec_ext in '' $ac_executable_extensions; do
10927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10928 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10930 break 2
10931 fi
10932done
81ecdfbb
RW
10933 done
10934IFS=$as_save_IFS
c6b750e1 10935
2429c060
PB
10936 ;;
10937esac
10938fi
c6b750e1 10939AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10940if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10942$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10943else
81ecdfbb
RW
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945$as_echo "no" >&6; }
2429c060
PB
10946fi
10947
81ecdfbb 10948
2429c060
PB
10949fi
10950if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10951
10952
10953if test -n "$AS_FOR_TARGET"; then
10954 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10955elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10956 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10957fi
10958
10959if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10960 for ncn_progname in as; do
10961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10962set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10964$as_echo_n "checking for $ac_word... " >&6; }
10965if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10966 $as_echo_n "(cached) " >&6
9a819804
AO
10967else
10968 if test -n "$AS_FOR_TARGET"; then
10969 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10970else
10971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972for as_dir in $PATH
10973do
10974 IFS=$as_save_IFS
10975 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10976 for ac_exec_ext in '' $ac_executable_extensions; do
10977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10978 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10980 break 2
10981 fi
10982done
81ecdfbb
RW
10983 done
10984IFS=$as_save_IFS
9a819804
AO
10985
10986fi
10987fi
10988AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10989if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10991$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 10992else
81ecdfbb
RW
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994$as_echo "no" >&6; }
9a819804
AO
10995fi
10996
81ecdfbb 10997
9a819804
AO
10998 done
10999fi
11000
11001if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11002 for ncn_progname in as; do
81ecdfbb
RW
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11004$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11005 if test -x $with_build_time_tools/${ncn_progname}; then
11006 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11008$as_echo "yes" >&6; }
2429c060
PB
11009 break
11010 else
81ecdfbb
RW
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11012$as_echo "no" >&6; }
2429c060
PB
11013 fi
11014 done
11015fi
11016
11017if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11018 for ncn_progname in as; do
11019 if test -n "$ncn_target_tool_prefix"; then
11020 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11021set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11023$as_echo_n "checking for $ac_word... " >&6; }
11024if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11025 $as_echo_n "(cached) " >&6
2429c060
PB
11026else
11027 if test -n "$AS_FOR_TARGET"; then
11028 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11029else
c6b750e1
DJ
11030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11031for as_dir in $PATH
11032do
11033 IFS=$as_save_IFS
11034 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11035 for ac_exec_ext in '' $ac_executable_extensions; do
11036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11037 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11039 break 2
11040 fi
11041done
81ecdfbb
RW
11042 done
11043IFS=$as_save_IFS
c6b750e1 11044
2429c060
PB
11045fi
11046fi
c6b750e1 11047AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11048if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11050$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11051else
81ecdfbb
RW
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053$as_echo "no" >&6; }
2429c060
PB
11054fi
11055
81ecdfbb 11056
2429c060
PB
11057 fi
11058 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11060set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11062$as_echo_n "checking for $ac_word... " >&6; }
11063if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11064 $as_echo_n "(cached) " >&6
2429c060
PB
11065else
11066 if test -n "$AS_FOR_TARGET"; then
11067 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11068else
c6b750e1
DJ
11069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11070for as_dir in $PATH
11071do
11072 IFS=$as_save_IFS
11073 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11074 for ac_exec_ext in '' $ac_executable_extensions; do
11075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11076 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11078 break 2
11079 fi
11080done
81ecdfbb
RW
11081 done
11082IFS=$as_save_IFS
c6b750e1 11083
2429c060
PB
11084fi
11085fi
c6b750e1 11086AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11087if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11089$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11090else
81ecdfbb
RW
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11092$as_echo "no" >&6; }
2429c060 11093fi
c6b750e1 11094
81ecdfbb 11095
2429c060
PB
11096 fi
11097 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11098 done
11099fi
c6b750e1 11100
2429c060
PB
11101if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11102 set dummy as
11103 if test $build = $target ; then
11104 AS_FOR_TARGET="$2"
11105 else
11106 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11107 fi
d3f5afc4
MS
11108else
11109 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11110fi
11111
3a35eeb3
PB
11112else
11113 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11114fi
11115
11116
11117
11118
11119if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11120 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11122$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11123 if test -x $with_build_time_tools/dlltool; then
11124 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11125 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11127$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11128 else
81ecdfbb
RW
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130$as_echo "no" >&6; }
3a35eeb3 11131 fi
2429c060
PB
11132 elif test $build != $host && test $have_gcc_for_target = yes; then
11133 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11134 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11135 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11136 fi
11137fi
c6b750e1 11138if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11139 # Extract the first word of "dlltool", so it can be a program name with args.
11140set dummy dlltool; ac_word=$2
81ecdfbb
RW
11141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11142$as_echo_n "checking for $ac_word... " >&6; }
11143if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11144 $as_echo_n "(cached) " >&6
2429c060 11145else
c6b750e1
DJ
11146 case $DLLTOOL_FOR_TARGET in
11147 [\\/]* | ?:[\\/]*)
2429c060
PB
11148 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11149 ;;
2429c060 11150 *)
c6b750e1
DJ
11151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152for as_dir in $gcc_cv_tool_dirs
11153do
11154 IFS=$as_save_IFS
11155 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11156 for ac_exec_ext in '' $ac_executable_extensions; do
11157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11158 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11160 break 2
11161 fi
11162done
81ecdfbb
RW
11163 done
11164IFS=$as_save_IFS
c6b750e1 11165
2429c060
PB
11166 ;;
11167esac
11168fi
c6b750e1 11169DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11170if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11172$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11173else
81ecdfbb
RW
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175$as_echo "no" >&6; }
2429c060
PB
11176fi
11177
81ecdfbb 11178
2429c060
PB
11179fi
11180if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11181
11182
11183if test -n "$DLLTOOL_FOR_TARGET"; then
11184 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11185elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11186 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11187fi
11188
11189if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11190 for ncn_progname in dlltool; do
11191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11192set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11194$as_echo_n "checking for $ac_word... " >&6; }
11195if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11196 $as_echo_n "(cached) " >&6
9a819804
AO
11197else
11198 if test -n "$DLLTOOL_FOR_TARGET"; then
11199 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11200else
11201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202for as_dir in $PATH
11203do
11204 IFS=$as_save_IFS
11205 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11208 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11210 break 2
11211 fi
11212done
81ecdfbb
RW
11213 done
11214IFS=$as_save_IFS
9a819804
AO
11215
11216fi
11217fi
11218DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11219if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11221$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11222else
81ecdfbb
RW
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224$as_echo "no" >&6; }
9a819804
AO
11225fi
11226
81ecdfbb 11227
9a819804
AO
11228 done
11229fi
11230
11231if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11232 for ncn_progname in dlltool; do
81ecdfbb
RW
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11234$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11235 if test -x $with_build_time_tools/${ncn_progname}; then
11236 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11238$as_echo "yes" >&6; }
2429c060
PB
11239 break
11240 else
81ecdfbb
RW
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242$as_echo "no" >&6; }
2429c060
PB
11243 fi
11244 done
11245fi
11246
11247if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11248 for ncn_progname in dlltool; do
11249 if test -n "$ncn_target_tool_prefix"; then
11250 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11251set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11253$as_echo_n "checking for $ac_word... " >&6; }
11254if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11255 $as_echo_n "(cached) " >&6
2429c060
PB
11256else
11257 if test -n "$DLLTOOL_FOR_TARGET"; then
11258 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11259else
c6b750e1
DJ
11260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261for as_dir in $PATH
11262do
11263 IFS=$as_save_IFS
11264 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11265 for ac_exec_ext in '' $ac_executable_extensions; do
11266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11267 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11269 break 2
11270 fi
11271done
81ecdfbb
RW
11272 done
11273IFS=$as_save_IFS
c6b750e1 11274
2429c060
PB
11275fi
11276fi
c6b750e1 11277DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11278if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11280$as_echo "$DLLTOOL_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
11287 fi
11288 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11290set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11292$as_echo_n "checking for $ac_word... " >&6; }
11293if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11294 $as_echo_n "(cached) " >&6
2429c060
PB
11295else
11296 if test -n "$DLLTOOL_FOR_TARGET"; then
11297 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11298else
c6b750e1
DJ
11299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300for as_dir in $PATH
11301do
11302 IFS=$as_save_IFS
11303 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11304 for ac_exec_ext in '' $ac_executable_extensions; do
11305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11306 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11308 break 2
11309 fi
11310done
81ecdfbb
RW
11311 done
11312IFS=$as_save_IFS
c6b750e1 11313
2429c060
PB
11314fi
11315fi
c6b750e1 11316DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11317if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11319$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11320else
81ecdfbb
RW
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322$as_echo "no" >&6; }
2429c060 11323fi
c6b750e1 11324
81ecdfbb 11325
2429c060
PB
11326 fi
11327 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11328 done
11329fi
c6b750e1 11330
2429c060
PB
11331if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11332 set dummy dlltool
11333 if test $build = $target ; then
11334 DLLTOOL_FOR_TARGET="$2"
11335 else
11336 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11337 fi
d3f5afc4
MS
11338else
11339 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11340fi
11341
3a35eeb3
PB
11342else
11343 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11344fi
11345
11346
11347
11348
11349if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11350 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11352$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11353 if test -x $with_build_time_tools/ld; then
11354 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11355 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11357$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11358 else
81ecdfbb
RW
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11360$as_echo "no" >&6; }
3a35eeb3 11361 fi
2429c060
PB
11362 elif test $build != $host && test $have_gcc_for_target = yes; then
11363 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11364 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11365 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11366 fi
11367fi
c6b750e1 11368if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11369 # Extract the first word of "ld", so it can be a program name with args.
11370set dummy ld; ac_word=$2
81ecdfbb
RW
11371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11372$as_echo_n "checking for $ac_word... " >&6; }
11373if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11374 $as_echo_n "(cached) " >&6
2429c060 11375else
c6b750e1
DJ
11376 case $LD_FOR_TARGET in
11377 [\\/]* | ?:[\\/]*)
2429c060
PB
11378 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11379 ;;
2429c060 11380 *)
c6b750e1
DJ
11381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11382for as_dir in $gcc_cv_tool_dirs
11383do
11384 IFS=$as_save_IFS
11385 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11386 for ac_exec_ext in '' $ac_executable_extensions; do
11387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11388 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11390 break 2
11391 fi
11392done
81ecdfbb
RW
11393 done
11394IFS=$as_save_IFS
c6b750e1 11395
2429c060
PB
11396 ;;
11397esac
11398fi
c6b750e1 11399LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11400if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11402$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11403else
81ecdfbb
RW
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405$as_echo "no" >&6; }
2429c060
PB
11406fi
11407
81ecdfbb 11408
2429c060
PB
11409fi
11410if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11411
11412
11413if test -n "$LD_FOR_TARGET"; then
11414 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11415elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11416 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11417fi
11418
11419if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11420 for ncn_progname in ld; do
11421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11422set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11424$as_echo_n "checking for $ac_word... " >&6; }
11425if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11426 $as_echo_n "(cached) " >&6
9a819804
AO
11427else
11428 if test -n "$LD_FOR_TARGET"; then
11429 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11430else
11431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432for as_dir in $PATH
11433do
11434 IFS=$as_save_IFS
11435 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11436 for ac_exec_ext in '' $ac_executable_extensions; do
11437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11438 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11440 break 2
11441 fi
11442done
81ecdfbb
RW
11443 done
11444IFS=$as_save_IFS
9a819804
AO
11445
11446fi
11447fi
11448LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11449if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11451$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11452else
81ecdfbb
RW
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11454$as_echo "no" >&6; }
9a819804
AO
11455fi
11456
81ecdfbb 11457
9a819804
AO
11458 done
11459fi
11460
11461if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11462 for ncn_progname in ld; do
81ecdfbb
RW
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11464$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11465 if test -x $with_build_time_tools/${ncn_progname}; then
11466 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11468$as_echo "yes" >&6; }
2429c060
PB
11469 break
11470 else
81ecdfbb
RW
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472$as_echo "no" >&6; }
2429c060
PB
11473 fi
11474 done
11475fi
11476
11477if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11478 for ncn_progname in ld; do
11479 if test -n "$ncn_target_tool_prefix"; then
11480 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11481set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11483$as_echo_n "checking for $ac_word... " >&6; }
11484if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11485 $as_echo_n "(cached) " >&6
2429c060
PB
11486else
11487 if test -n "$LD_FOR_TARGET"; then
11488 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11489else
c6b750e1
DJ
11490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491for as_dir in $PATH
11492do
11493 IFS=$as_save_IFS
11494 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11495 for ac_exec_ext in '' $ac_executable_extensions; do
11496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11497 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11499 break 2
11500 fi
11501done
81ecdfbb
RW
11502 done
11503IFS=$as_save_IFS
c6b750e1 11504
2429c060
PB
11505fi
11506fi
c6b750e1 11507LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11508if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11510$as_echo "$LD_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
11517 fi
11518 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11520set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11522$as_echo_n "checking for $ac_word... " >&6; }
11523if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11524 $as_echo_n "(cached) " >&6
2429c060
PB
11525else
11526 if test -n "$LD_FOR_TARGET"; then
11527 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11528else
c6b750e1
DJ
11529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530for as_dir in $PATH
11531do
11532 IFS=$as_save_IFS
11533 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11534 for ac_exec_ext in '' $ac_executable_extensions; do
11535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11536 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11538 break 2
11539 fi
11540done
81ecdfbb
RW
11541 done
11542IFS=$as_save_IFS
c6b750e1 11543
2429c060
PB
11544fi
11545fi
c6b750e1 11546LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11547if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11549$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11550else
81ecdfbb
RW
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552$as_echo "no" >&6; }
2429c060 11553fi
c6b750e1 11554
81ecdfbb 11555
2429c060
PB
11556 fi
11557 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11558 done
11559fi
c6b750e1 11560
2429c060
PB
11561if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11562 set dummy ld
11563 if test $build = $target ; then
11564 LD_FOR_TARGET="$2"
11565 else
11566 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11567 fi
d3f5afc4
MS
11568else
11569 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11570fi
11571
3a35eeb3
PB
11572else
11573 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11574fi
11575
11576
11577
11578
11579if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11580 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11582$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11583 if test -x $with_build_time_tools/lipo; then
11584 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11585 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11587$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11588 else
81ecdfbb
RW
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11590$as_echo "no" >&6; }
3a35eeb3 11591 fi
2429c060
PB
11592 elif test $build != $host && test $have_gcc_for_target = yes; then
11593 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11594 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11595 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11596 fi
11597fi
9a819804
AO
11598if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11599 # Extract the first word of "lipo", so it can be a program name with args.
11600set dummy lipo; ac_word=$2
81ecdfbb
RW
11601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11602$as_echo_n "checking for $ac_word... " >&6; }
11603if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11604 $as_echo_n "(cached) " >&6
9a819804
AO
11605else
11606 case $LIPO_FOR_TARGET in
11607 [\\/]* | ?:[\\/]*)
11608 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11609 ;;
11610 *)
11611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11612for as_dir in $gcc_cv_tool_dirs
11613do
11614 IFS=$as_save_IFS
11615 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11616 for ac_exec_ext in '' $ac_executable_extensions; do
11617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11618 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11620 break 2
11621 fi
11622done
81ecdfbb
RW
11623 done
11624IFS=$as_save_IFS
9a819804
AO
11625
11626 ;;
11627esac
11628fi
11629LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11630if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11632$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11633else
81ecdfbb
RW
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635$as_echo "no" >&6; }
9a819804
AO
11636fi
11637
81ecdfbb 11638
9a819804
AO
11639fi
11640if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11641
11642
11643if test -n "$LIPO_FOR_TARGET"; then
11644 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11645elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11646 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11647fi
11648
11649if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11650 for ncn_progname in lipo; do
11651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11652set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11654$as_echo_n "checking for $ac_word... " >&6; }
11655if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11656 $as_echo_n "(cached) " >&6
2429c060 11657else
9a819804
AO
11658 if test -n "$LIPO_FOR_TARGET"; then
11659 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11660else
11661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11662for as_dir in $PATH
c6b750e1
DJ
11663do
11664 IFS=$as_save_IFS
11665 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11666 for ac_exec_ext in '' $ac_executable_extensions; do
11667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11668 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11670 break 2
11671 fi
11672done
81ecdfbb
RW
11673 done
11674IFS=$as_save_IFS
c6b750e1 11675
2429c060 11676fi
9a819804
AO
11677fi
11678LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11679if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11681$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11682else
81ecdfbb
RW
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684$as_echo "no" >&6; }
2429c060
PB
11685fi
11686
81ecdfbb 11687
9a819804 11688 done
2429c060 11689fi
9a819804
AO
11690
11691if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11692 for ncn_progname in lipo; do
81ecdfbb
RW
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11694$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11695 if test -x $with_build_time_tools/${ncn_progname}; then
11696 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11698$as_echo "yes" >&6; }
2429c060
PB
11699 break
11700 else
81ecdfbb
RW
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11702$as_echo "no" >&6; }
2429c060
PB
11703 fi
11704 done
11705fi
11706
11707if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11708 for ncn_progname in lipo; do
11709 if test -n "$ncn_target_tool_prefix"; then
11710 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11711set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11713$as_echo_n "checking for $ac_word... " >&6; }
11714if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11715 $as_echo_n "(cached) " >&6
2429c060
PB
11716else
11717 if test -n "$LIPO_FOR_TARGET"; then
11718 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11719else
c6b750e1
DJ
11720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11721for as_dir in $PATH
11722do
11723 IFS=$as_save_IFS
11724 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11725 for ac_exec_ext in '' $ac_executable_extensions; do
11726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11727 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11729 break 2
11730 fi
11731done
81ecdfbb
RW
11732 done
11733IFS=$as_save_IFS
c6b750e1 11734
2429c060
PB
11735fi
11736fi
c6b750e1 11737LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11738if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11740$as_echo "$LIPO_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
11747 fi
11748 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11749 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11750set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11752$as_echo_n "checking for $ac_word... " >&6; }
11753if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11754 $as_echo_n "(cached) " >&6
2429c060
PB
11755else
11756 if test -n "$LIPO_FOR_TARGET"; then
11757 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11758else
c6b750e1
DJ
11759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760for as_dir in $PATH
11761do
11762 IFS=$as_save_IFS
11763 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11764 for ac_exec_ext in '' $ac_executable_extensions; do
11765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11766 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11768 break 2
11769 fi
11770done
81ecdfbb
RW
11771 done
11772IFS=$as_save_IFS
c6b750e1 11773
2429c060
PB
11774fi
11775fi
c6b750e1 11776LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11777if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11779$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11780else
81ecdfbb
RW
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11782$as_echo "no" >&6; }
2429c060 11783fi
c6b750e1 11784
81ecdfbb 11785
2429c060
PB
11786 fi
11787 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11788 done
11789fi
c6b750e1 11790
2429c060
PB
11791if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11792 set dummy lipo
11793 if test $build = $target ; then
11794 LIPO_FOR_TARGET="$2"
11795 else
11796 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11797 fi
d3f5afc4
MS
11798else
11799 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11800fi
11801
3a35eeb3
PB
11802else
11803 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11804fi
11805
11806
11807
11808
11809if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11810 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11812$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11813 if test -x $with_build_time_tools/nm; then
11814 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11815 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11817$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11818 else
81ecdfbb
RW
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11820$as_echo "no" >&6; }
3a35eeb3 11821 fi
2429c060
PB
11822 elif test $build != $host && test $have_gcc_for_target = yes; then
11823 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11824 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11825 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11826 fi
11827fi
c6b750e1 11828if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11829 # Extract the first word of "nm", so it can be a program name with args.
11830set dummy nm; ac_word=$2
81ecdfbb
RW
11831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11832$as_echo_n "checking for $ac_word... " >&6; }
11833if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11834 $as_echo_n "(cached) " >&6
2429c060 11835else
c6b750e1
DJ
11836 case $NM_FOR_TARGET in
11837 [\\/]* | ?:[\\/]*)
2429c060
PB
11838 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11839 ;;
2429c060 11840 *)
c6b750e1
DJ
11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842for as_dir in $gcc_cv_tool_dirs
11843do
11844 IFS=$as_save_IFS
11845 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11846 for ac_exec_ext in '' $ac_executable_extensions; do
11847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11848 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11850 break 2
11851 fi
11852done
81ecdfbb
RW
11853 done
11854IFS=$as_save_IFS
c6b750e1 11855
2429c060
PB
11856 ;;
11857esac
11858fi
c6b750e1 11859NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11860if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11862$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11863else
81ecdfbb
RW
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865$as_echo "no" >&6; }
2429c060
PB
11866fi
11867
81ecdfbb 11868
2429c060
PB
11869fi
11870if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11871
11872
11873if test -n "$NM_FOR_TARGET"; then
11874 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11875elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11876 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11877fi
11878
11879if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11880 for ncn_progname in nm; do
11881 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11882set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11884$as_echo_n "checking for $ac_word... " >&6; }
11885if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11886 $as_echo_n "(cached) " >&6
9a819804
AO
11887else
11888 if test -n "$NM_FOR_TARGET"; then
11889 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11890else
11891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892for as_dir in $PATH
11893do
11894 IFS=$as_save_IFS
11895 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11898 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11900 break 2
11901 fi
11902done
81ecdfbb
RW
11903 done
11904IFS=$as_save_IFS
9a819804
AO
11905
11906fi
11907fi
11908NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11909if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11911$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11912else
81ecdfbb
RW
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914$as_echo "no" >&6; }
9a819804
AO
11915fi
11916
81ecdfbb 11917
9a819804
AO
11918 done
11919fi
11920
11921if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11922 for ncn_progname in nm; do
81ecdfbb
RW
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11924$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11925 if test -x $with_build_time_tools/${ncn_progname}; then
11926 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11928$as_echo "yes" >&6; }
2429c060
PB
11929 break
11930 else
81ecdfbb
RW
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932$as_echo "no" >&6; }
2429c060
PB
11933 fi
11934 done
11935fi
11936
11937if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11938 for ncn_progname in nm; do
11939 if test -n "$ncn_target_tool_prefix"; then
11940 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11941set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11943$as_echo_n "checking for $ac_word... " >&6; }
11944if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11945 $as_echo_n "(cached) " >&6
859789af 11946else
55db4b87
PB
11947 if test -n "$NM_FOR_TARGET"; then
11948 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11949else
c6b750e1
DJ
11950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11951for as_dir in $PATH
11952do
11953 IFS=$as_save_IFS
11954 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11955 for ac_exec_ext in '' $ac_executable_extensions; do
11956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11957 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11959 break 2
11960 fi
11961done
81ecdfbb
RW
11962 done
11963IFS=$as_save_IFS
c6b750e1 11964
859789af
AC
11965fi
11966fi
c6b750e1 11967NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11968if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11970$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11971else
81ecdfbb
RW
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973$as_echo "no" >&6; }
859789af
AC
11974fi
11975
81ecdfbb 11976
2429c060
PB
11977 fi
11978 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11980set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11982$as_echo_n "checking for $ac_word... " >&6; }
11983if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11984 $as_echo_n "(cached) " >&6
859789af 11985else
05cbd757
PB
11986 if test -n "$NM_FOR_TARGET"; then
11987 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11988else
c6b750e1
DJ
11989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990for as_dir in $PATH
11991do
11992 IFS=$as_save_IFS
11993 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11996 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11998 break 2
11999 fi
12000done
81ecdfbb
RW
12001 done
12002IFS=$as_save_IFS
c6b750e1 12003
859789af
AC
12004fi
12005fi
c6b750e1 12006NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12007if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12009$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12010else
81ecdfbb
RW
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012$as_echo "no" >&6; }
859789af 12013fi
c6b750e1 12014
81ecdfbb 12015
2429c060
PB
12016 fi
12017 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12018 done
12019fi
c6b750e1 12020
05cbd757
PB
12021if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12022 set dummy nm
12023 if test $build = $target ; then
12024 NM_FOR_TARGET="$2"
859789af 12025 else
05cbd757 12026 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12027 fi
d3f5afc4
MS
12028else
12029 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12030fi
12031
3a35eeb3
PB
12032else
12033 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12034fi
12035
12036
12037
12038
12039if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12040 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12042$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12043 if test -x $with_build_time_tools/objdump; then
12044 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12045 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12047$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12048 else
81ecdfbb
RW
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050$as_echo "no" >&6; }
3a35eeb3 12051 fi
2429c060
PB
12052 elif test $build != $host && test $have_gcc_for_target = yes; then
12053 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12054 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12055 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12056 fi
12057fi
c6b750e1 12058if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12059 # Extract the first word of "objdump", so it can be a program name with args.
12060set dummy objdump; ac_word=$2
81ecdfbb
RW
12061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12062$as_echo_n "checking for $ac_word... " >&6; }
12063if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12064 $as_echo_n "(cached) " >&6
2429c060 12065else
c6b750e1
DJ
12066 case $OBJDUMP_FOR_TARGET in
12067 [\\/]* | ?:[\\/]*)
2429c060
PB
12068 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12069 ;;
2429c060 12070 *)
c6b750e1
DJ
12071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12072for as_dir in $gcc_cv_tool_dirs
12073do
12074 IFS=$as_save_IFS
12075 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12076 for ac_exec_ext in '' $ac_executable_extensions; do
12077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12078 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12080 break 2
12081 fi
12082done
81ecdfbb
RW
12083 done
12084IFS=$as_save_IFS
c6b750e1 12085
2429c060
PB
12086 ;;
12087esac
12088fi
c6b750e1 12089OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12090if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12092$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12093else
81ecdfbb
RW
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095$as_echo "no" >&6; }
2429c060
PB
12096fi
12097
81ecdfbb 12098
2429c060
PB
12099fi
12100if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12101
12102
12103if test -n "$OBJDUMP_FOR_TARGET"; then
12104 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12105elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12106 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12107fi
12108
12109if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12110 for ncn_progname in objdump; do
12111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12112set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12114$as_echo_n "checking for $ac_word... " >&6; }
12115if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12116 $as_echo_n "(cached) " >&6
9a819804
AO
12117else
12118 if test -n "$OBJDUMP_FOR_TARGET"; then
12119 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12120else
12121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122for as_dir in $PATH
12123do
12124 IFS=$as_save_IFS
12125 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12126 for ac_exec_ext in '' $ac_executable_extensions; do
12127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12128 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12130 break 2
12131 fi
12132done
81ecdfbb
RW
12133 done
12134IFS=$as_save_IFS
9a819804
AO
12135
12136fi
12137fi
12138OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12139if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12141$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12142else
81ecdfbb
RW
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144$as_echo "no" >&6; }
9a819804
AO
12145fi
12146
81ecdfbb 12147
9a819804
AO
12148 done
12149fi
12150
12151if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12152 for ncn_progname in objdump; do
81ecdfbb
RW
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12154$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12155 if test -x $with_build_time_tools/${ncn_progname}; then
12156 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12158$as_echo "yes" >&6; }
2429c060
PB
12159 break
12160 else
81ecdfbb
RW
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162$as_echo "no" >&6; }
2429c060
PB
12163 fi
12164 done
12165fi
12166
12167if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12168 for ncn_progname in objdump; do
12169 if test -n "$ncn_target_tool_prefix"; then
12170 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12171set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12173$as_echo_n "checking for $ac_word... " >&6; }
12174if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12175 $as_echo_n "(cached) " >&6
5ae72758
DJ
12176else
12177 if test -n "$OBJDUMP_FOR_TARGET"; then
12178 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12179else
c6b750e1
DJ
12180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181for as_dir in $PATH
12182do
12183 IFS=$as_save_IFS
12184 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12185 for ac_exec_ext in '' $ac_executable_extensions; do
12186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12187 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12189 break 2
12190 fi
12191done
81ecdfbb
RW
12192 done
12193IFS=$as_save_IFS
c6b750e1 12194
5ae72758
DJ
12195fi
12196fi
c6b750e1 12197OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12198if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12200$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12201else
81ecdfbb
RW
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203$as_echo "no" >&6; }
5ae72758
DJ
12204fi
12205
81ecdfbb 12206
2429c060
PB
12207 fi
12208 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12209 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12210set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12212$as_echo_n "checking for $ac_word... " >&6; }
12213if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12214 $as_echo_n "(cached) " >&6
5ae72758
DJ
12215else
12216 if test -n "$OBJDUMP_FOR_TARGET"; then
12217 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12218else
c6b750e1
DJ
12219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220for as_dir in $PATH
12221do
12222 IFS=$as_save_IFS
12223 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12224 for ac_exec_ext in '' $ac_executable_extensions; do
12225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12226 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12228 break 2
12229 fi
12230done
81ecdfbb
RW
12231 done
12232IFS=$as_save_IFS
c6b750e1 12233
5ae72758
DJ
12234fi
12235fi
c6b750e1 12236OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12237if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12239$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12240else
81ecdfbb
RW
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242$as_echo "no" >&6; }
5ae72758 12243fi
c6b750e1 12244
81ecdfbb 12245
2429c060
PB
12246 fi
12247 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12248 done
12249fi
c6b750e1 12250
5ae72758
DJ
12251if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12252 set dummy objdump
12253 if test $build = $target ; then
12254 OBJDUMP_FOR_TARGET="$2"
12255 else
12256 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12257 fi
d3f5afc4
MS
12258else
12259 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12260fi
12261
3a35eeb3
PB
12262else
12263 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12264fi
12265
12266
12267
12268
12269if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12270 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12272$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12273 if test -x $with_build_time_tools/ranlib; then
12274 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12275 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12277$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12278 else
81ecdfbb
RW
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12280$as_echo "no" >&6; }
3a35eeb3 12281 fi
2429c060
PB
12282 elif test $build != $host && test $have_gcc_for_target = yes; then
12283 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12284 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12285 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12286 fi
12287fi
c6b750e1 12288if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12289 # Extract the first word of "ranlib", so it can be a program name with args.
12290set dummy ranlib; ac_word=$2
81ecdfbb
RW
12291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12292$as_echo_n "checking for $ac_word... " >&6; }
12293if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12294 $as_echo_n "(cached) " >&6
2429c060 12295else
c6b750e1
DJ
12296 case $RANLIB_FOR_TARGET in
12297 [\\/]* | ?:[\\/]*)
2429c060
PB
12298 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12299 ;;
2429c060 12300 *)
c6b750e1
DJ
12301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302for as_dir in $gcc_cv_tool_dirs
12303do
12304 IFS=$as_save_IFS
12305 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12306 for ac_exec_ext in '' $ac_executable_extensions; do
12307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12308 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12310 break 2
12311 fi
12312done
81ecdfbb
RW
12313 done
12314IFS=$as_save_IFS
c6b750e1 12315
2429c060
PB
12316 ;;
12317esac
12318fi
c6b750e1 12319RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12320if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12322$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12323else
81ecdfbb
RW
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325$as_echo "no" >&6; }
2429c060
PB
12326fi
12327
81ecdfbb 12328
2429c060
PB
12329fi
12330if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12331
12332
12333if test -n "$RANLIB_FOR_TARGET"; then
12334 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12335elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12336 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12337fi
12338
12339if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12340 for ncn_progname in ranlib; do
12341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12342set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12344$as_echo_n "checking for $ac_word... " >&6; }
12345if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12346 $as_echo_n "(cached) " >&6
9a819804
AO
12347else
12348 if test -n "$RANLIB_FOR_TARGET"; then
12349 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12350else
12351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12352for as_dir in $PATH
12353do
12354 IFS=$as_save_IFS
12355 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12356 for ac_exec_ext in '' $ac_executable_extensions; do
12357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12358 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12360 break 2
12361 fi
12362done
81ecdfbb
RW
12363 done
12364IFS=$as_save_IFS
9a819804
AO
12365
12366fi
12367fi
12368RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12369if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12371$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12372else
81ecdfbb
RW
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374$as_echo "no" >&6; }
9a819804
AO
12375fi
12376
81ecdfbb 12377
9a819804
AO
12378 done
12379fi
12380
12381if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12382 for ncn_progname in ranlib; do
81ecdfbb
RW
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12384$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12385 if test -x $with_build_time_tools/${ncn_progname}; then
12386 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12388$as_echo "yes" >&6; }
2429c060
PB
12389 break
12390 else
81ecdfbb
RW
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392$as_echo "no" >&6; }
2429c060
PB
12393 fi
12394 done
12395fi
12396
12397if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12398 for ncn_progname in ranlib; do
12399 if test -n "$ncn_target_tool_prefix"; then
12400 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12401set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12403$as_echo_n "checking for $ac_word... " >&6; }
12404if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12405 $as_echo_n "(cached) " >&6
859789af 12406else
55db4b87
PB
12407 if test -n "$RANLIB_FOR_TARGET"; then
12408 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12409else
c6b750e1
DJ
12410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12411for as_dir in $PATH
12412do
12413 IFS=$as_save_IFS
12414 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12415 for ac_exec_ext in '' $ac_executable_extensions; do
12416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12417 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12419 break 2
12420 fi
12421done
81ecdfbb
RW
12422 done
12423IFS=$as_save_IFS
c6b750e1 12424
859789af
AC
12425fi
12426fi
c6b750e1 12427RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12428if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12430$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12431else
81ecdfbb
RW
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433$as_echo "no" >&6; }
859789af
AC
12434fi
12435
81ecdfbb 12436
2429c060
PB
12437 fi
12438 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12440set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12442$as_echo_n "checking for $ac_word... " >&6; }
12443if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12444 $as_echo_n "(cached) " >&6
859789af 12445else
05cbd757
PB
12446 if test -n "$RANLIB_FOR_TARGET"; then
12447 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12448else
c6b750e1
DJ
12449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450for as_dir in $PATH
12451do
12452 IFS=$as_save_IFS
12453 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12454 for ac_exec_ext in '' $ac_executable_extensions; do
12455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12456 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12458 break 2
12459 fi
12460done
81ecdfbb
RW
12461 done
12462IFS=$as_save_IFS
c6b750e1 12463
859789af
AC
12464fi
12465fi
c6b750e1 12466RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12467if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12469$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12470else
81ecdfbb
RW
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472$as_echo "no" >&6; }
859789af 12473fi
c6b750e1 12474
81ecdfbb 12475
2429c060
PB
12476 fi
12477 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12478 done
12479fi
c6b750e1 12480
2429c060
PB
12481if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12482 set dummy ranlib
12483 if test $build = $target ; then
12484 RANLIB_FOR_TARGET="$2"
12485 else
12486 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12487 fi
d3f5afc4
MS
12488else
12489 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12490fi
05cbd757 12491
3a35eeb3
PB
12492else
12493 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12494fi
12495
2429c060
PB
12496
12497
12498
12499if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12500 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12502$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12503 if test -x $with_build_time_tools/strip; then
12504 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12505 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12507$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12508 else
81ecdfbb
RW
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12510$as_echo "no" >&6; }
3a35eeb3 12511 fi
2429c060
PB
12512 elif test $build != $host && test $have_gcc_for_target = yes; then
12513 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12514 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12515 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12516 fi
12517fi
c6b750e1 12518if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12519 # Extract the first word of "strip", so it can be a program name with args.
12520set dummy strip; ac_word=$2
81ecdfbb
RW
12521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12522$as_echo_n "checking for $ac_word... " >&6; }
12523if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12524 $as_echo_n "(cached) " >&6
2429c060 12525else
c6b750e1
DJ
12526 case $STRIP_FOR_TARGET in
12527 [\\/]* | ?:[\\/]*)
2429c060
PB
12528 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12529 ;;
2429c060 12530 *)
c6b750e1
DJ
12531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12532for as_dir in $gcc_cv_tool_dirs
12533do
12534 IFS=$as_save_IFS
12535 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12536 for ac_exec_ext in '' $ac_executable_extensions; do
12537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12538 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12540 break 2
12541 fi
12542done
81ecdfbb
RW
12543 done
12544IFS=$as_save_IFS
c6b750e1 12545
2429c060
PB
12546 ;;
12547esac
12548fi
c6b750e1 12549STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12550if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12552$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12553else
81ecdfbb
RW
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12555$as_echo "no" >&6; }
2429c060
PB
12556fi
12557
81ecdfbb 12558
2429c060
PB
12559fi
12560if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12561
12562
12563if test -n "$STRIP_FOR_TARGET"; then
12564 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12565elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12566 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12567fi
12568
12569if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12570 for ncn_progname in strip; do
12571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12572set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12574$as_echo_n "checking for $ac_word... " >&6; }
12575if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12576 $as_echo_n "(cached) " >&6
9a819804
AO
12577else
12578 if test -n "$STRIP_FOR_TARGET"; then
12579 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12580else
12581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12582for as_dir in $PATH
12583do
12584 IFS=$as_save_IFS
12585 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12586 for ac_exec_ext in '' $ac_executable_extensions; do
12587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12588 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12590 break 2
12591 fi
12592done
81ecdfbb
RW
12593 done
12594IFS=$as_save_IFS
9a819804
AO
12595
12596fi
12597fi
12598STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12599if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12601$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12602else
81ecdfbb
RW
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604$as_echo "no" >&6; }
9a819804
AO
12605fi
12606
81ecdfbb 12607
9a819804
AO
12608 done
12609fi
12610
12611if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12612 for ncn_progname in strip; do
81ecdfbb
RW
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12614$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12615 if test -x $with_build_time_tools/${ncn_progname}; then
12616 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12618$as_echo "yes" >&6; }
2429c060
PB
12619 break
12620 else
81ecdfbb
RW
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622$as_echo "no" >&6; }
2429c060
PB
12623 fi
12624 done
12625fi
12626
12627if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12628 for ncn_progname in strip; do
12629 if test -n "$ncn_target_tool_prefix"; then
12630 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12631set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12633$as_echo_n "checking for $ac_word... " >&6; }
12634if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12635 $as_echo_n "(cached) " >&6
7e0f7140
GK
12636else
12637 if test -n "$STRIP_FOR_TARGET"; then
12638 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12639else
12640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641for as_dir in $PATH
12642do
12643 IFS=$as_save_IFS
12644 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12645 for ac_exec_ext in '' $ac_executable_extensions; do
12646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12647 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12649 break 2
12650 fi
12651done
81ecdfbb
RW
12652 done
12653IFS=$as_save_IFS
c6b750e1 12654
7e0f7140
GK
12655fi
12656fi
c6b750e1 12657STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12658if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12660$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12661else
81ecdfbb
RW
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663$as_echo "no" >&6; }
7e0f7140
GK
12664fi
12665
81ecdfbb 12666
2429c060
PB
12667 fi
12668 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12669 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12670set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12672$as_echo_n "checking for $ac_word... " >&6; }
12673if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12674 $as_echo_n "(cached) " >&6
7e0f7140
GK
12675else
12676 if test -n "$STRIP_FOR_TARGET"; then
12677 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12678else
c6b750e1
DJ
12679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12680for as_dir in $PATH
12681do
12682 IFS=$as_save_IFS
12683 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12684 for ac_exec_ext in '' $ac_executable_extensions; do
12685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12686 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12688 break 2
12689 fi
12690done
81ecdfbb
RW
12691 done
12692IFS=$as_save_IFS
c6b750e1 12693
7e0f7140
GK
12694fi
12695fi
c6b750e1 12696STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12697if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12699$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12700else
81ecdfbb
RW
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12702$as_echo "no" >&6; }
7e0f7140 12703fi
c6b750e1 12704
81ecdfbb 12705
2429c060
PB
12706 fi
12707 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12708 done
12709fi
c6b750e1 12710
7e0f7140
GK
12711if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12712 set dummy strip
12713 if test $build = $target ; then
12714 STRIP_FOR_TARGET="$2"
12715 else
12716 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12717 fi
d3f5afc4
MS
12718else
12719 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12720fi
12721
3a35eeb3
PB
12722else
12723 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12724fi
12725
12726
12727
12728
12729if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12730 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12732$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12733 if test -x $with_build_time_tools/windres; then
12734 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12735 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12737$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12738 else
81ecdfbb
RW
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12740$as_echo "no" >&6; }
3a35eeb3 12741 fi
2429c060
PB
12742 elif test $build != $host && test $have_gcc_for_target = yes; then
12743 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12744 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12745 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12746 fi
12747fi
c6b750e1 12748if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12749 # Extract the first word of "windres", so it can be a program name with args.
12750set dummy windres; ac_word=$2
81ecdfbb
RW
12751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12752$as_echo_n "checking for $ac_word... " >&6; }
12753if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12754 $as_echo_n "(cached) " >&6
2429c060 12755else
c6b750e1
DJ
12756 case $WINDRES_FOR_TARGET in
12757 [\\/]* | ?:[\\/]*)
2429c060
PB
12758 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12759 ;;
2429c060 12760 *)
c6b750e1
DJ
12761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12762for as_dir in $gcc_cv_tool_dirs
12763do
12764 IFS=$as_save_IFS
12765 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12766 for ac_exec_ext in '' $ac_executable_extensions; do
12767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12768 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12770 break 2
12771 fi
12772done
81ecdfbb
RW
12773 done
12774IFS=$as_save_IFS
c6b750e1 12775
2429c060
PB
12776 ;;
12777esac
12778fi
c6b750e1 12779WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12780if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12782$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12783else
81ecdfbb
RW
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785$as_echo "no" >&6; }
2429c060
PB
12786fi
12787
81ecdfbb 12788
2429c060
PB
12789fi
12790if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12791
12792
12793if test -n "$WINDRES_FOR_TARGET"; then
12794 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12795elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12796 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12797fi
12798
12799if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12800 for ncn_progname in windres; do
12801 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12802set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12804$as_echo_n "checking for $ac_word... " >&6; }
12805if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12806 $as_echo_n "(cached) " >&6
9a819804
AO
12807else
12808 if test -n "$WINDRES_FOR_TARGET"; then
12809 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12810else
12811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812for as_dir in $PATH
12813do
12814 IFS=$as_save_IFS
12815 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12816 for ac_exec_ext in '' $ac_executable_extensions; do
12817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12818 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12820 break 2
12821 fi
12822done
81ecdfbb
RW
12823 done
12824IFS=$as_save_IFS
9a819804
AO
12825
12826fi
12827fi
12828WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12829if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12831$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12832else
81ecdfbb
RW
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12834$as_echo "no" >&6; }
9a819804
AO
12835fi
12836
81ecdfbb 12837
9a819804
AO
12838 done
12839fi
12840
12841if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12842 for ncn_progname in windres; do
81ecdfbb
RW
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12844$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12845 if test -x $with_build_time_tools/${ncn_progname}; then
12846 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12848$as_echo "yes" >&6; }
2429c060
PB
12849 break
12850 else
81ecdfbb
RW
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12852$as_echo "no" >&6; }
2429c060
PB
12853 fi
12854 done
12855fi
12856
12857if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12858 for ncn_progname in windres; do
12859 if test -n "$ncn_target_tool_prefix"; then
12860 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12861set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12863$as_echo_n "checking for $ac_word... " >&6; }
12864if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12865 $as_echo_n "(cached) " >&6
859789af 12866else
55db4b87
PB
12867 if test -n "$WINDRES_FOR_TARGET"; then
12868 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12869else
c6b750e1
DJ
12870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12871for as_dir in $PATH
12872do
12873 IFS=$as_save_IFS
12874 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12875 for ac_exec_ext in '' $ac_executable_extensions; do
12876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12877 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12879 break 2
12880 fi
12881done
81ecdfbb
RW
12882 done
12883IFS=$as_save_IFS
c6b750e1 12884
859789af
AC
12885fi
12886fi
c6b750e1 12887WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 12888if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12890$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12891else
81ecdfbb
RW
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893$as_echo "no" >&6; }
859789af
AC
12894fi
12895
81ecdfbb 12896
2429c060
PB
12897 fi
12898 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12899 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12900set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12902$as_echo_n "checking for $ac_word... " >&6; }
12903if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12904 $as_echo_n "(cached) " >&6
859789af 12905else
05cbd757
PB
12906 if test -n "$WINDRES_FOR_TARGET"; then
12907 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12908else
c6b750e1
DJ
12909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12910for as_dir in $PATH
12911do
12912 IFS=$as_save_IFS
12913 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12914 for ac_exec_ext in '' $ac_executable_extensions; do
12915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12916 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12918 break 2
12919 fi
12920done
81ecdfbb
RW
12921 done
12922IFS=$as_save_IFS
c6b750e1 12923
859789af
AC
12924fi
12925fi
c6b750e1 12926WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 12927if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12929$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12930else
81ecdfbb
RW
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932$as_echo "no" >&6; }
859789af 12933fi
c6b750e1 12934
81ecdfbb 12935
2429c060
PB
12936 fi
12937 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12938 done
12939fi
c6b750e1 12940
05cbd757
PB
12941if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12942 set dummy windres
12943 if test $build = $target ; then
12944 WINDRES_FOR_TARGET="$2"
859789af 12945 else
05cbd757 12946 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12947 fi
d3f5afc4
MS
12948else
12949 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
12950fi
12951
3a35eeb3
PB
12952else
12953 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
12954fi
12955
852e5f18 12956
0c24b341
NC
12957
12958
12959if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12960 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12962$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
12963 if test -x $with_build_time_tools/windmc; then
12964 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12965 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12967$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 12968 else
81ecdfbb
RW
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12970$as_echo "no" >&6; }
0c24b341
NC
12971 fi
12972 elif test $build != $host && test $have_gcc_for_target = yes; then
12973 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12974 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12975 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12976 fi
12977fi
12978if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12979 # Extract the first word of "windmc", so it can be a program name with args.
12980set dummy windmc; ac_word=$2
81ecdfbb
RW
12981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12982$as_echo_n "checking for $ac_word... " >&6; }
12983if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12984 $as_echo_n "(cached) " >&6
0c24b341
NC
12985else
12986 case $WINDMC_FOR_TARGET in
12987 [\\/]* | ?:[\\/]*)
12988 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12989 ;;
12990 *)
12991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12992for as_dir in $gcc_cv_tool_dirs
12993do
12994 IFS=$as_save_IFS
12995 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12996 for ac_exec_ext in '' $ac_executable_extensions; do
12997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12998 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13000 break 2
13001 fi
13002done
81ecdfbb
RW
13003 done
13004IFS=$as_save_IFS
0c24b341
NC
13005
13006 ;;
13007esac
13008fi
13009WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13010if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13012$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13013else
81ecdfbb
RW
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13015$as_echo "no" >&6; }
0c24b341
NC
13016fi
13017
81ecdfbb 13018
0c24b341
NC
13019fi
13020if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13021
13022
13023if test -n "$WINDMC_FOR_TARGET"; then
13024 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13025elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13026 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13027fi
13028
13029if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13030 for ncn_progname in windmc; do
13031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13032set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13034$as_echo_n "checking for $ac_word... " >&6; }
13035if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13036 $as_echo_n "(cached) " >&6
0c24b341
NC
13037else
13038 if test -n "$WINDMC_FOR_TARGET"; then
13039 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13040else
13041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042for as_dir in $PATH
13043do
13044 IFS=$as_save_IFS
13045 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13046 for ac_exec_ext in '' $ac_executable_extensions; do
13047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13048 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13050 break 2
13051 fi
13052done
81ecdfbb
RW
13053 done
13054IFS=$as_save_IFS
0c24b341
NC
13055
13056fi
13057fi
13058WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13059if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13061$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13062else
81ecdfbb
RW
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13064$as_echo "no" >&6; }
0c24b341
NC
13065fi
13066
81ecdfbb 13067
0c24b341
NC
13068 done
13069fi
13070
13071if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13072 for ncn_progname in windmc; do
81ecdfbb
RW
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13074$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13075 if test -x $with_build_time_tools/${ncn_progname}; then
13076 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13078$as_echo "yes" >&6; }
0c24b341
NC
13079 break
13080 else
81ecdfbb
RW
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082$as_echo "no" >&6; }
0c24b341
NC
13083 fi
13084 done
13085fi
13086
13087if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13088 for ncn_progname in windmc; do
13089 if test -n "$ncn_target_tool_prefix"; then
13090 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13091set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13093$as_echo_n "checking for $ac_word... " >&6; }
13094if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13095 $as_echo_n "(cached) " >&6
0c24b341
NC
13096else
13097 if test -n "$WINDMC_FOR_TARGET"; then
13098 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13099else
13100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101for as_dir in $PATH
13102do
13103 IFS=$as_save_IFS
13104 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13105 for ac_exec_ext in '' $ac_executable_extensions; do
13106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13107 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13109 break 2
13110 fi
13111done
81ecdfbb
RW
13112 done
13113IFS=$as_save_IFS
0c24b341
NC
13114
13115fi
13116fi
13117WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13118if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13120$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13121else
81ecdfbb
RW
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123$as_echo "no" >&6; }
0c24b341
NC
13124fi
13125
81ecdfbb 13126
0c24b341
NC
13127 fi
13128 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13130set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13132$as_echo_n "checking for $ac_word... " >&6; }
13133if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13134 $as_echo_n "(cached) " >&6
0c24b341
NC
13135else
13136 if test -n "$WINDMC_FOR_TARGET"; then
13137 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13138else
13139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140for as_dir in $PATH
13141do
13142 IFS=$as_save_IFS
13143 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13144 for ac_exec_ext in '' $ac_executable_extensions; do
13145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13146 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13148 break 2
13149 fi
13150done
81ecdfbb
RW
13151 done
13152IFS=$as_save_IFS
0c24b341
NC
13153
13154fi
13155fi
13156WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13157if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13159$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13160else
81ecdfbb
RW
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162$as_echo "no" >&6; }
0c24b341
NC
13163fi
13164
81ecdfbb 13165
0c24b341
NC
13166 fi
13167 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13168 done
13169fi
13170
13171if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13172 set dummy windmc
13173 if test $build = $target ; then
13174 WINDMC_FOR_TARGET="$2"
13175 else
13176 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13177 fi
13178else
13179 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13180fi
13181
13182else
13183 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13184fi
13185
13186
be01d343
PB
13187RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13188
81ecdfbb
RW
13189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13190$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13191if test "x${build}" != "x${host}" ; then
2429c060
PB
13192 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13193 # We already found the complete path
b8025f34 13194 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13196$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13197 else
13198 # Canadian cross, just use what we found
81ecdfbb
RW
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13200$as_echo "pre-installed" >&6; }
2429c060 13201 fi
be01d343
PB
13202else
13203 ok=yes
13204 case " ${configdirs} " in
13205 *" binutils "*) ;;
13206 *) ok=no ;;
13207 esac
c6b750e1 13208
be01d343
PB
13209 if test $ok = yes; then
13210 # An in-tree tool is available and we can use it
13211 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13213$as_echo "just compiled" >&6; }
2429c060
PB
13214 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13215 # We already found the complete path
b8025f34 13216 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13218$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13219 elif test "x$target" = "x$host"; then
13220 # We can use an host tool
13221 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13223$as_echo "host tool" >&6; }
be01d343
PB
13224 else
13225 # We need a cross tool
81ecdfbb
RW
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13227$as_echo "pre-installed" >&6; }
be01d343
PB
13228 fi
13229fi
4b900473 13230
81ecdfbb
RW
13231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13232$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13233if test "x${build}" != "x${host}" ; then
2429c060
PB
13234 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13235 # We already found the complete path
b8025f34 13236 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13238$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13239 else
13240 # Canadian cross, just use what we found
81ecdfbb
RW
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13242$as_echo "pre-installed" >&6; }
2429c060 13243 fi
be01d343
PB
13244else
13245 ok=yes
13246 case " ${configdirs} " in
13247 *" gas "*) ;;
13248 *) ok=no ;;
13249 esac
c6b750e1 13250
be01d343
PB
13251 if test $ok = yes; then
13252 # An in-tree tool is available and we can use it
13253 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13255$as_echo "just compiled" >&6; }
2429c060
PB
13256 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13257 # We already found the complete path
b8025f34 13258 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13260$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13261 elif test "x$target" = "x$host"; then
13262 # We can use an host tool
13263 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13265$as_echo "host tool" >&6; }
be01d343
PB
13266 else
13267 # We need a cross tool
81ecdfbb
RW
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13269$as_echo "pre-installed" >&6; }
be01d343
PB
13270 fi
13271fi
4b900473 13272
81ecdfbb
RW
13273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13274$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13275if test "x${build}" != "x${host}" ; then
2429c060
PB
13276 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13277 # We already found the complete path
b8025f34 13278 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13280$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13281 else
13282 # Canadian cross, just use what we found
81ecdfbb
RW
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13284$as_echo "pre-installed" >&6; }
2429c060 13285 fi
be01d343
PB
13286else
13287 ok=yes
13288 case " ${configdirs} " in
13289 *" gcc "*) ;;
13290 *) ok=no ;;
13291 esac
c6b750e1 13292
be01d343
PB
13293 if test $ok = yes; then
13294 # An in-tree tool is available and we can use it
13295 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13297$as_echo "just compiled" >&6; }
2429c060
PB
13298 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13299 # We already found the complete path
b8025f34 13300 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13302$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13303 elif test "x$target" = "x$host"; then
13304 # We can use an host tool
13305 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13307$as_echo "host tool" >&6; }
be01d343
PB
13308 else
13309 # We need a cross tool
81ecdfbb
RW
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13311$as_echo "pre-installed" >&6; }
be01d343
PB
13312 fi
13313fi
4b900473 13314
81ecdfbb
RW
13315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13316$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13317if test "x${build}" != "x${host}" ; then
2429c060
PB
13318 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13319 # We already found the complete path
b8025f34 13320 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13322$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13323 else
13324 # Canadian cross, just use what we found
81ecdfbb
RW
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13326$as_echo "pre-installed" >&6; }
2429c060 13327 fi
be01d343
PB
13328else
13329 ok=yes
13330 case " ${configdirs} " in
13331 *" gcc "*) ;;
13332 *) ok=no ;;
13333 esac
13334 case ,${enable_languages}, in
13335 *,c++,*) ;;
13336 *) ok=no ;;
13337 esac
13338 if test $ok = yes; then
13339 # An in-tree tool is available and we can use it
87cda2cf 13340 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -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'
81ecdfbb
RW
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13342$as_echo "just compiled" >&6; }
2429c060
PB
13343 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13344 # We already found the complete path
b8025f34 13345 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13347$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13348 elif test "x$target" = "x$host"; then
13349 # We can use an host tool
13350 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13352$as_echo "host tool" >&6; }
be01d343
PB
13353 else
13354 # We need a cross tool
81ecdfbb
RW
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13356$as_echo "pre-installed" >&6; }
be01d343
PB
13357 fi
13358fi
4b900473 13359
81ecdfbb
RW
13360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13361$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13362if test "x${build}" != "x${host}" ; then
2429c060
PB
13363 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13364 # We already found the complete path
b8025f34 13365 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13367$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13368 else
13369 # Canadian cross, just use what we found
81ecdfbb
RW
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13371$as_echo "pre-installed" >&6; }
2429c060 13372 fi
be01d343
PB
13373else
13374 ok=yes
13375 case " ${configdirs} " in
13376 *" gcc "*) ;;
13377 *) ok=no ;;
13378 esac
13379 case ,${enable_languages}, in
13380 *,c++,*) ;;
13381 *) ok=no ;;
13382 esac
13383 if test $ok = yes; then
13384 # An in-tree tool is available and we can use it
13385 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'
81ecdfbb
RW
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13387$as_echo "just compiled" >&6; }
2429c060
PB
13388 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13389 # We already found the complete path
b8025f34 13390 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13392$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13393 elif test "x$target" = "x$host"; then
13394 # We can use an host tool
13395 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13397$as_echo "host tool" >&6; }
be01d343
PB
13398 else
13399 # We need a cross tool
81ecdfbb
RW
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13401$as_echo "pre-installed" >&6; }
be01d343
PB
13402 fi
13403fi
4b900473 13404
81ecdfbb
RW
13405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13406$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13407if test "x${build}" != "x${host}" ; then
2429c060
PB
13408 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13409 # We already found the complete path
b8025f34 13410 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13412$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13413 else
13414 # Canadian cross, just use what we found
81ecdfbb
RW
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13416$as_echo "pre-installed" >&6; }
2429c060 13417 fi
be01d343
PB
13418else
13419 ok=yes
13420 case " ${configdirs} " in
13421 *" binutils "*) ;;
13422 *) ok=no ;;
13423 esac
c6b750e1 13424
be01d343
PB
13425 if test $ok = yes; then
13426 # An in-tree tool is available and we can use it
13427 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13429$as_echo "just compiled" >&6; }
2429c060
PB
13430 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13431 # We already found the complete path
b8025f34 13432 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13434$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13435 elif test "x$target" = "x$host"; then
13436 # We can use an host tool
13437 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13439$as_echo "host tool" >&6; }
be01d343
PB
13440 else
13441 # We need a cross tool
81ecdfbb
RW
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13443$as_echo "pre-installed" >&6; }
be01d343
PB
13444 fi
13445fi
4b900473 13446
81ecdfbb
RW
13447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13448$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13449if test "x${build}" != "x${host}" ; then
2429c060
PB
13450 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13451 # We already found the complete path
b8025f34 13452 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13454$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13455 else
13456 # Canadian cross, just use what we found
81ecdfbb
RW
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13458$as_echo "pre-installed" >&6; }
2429c060 13459 fi
be01d343
PB
13460else
13461 ok=yes
13462 case " ${configdirs} " in
13463 *" gcc "*) ;;
13464 *) ok=no ;;
13465 esac
c6b750e1 13466
be01d343
PB
13467 if test $ok = yes; then
13468 # An in-tree tool is available and we can use it
13469 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13471$as_echo "just compiled" >&6; }
2429c060
PB
13472 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13473 # We already found the complete path
b8025f34 13474 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13476$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13477 elif test "x$target" = "x$host"; then
13478 # We can use an host tool
13479 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13481$as_echo "host tool" >&6; }
be01d343
PB
13482 else
13483 # We need a cross tool
81ecdfbb
RW
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13485$as_echo "pre-installed" >&6; }
be01d343
PB
13486 fi
13487fi
4b900473 13488
81ecdfbb
RW
13489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13490$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13491if test "x${build}" != "x${host}" ; then
2429c060
PB
13492 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13493 # We already found the complete path
b8025f34 13494 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13496$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13497 else
13498 # Canadian cross, just use what we found
81ecdfbb
RW
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13500$as_echo "pre-installed" >&6; }
2429c060 13501 fi
be01d343
PB
13502else
13503 ok=yes
13504 case " ${configdirs} " in
13505 *" gcc "*) ;;
13506 *) ok=no ;;
13507 esac
13508 case ,${enable_languages}, in
13509 *,java,*) ;;
13510 *) ok=no ;;
13511 esac
13512 if test $ok = yes; then
13513 # An in-tree tool is available and we can use it
13514 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13516$as_echo "just compiled" >&6; }
2429c060
PB
13517 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13518 # We already found the complete path
b8025f34 13519 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13521$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13522 elif test "x$target" = "x$host"; then
13523 # We can use an host tool
13524 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13526$as_echo "host tool" >&6; }
be01d343
PB
13527 else
13528 # We need a cross tool
81ecdfbb
RW
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13530$as_echo "pre-installed" >&6; }
be01d343
PB
13531 fi
13532fi
4b900473 13533
81ecdfbb
RW
13534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13535$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13536if test "x${build}" != "x${host}" ; then
2429c060
PB
13537 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13538 # We already found the complete path
b8025f34 13539 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13541$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13542 else
13543 # Canadian cross, just use what we found
81ecdfbb
RW
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13545$as_echo "pre-installed" >&6; }
2429c060 13546 fi
be01d343
PB
13547else
13548 ok=yes
13549 case " ${configdirs} " in
13550 *" gcc "*) ;;
13551 *) ok=no ;;
13552 esac
13553 case ,${enable_languages}, in
13554 *,fortran,*) ;;
13555 *) ok=no ;;
13556 esac
13557 if test $ok = yes; then
13558 # An in-tree tool is available and we can use it
13559 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13561$as_echo "just compiled" >&6; }
2429c060
PB
13562 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13563 # We already found the complete path
b8025f34 13564 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13566$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13567 elif test "x$target" = "x$host"; then
13568 # We can use an host tool
13569 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13571$as_echo "host tool" >&6; }
be01d343
PB
13572 else
13573 # We need a cross tool
81ecdfbb
RW
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13575$as_echo "pre-installed" >&6; }
be01d343
PB
13576 fi
13577fi
4b900473 13578
e552509b
ILT
13579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13580$as_echo_n "checking where to find the target gccgo... " >&6; }
13581if test "x${build}" != "x${host}" ; then
13582 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13583 # We already found the complete path
13584 ac_dir=`dirname $GOC_FOR_TARGET`
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13586$as_echo "pre-installed in $ac_dir" >&6; }
13587 else
13588 # Canadian cross, just use what we found
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13590$as_echo "pre-installed" >&6; }
13591 fi
13592else
13593 ok=yes
13594 case " ${configdirs} " in
13595 *" gcc "*) ;;
13596 *) ok=no ;;
13597 esac
13598 case ,${enable_languages}, in
13599 *,go,*) ;;
13600 *) ok=no ;;
13601 esac
13602 if test $ok = yes; then
13603 # An in-tree tool is available and we can use it
13604 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13606$as_echo "just compiled" >&6; }
13607 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13608 # We already found the complete path
13609 ac_dir=`dirname $GOC_FOR_TARGET`
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13611$as_echo "pre-installed in $ac_dir" >&6; }
13612 elif test "x$target" = "x$host"; then
13613 # We can use an host tool
13614 GOC_FOR_TARGET='$(GOC)'
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13616$as_echo "host tool" >&6; }
13617 else
13618 # We need a cross tool
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13620$as_echo "pre-installed" >&6; }
13621 fi
13622fi
13623
81ecdfbb
RW
13624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13625$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13626if test "x${build}" != "x${host}" ; then
2429c060
PB
13627 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13628 # We already found the complete path
b8025f34 13629 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13631$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13632 else
13633 # Canadian cross, just use what we found
81ecdfbb
RW
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13635$as_echo "pre-installed" >&6; }
2429c060 13636 fi
be01d343
PB
13637else
13638 ok=yes
13639 case " ${configdirs} " in
13640 *" ld "*) ;;
13641 *) ok=no ;;
13642 esac
c6b750e1 13643
be01d343
PB
13644 if test $ok = yes; then
13645 # An in-tree tool is available and we can use it
13646 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13648$as_echo "just compiled" >&6; }
2429c060
PB
13649 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13650 # We already found the complete path
b8025f34 13651 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13653$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13654 elif test "x$target" = "x$host"; then
13655 # We can use an host tool
13656 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13658$as_echo "host tool" >&6; }
be01d343
PB
13659 else
13660 # We need a cross tool
81ecdfbb
RW
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13662$as_echo "pre-installed" >&6; }
be01d343
PB
13663 fi
13664fi
4b900473 13665
81ecdfbb
RW
13666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13667$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13668if test "x${build}" != "x${host}" ; then
2429c060
PB
13669 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13670 # We already found the complete path
b8025f34 13671 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13673$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13674 else
13675 # Canadian cross, just use what we found
81ecdfbb
RW
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13677$as_echo "pre-installed" >&6; }
2429c060 13678 fi
be01d343 13679else
2429c060
PB
13680 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13681 # We already found the complete path
b8025f34 13682 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13684$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13685 elif test "x$target" = "x$host"; then
be01d343
PB
13686 # We can use an host tool
13687 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13689$as_echo "host tool" >&6; }
be01d343
PB
13690 else
13691 # We need a cross tool
81ecdfbb
RW
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13693$as_echo "pre-installed" >&6; }
be01d343
PB
13694 fi
13695fi
4b900473 13696
81ecdfbb
RW
13697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13698$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13699if test "x${build}" != "x${host}" ; then
2429c060
PB
13700 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13701 # We already found the complete path
b8025f34 13702 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13704$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13705 else
13706 # Canadian cross, just use what we found
81ecdfbb
RW
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13708$as_echo "pre-installed" >&6; }
2429c060 13709 fi
be01d343
PB
13710else
13711 ok=yes
13712 case " ${configdirs} " in
13713 *" binutils "*) ;;
13714 *) ok=no ;;
13715 esac
c6b750e1 13716
be01d343
PB
13717 if test $ok = yes; then
13718 # An in-tree tool is available and we can use it
13719 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13721$as_echo "just compiled" >&6; }
2429c060
PB
13722 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13723 # We already found the complete path
b8025f34 13724 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13726$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13727 elif test "x$target" = "x$host"; then
13728 # We can use an host tool
13729 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13731$as_echo "host tool" >&6; }
be01d343
PB
13732 else
13733 # We need a cross tool
81ecdfbb
RW
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13735$as_echo "pre-installed" >&6; }
be01d343
PB
13736 fi
13737fi
4b900473 13738
81ecdfbb
RW
13739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13740$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13741if test "x${build}" != "x${host}" ; then
2429c060
PB
13742 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13743 # We already found the complete path
b8025f34 13744 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13746$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13747 else
13748 # Canadian cross, just use what we found
81ecdfbb
RW
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13750$as_echo "pre-installed" >&6; }
2429c060 13751 fi
be01d343
PB
13752else
13753 ok=yes
13754 case " ${configdirs} " in
13755 *" binutils "*) ;;
13756 *) ok=no ;;
13757 esac
c6b750e1 13758
be01d343
PB
13759 if test $ok = yes; then
13760 # An in-tree tool is available and we can use it
13761 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13763$as_echo "just compiled" >&6; }
2429c060
PB
13764 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13765 # We already found the complete path
b8025f34 13766 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13768$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13769 elif test "x$target" = "x$host"; then
13770 # We can use an host tool
13771 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13773$as_echo "host tool" >&6; }
be01d343
PB
13774 else
13775 # We need a cross tool
81ecdfbb
RW
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13777$as_echo "pre-installed" >&6; }
be01d343
PB
13778 fi
13779fi
4b900473 13780
81ecdfbb
RW
13781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13782$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13783if test "x${build}" != "x${host}" ; then
2429c060
PB
13784 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13785 # We already found the complete path
b8025f34 13786 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13788$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13789 else
13790 # Canadian cross, just use what we found
81ecdfbb
RW
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13792$as_echo "pre-installed" >&6; }
2429c060 13793 fi
be01d343
PB
13794else
13795 ok=yes
13796 case " ${configdirs} " in
13797 *" binutils "*) ;;
13798 *) ok=no ;;
13799 esac
c6b750e1 13800
be01d343
PB
13801 if test $ok = yes; then
13802 # An in-tree tool is available and we can use it
13803 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13805$as_echo "just compiled" >&6; }
2429c060
PB
13806 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13807 # We already found the complete path
b8025f34 13808 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13810$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13811 elif test "x$target" = "x$host"; then
13812 # We can use an host tool
13813 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13815$as_echo "host tool" >&6; }
be01d343
PB
13816 else
13817 # We need a cross tool
81ecdfbb
RW
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13819$as_echo "pre-installed" >&6; }
be01d343
PB
13820 fi
13821fi
4b900473 13822
81ecdfbb
RW
13823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13824$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 13825if test "x${build}" != "x${host}" ; then
2429c060
PB
13826 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13827 # We already found the complete path
b8025f34 13828 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13830$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13831 else
13832 # Canadian cross, just use what we found
81ecdfbb
RW
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13834$as_echo "pre-installed" >&6; }
2429c060 13835 fi
be01d343
PB
13836else
13837 ok=yes
13838 case " ${configdirs} " in
13839 *" binutils "*) ;;
13840 *) ok=no ;;
13841 esac
c6b750e1 13842
be01d343
PB
13843 if test $ok = yes; then
13844 # An in-tree tool is available and we can use it
9b980aa1 13845 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13847$as_echo "just compiled" >&6; }
2429c060
PB
13848 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13849 # We already found the complete path
b8025f34 13850 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13852$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13853 elif test "x$target" = "x$host"; then
13854 # We can use an host tool
13855 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13857$as_echo "host tool" >&6; }
be01d343
PB
13858 else
13859 # We need a cross tool
81ecdfbb
RW
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13861$as_echo "pre-installed" >&6; }
be01d343
PB
13862 fi
13863fi
4b900473 13864
81ecdfbb
RW
13865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13866$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 13867if test "x${build}" != "x${host}" ; then
2429c060
PB
13868 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13869 # We already found the complete path
b8025f34 13870 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13872$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13873 else
13874 # Canadian cross, just use what we found
81ecdfbb
RW
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13876$as_echo "pre-installed" >&6; }
2429c060 13877 fi
be01d343
PB
13878else
13879 ok=yes
13880 case " ${configdirs} " in
13881 *" binutils "*) ;;
13882 *) ok=no ;;
13883 esac
c6b750e1 13884
be01d343
PB
13885 if test $ok = yes; then
13886 # An in-tree tool is available and we can use it
13887 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13889$as_echo "just compiled" >&6; }
2429c060
PB
13890 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13891 # We already found the complete path
b8025f34 13892 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13894$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13895 elif test "x$target" = "x$host"; then
13896 # We can use an host tool
13897 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13899$as_echo "host tool" >&6; }
be01d343
PB
13900 else
13901 # We need a cross tool
81ecdfbb
RW
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13903$as_echo "pre-installed" >&6; }
be01d343 13904 fi
a0da8069 13905fi
54752a6b 13906
81ecdfbb
RW
13907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13908$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
13909if test "x${build}" != "x${host}" ; then
13910 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13911 # We already found the complete path
13912 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13914$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13915 else
13916 # Canadian cross, just use what we found
81ecdfbb
RW
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13918$as_echo "pre-installed" >&6; }
0c24b341
NC
13919 fi
13920else
13921 ok=yes
13922 case " ${configdirs} " in
13923 *" binutils "*) ;;
13924 *) ok=no ;;
13925 esac
13926
13927 if test $ok = yes; then
13928 # An in-tree tool is available and we can use it
13929 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13931$as_echo "just compiled" >&6; }
0c24b341
NC
13932 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13933 # We already found the complete path
13934 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13936$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13937 elif test "x$target" = "x$host"; then
13938 # We can use an host tool
13939 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13941$as_echo "host tool" >&6; }
0c24b341
NC
13942 else
13943 # We need a cross tool
81ecdfbb
RW
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13945$as_echo "pre-installed" >&6; }
0c24b341
NC
13946 fi
13947fi
13948
54752a6b
NN
13949
13950
be01d343 13951
4b900473 13952
a0da8069
NN
13953# Certain tools may need extra flags.
13954AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13955RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13956NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13957
be01d343
PB
13958# When building target libraries, except in a Canadian cross, we use
13959# the same toolchain as the compiler we just built.
13960COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13961COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13962COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13963if test $host = $build; then
13964 case " $configdirs " in
13965 *" gcc "*)
13966 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13967 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13968 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13969 ;;
13970 esac
13971fi
13972
13973
13974
13975
13976
81ecdfbb
RW
13977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13978$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13979# Check whether --enable-maintainer-mode was given.
13980if test "${enable_maintainer_mode+set}" = set; then :
13981 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
13982else
13983 USE_MAINTAINER_MODE=no
81ecdfbb
RW
13984fi
13985
13986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13987$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
13988
13989
13990if test "$USE_MAINTAINER_MODE" = yes; then
13991 MAINTAINER_MODE_TRUE=
13992 MAINTAINER_MODE_FALSE='#'
13993else
13994 MAINTAINER_MODE_TRUE='#'
13995 MAINTAINER_MODE_FALSE=
c6b750e1 13996fi
3d5e36ae
AO
13997MAINT=$MAINTAINER_MODE_TRUE
13998
1d39f329
NN
13999# ---------------------
14000# GCC bootstrap support
14001# ---------------------
14002
14003# Stage specific cflags for build.
14004stage1_cflags="-g"
14005case $build in
14006 vax-*-*)
14007 case ${GCC} in
14008 yes) stage1_cflags="-g -Wa,-J" ;;
14009 *) stage1_cflags="-g -J" ;;
14010 esac ;;
1d39f329
NN
14011esac
14012
1d89b610 14013# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 14014if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
14015 saved_CFLAGS="$CFLAGS"
14016
14017 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14018 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14020$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
14022/* end confdefs.h. */
14023
2038f525
PB
14024#if (__GNUC__ < 3) \
14025 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14026 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14027#error http://gcc.gnu.org/PR29382
14028#endif
14029
c6b750e1
DJ
14030int
14031main ()
14032{
14033
14034 ;
14035 return 0;
14036}
14037_ACEOF
81ecdfbb
RW
14038if ac_fn_c_try_compile "$LINENO"; then :
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14040$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 14041else
81ecdfbb
RW
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043$as_echo "no" >&6; }
c6b750e1 14044fi
81ecdfbb 14045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
14046
14047 CFLAGS="$saved_CFLAGS"
14048fi
14049
14050
1d39f329 14051
8a0d8a5c 14052# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14053# Check whether --enable-stage1-checking was given.
14054if test "${enable_stage1_checking+set}" = set; then :
14055 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14056else
5566c1fa 14057 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14058 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14059else
5566c1fa 14060 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14061fi
81ecdfbb 14062fi
8a0d8a5c
PB
14063
14064
c6b750e1 14065
81ecdfbb
RW
14066# Enable -Werror in bootstrap stage2 and later.
14067# Check whether --enable-werror was given.
14068if test "${enable_werror+set}" = set; then :
14069 enableval=$enable_werror;
1d39f329 14070else
a0323144 14071 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14072 enable_werror=yes
79fcd0ec
PB
14073else
14074 enable_werror=no
14075fi
81ecdfbb
RW
14076fi
14077
1a6f2dc7
NN
14078case ${enable_werror} in
14079 yes) stage2_werror_flag="--enable-werror-always" ;;
14080 *) stage2_werror_flag="" ;;
1d39f329
NN
14081esac
14082
14083
e8a5fa9c
RW
14084# Specify what files to not compare during bootstrap.
14085
14086compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14087case "$target" in
14088 hppa*64*-*-hpux*) ;;
14089 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14090esac
1f53ca9a
AO
14091case " $configdirs " in
14092*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14093esac
e8a5fa9c
RW
14094
14095
81ecdfbb
RW
14096ac_config_files="$ac_config_files Makefile"
14097
c6b750e1 14098cat >confcache <<\_ACEOF
a0da8069
NN
14099# This file is a shell script that caches the results of configure
14100# tests run on this system so they can be shared between configure
c6b750e1
DJ
14101# scripts and configure runs, see configure's option --config-cache.
14102# It is not useful on other systems. If it contains results you don't
14103# want to keep, you may remove or edit it.
a0da8069 14104#
c6b750e1
DJ
14105# config.status only pays attention to the cache file if you give it
14106# the --recheck option to rerun configure.
a0da8069 14107#
c6b750e1
DJ
14108# `ac_cv_env_foo' variables (set or unset) will be overridden when
14109# loading this file, other *unset* `ac_cv_foo' will be assigned the
14110# following values.
14111
14112_ACEOF
14113
a0da8069
NN
14114# The following way of writing the cache mishandles newlines in values,
14115# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14116# So, we kill variables containing newlines.
a0da8069
NN
14117# Ultrix sh set writes to stderr and can't be redirected directly,
14118# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14119(
14120 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14121 eval ac_val=\$$ac_var
14122 case $ac_val in #(
14123 *${as_nl}*)
14124 case $ac_var in #(
14125 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14126$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14127 esac
14128 case $ac_var in #(
14129 _ | IFS | as_nl) ;; #(
14130 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14131 *) { eval $ac_var=; unset $ac_var;} ;;
14132 esac ;;
14133 esac
14134 done
14135
c6b750e1 14136 (set) 2>&1 |
81ecdfbb
RW
14137 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14138 *${as_nl}ac_space=\ *)
14139 # `set' does not quote correctly, so add quotes: double-quote
14140 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14141 sed -n \
14142 "s/'/'\\\\''/g;
14143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14144 ;; #(
c6b750e1
DJ
14145 *)
14146 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14147 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14148 ;;
81ecdfbb
RW
14149 esac |
14150 sort
14151) |
c6b750e1 14152 sed '
81ecdfbb 14153 /^ac_cv_env_/b end
c6b750e1 14154 t clear
81ecdfbb 14155 :clear
c6b750e1
DJ
14156 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14157 t end
81ecdfbb
RW
14158 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14159 :end' >>confcache
14160if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14161 if test -w "$cache_file"; then
14162 test "x$cache_file" != "x/dev/null" &&
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14164$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14165 cat confcache >$cache_file
a0da8069 14166 else
81ecdfbb
RW
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14168$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14169 fi
852e5f18 14170fi
a0da8069 14171rm -f confcache
852e5f18 14172
a0da8069
NN
14173test "x$prefix" = xNONE && prefix=$ac_default_prefix
14174# Let make expand exec_prefix.
14175test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14176
a0da8069
NN
14177# Transform confdefs.h into DEFS.
14178# Protect against shell expansion while executing Makefile rules.
14179# Protect against Makefile macro expansion.
c6b750e1
DJ
14180#
14181# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14182# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14183# look for a macro that doesn't take arguments.
81ecdfbb
RW
14184ac_script='
14185:mline
14186/\\$/{
14187 N
14188 s,\\\n,,
14189 b mline
14190}
c6b750e1 14191t clear
81ecdfbb
RW
14192:clear
14193s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14194t quote
81ecdfbb 14195s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14196t quote
81ecdfbb
RW
14197b any
14198:quote
14199s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14200s/\[/\\&/g
14201s/\]/\\&/g
14202s/\$/$$/g
14203H
14204:any
14205${
14206 g
14207 s/^\n//
14208 s/\n/ /g
14209 p
14210}
14211'
14212DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14213
14214
14215ac_libobjs=
14216ac_ltlibobjs=
14217for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14218 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14219 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14220 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14221 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14222 # will be set to the directory where LIBOBJS objects are built.
14223 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14224 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14225done
14226LIBOBJS=$ac_libobjs
852e5f18 14227
c6b750e1 14228LTLIBOBJS=$ac_ltlibobjs
376a0e54 14229
cac3d6c4 14230
c6b750e1
DJ
14231
14232: ${CONFIG_STATUS=./config.status}
81ecdfbb 14233ac_write_fail=0
c6b750e1
DJ
14234ac_clean_files_save=$ac_clean_files
14235ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14236{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14237$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14238as_write_fail=0
14239cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14240#! $SHELL
14241# Generated by $as_me.
a0da8069 14242# Run this file to recreate the current configuration.
a0da8069 14243# Compiler output produced by configure, useful for debugging
c6b750e1 14244# configure, is in config.log if it exists.
376a0e54 14245
c6b750e1
DJ
14246debug=false
14247ac_cs_recheck=false
14248ac_cs_silent=false
c6b750e1 14249
81ecdfbb
RW
14250SHELL=\${CONFIG_SHELL-$SHELL}
14251export SHELL
14252_ASEOF
14253cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14254## -------------------- ##
14255## M4sh Initialization. ##
14256## -------------------- ##
14257
14258# Be more Bourne compatible
14259DUALCASE=1; export DUALCASE # for MKS sh
14260if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14261 emulate sh
14262 NULLCMD=:
81ecdfbb 14263 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14264 # is contrary to our usage. Disable this feature.
14265 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14266 setopt NO_GLOB_SUBST
14267else
14268 case `(set -o) 2>/dev/null` in #(
14269 *posix*) :
14270 set -o posix ;; #(
14271 *) :
14272 ;;
14273esac
c6b750e1 14274fi
c6b750e1 14275
81ecdfbb
RW
14276
14277as_nl='
14278'
14279export as_nl
14280# Printing a long string crashes Solaris 7 /usr/bin/printf.
14281as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14282as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14283as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14284# Prefer a ksh shell builtin over an external printf program on Solaris,
14285# but without wasting forks for bash or zsh.
14286if test -z "$BASH_VERSION$ZSH_VERSION" \
14287 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14288 as_echo='print -r --'
14289 as_echo_n='print -rn --'
14290elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14291 as_echo='printf %s\n'
14292 as_echo_n='printf %s'
14293else
14294 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14295 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14296 as_echo_n='/usr/ucb/echo -n'
14297 else
14298 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14299 as_echo_n_body='eval
14300 arg=$1;
14301 case $arg in #(
14302 *"$as_nl"*)
14303 expr "X$arg" : "X\\(.*\\)$as_nl";
14304 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14305 esac;
14306 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14307 '
14308 export as_echo_n_body
14309 as_echo_n='sh -c $as_echo_n_body as_echo'
14310 fi
14311 export as_echo_body
14312 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14313fi
14314
81ecdfbb
RW
14315# The user is always right.
14316if test "${PATH_SEPARATOR+set}" != set; then
14317 PATH_SEPARATOR=:
14318 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14319 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14320 PATH_SEPARATOR=';'
14321 }
14322fi
14323
14324
14325# IFS
14326# We need space, tab and new line, in precisely that order. Quoting is
14327# there to prevent editors from complaining about space-tab.
14328# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14329# splitting by setting IFS to empty value.)
14330IFS=" "" $as_nl"
14331
14332# Find who we are. Look in the path if we contain no directory separator.
14333case $0 in #((
14334 *[\\/]* ) as_myself=$0 ;;
14335 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14336for as_dir in $PATH
14337do
14338 IFS=$as_save_IFS
14339 test -z "$as_dir" && as_dir=.
14340 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14341 done
14342IFS=$as_save_IFS
14343
14344 ;;
14345esac
14346# We did not find ourselves, most probably we were run as `sh COMMAND'
14347# in which case we are not to be found in the path.
14348if test "x$as_myself" = x; then
14349 as_myself=$0
14350fi
14351if test ! -f "$as_myself"; then
14352 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14353 exit 1
14354fi
c6b750e1 14355
81ecdfbb
RW
14356# Unset variables that we do not need and which cause bugs (e.g. in
14357# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14358# suppresses any "Segmentation fault" message there. '((' could
14359# trigger a bug in pdksh 5.2.14.
14360for as_var in BASH_ENV ENV MAIL MAILPATH
14361do eval test x\${$as_var+set} = xset \
14362 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14363done
c6b750e1
DJ
14364PS1='$ '
14365PS2='> '
14366PS4='+ '
14367
14368# NLS nuisances.
81ecdfbb
RW
14369LC_ALL=C
14370export LC_ALL
14371LANGUAGE=C
14372export LANGUAGE
14373
14374# CDPATH.
14375(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14376
14377
14378# as_fn_error ERROR [LINENO LOG_FD]
14379# ---------------------------------
14380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14382# script with status $?, using 1 if that was 0.
14383as_fn_error ()
14384{
14385 as_status=$?; test $as_status -eq 0 && as_status=1
14386 if test "$3"; then
14387 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14389 fi
81ecdfbb
RW
14390 $as_echo "$as_me: error: $1" >&2
14391 as_fn_exit $as_status
14392} # as_fn_error
14393
14394
14395# as_fn_set_status STATUS
14396# -----------------------
14397# Set $? to STATUS, without forking.
14398as_fn_set_status ()
14399{
14400 return $1
14401} # as_fn_set_status
14402
14403# as_fn_exit STATUS
14404# -----------------
14405# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14406as_fn_exit ()
14407{
14408 set +e
14409 as_fn_set_status $1
14410 exit $1
14411} # as_fn_exit
14412
14413# as_fn_unset VAR
14414# ---------------
14415# Portably unset VAR.
14416as_fn_unset ()
14417{
14418 { eval $1=; unset $1;}
14419}
14420as_unset=as_fn_unset
14421# as_fn_append VAR VALUE
14422# ----------------------
14423# Append the text in VALUE to the end of the definition contained in VAR. Take
14424# advantage of any shell optimizations that allow amortized linear growth over
14425# repeated appends, instead of the typical quadratic growth present in naive
14426# implementations.
14427if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14428 eval 'as_fn_append ()
14429 {
14430 eval $1+=\$2
14431 }'
14432else
14433 as_fn_append ()
14434 {
14435 eval $1=\$$1\$2
14436 }
14437fi # as_fn_append
14438
14439# as_fn_arith ARG...
14440# ------------------
14441# Perform arithmetic evaluation on the ARGs, and store the result in the
14442# global $as_val. Take advantage of shells that can avoid forks. The arguments
14443# must be portable across $(()) and expr.
14444if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14445 eval 'as_fn_arith ()
14446 {
14447 as_val=$(( $* ))
14448 }'
14449else
14450 as_fn_arith ()
14451 {
14452 as_val=`expr "$@" || test $? -eq 1`
14453 }
14454fi # as_fn_arith
14455
c6b750e1 14456
81ecdfbb
RW
14457if expr a : '\(a\)' >/dev/null 2>&1 &&
14458 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14459 as_expr=expr
14460else
14461 as_expr=false
14462fi
14463
81ecdfbb 14464if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14465 as_basename=basename
14466else
14467 as_basename=false
14468fi
14469
81ecdfbb
RW
14470if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14471 as_dirname=dirname
14472else
14473 as_dirname=false
14474fi
c6b750e1 14475
81ecdfbb 14476as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14477$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14478 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14479 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14480$as_echo X/"$0" |
14481 sed '/^.*\/\([^/][^/]*\)\/*$/{
14482 s//\1/
14483 q
14484 }
14485 /^X\/\(\/\/\)$/{
14486 s//\1/
14487 q
14488 }
14489 /^X\/\(\/\).*/{
14490 s//\1/
14491 q
14492 }
14493 s/.*/./; q'`
c6b750e1 14494
c6b750e1
DJ
14495# Avoid depending upon Character Ranges.
14496as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14497as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14498as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14499as_cr_digits='0123456789'
14500as_cr_alnum=$as_cr_Letters$as_cr_digits
14501
81ecdfbb
RW
14502ECHO_C= ECHO_N= ECHO_T=
14503case `echo -n x` in #(((((
14504-n*)
14505 case `echo 'xy\c'` in
14506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14507 xy) ECHO_C='\c';;
14508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14509 ECHO_T=' ';;
14510 esac;;
14511*)
14512 ECHO_N='-n';;
c6b750e1
DJ
14513esac
14514
81ecdfbb
RW
14515rm -f conf$$ conf$$.exe conf$$.file
14516if test -d conf$$.dir; then
14517 rm -f conf$$.dir/conf$$.file
c6b750e1 14518else
81ecdfbb
RW
14519 rm -f conf$$.dir
14520 mkdir conf$$.dir 2>/dev/null
c6b750e1 14521fi
81ecdfbb
RW
14522if (echo >conf$$.file) 2>/dev/null; then
14523 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14524 as_ln_s='ln -s'
81ecdfbb
RW
14525 # ... but there are two gotchas:
14526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14528 # In both cases, we have to default to `cp -p'.
14529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14530 as_ln_s='cp -p'
14531 elif ln conf$$.file conf$$ 2>/dev/null; then
14532 as_ln_s=ln
14533 else
14534 as_ln_s='cp -p'
c6b750e1 14535 fi
c6b750e1
DJ
14536else
14537 as_ln_s='cp -p'
14538fi
81ecdfbb
RW
14539rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14540rmdir conf$$.dir 2>/dev/null
14541
14542
14543# as_fn_mkdir_p
14544# -------------
14545# Create "$as_dir" as a directory, including parents if necessary.
14546as_fn_mkdir_p ()
14547{
14548
14549 case $as_dir in #(
14550 -*) as_dir=./$as_dir;;
14551 esac
14552 test -d "$as_dir" || eval $as_mkdir_p || {
14553 as_dirs=
14554 while :; do
14555 case $as_dir in #(
14556 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14557 *) as_qdir=$as_dir;;
14558 esac
14559 as_dirs="'$as_qdir' $as_dirs"
14560 as_dir=`$as_dirname -- "$as_dir" ||
14561$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14562 X"$as_dir" : 'X\(//\)[^/]' \| \
14563 X"$as_dir" : 'X\(//\)$' \| \
14564 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14565$as_echo X"$as_dir" |
14566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14567 s//\1/
14568 q
14569 }
14570 /^X\(\/\/\)[^/].*/{
14571 s//\1/
14572 q
14573 }
14574 /^X\(\/\/\)$/{
14575 s//\1/
14576 q
14577 }
14578 /^X\(\/\).*/{
14579 s//\1/
14580 q
14581 }
14582 s/.*/./; q'`
14583 test -d "$as_dir" && break
14584 done
14585 test -z "$as_dirs" || eval "mkdir $as_dirs"
14586 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14587
c6b750e1 14588
81ecdfbb 14589} # as_fn_mkdir_p
c6b750e1 14590if mkdir -p . 2>/dev/null; then
81ecdfbb 14591 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14592else
14593 test -d ./-p && rmdir ./-p
14594 as_mkdir_p=false
14595fi
14596
81ecdfbb
RW
14597if test -x / >/dev/null 2>&1; then
14598 as_test_x='test -x'
14599else
14600 if ls -dL / >/dev/null 2>&1; then
14601 as_ls_L_option=L
14602 else
14603 as_ls_L_option=
14604 fi
14605 as_test_x='
14606 eval sh -c '\''
14607 if test -d "$1"; then
14608 test -d "$1/.";
14609 else
14610 case $1 in #(
14611 -*)set "./$1";;
14612 esac;
14613 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14614 ???[sx]*):;;*)false;;esac;fi
14615 '\'' sh
14616 '
14617fi
14618as_executable_p=$as_test_x
c6b750e1
DJ
14619
14620# Sed expression to map a string onto a valid CPP name.
14621as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14622
14623# Sed expression to map a string onto a valid variable name.
14624as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14625
14626
c6b750e1 14627exec 6>&1
81ecdfbb
RW
14628## ----------------------------------- ##
14629## Main body of $CONFIG_STATUS script. ##
14630## ----------------------------------- ##
14631_ASEOF
14632test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14633
14634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14635# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14636# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14637# values after options handling.
14638ac_log="
c6b750e1 14639This file was extended by $as_me, which was
81ecdfbb 14640generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14641
14642 CONFIG_FILES = $CONFIG_FILES
14643 CONFIG_HEADERS = $CONFIG_HEADERS
14644 CONFIG_LINKS = $CONFIG_LINKS
14645 CONFIG_COMMANDS = $CONFIG_COMMANDS
14646 $ $0 $@
14647
81ecdfbb
RW
14648on `(hostname || uname -n) 2>/dev/null | sed 1q`
14649"
14650
c6b750e1
DJ
14651_ACEOF
14652
81ecdfbb
RW
14653case $ac_config_files in *"
14654"*) set x $ac_config_files; shift; ac_config_files=$*;;
14655esac
c6b750e1 14656
c6b750e1 14657
c6b750e1 14658
81ecdfbb
RW
14659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14660# Files that config.status was made for.
14661config_files="$ac_config_files"
c6b750e1 14662
81ecdfbb 14663_ACEOF
c6b750e1 14664
81ecdfbb 14665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14666ac_cs_usage="\
81ecdfbb
RW
14667\`$as_me' instantiates files and other configuration actions
14668from templates according to the current configuration. Unless the files
14669and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14670
81ecdfbb 14671Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14672
14673 -h, --help print this help, then exit
81ecdfbb
RW
14674 -V, --version print version number and configuration settings, then exit
14675 -q, --quiet, --silent
14676 do not print progress messages
c6b750e1
DJ
14677 -d, --debug don't remove temporary files
14678 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14679 --file=FILE[:TEMPLATE]
14680 instantiate the configuration file FILE
c6b750e1
DJ
14681
14682Configuration files:
14683$config_files
14684
81ecdfbb 14685Report bugs to the package provider."
c6b750e1 14686
81ecdfbb
RW
14687_ACEOF
14688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14689ac_cs_version="\\
14690config.status
81ecdfbb
RW
14691configured by $0, generated by GNU Autoconf 2.64,
14692 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14693
81ecdfbb 14694Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14695This config.status script is free software; the Free Software Foundation
14696gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14697
14698ac_pwd='$ac_pwd'
14699srcdir='$srcdir'
14700INSTALL='$INSTALL'
8e957354 14701AWK='$AWK'
81ecdfbb 14702test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14703_ACEOF
14704
81ecdfbb
RW
14705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14706# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14707ac_need_defaults=:
14708while test $# != 0
a0da8069 14709do
c6b750e1
DJ
14710 case $1 in
14711 --*=*)
81ecdfbb
RW
14712 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14713 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14714 ac_shift=:
14715 ;;
81ecdfbb 14716 *)
c6b750e1
DJ
14717 ac_option=$1
14718 ac_optarg=$2
14719 ac_shift=shift
14720 ;;
c6b750e1
DJ
14721 esac
14722
14723 case $ac_option in
14724 # Handling of the options.
a0da8069 14725 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14726 ac_cs_recheck=: ;;
81ecdfbb
RW
14727 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14728 $as_echo "$ac_cs_version"; exit ;;
14729 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14730 debug=: ;;
14731 --file | --fil | --fi | --f )
14732 $ac_shift
81ecdfbb
RW
14733 case $ac_optarg in
14734 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14735 esac
14736 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14737 ac_need_defaults=false;;
81ecdfbb
RW
14738 --he | --h | --help | --hel | -h )
14739 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14741 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14742 ac_cs_silent=: ;;
14743
14744 # This is an error.
81ecdfbb
RW
14745 -*) as_fn_error "unrecognized option: \`$1'
14746Try \`$0 --help' for more information." ;;
c6b750e1 14747
81ecdfbb
RW
14748 *) as_fn_append ac_config_targets " $1"
14749 ac_need_defaults=false ;;
c6b750e1 14750
376a0e54 14751 esac
c6b750e1 14752 shift
376a0e54
CM
14753done
14754
c6b750e1 14755ac_configure_extra_args=
376a0e54 14756
c6b750e1
DJ
14757if $ac_cs_silent; then
14758 exec 6>/dev/null
14759 ac_configure_extra_args="$ac_configure_extra_args --silent"
14760fi
376a0e54 14761
c6b750e1 14762_ACEOF
81ecdfbb 14763cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14764if \$ac_cs_recheck; then
81ecdfbb
RW
14765 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14766 shift
14767 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14768 CONFIG_SHELL='$SHELL'
14769 export CONFIG_SHELL
14770 exec "\$@"
c6b750e1
DJ
14771fi
14772
14773_ACEOF
81ecdfbb
RW
14774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14775exec 5>>config.log
14776{
14777 echo
14778 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14779## Running $as_me. ##
14780_ASBOX
14781 $as_echo "$ac_log"
14782} >&5
c6b750e1 14783
81ecdfbb
RW
14784_ACEOF
14785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14786#
14787# INIT-COMMANDS
14788#
14789extrasub_build="$extrasub_build"
14790 extrasub_host="$extrasub_host"
14791 extrasub_target="$extrasub_target"
14792
81ecdfbb 14793_ACEOF
c6b750e1 14794
81ecdfbb 14795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14796
81ecdfbb 14797# Handling of arguments.
c6b750e1
DJ
14798for ac_config_target in $ac_config_targets
14799do
81ecdfbb
RW
14800 case $ac_config_target in
14801 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14802
14803 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14804 esac
14805done
14806
81ecdfbb 14807
c6b750e1
DJ
14808# If the user did not use the arguments to specify the items to instantiate,
14809# then the envvar interface is used. Set only those that are not.
14810# We use the long form for the default assignment because of an extremely
14811# bizarre bug on SunOS 4.1.3.
14812if $ac_need_defaults; then
14813 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14814fi
14815
14816# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14817# simply because there is no reason against having it here, and in addition,
c6b750e1 14818# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14819# Hook for its removal unless debugging.
14820# Note that there is a small window in which the directory will not be cleaned:
14821# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14822$debug ||
14823{
81ecdfbb
RW
14824 tmp=
14825 trap 'exit_status=$?
14826 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14827' 0
14828 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14829}
c6b750e1
DJ
14830# Create a (secure) tmp directory for tmp files.
14831
14832{
81ecdfbb 14833 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14834 test -n "$tmp" && test -d "$tmp"
14835} ||
14836{
81ecdfbb
RW
14837 tmp=./conf$$-$RANDOM
14838 (umask 077 && mkdir "$tmp")
14839} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14840
14841# Set up the scripts for CONFIG_FILES section.
14842# No need to generate them if there are no CONFIG_FILES.
14843# This happens for instance with `./config.status config.h'.
14844if test -n "$CONFIG_FILES"; then
14845
14846if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14847 ac_cs_awk_getline=:
14848 ac_cs_awk_pipe_init=
14849 ac_cs_awk_read_file='
14850 while ((getline aline < (F[key])) > 0)
14851 print(aline)
14852 close(F[key])'
14853 ac_cs_awk_pipe_fini=
14854else
14855 ac_cs_awk_getline=false
14856 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14857 ac_cs_awk_read_file='
14858 print "|#_!!_#|"
14859 print "cat " F[key] " &&"
14860 '$ac_cs_awk_pipe_init
14861 # The final `:' finishes the AND list.
14862 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14863fi
14864ac_cr=`echo X | tr X '\015'`
14865# On cygwin, bash can eat \r inside `` if the user requested igncr.
14866# But we know of no other shell where ac_cr would be empty at this
14867# point, so we can use a bashism as a fallback.
14868if test "x$ac_cr" = x; then
14869 eval ac_cr=\$\'\\r\'
14870fi
14871ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14872if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14873 ac_cs_awk_cr='\r'
14874else
14875 ac_cs_awk_cr=$ac_cr
14876fi
14877
14878echo 'BEGIN {' >"$tmp/subs1.awk" &&
14879_ACEOF
14880
14881# Create commands to substitute file output variables.
c6b750e1 14882{
81ecdfbb
RW
14883 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14884 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14885 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14886 echo "_ACAWK" &&
14887 echo "_ACEOF"
14888} >conf$$files.sh &&
14889. ./conf$$files.sh ||
14890 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14891rm -f conf$$files.sh
c6b750e1 14892
81ecdfbb
RW
14893{
14894 echo "cat >conf$$subs.awk <<_ACEOF" &&
14895 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14896 echo "_ACEOF"
14897} >conf$$subs.sh ||
14898 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14899ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14900ac_delim='%!_!# '
14901for ac_last_try in false false false false false :; do
14902 . ./conf$$subs.sh ||
14903 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14904
14905 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14906 if test $ac_delim_n = $ac_delim_num; then
14907 break
14908 elif $ac_last_try; then
14909 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14910 else
14911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14912 fi
14913done
14914rm -f conf$$subs.sh
14915
14916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14917cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 14918_ACEOF
81ecdfbb
RW
14919sed -n '
14920h
14921s/^/S["/; s/!.*/"]=/
14922p
14923g
14924s/^[^!]*!//
14925:repl
14926t repl
14927s/'"$ac_delim"'$//
14928t delim
14929:nl
14930h
14931s/\(.\{148\}\).*/\1/
14932t more1
14933s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14934p
14935n
14936b repl
14937:more1
14938s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14939p
14940g
14941s/.\{148\}//
14942t nl
14943:delim
14944h
14945s/\(.\{148\}\).*/\1/
14946t more2
14947s/["\\]/\\&/g; s/^/"/; s/$/"/
14948p
14949b
14950:more2
14951s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14952p
14953g
14954s/.\{148\}//
14955t delim
14956' <conf$$subs.awk | sed '
14957/^[^""]/{
14958 N
14959 s/\n//
14960}
14961' >>$CONFIG_STATUS || ac_write_fail=1
14962rm -f conf$$subs.awk
14963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14964_ACAWK
14965cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14966 for (key in S) S_is_set[key] = 1
14967 FS = "\a"
14968 \$ac_cs_awk_pipe_init
14969}
14970{
14971 line = $ 0
14972 nfields = split(line, field, "@")
14973 substed = 0
14974 len = length(field[1])
14975 for (i = 2; i < nfields; i++) {
14976 key = field[i]
14977 keylen = length(key)
14978 if (S_is_set[key]) {
14979 value = S[key]
14980 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14981 len += length(value) + length(field[++i])
14982 substed = 1
14983 } else
14984 len += 1 + keylen
14985 }
14986 if (nfields == 3 && !substed) {
14987 key = field[2]
14988 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14989 \$ac_cs_awk_read_file
14990 next
14991 }
14992 }
14993 print line
14994}
14995\$ac_cs_awk_pipe_fini
14996_ACAWK
14997_ACEOF
14998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14999if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15000 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15001else
15002 cat
15003fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15004 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15005_ACEOF
15006
15007# VPATH may cause trouble with some makes, so we remove $(srcdir),
15008# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15009# trailing colons and then remove the whole line if VPATH becomes empty
15010# (actually we leave an empty line to preserve line numbers).
15011if test "x$srcdir" = x.; then
15012 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15013s/:*\$(srcdir):*/:/
15014s/:*\${srcdir}:*/:/
15015s/:*@srcdir@:*/:/
15016s/^\([^=]*=[ ]*\):*/\1/
15017s/:*$//
15018s/^[^=]*=[ ]*$//
15019}'
15020fi
c6b750e1 15021
81ecdfbb
RW
15022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15023fi # test -n "$CONFIG_FILES"
c6b750e1 15024
c6b750e1 15025
81ecdfbb
RW
15026eval set X " :F $CONFIG_FILES "
15027shift
15028for ac_tag
15029do
15030 case $ac_tag in
15031 :[FHLC]) ac_mode=$ac_tag; continue;;
15032 esac
15033 case $ac_mode$ac_tag in
15034 :[FHL]*:*);;
15035 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15036 :[FH]-) ac_tag=-:-;;
15037 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15038 esac
15039 ac_save_IFS=$IFS
15040 IFS=:
15041 set x $ac_tag
15042 IFS=$ac_save_IFS
15043 shift
15044 ac_file=$1
15045 shift
252b5132 15046
81ecdfbb
RW
15047 case $ac_mode in
15048 :L) ac_source=$1;;
15049 :[FH])
15050 ac_file_inputs=
15051 for ac_f
15052 do
15053 case $ac_f in
15054 -) ac_f="$tmp/stdin";;
15055 *) # Look for the file first in the build tree, then in the source tree
15056 # (if the path is not absolute). The absolute path cannot be DOS-style,
15057 # because $ac_f cannot contain `:'.
15058 test -f "$ac_f" ||
15059 case $ac_f in
15060 [\\/$]*) false;;
15061 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15062 esac ||
15063 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15064 esac
15065 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15066 as_fn_append ac_file_inputs " '$ac_f'"
15067 done
c6b750e1 15068
81ecdfbb
RW
15069 # Let's still pretend it is `configure' which instantiates (i.e., don't
15070 # use $as_me), people would be surprised to read:
15071 # /* config.h. Generated by config.status. */
15072 configure_input='Generated from '`
15073 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15074 `' by configure.'
15075 if test x"$ac_file" != x-; then
15076 configure_input="$ac_file. $configure_input"
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15078$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15079 fi
81ecdfbb
RW
15080 # Neutralize special characters interpreted by sed in replacement strings.
15081 case $configure_input in #(
15082 *\&* | *\|* | *\\* )
15083 ac_sed_conf_input=`$as_echo "$configure_input" |
15084 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15085 *) ac_sed_conf_input=$configure_input;;
15086 esac
cac3d6c4 15087
81ecdfbb
RW
15088 case $ac_tag in
15089 *:-:* | *:-) cat >"$tmp/stdin" \
15090 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15091 esac
15092 ;;
a0da8069 15093 esac
252b5132 15094
81ecdfbb 15095 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15096$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15097 X"$ac_file" : 'X\(//\)[^/]' \| \
15098 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15099 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15100$as_echo X"$ac_file" |
15101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15102 s//\1/
15103 q
15104 }
15105 /^X\(\/\/\)[^/].*/{
15106 s//\1/
15107 q
15108 }
15109 /^X\(\/\/\)$/{
15110 s//\1/
15111 q
15112 }
15113 /^X\(\/\).*/{
15114 s//\1/
15115 q
15116 }
15117 s/.*/./; q'`
15118 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15119 ac_builddir=.
252b5132 15120
81ecdfbb
RW
15121case "$ac_dir" in
15122.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15123*)
15124 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15125 # A ".." for each directory in $ac_dir_suffix.
15126 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15127 case $ac_top_builddir_sub in
15128 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15129 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15130 esac ;;
15131esac
15132ac_abs_top_builddir=$ac_pwd
15133ac_abs_builddir=$ac_pwd$ac_dir_suffix
15134# for backward compatibility:
15135ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15136
15137case $srcdir in
81ecdfbb 15138 .) # We are building in place.
c6b750e1 15139 ac_srcdir=.
81ecdfbb
RW
15140 ac_top_srcdir=$ac_top_builddir_sub
15141 ac_abs_top_srcdir=$ac_pwd ;;
15142 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15143 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15144 ac_top_srcdir=$srcdir
15145 ac_abs_top_srcdir=$srcdir ;;
15146 *) # Relative name.
15147 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15148 ac_top_srcdir=$ac_top_build_prefix$srcdir
15149 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15150esac
81ecdfbb 15151ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15152
252b5132 15153
81ecdfbb
RW
15154 case $ac_mode in
15155 :F)
15156 #
15157 # CONFIG_FILE
15158 #
c6b750e1
DJ
15159
15160 case $INSTALL in
15161 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15162 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15163 esac
81ecdfbb 15164_ACEOF
252b5132 15165
81ecdfbb
RW
15166cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15167# If the template does not know about datarootdir, expand it.
15168# FIXME: This hack should be removed a few years after 2.60.
15169ac_datarootdir_hack=; ac_datarootdir_seen=
15170ac_sed_dataroot='
15171/datarootdir/ {
15172 p
15173 q
15174}
15175/@datadir@/p
15176/@docdir@/p
15177/@infodir@/p
15178/@localedir@/p
15179/@mandir@/p'
15180case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15181*datarootdir*) ac_datarootdir_seen=yes;;
15182*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15184$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15185_ACEOF
81ecdfbb
RW
15186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15187 ac_datarootdir_hack='
15188 s&@datadir@&$datadir&g
15189 s&@docdir@&$docdir&g
15190 s&@infodir@&$infodir&g
15191 s&@localedir@&$localedir&g
15192 s&@mandir@&$mandir&g
15193 s&\\\${datarootdir}&$datarootdir&g' ;;
15194esac
15195_ACEOF
15196
15197# Neutralize VPATH when `$srcdir' = `.'.
15198# Shell code in configure.ac might set extrasub.
15199# FIXME: do we really want to maintain this feature?
15200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15201ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15202$extrasub
15203_ACEOF
81ecdfbb 15204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15205:t
15206/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15207s|@configure_input@|$ac_sed_conf_input|;t t
15208s&@top_builddir@&$ac_top_builddir_sub&;t t
15209s&@top_build_prefix@&$ac_top_build_prefix&;t t
15210s&@srcdir@&$ac_srcdir&;t t
15211s&@abs_srcdir@&$ac_abs_srcdir&;t t
15212s&@top_srcdir@&$ac_top_srcdir&;t t
15213s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15214s&@builddir@&$ac_builddir&;t t
15215s&@abs_builddir@&$ac_abs_builddir&;t t
15216s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15217s&@INSTALL@&$ac_INSTALL&;t t
15218$ac_datarootdir_hack
15219"
15220eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15221if $ac_cs_awk_getline; then
15222 $AWK -f "$tmp/subs.awk"
15223else
15224 $AWK -f "$tmp/subs.awk" | $SHELL
15225fi >$tmp/out \
15226 || as_fn_error "could not create $ac_file" "$LINENO" 5
15227
15228test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15229 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15230 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15232which seems to be undefined. Please make sure it is defined." >&5
15233$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15234which seems to be undefined. Please make sure it is defined." >&2;}
15235
15236 rm -f "$tmp/stdin"
15237 case $ac_file in
15238 -) cat "$tmp/out" && rm -f "$tmp/out";;
15239 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15240 esac \
15241 || as_fn_error "could not create $ac_file" "$LINENO" 5
15242 ;;
c148b4cb 15243
c148b4cb 15244
c148b4cb 15245
81ecdfbb
RW
15246 esac
15247
06a51eac
RW
15248
15249 case $ac_file$ac_mode in
15250 "Makefile":F) sed "$extrasub_build" Makefile |
15251 sed "$extrasub_host" |
15252 sed "$extrasub_target" > mf$$
15253 mv -f mf$$ Makefile ;;
15254
15255 esac
81ecdfbb
RW
15256done # for ac_tag
15257
15258
15259as_fn_exit 0
c6b750e1 15260_ACEOF
c6b750e1
DJ
15261ac_clean_files=$ac_clean_files_save
15262
81ecdfbb
RW
15263test $ac_write_fail = 0 ||
15264 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15265
c6b750e1
DJ
15266
15267# configure is writing to config.log, and then calls config.status.
15268# config.status does its own redirection, appending to config.log.
15269# Unfortunately, on DOS this fails, as config.log is still kept open
15270# by configure, so config.status won't be able to write to it; its
15271# output is simply discarded. So we exec the FD to /dev/null,
15272# effectively closing config.log, so it can be properly (re)opened and
15273# appended to by config.status. When coming back to configure, we
15274# need to make the FD available again.
15275if test "$no_create" != yes; then
15276 ac_cs_success=:
15277 ac_config_status_args=
15278 test "$silent" = yes &&
15279 ac_config_status_args="$ac_config_status_args --quiet"
15280 exec 5>/dev/null
15281 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15282 exec 5>>config.log
15283 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15284 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15285 $ac_cs_success || as_fn_exit $?
15286fi
15287if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15289$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15290fi
c148b4cb 15291
This page took 1.530446 seconds and 4 git commands to generate.