2011-05-05 Yao Qi <yao@codesourcery.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
ff46fb8f
JM
3267case "${target}" in
3268 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3269 libgloss_dir=wince
3270 ;;
3271 arm*-*-*)
3272 libgloss_dir=arm
3273 ;;
3274 cris-*-* | crisv32-*-*)
3275 libgloss_dir=cris
3276 ;;
3277 hppa*-*-*)
3278 libgloss_dir=pa
3279 ;;
3280 i[3456789]86-*-*)
3281 libgloss_dir=i386
3282 ;;
3283 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3284 libgloss_dir=m68hc11
3285 ;;
3286 m68*-*-* | fido-*-*)
3287 libgloss_dir=m68k
3288 ;;
3289 mips*-*-*)
3290 libgloss_dir=mips
3291 ;;
3292 powerpc*-*-*)
3293 libgloss_dir=rs6000
3294 ;;
3295 sparc*-*-*)
3296 libgloss_dir=sparc
3297 ;;
3298esac
3299
a0da8069
NN
3300case "${target}" in
3301 *-*-chorusos)
b2f14e4a 3302 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3303 ;;
24741ab2 3304 powerpc-*-darwin*)
9d39db92 3305 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3306 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3307 ;;
85bd1942
TG
3308 i[3456789]86-*-darwin*)
3309 noconfigdirs="$noconfigdirs ld gprof"
3310 noconfigdirs="$noconfigdirs sim target-rda"
3311 ;;
e8a5fa9c 3312 x86_64-*-darwin[912]*)
652dec25
TG
3313 noconfigdirs="$noconfigdirs ld gas gprof"
3314 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3315 ;;
04d1ab34 3316 *-*-darwin*)
d320aacb 3317 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3318 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3319 ;;
5b806d27
NC
3320 *-*-dragonfly*)
3321 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3322 ;;
de0b4a87 3323 *-*-freebsd*)
4b1cb4fe
DD
3324 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3325 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3326 && test -f /usr/local/include/gmp.h; then
3327 with_gmp=/usr/local
3328 fi
4b1cb4fe 3329 ;;
f8a495c8
NC
3330 *-*-kaos*)
3331 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3332 noconfigdirs="$noconfigdirs target-libgloss"
3333 ;;
a0da8069
NN
3334 *-*-netbsd*)
3335 # Skip some stuff on all NetBSD configurations.
065a5627 3336 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3337 ;;
2a3124ca 3338 *-*-netware*)
9863d716 3339 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069
NN
3340 ;;
3341 *-*-rtems*)
9863d716 3342 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3343 ;;
1587117a
EC
3344 # The tpf target doesn't support gdb yet.
3345 *-*-tpf*)
9863d716 3346 noconfigdirs="$noconfigdirs target-newlib target-libgloss gdb tcl tk libgui itcl"
1587117a 3347 ;;
c1968181 3348 *-*-uclinux*)
9863d716 3349 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda"
c1968181 3350 ;;
a0da8069 3351 *-*-vxworks*)
9863d716 3352 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069
NN
3353 ;;
3354 alpha*-dec-osf*)
3355 # ld works, but does not support shared libraries.
0377a422 3356 # newlib is not 64 bit ready.
a0da8069 3357 # gas doesn't generate exception information.
0377a422 3358 noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss"
a0da8069
NN
3359 ;;
3360 alpha*-*-*vms*)
9863d716 3361 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069
NN
3362 ;;
3363 alpha*-*-linux*)
3364 # newlib is not 64 bit ready
3365 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3366 ;;
a0da8069
NN
3367 alpha*-*-*)
3368 # newlib is not 64 bit ready
9863d716 3369 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3370 ;;
4a18bd6b 3371 am33_2.0-*-linux*)
9863d716 3372 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4a18bd6b 3373 ;;
a0da8069 3374 sh-*-linux*)
9863d716 3375 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
c6b750e1 3376 ;;
a0da8069 3377 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3378 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3379 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3380 ;;
3381 arc-*-*)
782cb41f 3382 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3383 ;;
93cc359e 3384 arm-*-coff)
a0da8069 3385 ;;
93cc359e 3386 arm-*-elf* | arm*-*-eabi* )
a0da8069 3387 ;;
bd70a46f 3388 arm*-*-linux-gnueabi)
a5b3b4dd
DD
3389 case ${with_newlib} in
3390 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3391 esac
bd70a46f 3392 ;;
df4a6958 3393 arm*-*-symbianelf*)
df4a6958 3394 ;;
a0da8069 3395 arm-*-pe*)
9863d716 3396 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3397 ;;
a0da8069 3398 arm-*-riscix*)
b2f14e4a 3399 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069
NN
3400 ;;
3401 avr-*-*)
a0da8069 3402 ;;
376a0e54 3403 bfin-*-*)
376a0e54 3404 ;;
a0da8069 3405 c4x-*-* | tic4x-*-*)
b2f14e4a 3406 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3407 ;;
b2f14e4a
JM
3408 tic54x-*-*)
3409 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3410 ;;
52310858 3411 cr16-*-*)
9863d716 3412 noconfigdirs="$noconfigdirs gdb"
52310858 3413 ;;
c7e66c6d
HPN
3414 cris-*-* | crisv32-*-*)
3415 case "${target}" in
2faa2958 3416 *-*-linux*)
5e818318 3417 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 3418 esac
a0da8069
NN
3419 ;;
3420 d10v-*-*)
b2f14e4a 3421 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3422 ;;
3423 d30v-*-*)
b2f14e4a 3424 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3425 ;;
3426 fr30-*-elf*)
9863d716 3427 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3428 ;;
3429 frv-*-*)
a0da8069 3430 ;;
20135e4c 3431 moxie-*-*)
20135e4c
NC
3432 noconfigdirs="$noconfigdirs gprof"
3433 ;;
a0da8069 3434 h8300*-*-*)
9863d716 3435 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3436 ;;
3437 h8500-*-*)
b2f14e4a 3438 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3439 ;;
caeba88f 3440 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3441 ;;
93cc359e 3442 hppa*64*-*-linux*)
a0da8069 3443 ;;
f0ff0f90 3444 hppa*-*-linux*)
5dcac624 3445 ;;
a0da8069 3446 hppa*-*-*elf* | \
a0da8069
NN
3447 hppa*-*-lites* | \
3448 hppa*-*-openbsd* | \
3449 hppa*64*-*-*)
4f0ef2d8
CD
3450 ;;
3451 hppa*-hp-hpux11*)
0377a422 3452 noconfigdirs="$noconfigdirs ld"
a0da8069 3453 ;;
691bb5a1 3454 hppa*-*-pro*)
691bb5a1 3455 ;;
a0da8069 3456 hppa*-*-*)
9863d716 3457 noconfigdirs="$noconfigdirs ld"
a0da8069 3458 ;;
b07c2aad 3459 i960-*-*)
b2f14e4a 3460 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3461 ;;
a0da8069
NN
3462 ia64*-*-elf*)
3463 # No gdb support yet.
0377a422 3464 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3465 ;;
3466 ia64*-**-hpux*)
92c9a463 3467 # No ld support yet.
9863d716 3468 noconfigdirs="$noconfigdirs libgui itcl ld"
a0da8069 3469 ;;
19e99079
NC
3470 ia64*-*-*vms*)
3471 # No gdb or ld support yet.
9863d716 3472 noconfigdirs="$noconfigdirs readline libgui itcl gdb ld"
19e99079 3473 ;;
ec11bdc6 3474 i[3456789]86-*-coff | i[3456789]86-*-elf)
a0da8069 3475 ;;
ec11bdc6 3476 i[3456789]86-*-linux*)
a0da8069
NN
3477 # This section makes it possible to build newlib natively on linux.
3478 # If we are using a cross compiler then don't configure newlib.
3479 if test x${is_cross_compiler} != xno ; then
bba45b8b 3480 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3481 fi
3482 noconfigdirs="$noconfigdirs target-libgloss"
3483 # If we are not using a cross compiler, do configure newlib.
3484 # Note however, that newlib will only be configured in this situation
3485 # if the --with-newlib option has been given, because otherwise
3486 # 'target-newlib' will appear in skipdirs.
3487 ;;
1f53ca9a 3488 i[3456789]86-w64-mingw*)
9863d716 3489 noconfigdirs="$noconfigdirs target-libgloss target-newlib"
1f53ca9a
AO
3490 ;;
3491 i[3456789]86-*-mingw*)
45055374 3492 target_configdirs="$target_configdirs target-winsup"
9863d716 3493 noconfigdirs="$noconfigdirs target-libgloss target-newlib"
c6b750e1 3494 ;;
2d1e8239 3495 x86_64-*-mingw*)
9863d716 3496 noconfigdirs="$noconfigdirs target-libgloss target-newlib"
c6b750e1 3497 ;;
a0da8069
NN
3498 *-*-cygwin*)
3499 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3500 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3501 # always build newlib if winsup directory is present.
45055374 3502 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3503 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3504 elif test -d "$srcdir/newlib"; then
45055374 3505 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3506 fi
c6b750e1 3507 ;;
f0ff0f90 3508 i[3456789]86-*-interix* )
caeba88f 3509 ;;
ec11bdc6 3510 i[3456789]86-*-pe)
782cb41f 3511 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3512 ;;
ec11bdc6 3513 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3514 # The linker does not yet know about weak symbols in COFF,
3515 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3516 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3517 ;;
ec11bdc6 3518 i[3456789]86-*-sco*)
b2f14e4a 3519 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3520 ;;
ec11bdc6 3521 i[3456789]86-*-solaris2*)
a0da8069
NN
3522 noconfigdirs="$noconfigdirs target-libgloss"
3523 ;;
ec11bdc6 3524 i[3456789]86-*-sysv4*)
b2f14e4a 3525 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3526 ;;
ec11bdc6 3527 i[3456789]86-*-beos*)
b2f14e4a 3528 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
bba45b8b 3529 ;;
b59bea8a 3530 i[3456789]86-*-rdos*)
2429c060
PB
3531 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3532 ;;
b07c2aad 3533 m32r-*-*)
b07c2aad 3534 ;;
a0da8069 3535 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
a0da8069
NN
3536 ;;
3537 m68k-*-elf*)
a0da8069 3538 ;;
691bb5a1 3539 m68*-*-* | fido-*-*)
691bb5a1 3540 ;;
a0da8069 3541 mmix-*-*)
9863d716 3542 noconfigdirs="$noconfigdirs gdb"
a0da8069 3543 ;;
4970f871 3544 mt-*-*)
cdb9b172
AH
3545 noconfigdirs="$noconfigdirs sim"
3546 ;;
a0da8069
NN
3547 powerpc-*-aix*)
3548 # copied from rs6000-*-* entry
9863d716 3549 noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib"
a0da8069 3550 ;;
93cc359e 3551 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3552 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3553 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3554 # always build newlib.
3555 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3556 ;;
3557 # This is temporary until we can link against shared libraries
3558 powerpcle-*-solaris*)
b2f14e4a 3559 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3560 ;;
3561 powerpc-*-beos*)
b2f14e4a 3562 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3563 ;;
a0da8069 3564 powerpc-*-eabi)
caeba88f
AL
3565 ;;
3566 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
a0da8069 3567 ;;
a0da8069 3568 rs6000-*-lynxos*)
9863d716 3569 noconfigdirs="$noconfigdirs target-newlib gprof"
a0da8069
NN
3570 ;;
3571 rs6000-*-aix*)
9863d716 3572 noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib"
a0da8069
NN
3573 ;;
3574 rs6000-*-*)
9863d716 3575 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3576 ;;
3577 m68k-apollo-*)
b2f14e4a 3578 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3579 ;;
25a07265 3580 microblaze*)
9863d716 3581 noconfigdirs="$noconfigdirs gprof"
25a07265 3582 ;;
5bd8be13 3583 mips*-sde-elf*)
5bd8be13
RS
3584 if test x$with_newlib = xyes; then
3585 noconfigdirs="$noconfigdirs gprof"
3586 fi
5bd8be13 3587 ;;
a0da8069 3588 mips*-*-irix5*)
b2f14e4a 3589 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3590 ;;
3591 mips*-*-irix6*)
9863d716 3592 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3593 ;;
a0da8069 3594 mips*-*-bsd*)
b2f14e4a 3595 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3596 ;;
a0da8069
NN
3597 mips*-*-linux*)
3598 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599 ;;
3600 mips*-*-*)
9863d716 3601 noconfigdirs="$noconfigdirs gprof"
a0da8069 3602 ;;
dbf85af7 3603 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3604 case "${target}" in
3605 sh*-*-elf)
9863d716 3606 ;;
e8a5fa9c 3607 *)
9863d716 3608 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3609 esac
a0da8069 3610 ;;
691bb5a1 3611 sparclet-*-aout* | sparc86x-*-*)
691bb5a1 3612 ;;
a0da8069 3613 sparc-*-elf*)
a0da8069
NN
3614 ;;
3615 sparc64-*-elf*)
a0da8069
NN
3616 ;;
3617 sparclite-*-*)
a0da8069
NN
3618 ;;
3619 sparc-*-sunos4*)
a0da8069
NN
3620 if test x${is_cross_compiler} != xno ; then
3621 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3622 else
3623 use_gnu_ld=no
3624 fi
3625 ;;
3626 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3627 ;;
619a3713 3628 tic6x-*-*)
9863d716 3629 noconfigdirs="$noconfigdirs gdb sim"
619a3713 3630 ;;
a0da8069 3631 v810-*-*)
b2f14e4a 3632 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3633 ;;
3634 vax-*-*)
9863d716 3635 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3636 ;;
29383458 3637 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639 ;;
3640 *-*-lynxos*)
9863d716 3641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
c6b750e1 3642 ;;
a0da8069 3643 *-*-*)
a0da8069
NN
3644 ;;
3645esac
252b5132 3646
a0da8069
NN
3647# If we aren't building newlib, then don't build libgloss, since libgloss
3648# depends upon some newlib header files.
3649case "${noconfigdirs}" in
3650 *target-libgloss*) ;;
3651 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3652esac
3653
a0da8069 3654# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3655host_makefile_frag=/dev/null
3656if test -d ${srcdir}/config ; then
3657case "${host}" in
ec11bdc6 3658 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3659 host_makefile_frag="config/mh-djgpp"
3660 ;;
3661 *-cygwin*)
e33b51a6 3662
81ecdfbb
RW
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3664$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3665echo a >cygwin-cat-check
1f53ca9a 3666if test `cat cygwin-cat-check` = a ; then
8ade07e9 3667 rm cygwin-cat-check
81ecdfbb
RW
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3669$as_echo "yes" >&6; }
e33b51a6 3670else
8ade07e9 3671 rm cygwin-cat-check
81ecdfbb
RW
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673$as_echo "no" >&6; }
3674 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3675 Please either mount the build directory in binary mode or run the following
3676 commands before running any configure script:
3677set -o igncr
3678export SHELLOPTS
81ecdfbb 3679 " "$LINENO" 5
e33b51a6 3680fi
e33b51a6 3681
a0da8069
NN
3682 host_makefile_frag="config/mh-cygwin"
3683 ;;
8a1599ab 3684 *-mingw*)
84e7906e 3685 host_makefile_frag="config/mh-mingw"
2d1e8239 3686 ;;
a0da8069
NN
3687 *-interix*)
3688 host_makefile_frag="config/mh-interix"
3689 ;;
da888c87 3690 hppa*-hp-hpux10*)
da888c87 3691 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3692 ;;
3516a403 3693 hppa*-hp-hpux*)
da888c87
PB
3694 host_makefile_frag="config/mh-pa"
3695 ;;
3696 hppa*-*)
3697 host_makefile_frag="config/mh-pa"
3698 ;;
e552509b
ILT
3699 *-*-darwin*)
3700 host_makefile_frag="config/mh-darwin"
0df3d27f 3701 ;;
f6d183c0
PB
3702 powerpc-*-aix*)
3703 host_makefile_frag="config/mh-ppc-aix"
3704 ;;
3705 rs6000-*-aix*)
3706 host_makefile_frag="config/mh-ppc-aix"
3707 ;;
a0da8069
NN
3708esac
3709fi
3710
9e07f89d 3711if test "${build}" != "${host}" ; then
1576798e
PB
3712 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3713 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3714 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3715 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3716 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3717 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3718 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3719 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3720 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3721 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3722 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3723 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3724 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3725else
3726 AR_FOR_BUILD="\$(AR)"
3727 AS_FOR_BUILD="\$(AS)"
512b7dfb 3728 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3729 CXX_FOR_BUILD="\$(CXX)"
3730 GCJ_FOR_BUILD="\$(GCJ)"
3731 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3732 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3733 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3734 LD_FOR_BUILD="\$(LD)"
3735 NM_FOR_BUILD="\$(NM)"
3736 RANLIB_FOR_BUILD="\$(RANLIB)"
3737 WINDRES_FOR_BUILD="\$(WINDRES)"
3738 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3739fi
3740
3741ac_ext=c
c6b750e1
DJ
3742ac_cpp='$CPP $CPPFLAGS'
3743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746if test -n "$ac_tool_prefix"; then
3747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3748set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750$as_echo_n "checking for $ac_word... " >&6; }
3751if test "${ac_cv_prog_CC+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3753else
3754 if test -n "$CC"; then
3755 ac_cv_prog_CC="$CC" # Let the user override the test.
3756else
3757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758for as_dir in $PATH
3759do
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3764 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3766 break 2
3767 fi
3768done
81ecdfbb
RW
3769 done
3770IFS=$as_save_IFS
c6b750e1
DJ
3771
3772fi
3773fi
3774CC=$ac_cv_prog_CC
3775if test -n "$CC"; then
81ecdfbb
RW
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3777$as_echo "$CC" >&6; }
c6b750e1 3778else
81ecdfbb
RW
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780$as_echo "no" >&6; }
c6b750e1
DJ
3781fi
3782
81ecdfbb 3783
c6b750e1
DJ
3784fi
3785if test -z "$ac_cv_prog_CC"; then
3786 ac_ct_CC=$CC
6a9cf61e 3787 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3788set dummy gcc; ac_word=$2
81ecdfbb
RW
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790$as_echo_n "checking for $ac_word... " >&6; }
3791if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3793else
3794 if test -n "$ac_ct_CC"; then
3795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3796else
3797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798for as_dir in $PATH
3799do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3804 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3806 break 2
3807 fi
3808done
81ecdfbb
RW
3809 done
3810IFS=$as_save_IFS
c6b750e1
DJ
3811
3812fi
3813fi
3814ac_ct_CC=$ac_cv_prog_ac_ct_CC
3815if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3817$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3818else
81ecdfbb
RW
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820$as_echo "no" >&6; }
c6b750e1
DJ
3821fi
3822
81ecdfbb
RW
3823 if test "x$ac_ct_CC" = x; then
3824 CC=""
3825 else
3826 case $cross_compiling:$ac_tool_warned in
3827yes:)
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3830ac_tool_warned=yes ;;
3831esac
3832 CC=$ac_ct_CC
3833 fi
c6b750e1
DJ
3834else
3835 CC="$ac_cv_prog_CC"
3836fi
3837
3838if test -z "$CC"; then
81ecdfbb
RW
3839 if test -n "$ac_tool_prefix"; then
3840 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3841set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843$as_echo_n "checking for $ac_word... " >&6; }
3844if test "${ac_cv_prog_CC+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
9e07f89d
NN
3846else
3847 if test -n "$CC"; then
3848 ac_cv_prog_CC="$CC" # Let the user override the test.
3849else
c6b750e1
DJ
3850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851for as_dir in $PATH
3852do
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3857 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3859 break 2
3860 fi
3861done
81ecdfbb
RW
3862 done
3863IFS=$as_save_IFS
c6b750e1 3864
9e07f89d
NN
3865fi
3866fi
c6b750e1 3867CC=$ac_cv_prog_CC
9e07f89d 3868if test -n "$CC"; then
81ecdfbb
RW
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3870$as_echo "$CC" >&6; }
c6b750e1 3871else
81ecdfbb
RW
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873$as_echo "no" >&6; }
c6b750e1
DJ
3874fi
3875
c6b750e1 3876
81ecdfbb 3877 fi
c6b750e1 3878fi
9e07f89d
NN
3879if test -z "$CC"; then
3880 # Extract the first word of "cc", so it can be a program name with args.
3881set dummy cc; ac_word=$2
81ecdfbb
RW
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883$as_echo_n "checking for $ac_word... " >&6; }
3884if test "${ac_cv_prog_CC+set}" = set; then :
3885 $as_echo_n "(cached) " >&6
9e07f89d
NN
3886else
3887 if test -n "$CC"; then
3888 ac_cv_prog_CC="$CC" # Let the user override the test.
3889else
9e07f89d 3890 ac_prog_rejected=no
c6b750e1
DJ
3891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892for as_dir in $PATH
3893do
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3899 ac_prog_rejected=yes
3900 continue
3901 fi
3902 ac_cv_prog_CC="cc"
81ecdfbb 3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3904 break 2
3905 fi
3906done
81ecdfbb
RW
3907 done
3908IFS=$as_save_IFS
c6b750e1 3909
9e07f89d
NN
3910if test $ac_prog_rejected = yes; then
3911 # We found a bogon in the path, so make sure we never use it.
3912 set dummy $ac_cv_prog_CC
3913 shift
c6b750e1 3914 if test $# != 0; then
9e07f89d
NN
3915 # We chose a different compiler from the bogus one.
3916 # However, it has the same basename, so the bogon will be chosen
3917 # first if we set CC to just the basename; use the full file name.
3918 shift
c6b750e1 3919 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3920 fi
3921fi
3922fi
3923fi
c6b750e1 3924CC=$ac_cv_prog_CC
9e07f89d 3925if test -n "$CC"; then
81ecdfbb
RW
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3927$as_echo "$CC" >&6; }
9e07f89d 3928else
81ecdfbb
RW
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930$as_echo "no" >&6; }
9e07f89d
NN
3931fi
3932
81ecdfbb 3933
c6b750e1
DJ
3934fi
3935if test -z "$CC"; then
3936 if test -n "$ac_tool_prefix"; then
81ecdfbb 3937 for ac_prog in cl.exe
c6b750e1
DJ
3938 do
3939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3940set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942$as_echo_n "checking for $ac_word... " >&6; }
3943if test "${ac_cv_prog_CC+set}" = set; then :
3944 $as_echo_n "(cached) " >&6
9e07f89d
NN
3945else
3946 if test -n "$CC"; then
3947 ac_cv_prog_CC="$CC" # Let the user override the test.
3948else
c6b750e1
DJ
3949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH
3951do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3956 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 3958 break 2
376a0e54 3959 fi
c6b750e1 3960done
81ecdfbb
RW
3961 done
3962IFS=$as_save_IFS
cac3d6c4 3963
c6b750e1
DJ
3964fi
3965fi
3966CC=$ac_cv_prog_CC
3967if test -n "$CC"; then
81ecdfbb
RW
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3969$as_echo "$CC" >&6; }
cac3d6c4 3970else
81ecdfbb
RW
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972$as_echo "no" >&6; }
9e07f89d 3973fi
cac3d6c4 3974
81ecdfbb 3975
c6b750e1
DJ
3976 test -n "$CC" && break
3977 done
cac3d6c4 3978fi
c6b750e1
DJ
3979if test -z "$CC"; then
3980 ac_ct_CC=$CC
81ecdfbb 3981 for ac_prog in cl.exe
c6b750e1
DJ
3982do
3983 # Extract the first word of "$ac_prog", so it can be a program name with args.
3984set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986$as_echo_n "checking for $ac_word... " >&6; }
3987if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3988 $as_echo_n "(cached) " >&6
cac3d6c4 3989else
c6b750e1
DJ
3990 if test -n "$ac_ct_CC"; then
3991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3992else
c6b750e1
DJ
3993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994for as_dir in $PATH
3995do
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4000 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4002 break 2
4003 fi
4004done
81ecdfbb
RW
4005 done
4006IFS=$as_save_IFS
c6b750e1 4007
cac3d6c4
CM
4008fi
4009fi
c6b750e1
DJ
4010ac_ct_CC=$ac_cv_prog_ac_ct_CC
4011if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4013$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4014else
81ecdfbb
RW
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016$as_echo "no" >&6; }
cac3d6c4 4017fi
376a0e54 4018
81ecdfbb 4019
c6b750e1
DJ
4020 test -n "$ac_ct_CC" && break
4021done
4022
81ecdfbb
RW
4023 if test "x$ac_ct_CC" = x; then
4024 CC=""
4025 else
4026 case $cross_compiling:$ac_tool_warned in
4027yes:)
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4030ac_tool_warned=yes ;;
4031esac
4032 CC=$ac_ct_CC
4033 fi
c6b750e1
DJ
4034fi
4035
4036fi
4037
4038
81ecdfbb
RW
4039test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041as_fn_error "no acceptable C compiler found in \$PATH
4042See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4043
4044# Provide some information about the compiler.
81ecdfbb
RW
4045$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4046set X $ac_compile
4047ac_compiler=$2
4048for ac_option in --version -v -V -qversion; do
4049 { { ac_try="$ac_compiler $ac_option >&5"
4050case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4053esac
4054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4055$as_echo "$ac_try_echo"; } >&5
4056 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4057 ac_status=$?
81ecdfbb
RW
4058 if test -s conftest.err; then
4059 sed '10a\
4060... rest of stderr output deleted ...
4061 10q' conftest.err >conftest.er1
4062 cat conftest.er1 >&5
4063 rm -f conftest.er1 conftest.err
4064 fi
4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }
4067done
c6b750e1 4068
81ecdfbb 4069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4070/* end confdefs.h. */
4071
4072int
4073main ()
4074{
4075
4076 ;
4077 return 0;
4078}
4079_ACEOF
4080ac_clean_files_save=$ac_clean_files
81ecdfbb 4081ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4082# Try to create an executable without -o first, disregard a.out.
4083# It will help us diagnose broken compilers, and finding out an intuition
4084# of exeext.
81ecdfbb
RW
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4086$as_echo_n "checking for C compiler default output file name... " >&6; }
4087ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4088
4089# The possible output files:
4090ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4091
4092ac_rmfiles=
4093for ac_file in $ac_files
4094do
4095 case $ac_file in
4096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4097 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4098 esac
4099done
4100rm -f $ac_rmfiles
4101
4102if { { ac_try="$ac_link_default"
4103case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106esac
4107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4108$as_echo "$ac_try_echo"; } >&5
4109 (eval "$ac_link_default") 2>&5
c6b750e1 4110 ac_status=$?
81ecdfbb
RW
4111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4112 test $ac_status = 0; }; then :
4113 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4114# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4115# in a Makefile. We should not override ac_cv_exeext if it was cached,
4116# so that the user can short-circuit this test for compilers unknown to
4117# Autoconf.
4118for ac_file in $ac_files ''
c6b750e1
DJ
4119do
4120 test -f "$ac_file" || continue
4121 case $ac_file in
81ecdfbb 4122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4123 ;;
4124 [ab].out )
4125 # We found the default executable, but exeext='' is most
4126 # certainly right.
4127 break;;
4128 *.* )
81ecdfbb
RW
4129 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4130 then :; else
4131 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4132 fi
4133 # We set ac_cv_exeext here because the later test for it is not
4134 # safe: cross compilers may not add the suffix if given an `-o'
4135 # argument, so we may need to know it at that point already.
4136 # Even if this section looks crufty: it has the advantage of
4137 # actually working.
c6b750e1
DJ
4138 break;;
4139 * )
4140 break;;
4141 esac
4142done
81ecdfbb
RW
4143test "$ac_cv_exeext" = no && ac_cv_exeext=
4144
c6b750e1 4145else
81ecdfbb
RW
4146 ac_file=''
4147fi
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4149$as_echo "$ac_file" >&6; }
4150if test -z "$ac_file"; then :
4151 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4152sed 's/^/| /' conftest.$ac_ext >&5
4153
81ecdfbb
RW
4154{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4156{ as_fn_set_status 77
4157as_fn_error "C compiler cannot create executables
4158See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4159fi
c6b750e1 4160ac_exeext=$ac_cv_exeext
c6b750e1 4161
81ecdfbb 4162# Check that the compiler produces executables we can run. If not, either
c6b750e1 4163# the compiler is broken, or we cross compile.
81ecdfbb
RW
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4165$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4166# If not cross compiling, check that we can run a simple program.
4167if test "$cross_compiling" != yes; then
4168 if { ac_try='./$ac_file'
81ecdfbb
RW
4169 { { case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172esac
4173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4174$as_echo "$ac_try_echo"; } >&5
4175 (eval "$ac_try") 2>&5
c6b750e1 4176 ac_status=$?
81ecdfbb
RW
4177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4178 test $ac_status = 0; }; }; then
c6b750e1
DJ
4179 cross_compiling=no
4180 else
4181 if test "$cross_compiling" = maybe; then
4182 cross_compiling=yes
4183 else
81ecdfbb
RW
4184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186as_fn_error "cannot run C compiled programs.
c6b750e1 4187If you meant to cross compile, use \`--host'.
81ecdfbb 4188See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4189 fi
4190 fi
4191fi
81ecdfbb
RW
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4193$as_echo "yes" >&6; }
c6b750e1 4194
81ecdfbb 4195rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4196ac_clean_files=$ac_clean_files_save
81ecdfbb 4197# Check that the compiler produces executables we can run. If not, either
c6b750e1 4198# the compiler is broken, or we cross compile.
81ecdfbb
RW
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4200$as_echo_n "checking whether we are cross compiling... " >&6; }
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4202$as_echo "$cross_compiling" >&6; }
4203
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4205$as_echo_n "checking for suffix of executables... " >&6; }
4206if { { ac_try="$ac_link"
4207case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210esac
4211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212$as_echo "$ac_try_echo"; } >&5
4213 (eval "$ac_link") 2>&5
c6b750e1 4214 ac_status=$?
81ecdfbb
RW
4215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216 test $ac_status = 0; }; then :
c6b750e1
DJ
4217 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4218# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4219# work properly (i.e., refer to `conftest.exe'), while it won't with
4220# `rm'.
4221for ac_file in conftest.exe conftest conftest.*; do
4222 test -f "$ac_file" || continue
4223 case $ac_file in
81ecdfbb 4224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4226 break;;
4227 * ) break;;
4228 esac
4229done
4230else
81ecdfbb
RW
4231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4233as_fn_error "cannot compute suffix of executables: cannot compile and link
4234See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4235fi
c6b750e1 4236rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4238$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4239
4240rm -f conftest.$ac_ext
4241EXEEXT=$ac_cv_exeext
4242ac_exeext=$EXEEXT
81ecdfbb
RW
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4244$as_echo_n "checking for suffix of object files... " >&6; }
4245if test "${ac_cv_objext+set}" = set; then :
4246 $as_echo_n "(cached) " >&6
c6b750e1 4247else
81ecdfbb 4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4249/* end confdefs.h. */
4250
4251int
4252main ()
4253{
4254
4255 ;
4256 return 0;
4257}
4258_ACEOF
4259rm -f conftest.o conftest.obj
81ecdfbb
RW
4260if { { ac_try="$ac_compile"
4261case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264esac
4265eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4266$as_echo "$ac_try_echo"; } >&5
4267 (eval "$ac_compile") 2>&5
c6b750e1 4268 ac_status=$?
81ecdfbb
RW
4269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4270 test $ac_status = 0; }; then :
4271 for ac_file in conftest.o conftest.obj conftest.*; do
4272 test -f "$ac_file" || continue;
c6b750e1 4273 case $ac_file in
81ecdfbb 4274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4276 break;;
4277 esac
4278done
cac3d6c4 4279else
81ecdfbb 4280 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4281sed 's/^/| /' conftest.$ac_ext >&5
4282
81ecdfbb
RW
4283{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4285as_fn_error "cannot compute suffix of object files: cannot compile
4286See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4287fi
c6b750e1
DJ
4288rm -f conftest.$ac_cv_objext conftest.$ac_ext
4289fi
81ecdfbb
RW
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4291$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4292OBJEXT=$ac_cv_objext
4293ac_objext=$OBJEXT
81ecdfbb
RW
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4295$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4296if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
c6b750e1 4298else
81ecdfbb 4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4300/* end confdefs.h. */
4301
4302int
4303main ()
4304{
4305#ifndef __GNUC__
4306 choke me
4307#endif
4308
4309 ;
4310 return 0;
4311}
4312_ACEOF
81ecdfbb 4313if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4314 ac_compiler_gnu=yes
4315else
81ecdfbb 4316 ac_compiler_gnu=no
c6b750e1 4317fi
81ecdfbb 4318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4319ac_cv_c_compiler_gnu=$ac_compiler_gnu
4320
4321fi
81ecdfbb
RW
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4323$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4324if test $ac_compiler_gnu = yes; then
4325 GCC=yes
4326else
4327 GCC=
4328fi
c6b750e1
DJ
4329ac_test_CFLAGS=${CFLAGS+set}
4330ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4332$as_echo_n "checking whether $CC accepts -g... " >&6; }
4333if test "${ac_cv_prog_cc_g+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4335else
4336 ac_save_c_werror_flag=$ac_c_werror_flag
4337 ac_c_werror_flag=yes
4338 ac_cv_prog_cc_g=no
4339 CFLAGS="-g"
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4341/* end confdefs.h. */
4342
4343int
4344main ()
4345{
4346
4347 ;
4348 return 0;
4349}
4350_ACEOF
81ecdfbb 4351if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4352 ac_cv_prog_cc_g=yes
4353else
81ecdfbb
RW
4354 CFLAGS=""
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356/* end confdefs.h. */
4357
4358int
4359main ()
4360{
4361
4362 ;
4363 return 0;
4364}
4365_ACEOF
4366if ac_fn_c_try_compile "$LINENO"; then :
4367
4368else
4369 ac_c_werror_flag=$ac_save_c_werror_flag
4370 CFLAGS="-g"
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372/* end confdefs.h. */
cac3d6c4 4373
81ecdfbb
RW
4374int
4375main ()
4376{
4377
4378 ;
4379 return 0;
4380}
4381_ACEOF
4382if ac_fn_c_try_compile "$LINENO"; then :
4383 ac_cv_prog_cc_g=yes
4384fi
4385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4386fi
81ecdfbb 4387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4388fi
81ecdfbb
RW
4389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 ac_c_werror_flag=$ac_save_c_werror_flag
4391fi
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4393$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4394if test "$ac_test_CFLAGS" = set; then
c6b750e1 4395 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4396elif test $ac_cv_prog_cc_g = yes; then
4397 if test "$GCC" = yes; then
4398 CFLAGS="-g -O2"
4399 else
4400 CFLAGS="-g"
4401 fi
4402else
4403 if test "$GCC" = yes; then
4404 CFLAGS="-O2"
4405 else
4406 CFLAGS=
4407 fi
4408fi
81ecdfbb
RW
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4410$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4411if test "${ac_cv_prog_cc_c89+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
c6b750e1 4413else
81ecdfbb 4414 ac_cv_prog_cc_c89=no
c6b750e1 4415ac_save_CC=$CC
81ecdfbb 4416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4417/* end confdefs.h. */
4418#include <stdarg.h>
4419#include <stdio.h>
4420#include <sys/types.h>
4421#include <sys/stat.h>
4422/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4423struct buf { int x; };
4424FILE * (*rcsopen) (struct buf *, struct stat *, int);
4425static char *e (p, i)
4426 char **p;
4427 int i;
4428{
4429 return p[i];
4430}
4431static char *f (char * (*g) (char **, int), char **p, ...)
4432{
4433 char *s;
4434 va_list v;
4435 va_start (v,p);
4436 s = g (p, va_arg (v,int));
4437 va_end (v);
4438 return s;
4439}
4440
4441/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4442 function prototypes and stuff, but not '\xHH' hex character constants.
4443 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4444 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4445 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4446 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4447 that's true only with -std. */
c6b750e1
DJ
4448int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4449
81ecdfbb
RW
4450/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4451 inside strings and character constants. */
4452#define FOO(x) 'x'
4453int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4454
c6b750e1
DJ
4455int test (int i, double x);
4456struct s1 {int (*f) (int a);};
4457struct s2 {int (*f) (double a);};
4458int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4459int argc;
4460char **argv;
4461int
4462main ()
4463{
4464return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4465 ;
4466 return 0;
4467}
4468_ACEOF
81ecdfbb
RW
4469for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4470 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4471do
4472 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4473 if ac_fn_c_try_compile "$LINENO"; then :
4474 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4475fi
81ecdfbb
RW
4476rm -f core conftest.err conftest.$ac_objext
4477 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4478done
81ecdfbb 4479rm -f conftest.$ac_ext
c6b750e1
DJ
4480CC=$ac_save_CC
4481
4482fi
81ecdfbb
RW
4483# AC_CACHE_VAL
4484case "x$ac_cv_prog_cc_c89" in
4485 x)
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4487$as_echo "none needed" >&6; } ;;
4488 xno)
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4490$as_echo "unsupported" >&6; } ;;
c6b750e1 4491 *)
81ecdfbb
RW
4492 CC="$CC $ac_cv_prog_cc_c89"
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4494$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4495esac
81ecdfbb 4496if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4497
c6b750e1
DJ
4498fi
4499
c6b750e1
DJ
4500ac_ext=c
4501ac_cpp='$CPP $CPPFLAGS'
4502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4505
81ecdfbb 4506ac_ext=cpp
18f6b6ee
PB
4507ac_cpp='$CXXCPP $CPPFLAGS'
4508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4511if test -z "$CXX"; then
4512 if test -n "$CCC"; then
4513 CXX=$CCC
4514 else
4515 if test -n "$ac_tool_prefix"; then
4516 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4517 do
4518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4519set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521$as_echo_n "checking for $ac_word... " >&6; }
4522if test "${ac_cv_prog_CXX+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4524else
4525 if test -n "$CXX"; then
4526 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4527else
4528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529for as_dir in $PATH
4530do
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4535 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4537 break 2
4538 fi
4539done
81ecdfbb
RW
4540 done
4541IFS=$as_save_IFS
512b7dfb 4542
18f6b6ee
PB
4543fi
4544fi
4545CXX=$ac_cv_prog_CXX
4546if test -n "$CXX"; then
81ecdfbb
RW
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4548$as_echo "$CXX" >&6; }
18f6b6ee 4549else
81ecdfbb
RW
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551$as_echo "no" >&6; }
18f6b6ee
PB
4552fi
4553
81ecdfbb 4554
18f6b6ee
PB
4555 test -n "$CXX" && break
4556 done
4557fi
4558if test -z "$CXX"; then
4559 ac_ct_CXX=$CXX
81ecdfbb 4560 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4561do
4562 # Extract the first word of "$ac_prog", so it can be a program name with args.
4563set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565$as_echo_n "checking for $ac_word... " >&6; }
4566if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4568else
4569 if test -n "$ac_ct_CXX"; then
4570 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4571else
4572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573for as_dir in $PATH
4574do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4579 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4581 break 2
512b7dfb 4582 fi
18f6b6ee 4583done
81ecdfbb
RW
4584 done
4585IFS=$as_save_IFS
512b7dfb 4586
18f6b6ee
PB
4587fi
4588fi
4589ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4590if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4592$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4593else
81ecdfbb
RW
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595$as_echo "no" >&6; }
18f6b6ee
PB
4596fi
4597
81ecdfbb 4598
18f6b6ee
PB
4599 test -n "$ac_ct_CXX" && break
4600done
18f6b6ee 4601
81ecdfbb
RW
4602 if test "x$ac_ct_CXX" = x; then
4603 CXX="g++"
4604 else
4605 case $cross_compiling:$ac_tool_warned in
4606yes:)
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609ac_tool_warned=yes ;;
4610esac
4611 CXX=$ac_ct_CXX
4612 fi
18f6b6ee
PB
4613fi
4614
81ecdfbb
RW
4615 fi
4616fi
18f6b6ee 4617# Provide some information about the compiler.
81ecdfbb
RW
4618$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4619set X $ac_compile
4620ac_compiler=$2
4621for ac_option in --version -v -V -qversion; do
4622 { { ac_try="$ac_compiler $ac_option >&5"
4623case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626esac
4627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628$as_echo "$ac_try_echo"; } >&5
4629 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4630 ac_status=$?
81ecdfbb
RW
4631 if test -s conftest.err; then
4632 sed '10a\
4633... rest of stderr output deleted ...
4634 10q' conftest.err >conftest.er1
4635 cat conftest.er1 >&5
4636 rm -f conftest.er1 conftest.err
4637 fi
4638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4639 test $ac_status = 0; }
4640done
18f6b6ee 4641
81ecdfbb
RW
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4643$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4644if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
18f6b6ee 4646else
81ecdfbb 4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4648/* end confdefs.h. */
4649
4650int
4651main ()
4652{
4653#ifndef __GNUC__
4654 choke me
4655#endif
4656
4657 ;
4658 return 0;
4659}
4660_ACEOF
81ecdfbb 4661if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4662 ac_compiler_gnu=yes
4663else
81ecdfbb 4664 ac_compiler_gnu=no
18f6b6ee 4665fi
81ecdfbb 4666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4667ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4668
4669fi
81ecdfbb
RW
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4671$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4672if test $ac_compiler_gnu = yes; then
4673 GXX=yes
4674else
4675 GXX=
4676fi
18f6b6ee
PB
4677ac_test_CXXFLAGS=${CXXFLAGS+set}
4678ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4680$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4681if test "${ac_cv_prog_cxx_g+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4683else
4684 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4685 ac_cxx_werror_flag=yes
4686 ac_cv_prog_cxx_g=no
4687 CXXFLAGS="-g"
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4689/* end confdefs.h. */
4690
4691int
4692main ()
4693{
4694
4695 ;
4696 return 0;
4697}
4698_ACEOF
81ecdfbb 4699if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4700 ac_cv_prog_cxx_g=yes
4701else
81ecdfbb
RW
4702 CXXFLAGS=""
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4704/* end confdefs.h. */
81ecdfbb 4705
18f6b6ee
PB
4706int
4707main ()
4708{
81ecdfbb 4709
18f6b6ee
PB
4710 ;
4711 return 0;
4712}
4713_ACEOF
81ecdfbb 4714if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4715
81ecdfbb
RW
4716else
4717 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4718 CXXFLAGS="-g"
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4720/* end confdefs.h. */
81ecdfbb 4721
18f6b6ee
PB
4722int
4723main ()
4724{
81ecdfbb 4725
18f6b6ee
PB
4726 ;
4727 return 0;
4728}
4729_ACEOF
81ecdfbb
RW
4730if ac_fn_cxx_try_compile "$LINENO"; then :
4731 ac_cv_prog_cxx_g=yes
18f6b6ee 4732fi
81ecdfbb
RW
4733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734fi
4735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736fi
4737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4739fi
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4741$as_echo "$ac_cv_prog_cxx_g" >&6; }
4742if test "$ac_test_CXXFLAGS" = set; then
4743 CXXFLAGS=$ac_save_CXXFLAGS
4744elif test $ac_cv_prog_cxx_g = yes; then
4745 if test "$GXX" = yes; then
4746 CXXFLAGS="-g -O2"
4747 else
4748 CXXFLAGS="-g"
4749 fi
4750else
4751 if test "$GXX" = yes; then
4752 CXXFLAGS="-O2"
4753 else
4754 CXXFLAGS=
4755 fi
18f6b6ee 4756fi
18f6b6ee
PB
4757ac_ext=c
4758ac_cpp='$CPP $CPPFLAGS'
4759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761ac_compiler_gnu=$ac_cv_c_compiler_gnu
4762
4763
4764# We must set the default linker to the linker used by gcc for the correct
4765# operation of libtool. If LD is not defined and we are using gcc, try to
4766# set the LD default to the ld used by gcc.
4767if test -z "$LD"; then
4768 if test "$GCC" = yes; then
4769 case $build in
4770 *-*-mingw*)
4771 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4772 *)
4773 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4774 esac
4775 case $gcc_prog_ld in
4776 # Accept absolute paths.
4777 [\\/]* | [A-Za-z]:[\\/]*)
4778 LD="$gcc_prog_ld" ;;
4779 esac
4780 fi
512b7dfb
PB
4781fi
4782
4783
4784
4785
c6b750e1 4786if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4787 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4788set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790$as_echo_n "checking for $ac_word... " >&6; }
4791if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
9e07f89d 4793else
512b7dfb
PB
4794 if test -n "$GNATBIND"; then
4795 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4796else
c6b750e1
DJ
4797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798for as_dir in $PATH
4799do
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4804 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4806 break 2
4807 fi
4808done
81ecdfbb
RW
4809 done
4810IFS=$as_save_IFS
c6b750e1 4811
9e07f89d
NN
4812fi
4813fi
512b7dfb
PB
4814GNATBIND=$ac_cv_prog_GNATBIND
4815if test -n "$GNATBIND"; then
81ecdfbb
RW
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4817$as_echo "$GNATBIND" >&6; }
9e07f89d 4818else
81ecdfbb
RW
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820$as_echo "no" >&6; }
9e07f89d
NN
4821fi
4822
81ecdfbb 4823
c6b750e1 4824fi
512b7dfb
PB
4825if test -z "$ac_cv_prog_GNATBIND"; then
4826 ac_ct_GNATBIND=$GNATBIND
4827 # Extract the first word of "gnatbind", so it can be a program name with args.
4828set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830$as_echo_n "checking for $ac_word... " >&6; }
4831if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4832 $as_echo_n "(cached) " >&6
9e07f89d 4833else
512b7dfb
PB
4834 if test -n "$ac_ct_GNATBIND"; then
4835 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4836else
c6b750e1
DJ
4837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838for as_dir in $PATH
4839do
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4844 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4846 break 2
4847 fi
4848done
81ecdfbb
RW
4849 done
4850IFS=$as_save_IFS
c6b750e1 4851
9e07f89d
NN
4852fi
4853fi
512b7dfb
PB
4854ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4855if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4857$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4858else
81ecdfbb
RW
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860$as_echo "no" >&6; }
9e07f89d
NN
4861fi
4862
81ecdfbb
RW
4863 if test "x$ac_ct_GNATBIND" = x; then
4864 GNATBIND="no"
4865 else
4866 case $cross_compiling:$ac_tool_warned in
4867yes:)
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4870ac_tool_warned=yes ;;
4871esac
4872 GNATBIND=$ac_ct_GNATBIND
4873 fi
24ff9987 4874else
512b7dfb 4875 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4876fi
4877
7df2cd5d 4878if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4879 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4880set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882$as_echo_n "checking for $ac_word... " >&6; }
4883if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4884 $as_echo_n "(cached) " >&6
7df2cd5d 4885else
512b7dfb
PB
4886 if test -n "$GNATMAKE"; then
4887 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4888else
4889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890for as_dir in $PATH
4891do
4892 IFS=$as_save_IFS
4893 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4896 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4898 break 2
4899 fi
4900done
81ecdfbb
RW
4901 done
4902IFS=$as_save_IFS
7df2cd5d
PB
4903
4904fi
4905fi
512b7dfb
PB
4906GNATMAKE=$ac_cv_prog_GNATMAKE
4907if test -n "$GNATMAKE"; then
81ecdfbb
RW
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4909$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4910else
81ecdfbb
RW
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912$as_echo "no" >&6; }
7df2cd5d
PB
4913fi
4914
81ecdfbb 4915
7df2cd5d 4916fi
512b7dfb
PB
4917if test -z "$ac_cv_prog_GNATMAKE"; then
4918 ac_ct_GNATMAKE=$GNATMAKE
4919 # Extract the first word of "gnatmake", so it can be a program name with args.
4920set dummy gnatmake; ac_word=$2
81ecdfbb
RW
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922$as_echo_n "checking for $ac_word... " >&6; }
4923if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4924 $as_echo_n "(cached) " >&6
7df2cd5d 4925else
512b7dfb
PB
4926 if test -n "$ac_ct_GNATMAKE"; then
4927 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4928else
4929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930for as_dir in $PATH
4931do
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4936 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4938 break 2
4939 fi
4940done
81ecdfbb
RW
4941 done
4942IFS=$as_save_IFS
7df2cd5d 4943
7df2cd5d
PB
4944fi
4945fi
512b7dfb
PB
4946ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4947if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4949$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 4950else
81ecdfbb
RW
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952$as_echo "no" >&6; }
7df2cd5d
PB
4953fi
4954
81ecdfbb
RW
4955 if test "x$ac_ct_GNATMAKE" = x; then
4956 GNATMAKE="no"
4957 else
4958 case $cross_compiling:$ac_tool_warned in
4959yes:)
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4962ac_tool_warned=yes ;;
4963esac
4964 GNATMAKE=$ac_ct_GNATMAKE
4965 fi
7df2cd5d 4966else
512b7dfb 4967 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4968fi
4969
81ecdfbb
RW
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4971$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4972if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
9e07f89d
NN
4974else
4975 cat >conftest.adb <<EOF
4976procedure conftest is begin null; end conftest;
4977EOF
4978acx_cv_cc_gcc_supports_ada=no
4979# There is a bug in old released versions of GCC which causes the
4980# driver to exit successfully when the appropriate language module
4981# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4982# Therefore we must check for the error message as well as an
4983# unsuccessful exit.
b8908782
DD
4984# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4985# given a .adb file, but produce no object file. So we must check
4986# if an object file was really produced to guard against this.
9e07f89d 4987errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4988if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4989 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4990fi
4991rm -f conftest.*
4992fi
81ecdfbb
RW
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4994$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 4995
512b7dfb 4996if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4997 have_gnat=yes
4998else
4999 have_gnat=no
5000fi
5001
81ecdfbb
RW
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5003$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5004if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
b8908782
DD
5006else
5007 echo abfoo >t1
5008 echo cdfoo >t2
5009 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5010 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5011 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5012 :
5013 else
5014 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5015 fi
5016 fi
b8908782
DD
5017 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5018 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5019 :
b8908782
DD
5020 else
5021 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5022 fi
5023 fi
5024 rm t1 t2
5025
5026fi
81ecdfbb
RW
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5028$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5029do_compare="$gcc_cv_prog_cmp_skip"
5030
5031
9e07f89d 5032
e8a5fa9c 5033# See if we are building gcc with C++.
81ecdfbb
RW
5034# Check whether --enable-build-with-cxx was given.
5035if test "${enable_build_with_cxx+set}" = set; then :
5036 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
5037else
5038 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
5039fi
5040
e8a5fa9c 5041
d5f2ee2e
KG
5042# Used for setting $lt_cv_objdir
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5044$as_echo_n "checking for objdir... " >&6; }
5045if test "${lt_cv_objdir+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5047else
5048 rm -f .libs 2>/dev/null
5049mkdir .libs 2>/dev/null
5050if test -d .libs; then
5051 lt_cv_objdir=.libs
5052else
5053 # MS-DOS does not allow filenames that begin with a dot.
5054 lt_cv_objdir=_libs
5055fi
5056rmdir .libs 2>/dev/null
5057fi
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5059$as_echo "$lt_cv_objdir" >&6; }
5060objdir=$lt_cv_objdir
5061
5062
5063
5064
5065
5066cat >>confdefs.h <<_ACEOF
5067#define LT_OBJDIR "$lt_cv_objdir/"
5068_ACEOF
5069
5070
5071
e8a5fa9c 5072# Check for GMP, MPFR and MPC
d9b76ff9 5073gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5074gmpinc=
4b900473 5075have_gmp=no
e8a5fa9c
RW
5076
5077# Specify a location for mpc
5078# check for this first so it ends up on the link line before mpfr.
5079
81ecdfbb
RW
5080# Check whether --with-mpc was given.
5081if test "${with_mpc+set}" = set; then :
5082 withval=$with_mpc;
5083fi
e8a5fa9c 5084
e8a5fa9c 5085
e552509b 5086# Check whether --with-mpc-include was given.
81ecdfbb
RW
5087if test "${with_mpc_include+set}" = set; then :
5088 withval=$with_mpc_include;
5089fi
e8a5fa9c 5090
e8a5fa9c 5091
e552509b 5092# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5093if test "${with_mpc_lib+set}" = set; then :
5094 withval=$with_mpc_lib;
5095fi
e8a5fa9c 5096
e8a5fa9c
RW
5097
5098if test "x$with_mpc" != x; then
d9b76ff9
KG
5099 gmplibs="-L$with_mpc/lib $gmplibs"
5100 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5101fi
5102if test "x$with_mpc_include" != x; then
d9b76ff9 5103 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5104fi
5105if test "x$with_mpc_lib" != x; then
d9b76ff9 5106 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5107fi
5108if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5109 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5110 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5111 # Do not test the mpc version. Assume that it is sufficient, since
5112 # it is in the source tree, and the library has not been built yet
5113 # but it would be included on the link line in the version check below
5114 # hence making the test fail.
d9b76ff9 5115 have_gmp=yes
e8a5fa9c 5116fi
4b900473 5117
11b04d1f
DD
5118# Specify a location for mpfr
5119# check for this first so it ends up on the link line before gmp.
c6b750e1 5120
81ecdfbb
RW
5121# Check whether --with-mpfr-dir was given.
5122if test "${with_mpfr_dir+set}" = set; then :
5123 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5124Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5125fi
5126
11b04d1f
DD
5127
5128
81ecdfbb
RW
5129# Check whether --with-mpfr was given.
5130if test "${with_mpfr+set}" = set; then :
5131 withval=$with_mpfr;
5132fi
c6b750e1 5133
11b04d1f 5134
e552509b 5135# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5136if test "${with_mpfr_include+set}" = set; then :
5137 withval=$with_mpfr_include;
5138fi
c6b750e1 5139
8a0d8a5c 5140
e552509b 5141# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5142if test "${with_mpfr_lib+set}" = set; then :
5143 withval=$with_mpfr_lib;
5144fi
8a0d8a5c 5145
11b04d1f
DD
5146
5147if test "x$with_mpfr" != x; then
5148 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5149 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5150fi
8a0d8a5c 5151if test "x$with_mpfr_include" != x; then
d9b76ff9 5152 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5153fi
5154if test "x$with_mpfr_lib" != x; then
5155 gmplibs="-L$with_mpfr_lib $gmplibs"
5156fi
4b900473 5157if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
d5f2ee2e 5158 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
4b900473 5159 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
d5f2ee2e 5160 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
4b900473
PB
5161 # Do not test the mpfr version. Assume that it is sufficient, since
5162 # it is in the source tree, and the library has not been built yet
5163 # but it would be included on the link line in the version check below
5164 # hence making the test fail.
5165 have_gmp=yes
5166fi
11b04d1f 5167
4b1cb4fe 5168# Specify a location for gmp
c6b750e1 5169
81ecdfbb
RW
5170# Check whether --with-gmp-dir was given.
5171if test "${with_gmp_dir+set}" = set; then :
5172 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5173Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5174fi
5175
4b1cb4fe
DD
5176
5177
81ecdfbb
RW
5178# Check whether --with-gmp was given.
5179if test "${with_gmp+set}" = set; then :
5180 withval=$with_gmp;
5181fi
c6b750e1 5182
4b1cb4fe 5183
e552509b 5184# Check whether --with-gmp-include was given.
81ecdfbb
RW
5185if test "${with_gmp_include+set}" = set; then :
5186 withval=$with_gmp_include;
5187fi
c6b750e1 5188
8a0d8a5c 5189
e552509b 5190# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5191if test "${with_gmp_lib+set}" = set; then :
5192 withval=$with_gmp_lib;
5193fi
8a0d8a5c
PB
5194
5195
4b1cb4fe 5196
11b04d1f
DD
5197if test "x$with_gmp" != x; then
5198 gmplibs="-L$with_gmp/lib $gmplibs"
5199 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5200fi
8a0d8a5c
PB
5201if test "x$with_gmp_include" != x; then
5202 gmpinc="-I$with_gmp_include $gmpinc"
5203fi
5204if test "x$with_gmp_lib" != x; then
5205 gmplibs="-L$with_gmp_lib $gmplibs"
5206fi
4b900473 5207if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5208 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5209 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5210 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5211 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
4b900473
PB
5212 # Do not test the gmp version. Assume that it is sufficient, since
5213 # it is in the source tree, and the library has not been built yet
5214 # but it would be included on the link line in the version check below
5215 # hence making the test fail.
5216 have_gmp=yes
5217fi
4b1cb4fe 5218
ceb92e78 5219if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5220 have_gmp=yes
5221 saved_CFLAGS="$CFLAGS"
5222 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5223 # Check for the recommended and required versions of GMP.
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5225$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5226
5227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5228/* end confdefs.h. */
5229#include "gmp.h"
5230int
5231main ()
5232{
5233
5234 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5235 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5236 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5237 choke me
5238 #endif
5239
5240 ;
5241 return 0;
5242}
5243_ACEOF
5244if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5246/* end confdefs.h. */
a6b5846e 5247#include <gmp.h>
c6b750e1
DJ
5248int
5249main ()
5250{
4b1cb4fe 5251
a6b5846e
KG
5252 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5253 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5254 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5255 choke me
5256 #endif
c6b750e1
DJ
5257
5258 ;
5259 return 0;
5260}
5261_ACEOF
81ecdfbb
RW
5262if ac_fn_c_try_compile "$LINENO"; then :
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5264$as_echo "yes" >&6; }
a6b5846e
KG
5265else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5267$as_echo "buggy but acceptable" >&6; }
5268fi
5269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5270else
81ecdfbb
RW
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5273fi
81ecdfbb 5274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5275
e8a5fa9c 5276 # If we have GMP, check the MPFR version.
4b900473 5277 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5278 # Check for the recommended and required versions of MPFR.
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5280$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5282/* end confdefs.h. */
9b134994 5283#include <gmp.h>
4b900473 5284 #include <mpfr.h>
c6b750e1
DJ
5285int
5286main ()
5287{
9b134994 5288
ef699244 5289 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5290 choke me
5291 #endif
c6b750e1
DJ
5292
5293 ;
5294 return 0;
5295}
5296_ACEOF
81ecdfbb
RW
5297if ac_fn_c_try_compile "$LINENO"; then :
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5299/* end confdefs.h. */
4b1cb4fe 5300#include <gmp.h>
4b900473 5301 #include <mpfr.h>
c6b750e1
DJ
5302int
5303main ()
5304{
9dbaa842 5305
a6b5846e 5306 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5307 choke me
5308 #endif
e8a5fa9c
RW
5309
5310 ;
5311 return 0;
5312}
5313_ACEOF
81ecdfbb
RW
5314if ac_fn_c_try_compile "$LINENO"; then :
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5316$as_echo "yes" >&6; }
e8a5fa9c 5317else
81ecdfbb
RW
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5319$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5320fi
81ecdfbb 5321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5322else
81ecdfbb
RW
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5325fi
81ecdfbb 5326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5327 fi
5328
5329 # Check for the MPC header version.
d9b76ff9 5330 if test x"$have_gmp" = xyes ; then
a6b5846e 5331 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5333$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5335/* end confdefs.h. */
5336#include <mpc.h>
5337int
5338main ()
5339{
5340
a6b5846e
KG
5341 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5342 choke me
5343 #endif
5344
5345 ;
5346 return 0;
5347}
5348_ACEOF
5349if ac_fn_c_try_compile "$LINENO"; then :
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351/* end confdefs.h. */
5352#include <mpc.h>
5353int
5354main ()
5355{
5356
5357 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5358 choke me
5359 #endif
5360
5361 ;
5362 return 0;
5363}
5364_ACEOF
81ecdfbb
RW
5365if ac_fn_c_try_compile "$LINENO"; then :
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5367$as_echo "yes" >&6; }
a6b5846e
KG
5368else
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5370$as_echo "buggy but acceptable" >&6; }
5371fi
5372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5373else
81ecdfbb 5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5375$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5376fi
81ecdfbb 5377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5378 fi
5379
5380 # Now check the MPFR library.
5381 if test x"$have_gmp" = xyes; then
5382 saved_LIBS="$LIBS"
5383 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5385$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5387/* end confdefs.h. */
d9b76ff9 5388#include <mpc.h>
e8a5fa9c
RW
5389int
5390main ()
5391{
5392
5393 mpfr_t n;
5394 mpfr_t x;
d9b76ff9 5395 mpc_t c;
e8a5fa9c
RW
5396 int t;
5397 mpfr_init (n);
5398 mpfr_init (x);
5399 mpfr_atan2 (n, n, x, GMP_RNDN);
5400 mpfr_erfc (n, x, GMP_RNDN);
5401 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5402 mpfr_clear(n);
5403 mpfr_clear(x);
5404 mpc_init2 (c, 53);
5405 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5406 mpc_cosh (c, c, MPC_RNDNN);
5407 mpc_pow (c, c, c, MPC_RNDNN);
5408 mpc_acosh (c, c, MPC_RNDNN);
5409 mpc_clear (c);
c6b750e1
DJ
5410
5411 ;
5412 return 0;
5413}
5414_ACEOF
81ecdfbb
RW
5415if ac_fn_c_try_link "$LINENO"; then :
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5417$as_echo "yes" >&6; }
c6b750e1 5418else
81ecdfbb
RW
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5421fi
81ecdfbb
RW
5422rm -f core conftest.err conftest.$ac_objext \
5423 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5424 LIBS="$saved_LIBS"
5425 fi
5426
4b900473 5427 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5428
a6b5846e
KG
5429# The library versions listed in the error message below should match
5430# the HARD-minimums enforced above.
4b900473 5431 if test x$have_gmp != xyes; then
a6b5846e 5432 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
d9b76ff9
KG
5433Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5434their locations. Source code for these libraries can be found at
5435their respective hosting sites as well as at
5436ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5437http://gcc.gnu.org/install/prerequisites.html for additional info. If
5438you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5439make sure that you have installed both the libraries and the header
5440files. They may be located in separate packages." "$LINENO" 5
4b900473 5441 fi
9dbaa842
DD
5442fi
5443
e8a5fa9c
RW
5444# Flags needed for both GMP, MPFR and/or MPC.
5445
5446
5447
4b1cb4fe
DD
5448
5449
5450
29383458
JM
5451# Allow host libstdc++ to be specified for static linking with PPL.
5452
81ecdfbb
RW
5453# Check whether --with-host-libstdcxx was given.
5454if test "${with_host_libstdcxx+set}" = set; then :
5455 withval=$with_host_libstdcxx;
5456fi
29383458 5457
29383458
JM
5458
5459case $with_host_libstdcxx in
5460 no|yes)
81ecdfbb 5461 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5462 ;;
5463esac
e28c595f 5464
e8a5fa9c
RW
5465# Linker flags to use for stage1 or when not boostrapping.
5466
81ecdfbb
RW
5467# Check whether --with-stage1-ldflags was given.
5468if test "${with_stage1_ldflags+set}" = set; then :
5469 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5470 stage1_ldflags=
5471 else
5472 stage1_ldflags=$withval
5473 fi
5474else
5475 stage1_ldflags=
81ecdfbb
RW
5476fi
5477
e8a5fa9c
RW
5478
5479
5480# Libraries to use for stage1 or when not bootstrapping.
5481
81ecdfbb
RW
5482# Check whether --with-stage1-libs was given.
5483if test "${with_stage1_libs+set}" = set; then :
5484 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5485 stage1_libs=
5486 else
5487 stage1_libs=$withval
5488 fi
5489else
5490 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5491fi
5492
e8a5fa9c
RW
5493
5494
e8a5fa9c
RW
5495# Libraries to use for stage2 and later builds. This defaults to the
5496# argument passed to --with-host-libstdcxx.
5497
81ecdfbb
RW
5498# Check whether --with-boot-libs was given.
5499if test "${with_boot_libs+set}" = set; then :
5500 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5501 poststage1_libs=
5502 else
5503 poststage1_libs=$withval
5504 fi
5505else
5506 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5507fi
5508
e8a5fa9c
RW
5509
5510
143754cd
NC
5511# Linker flags to use for stage2 and later builds.
5512
5513# Check whether --with-boot-ldflags was given.
5514if test "${with_boot_ldflags+set}" = set; then :
5515 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5516 poststage1_ldflags=
5517 else
5518 poststage1_ldflags=$withval
5519 fi
5520else
5521 poststage1_ldflags=
4f11b223
ILT
5522 # In stages 2 and 3, default to linking libstdc++ and libgcc
5523 # statically. But if the user explicitly specified the libraries to
5524 # use, trust that they are doing what they want.
5525 if test "$poststage1_libs" = ""; then
143754cd
NC
5526 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5527 fi
5528fi
5529
5530
5531
e28c595f 5532# Check for PPL
b123da99 5533ppllibs=
e28c595f 5534pplinc=
b123da99 5535pwllib=
e28c595f
JM
5536
5537
81ecdfbb
RW
5538# Check whether --with-ppl was given.
5539if test "${with_ppl+set}" = set; then :
5540 withval=$with_ppl;
81ecdfbb 5541fi
e28c595f 5542
e28c595f 5543
e552509b 5544# Check whether --with-ppl-include was given.
81ecdfbb
RW
5545if test "${with_ppl_include+set}" = set; then :
5546 withval=$with_ppl_include;
5547fi
5548
e28c595f 5549
e552509b 5550# Check whether --with-ppl-lib was given.
81ecdfbb
RW
5551if test "${with_ppl_lib+set}" = set; then :
5552 withval=$with_ppl_lib;
5553fi
e28c595f 5554
e28c595f 5555
b123da99
SP
5556# Check whether --enable-ppl-version-check was given.
5557if test "${enable_ppl_version_check+set}" = set; then :
5558 enableval=$enable_ppl_version_check;
5559fi
5560
5561
29383458 5562case $with_ppl in
b123da99 5563 yes | no | "")
1f53ca9a 5564 ;;
29383458 5565 *)
b123da99 5566 ppllibs="-L$with_ppl/lib"
29383458 5567 pplinc="-I$with_ppl/include $pplinc"
b123da99
SP
5568 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5569 with_ppl=yes
5570 else
5571 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5572 fi
29383458
JM
5573 ;;
5574esac
b123da99
SP
5575
5576if test x"$with_ppl_include" != x; then
e28c595f 5577 pplinc="-I$with_ppl_include $pplinc"
b123da99 5578 with_ppl=yes
e28c595f 5579fi
b123da99 5580
e28c595f 5581if test "x$with_ppl_lib" != x; then
b123da99
SP
5582 ppllibs="-L$with_ppl_lib"
5583 with_ppl=yes
e28c595f 5584fi
b123da99
SP
5585
5586if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5587 if test x"$enable_watchdog" = xyes; then
5588 pwllib="-lpwl"
5589 fi
5590 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
1f53ca9a
AO
5591 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5592 enable_ppl_version_check=no
b123da99 5593 with_ppl=yes
e28c595f
JM
5594fi
5595
86ed8cf6 5596if test "x$with_ppl" != xno; then
b123da99 5597 if test "x$pwllib" = x; then
0e8ad34f
RO
5598 saved_LIBS="$LIBS"
5599 LIBS="$LIBS $ppllibs -lstdc++ -lm"
b123da99
SP
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5601$as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5602if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5604else
5605 ac_check_lib_save_LIBS=$LIBS
5606LIBS="-lpwl $LIBS"
5607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608/* end confdefs.h. */
5609
5610/* Override any GCC internal prototype to avoid an error.
5611 Use char because int might match the return type of a GCC
5612 builtin and then its argument prototype would still apply. */
5613#ifdef __cplusplus
5614extern "C"
5615#endif
5616char PWL_handle_timeout ();
5617int
5618main ()
5619{
5620return PWL_handle_timeout ();
5621 ;
5622 return 0;
5623}
5624_ACEOF
5625if ac_fn_c_try_link "$LINENO"; then :
5626 ac_cv_lib_pwl_PWL_handle_timeout=yes
e28c595f 5627else
b123da99
SP
5628 ac_cv_lib_pwl_PWL_handle_timeout=no
5629fi
5630rm -f core conftest.err conftest.$ac_objext \
5631 conftest$ac_exeext conftest.$ac_ext
5632LIBS=$ac_check_lib_save_LIBS
5633fi
5634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5635$as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5636if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5637 pwllib="-lpwl"
81ecdfbb
RW
5638fi
5639
0e8ad34f 5640 LIBS="$saved_LIBS"
b123da99 5641 fi
e28c595f 5642
b123da99
SP
5643 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5644
5645 if test "$enable_ppl_version_check" != no; then
5646 saved_CFLAGS="$CFLAGS"
5647 CFLAGS="$CFLAGS $pplinc $gmpinc"
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5649$as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5651/* end confdefs.h. */
5652#include "ppl_c.h"
5653int
5654main ()
5655{
5656
b123da99
SP
5657 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5658 choke me
5659 #endif
e28c595f
JM
5660
5661 ;
5662 return 0;
5663}
5664_ACEOF
81ecdfbb
RW
5665if ac_fn_c_try_compile "$LINENO"; then :
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5667$as_echo "yes" >&6; }
e28c595f 5668else
81ecdfbb 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1f53ca9a 5670$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
e28c595f 5671fi
81ecdfbb 5672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b123da99
SP
5673 CFLAGS="$saved_CFLAGS"
5674 fi
e28c595f
JM
5675fi
5676
5677# Flags needed for PPL
5678
5679
5680
5681
5682# Check for CLOOG
e552509b 5683
e28c595f
JM
5684
5685
81ecdfbb
RW
5686# Check whether --with-cloog was given.
5687if test "${with_cloog+set}" = set; then :
5688 withval=$with_cloog;
81ecdfbb
RW
5689fi
5690
e28c595f 5691
e552509b 5692# Check whether --with-cloog-include was given.
81ecdfbb
RW
5693if test "${with_cloog_include+set}" = set; then :
5694 withval=$with_cloog_include;
5695fi
e28c595f 5696
e28c595f 5697
e552509b 5698# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5699if test "${with_cloog_lib+set}" = set; then :
5700 withval=$with_cloog_lib;
5701fi
e28c595f 5702
e28c595f 5703
e552509b
ILT
5704 # Check whether --enable-cloog-backend was given.
5705if test "${enable_cloog_backend+set}" = set; then :
5706 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5707 cloog_backend=isl
5708 elif test "x${enableval}" = "xppl"; then
5709 cloog_backend=ppl
5710 else
5711 cloog_backend=ppl-legacy
5712 fi
5713else
5714 cloog_backend=ppl-legacy
5715fi
5716
5717 # Check whether --enable-cloog-version-check was given.
5718if test "${enable_cloog_version_check+set}" = set; then :
5719 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5720else
5721 ENABLE_CLOOG_CHECK=yes
5722fi
5723
5724
5725 # Initialize clooglibs and clooginc.
5726 case $with_cloog in
5727 no)
5728 clooglibs=
5729 clooginc=
5730 ;;
5731 "" | yes)
5732 ;;
5733 *)
5734 clooglibs="-L$with_cloog/lib"
5735 clooginc="-I$with_cloog/include"
5736 ;;
5737 esac
5738 if test "x${with_cloog_include}" != x ; then
5739 clooginc="-I$with_cloog_include"
5740 fi
5741 if test "x${with_cloog_lib}" != x; then
5742 clooglibs="-L$with_cloog_lib"
5743 fi
5744
5745
5746
5747
5748
1f53ca9a 5749if test "x$with_ppl" = "xno"; then
8d8eef9a
RW
5750
5751
5752
5753 if test "x${with_cloog}" = xno; then
5754 graphite_requested=no
5755 elif test "x${with_cloog}" != x \
5756 || test "x${with_cloog_include}" != x \
5757 || test "x${with_cloog_lib}" != x ; then
5758 graphite_requested=yes
5759 else
5760 graphite_requested=no
5761 fi
5762
5763
5764 if test "${graphite_requested}" = yes; then
5765 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
5766 fi
1f53ca9a
AO
5767 with_cloog=no
5768fi
e552509b
ILT
5769if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5770 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5771 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5772 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5773fi
5774if test "x$with_cloog" != "xno"; then
1f53ca9a 5775
e552509b
ILT
5776
5777
5778 _cloog_saved_CFLAGS=$CFLAGS
5779 _cloog_saved_CPPFLAGS=$CPPFLAGS
5780 _cloog_saved_LDFLAGS=$LDFLAGS
5781 _cloog_saved_LIBS=$LIBS
5782
5783 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5784
5785 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5786 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5787 LDFLAGS="${LDFLAGS} ${clooglibs}"
5788
5789 case $cloog_backend in
5790 "ppl-legacy")
5791 CFLAGS="${CFLAGS} ${pplinc}"
5792 LDFLAGS="${LDFLAGS} ${ppllibs}"
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5794$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5795if test "${gcc_cv_cloog_type+set}" = set; then :
5796 $as_echo_n "(cached) " >&6
5797else
5798 LIBS="-lcloog ${_cloog_saved_LIBS}"
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800/* end confdefs.h. */
5801#include "cloog/cloog.h"
5802int
5803main ()
5804{
5805#ifndef CLOOG_PPL_BACKEND
5806 choke me
5807 #endif
5808 ;
5809 return 0;
5810}
5811_ACEOF
5812if ac_fn_c_try_link "$LINENO"; then :
5813 gcc_cv_cloog_type="PPL Legacy"
5814else
5815 gcc_cv_cloog_type=no
5816fi
5817rm -f core conftest.err conftest.$ac_objext \
5818 conftest$ac_exeext conftest.$ac_ext
e28c595f 5819fi
e552509b
ILT
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5821$as_echo "$gcc_cv_cloog_type" >&6; }
5822 ;;
5823 "isl")
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5825$as_echo_n "checking for installed CLooG ISL... " >&6; }
5826if test "${gcc_cv_cloog_type+set}" = set; then :
5827 $as_echo_n "(cached) " >&6
5828else
5829 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831/* end confdefs.h. */
5832#include "cloog/cloog.h"
5833int
5834main ()
5835{
5836cloog_version ()
5837 ;
5838 return 0;
5839}
5840_ACEOF
5841if ac_fn_c_try_link "$LINENO"; then :
5842 gcc_cv_cloog_type="ISL"
5843else
5844 gcc_cv_cloog_type=no
e28c595f 5845fi
e552509b
ILT
5846rm -f core conftest.err conftest.$ac_objext \
5847 conftest$ac_exeext conftest.$ac_ext
e28c595f 5848fi
e552509b
ILT
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5850$as_echo "$gcc_cv_cloog_type" >&6; }
5851 ;;
5852 "ppl")
5853 CFLAGS="${CFLAGS} ${pplinc}"
5854 LDFLAGS="${LDFLAGS} ${ppllibs}"
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5856$as_echo_n "checking for installed CLooG PPL... " >&6; }
5857if test "${gcc_cv_cloog_type+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
e28c595f 5859else
e552509b
ILT
5860 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862/* end confdefs.h. */
5863#include "cloog/cloog.h"
5864 #include "cloog/ppl/cloog.h"
5865int
5866main ()
5867{
5868cloog_version ()
5869 ;
5870 return 0;
5871}
5872_ACEOF
5873if ac_fn_c_try_link "$LINENO"; then :
5874 gcc_cv_cloog_type="PPL"
5875else
5876 gcc_cv_cloog_type=no
81ecdfbb 5877fi
e552509b
ILT
5878rm -f core conftest.err conftest.$ac_objext \
5879 conftest$ac_exeext conftest.$ac_ext
5880fi
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5882$as_echo "$gcc_cv_cloog_type" >&6; }
5883 ;;
5884 *)
5885 gcc_cv_cloog_type=""
5886 esac
5887
5888 case $gcc_cv_cloog_type in
5889 "PPL Legacy")
5890 clooginc="${clooginc}"
5891 clooglibs="${clooglibs} -lcloog"
5892 cloog_org=no
5893 ;;
5894 "ISL")
5895 clooginc="${clooginc} ${_cloogorginc}"
b123da99 5896 clooglibs="${clooglibs} -lcloog-isl -lisl"
e552509b
ILT
5897 cloog_org=yes
5898 ;;
5899 "PPL")
5900 clooginc="${clooginc} ${_cloogorginc}"
5901 clooglibs="${clooglibs} -lcloog-ppl"
5902 cloog_org=yes
5903 ;;
5904 *)
5905 clooglibs=
5906 clooginc=
5907 cloog_org=
5908 ;;
5909 esac
81ecdfbb 5910
e552509b
ILT
5911 LIBS=$_cloog_saved_LIBS
5912 CFLAGS=$_cloog_saved_CFLAGS
5913 CPPFLAGS=$_cloog_saved_CPPFLAGS
5914 LDFLAGS=$_cloog_saved_LDFLAGS
e28c595f 5915
e552509b
ILT
5916
5917
5918
5919
5920 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5921 _cloog_saved_CFLAGS=$CFLAGS
5922 _cloog_saved_LDFLAGS=$LDFLAGS
5923
5924 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5925 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5926
5927 if test "${cloog_org}" = yes ; then
8d8eef9a
RW
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5929$as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
e552509b
ILT
5930if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5932else
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934/* end confdefs.h. */
5935#include "cloog/cloog.h"
5936int
5937main ()
5938{
5939#if CLOOG_VERSION_MAJOR != 0 \
8d8eef9a
RW
5940 || CLOOG_VERSION_MINOR != 16 \
5941 || CLOOG_VERSION_REVISION < 1
e552509b
ILT
5942 choke me
5943 #endif
5944 ;
5945 return 0;
5946}
5947_ACEOF
5948if ac_fn_c_try_compile "$LINENO"; then :
5949 gcc_cv_cloog_ct_0_14_0=yes
5950else
5951 gcc_cv_cloog_ct_0_14_0=no
5952fi
5953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954fi
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5956$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5957 elif test "${cloog_org}" = no ; then
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
143754cd 5959$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
e552509b
ILT
5960if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962else
81ecdfbb 5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5964/* end confdefs.h. */
5965#include "cloog/cloog.h"
5966int
5967main ()
5968{
e552509b
ILT
5969#if CLOOG_VERSION_MAJOR != 0 \
5970 || CLOOG_VERSION_MINOR != 15 \
5971 || CLOOG_VERSION_REVISION < 5
5972 choke me
5973 #endif
e28c595f
JM
5974 ;
5975 return 0;
5976}
5977_ACEOF
a009f2e7
RW
5978if ac_fn_c_try_compile "$LINENO"; then :
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980/* end confdefs.h. */
5981#include "cloog/cloog.h"
5982int
5983main ()
5984{
e552509b
ILT
5985#if CLOOG_VERSION_MAJOR != 0 \
5986 || CLOOG_VERSION_MINOR != 15 \
5987 || CLOOG_VERSION_REVISION < 9
5988 choke me
5989 #endif
a009f2e7
RW
5990 ;
5991 return 0;
5992}
5993_ACEOF
81ecdfbb 5994if ac_fn_c_try_compile "$LINENO"; then :
e552509b 5995 gcc_cv_cloog_ct_0_15_5=yes
a009f2e7 5996else
e552509b 5997 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
a009f2e7
RW
5998fi
5999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 6000else
e552509b 6001 gcc_cv_cloog_ct_0_15_5=no
e28c595f 6002fi
81ecdfbb 6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 6004fi
e552509b
ILT
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6006$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6007 fi
6008
6009 CFLAGS=$_cloog_saved_CFLAGS
6010 LDFLAGS=$_cloog_saved_LDFLAGS
6011 fi
6012
6013
6014
e28c595f 6015
e28c595f
JM
6016
6017
6018
8d8eef9a
RW
6019 if test "x${with_cloog}" = xno; then
6020 graphite_requested=no
6021 elif test "x${with_cloog}" != x \
e552509b
ILT
6022 || test "x${with_cloog_include}" != x \
6023 || test "x${with_cloog_lib}" != x ; then
6024 graphite_requested=yes
6025 else
6026 graphite_requested=no
6027 fi
6028
6029
6030
6031 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6032 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6033 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6034 clooglibs=
6035 clooginc=
6036 fi
6037
6038 if test "${graphite_requested}" = yes \
6039 && test "x${clooglibs}" = x \
6040 && test "x${clooginc}" = x ; then
6041
8d8eef9a 6042 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
e552509b
ILT
6043 fi
6044
6045
6046fi
6047
700d40ca
ILT
6048# Check for LTO support.
6049# Check whether --enable-lto was given.
6050if test "${enable_lto+set}" = set; then :
6051 enableval=$enable_lto; enable_lto=$enableval
6052else
6053 enable_lto=yes; default_enable_lto=yes
6054fi
6055
6056
143754cd 6057
e49e5c92
DK
6058
6059
6060target_elf=no
6061case $target in
6062 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6063 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 6064 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
6065 target_elf=no
6066 ;;
6067 *)
6068 target_elf=yes
6069 ;;
6070esac
6071
6072if test $target_elf = yes; then :
74cea91b
DK
6073 # ELF platforms build the lto-plugin always.
6074 build_lto_plugin=yes
e49e5c92 6075
e49e5c92
DK
6076else
6077 if test x"$default_enable_lto" = x"yes" ; then
29821356 6078 case $target in
899b04ef 6079 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
74cea91b 6080 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6081 *) enable_lto=no ;;
6082 esac
e49e5c92 6083 else
29821356
RW
6084 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6085 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6086 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6087 # warn during gcc/ subconfigure; unless you're bootstrapping with
6088 # -flto it won't be needed until after installation anyway.
6089 case $target in
a8eb3f0a 6090 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6091 *) if test x"$enable_lto" = x"yes"; then
6092 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6093 fi
6094 ;;
6095 esac
6096 fi
a8eb3f0a 6097 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6098 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6099 case $target in
74cea91b 6100 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6101 *) ;;
6102 esac
74cea91b 6103
e49e5c92
DK
6104fi
6105
700d40ca 6106
e28c595f 6107
947f426e 6108# By default, C is the only stage 1 language.
9b134994 6109stage1_languages=,c,
1d39f329 6110
e8a5fa9c 6111# Target libraries that we bootstrap.
2aa2364a 6112bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6113
9e07f89d
NN
6114# Figure out what language subdirectories are present.
6115# Look if the user specified --enable-languages="..."; if not, use
6116# the environment variable $LANGUAGES if defined. $LANGUAGES might
6117# go away some day.
6118# NB: embedded tabs in this IF block -- do not untabify
6119if test -d ${srcdir}/gcc; then
6120 if test x"${enable_languages+set}" != xset; then
6121 if test x"${LANGUAGES+set}" = xset; then
6122 enable_languages="${LANGUAGES}"
6123 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6124 else
6125 enable_languages=all
6126 fi
6127 else
6128 if test x"${enable_languages}" = x ||
6129 test x"${enable_languages}" = xyes;
6130 then
6131 echo configure.in: --enable-languages needs at least one language argument 1>&2
6132 exit 1
6133 fi
6134 fi
6135 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6136
096f7d00
DE
6137 # 'f95' is the old name for the 'fortran' language. We issue a warning
6138 # and make the substitution.
6139 case ,${enable_languages}, in
6140 *,f95,*)
6141 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6142 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6143 ;;
6144 esac
6145
9e07f89d
NN
6146 # First scan to see if an enabled language requires some other language.
6147 # We assume that a given config-lang.in will list all the language
6148 # front ends it requires, even if some are required indirectly.
6149 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6150 case ${lang_frag} in
6151 ..) ;;
6152 # The odd quoting in the next line works around
6153 # an apparent bug in bash 1.12 on linux.
6154 ${srcdir}/gcc/[*]/config-lang.in) ;;
6155 *)
e552509b
ILT
6156 # From the config-lang.in, get $language, $lang_requires, and
6157 # $lang_requires_boot_languages.
9e07f89d
NN
6158 language=
6159 lang_requires=
e552509b 6160 lang_requires_boot_languages=
9e07f89d 6161 . ${lang_frag}
e552509b 6162 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6163 case ,${enable_languages}, in
6164 *,$other,*) ;;
6165 *,all,*) ;;
6166 *,$language,*)
6167 echo " \`$other' language required by \`$language'; enabling" 1>&2
6168 enable_languages="${enable_languages},${other}"
6169 ;;
6170 esac
6171 done
e552509b
ILT
6172 for other in ${lang_requires_boot_languages} ; do
6173 if test "$other" != "c"; then
6174 case ,${enable_stage1_languages}, in
6175 *,$other,*) ;;
6176 *,all,*) ;;
6177 *)
6178 case ,${enable_languages}, in
6179 *,$language,*)
6180 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6181 enable_stage1_languages="$enable_stage1_languages,${other}"
6182 ;;
6183 esac
6184 ;;
6185 esac
6186 fi
6187 done
9e07f89d
NN
6188 ;;
6189 esac
6190 done
6191
9b134994 6192 new_enable_languages=,c,
700d40ca
ILT
6193
6194 # If LTO is enabled, add the LTO front end.
6195 extra_host_libiberty_configure_flags=
6196 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6197 case ,${enable_languages}, in
6198 *,lto,*) ;;
6199 *) enable_languages="${enable_languages},lto" ;;
6200 esac
a8eb3f0a 6201 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6202 configdirs="$configdirs lto-plugin"
6203 extra_host_libiberty_configure_flags=--enable-shared
6204 fi
6205 fi
6206
6207
9e07f89d 6208 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6209 potential_languages=,c,
9e07f89d 6210
9e1a94f4
ILT
6211 enabled_target_libs=
6212 disabled_target_libs=
6213
9e07f89d
NN
6214 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6215 case ${lang_frag} in
6216 ..) ;;
6217 # The odd quoting in the next line works around
6218 # an apparent bug in bash 1.12 on linux.
6219 ${srcdir}/gcc/[*]/config-lang.in) ;;
6220 *)
c6b750e1 6221 # From the config-lang.in, get $language, $target_libs,
1d39f329 6222 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6223 language=
6224 target_libs=
6225 lang_dirs=
64ce424c 6226 subdir_requires=
9b134994
PB
6227 boot_language=no
6228 build_by_default=yes
9e07f89d 6229 . ${lang_frag}
9b134994
PB
6230 if test x${language} = x; then
6231 echo "${lang_frag} doesn't set \$language." 1>&2
6232 exit 1
6233 fi
6234
1f53ca9a
AO
6235 if test "$language" = "c++" \
6236 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
e8a5fa9c
RW
6237 boot_language=yes
6238 fi
6239
9b134994
PB
6240 case ,${enable_languages}, in
6241 *,${language},*)
9e07f89d
NN
6242 # Language was explicitly selected; include it.
6243 add_this_lang=yes
6244 ;;
9b134994
PB
6245 *,all,*)
6246 # 'all' was selected, select it if it is a default language
6247 add_this_lang=${build_by_default}
9e07f89d
NN
6248 ;;
6249 *)
6250 add_this_lang=no
6251 ;;
6252 esac
4b1cb4fe 6253
64ce424c 6254 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6255 for i in $subdir_requires; do
3d3adb43 6256 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6257 case ,${enable_languages}, in
6258 *,${language},*)
6259 # Specifically requested language; tell them.
81ecdfbb 6260 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6261 ;;
6262 *)
6263 # Silently disable.
9b134994 6264 add_this_lang=unsupported
64ce424c
PB
6265 ;;
6266 esac
6267 done
6268
9b134994
PB
6269 # Disable Ada if no preexisting GNAT is available.
6270 case ,${enable_languages},:${language}:${have_gnat} in
6271 *,${language},*:ada:no)
6272 # Specifically requested language; tell them.
81ecdfbb 6273 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6274 ;;
6275 *:ada:no)
6276 # Silently disable.
6277 add_this_lang=unsupported
6278 ;;
6279 esac
6280
59f7ec45
HPN
6281 # Disable a language that is unsupported by the target.
6282 case " $unsupported_languages " in
6283 *" $language "*)
9b134994 6284 add_this_lang=unsupported
59f7ec45
HPN
6285 ;;
6286 esac
6287
4b1cb4fe 6288 case $add_this_lang in
9b134994 6289 unsupported)
9e07f89d 6290 # Remove language-dependent dirs.
9e1a94f4
ILT
6291 disabled_target_libs="$disabled_target_libs $target_libs"
6292 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6293 ;;
9b134994
PB
6294 no)
6295 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6296 disabled_target_libs="$disabled_target_libs $target_libs"
6297 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6298 potential_languages="${potential_languages}${language},"
6299 ;;
6300 yes)
6301 new_enable_languages="${new_enable_languages}${language},"
6302 potential_languages="${potential_languages}${language},"
1d39f329 6303 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6304 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6305 case "${boot_language}:,$enable_stage1_languages," in
6306 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6307 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6308 case ",$stage1_languages," in
6309 *,$language,* | ,yes, | ,all,) ;;
6310 *) stage1_languages="${stage1_languages}${language}," ;;
6311 esac
e8a5fa9c
RW
6312 # We need to bootstrap any supporting libraries.
6313 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6314 ;;
6315 esac
6316 ;;
9e07f89d
NN
6317 esac
6318 ;;
6319 esac
6320 done
6321
9e1a94f4
ILT
6322 # Add target libraries which are only needed for disabled languages
6323 # to noconfigdirs.
6324 if test -n "$disabled_target_libs"; then
6325 for dir in $disabled_target_libs; do
6326 case " $enabled_target_libs " in
6327 *" ${dir} "*) ;;
6328 *) noconfigdirs="$noconfigdirs $dir" ;;
6329 esac
6330 done
6331 fi
6332
81ecdfbb
RW
6333 # Check whether --enable-stage1-languages was given.
6334if test "${enable_stage1_languages+set}" = set; then :
6335 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6336 ,no,|,,)
6337 # Set it to something that will have no effect in the loop below
6338 enable_stage1_languages=c ;;
6339 ,yes,)
6340 enable_stage1_languages=`echo $new_enable_languages | \
6341 sed -e "s/^,//" -e "s/,$//" ` ;;
6342 *,all,*)
6343 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6344 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6345 esac
6346
6347 # Add "good" languages from enable_stage1_languages to stage1_languages,
6348 # while "bad" languages go in missing_languages. Leave no duplicates.
6349 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6350 case $potential_languages in
6351 *,$i,*)
6352 case $stage1_languages in
6353 *,$i,*) ;;
6354 *) stage1_languages="$stage1_languages$i," ;;
6355 esac ;;
6356 *)
6357 case $missing_languages in
6358 *,$i,*) ;;
6359 *) missing_languages="$missing_languages$i," ;;
6360 esac ;;
6361 esac
6362 done
81ecdfbb
RW
6363fi
6364
9b134994
PB
6365
6366 # Remove leading/trailing commas that were added for simplicity
6367 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6368 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6369 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6370 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6371
9e07f89d 6372 if test "x$missing_languages" != x; then
81ecdfbb 6373 as_fn_error "
27258dd4 6374The following requested languages could not be built: ${missing_languages}
81ecdfbb 6375Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6376 fi
9e07f89d
NN
6377 if test "x$new_enable_languages" != "x$enable_languages"; then
6378 echo The following languages will be built: ${new_enable_languages}
9b134994 6379 enable_languages="$new_enable_languages"
9e07f89d 6380 fi
9b134994 6381
c6b750e1 6382
81ec575a 6383 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6384fi
6385
a6df5a19
PB
6386# Handle --disable-<component> generically.
6387for dir in $configdirs $build_configdirs $target_configdirs ; do
6388 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6389 varname=`echo $dirname | sed -e s/+/_/g`
6390 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6391 noconfigdirs="$noconfigdirs $dir"
6392 fi
6393done
6394
4f0ef2d8 6395# Check for Boehm's garbage collector
81ecdfbb
RW
6396# Check whether --enable-objc-gc was given.
6397if test "${enable_objc_gc+set}" = set; then :
6398 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6399 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6400 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6401 ;;
6402esac
81ecdfbb
RW
6403fi
6404
4f0ef2d8
CD
6405
6406# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6407case ,${enable_languages},:${enable_objc_gc} in
6408 *,objc,*:yes)
4f0ef2d8
CD
6409 # Keep target-boehm-gc if requested for Objective-C.
6410 ;;
4f0ef2d8 6411 *)
d42c4017
DA
6412 # Otherwise remove target-boehm-gc depending on target-libjava.
6413 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6414 noconfigdirs="$noconfigdirs target-boehm-gc"
6415 fi
4f0ef2d8
CD
6416 ;;
6417esac
6418
caeba88f
AL
6419# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6420# $build_configdirs and $target_configdirs.
9e07f89d
NN
6421# If we have the source for $noconfigdirs entries, add them to $notsupp.
6422
6423notsupp=""
6424for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6425 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6426 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6427 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6428 if test -r $srcdir/$dirname/configure ; then
6429 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6430 true
6431 else
6432 notsupp="$notsupp $dir"
6433 fi
6434 fi
6435 fi
caeba88f
AL
6436 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6437 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6438 if test -r $srcdir/$dirname/configure ; then
6439 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6440 true
6441 else
6442 notsupp="$notsupp $dir"
6443 fi
6444 fi
6445 fi
9e07f89d
NN
6446 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6447 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6448 if test -r $srcdir/$dirname/configure ; then
6449 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6450 true
6451 else
6452 notsupp="$notsupp $dir"
6453 fi
6454 fi
6455 fi
6456done
6457
6458# Sometimes the tools are distributed with libiberty but with no other
6459# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 6460# Don't let libgcc imply libiberty either.
9e07f89d 6461if test -n "${target_configdirs}" ; then
f86e35b8 6462 libgcc=
9e07f89d
NN
6463 others=
6464 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
6465 if test "$i" = "libgcc"; then
6466 libgcc=target-libgcc
6467 elif test "$i" != "libiberty" ; then
9e07f89d
NN
6468 if test -r $srcdir/$i/configure ; then
6469 others=yes;
6470 break;
6471 fi
6472 fi
6473 done
6474 if test -z "${others}" ; then
f86e35b8 6475 target_configdirs=$libgcc
9e07f89d
NN
6476 fi
6477fi
6478
6479# Quietly strip out all directories which aren't configurable in this tree.
6480# This relies on all configurable subdirectories being autoconfiscated, which
6481# is now the case.
6a9cf61e
PB
6482build_configdirs_all="$build_configdirs"
6483build_configdirs=
6484for i in ${build_configdirs_all} ; do
c6b750e1 6485 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6486 if test -f ${srcdir}/$j/configure ; then
6487 build_configdirs="${build_configdirs} $i"
6488 fi
6489done
6490
9e07f89d
NN
6491configdirs_all="$configdirs"
6492configdirs=
6493for i in ${configdirs_all} ; do
6494 if test -f ${srcdir}/$i/configure ; then
6495 configdirs="${configdirs} $i"
6496 fi
6497done
6a9cf61e 6498
9e07f89d
NN
6499target_configdirs_all="$target_configdirs"
6500target_configdirs=
6501for i in ${target_configdirs_all} ; do
c6b750e1 6502 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6503 if test -f ${srcdir}/$j/configure ; then
6504 target_configdirs="${target_configdirs} $i"
6505 fi
6506done
6507
6508# Produce a warning message for the subdirs we can't configure.
6509# This isn't especially interesting in the Cygnus tree, but in the individual
6510# FSF releases, it's important to let people know when their machine isn't
6511# supported by the one or two programs in a package.
6512
6513if test -n "${notsupp}" && test -z "${norecursion}" ; then
6514 # If $appdirs is non-empty, at least one of those directories must still
6515 # be configured, or we error out. (E.g., if the gas release supports a
6516 # specified target in some subdirs but not the gas subdir, we shouldn't
6517 # pretend that all is well.)
6518 if test -n "$appdirs" ; then
6519 for dir in $appdirs ; do
6520 if test -r $dir/Makefile.in ; then
6521 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6522 appdirs=""
6523 break
6524 fi
6a9cf61e 6525 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6526 appdirs=""
6527 break
6528 fi
6529 fi
6530 done
6531 if test -n "$appdirs" ; then
6532 echo "*** This configuration is not supported by this package." 1>&2
6533 exit 1
6534 fi
6535 fi
6536 # Okay, some application will build, or we don't care to check. Still
6537 # notify of subdirs not getting built.
6538 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6539 echo " ${notsupp}" 1>&2
6540 echo " (Any other directories should still work fine.)" 1>&2
6541fi
6542
6543case "$host" in
6544 *msdosdjgpp*)
6545 enable_gdbtk=no ;;
6546esac
6547
18f6b6ee
PB
6548# To find our prefix, in gcc_cv_tool_prefix.
6549
6550# The user is always right.
6551if test "${PATH_SEPARATOR+set}" != set; then
6552 echo "#! /bin/sh" >conf$$.sh
6553 echo "exit 0" >>conf$$.sh
6554 chmod +x conf$$.sh
6555 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6556 PATH_SEPARATOR=';'
6557 else
6558 PATH_SEPARATOR=:
6559 fi
6560 rm -f conf$$.sh
6561fi
6562
6563
6564
6565if test "x$exec_prefix" = xNONE; then
6566 if test "x$prefix" = xNONE; then
6567 gcc_cv_tool_prefix=$ac_default_prefix
6568 else
6569 gcc_cv_tool_prefix=$prefix
6570 fi
6571else
6572 gcc_cv_tool_prefix=$exec_prefix
6573fi
6574
6575# If there is no compiler in the tree, use the PATH only. In any
6576# case, if there is no compiler in the tree nobody should use
6577# AS_FOR_TARGET and LD_FOR_TARGET.
6578if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6579 gcc_version=`cat $srcdir/gcc/BASE-VER`
6580 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6581 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6582 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6583 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6584 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6585 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6586else
6587 gcc_cv_tool_dirs=
6588fi
6589
6590if test x$build = x$target && test -n "$md_exec_prefix"; then
6591 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6592fi
6593
6594
6595
9e07f89d
NN
6596copy_dirs=
6597
c6b750e1 6598
81ecdfbb
RW
6599# Check whether --with-build-sysroot was given.
6600if test "${with_build_sysroot+set}" = set; then :
6601 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6602 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6603 fi
6604else
6605 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6606fi
a19b6204
MM
6607
6608
8a6ee3ab 6609
81ecdfbb
RW
6610
6611# Check whether --with-debug-prefix-map was given.
6612if test "${with_debug_prefix_map+set}" = set; then :
6613 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6614 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6615 for debug_map in $withval; do
6616 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6617 done
6618 fi
6619else
6620 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6621fi
6622
8a6ee3ab
JM
6623
6624
7f6ef0c0
PB
6625# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6626# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6627# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6628# We want to ensure that TARGET libraries (which we know are built with
6629# gcc) are built with "-O2 -g", so include those options when setting
6630# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6631if test "x$CFLAGS_FOR_TARGET" = x; then
6632 CFLAGS_FOR_TARGET=$CFLAGS
6633 case " $CFLAGS " in
6634 *" -O2 "*) ;;
6635 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6636 esac
6637 case " $CFLAGS " in
6638 *" -g "* | *" -g3 "*) ;;
6639 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6640 esac
6641fi
6642
6643
6644if test "x$CXXFLAGS_FOR_TARGET" = x; then
6645 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6646 case " $CXXFLAGS " in
6647 *" -O2 "*) ;;
6648 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6649 esac
6650 case " $CXXFLAGS " in
6651 *" -g "* | *" -g3 "*) ;;
6652 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6653 esac
6654fi
6655
6656
9e07f89d
NN
6657# Handle --with-headers=XXX. If the value is not "yes", the contents of
6658# the named directory are copied to $(tooldir)/sys-include.
6659if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6660 if test x${is_cross_compiler} = xno ; then
6661 echo 1>&2 '***' --with-headers is only supported when cross compiling
6662 exit 1
6663 fi
6664 if test x"${with_headers}" != xyes ; then
18f6b6ee 6665 x=${gcc_cv_tool_prefix}
c6b750e1 6666 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6667 fi
6668fi
6669
6670# Handle --with-libs=XXX. If the value is not "yes", the contents of
6671# the name directories are copied to $(tooldir)/lib. Multiple directories
6672# are permitted.
6673if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6674 if test x${is_cross_compiler} = xno ; then
6675 echo 1>&2 '***' --with-libs is only supported when cross compiling
6676 exit 1
6677 fi
6678 if test x"${with_libs}" != xyes ; then
6679 # Copy the libraries in reverse order, so that files in the first named
6680 # library override files in subsequent libraries.
18f6b6ee 6681 x=${gcc_cv_tool_prefix}
9e07f89d 6682 for l in ${with_libs}; do
c6b750e1 6683 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6684 done
6685 fi
6686fi
6687
700d40ca 6688# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6689#
6690# This is done by determining whether or not the appropriate directory
6691# is available, and by checking whether or not specific configurations
6692# have requested that this magic not happen.
c6b750e1
DJ
6693#
6694# The command line options always override the explicit settings in
2429c060
PB
6695# configure.in, and the settings in configure.in override this magic.
6696#
c6b750e1 6697# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6698# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6699# --without-gnu-ld options for the configure script. Similarly, if
6700# the default is to use the included zlib and you don't want to do that,
6701# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6702
6703if test x${use_gnu_as} = x &&
6704 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6705 with_gnu_as=yes
6706 extra_host_args="$extra_host_args --with-gnu-as"
6707fi
6708
6709if test x${use_gnu_ld} = x &&
93f9b408 6710 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6711 with_gnu_ld=yes
6712 extra_host_args="$extra_host_args --with-gnu-ld"
6713fi
6714
700d40ca
ILT
6715if test x${use_included_zlib} = x &&
6716 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6717 :
6718else
6719 with_system_zlib=yes
6720 extra_host_args="$extra_host_args --with-system-zlib"
6721fi
6722
2429c060
PB
6723# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6724# can detect this case.
6725
6726if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6727 with_newlib=yes
6728 extra_host_args="$extra_host_args --with-newlib"
6729fi
6730
9e07f89d
NN
6731# Handle ${copy_dirs}
6732set fnord ${copy_dirs}
6733shift
6734while test $# != 0 ; do
6735 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6736 :
6737 else
6738 echo Copying $1 to $2
6739
6740 # Use the install script to create the directory and all required
6741 # parent directories.
6742 if test -d $2 ; then
6743 :
6744 else
6745 echo >config.temp
6746 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6747 fi
6748
6749 # Copy the directory, assuming we have tar.
6750 # FIXME: Should we use B in the second tar? Not all systems support it.
6751 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6752
6753 # It is the responsibility of the user to correctly adjust all
6754 # symlinks. If somebody can figure out how to handle them correctly
6755 # here, feel free to add the code.
6756
6757 echo $1 > $2/COPIED
6758 fi
6759 shift; shift
6760done
6761
2429c060
PB
6762# Determine a target-dependent exec_prefix that the installed
6763# gcc will search in. Keep this list sorted by triplet, with
6764# the *-*-osname triplets last.
6765md_exec_prefix=
6766case "${target}" in
521ec477 6767 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6768 md_exec_prefix=/dev/env/DJDIR/bin
6769 ;;
2429c060 6770 *-*-hpux* | \
2429c060 6771 *-*-nto-qnx* | \
1f111696 6772 *-*-solaris2*)
2429c060
PB
6773 md_exec_prefix=/usr/ccs/bin
6774 ;;
6775esac
6776
a0da8069
NN
6777extra_arflags_for_target=
6778extra_nmflags_for_target=
6779extra_ranlibflags_for_target=
6780target_makefile_frag=/dev/null
6781case "${target}" in
77d7106f
AM
6782 spu-*-*)
6783 target_makefile_frag="config/mt-spu"
6784 ;;
429acdec
RS
6785 mips*-sde-elf*)
6786 target_makefile_frag="config/mt-sde"
6787 ;;
f3b1e08e
RS
6788 mipsisa*-*-elfoabi*)
6789 target_makefile_frag="config/mt-mips-elfoabi"
6790 ;;
e7c8859c
RS
6791 mips*-*-*linux* | mips*-*-gnu*)
6792 target_makefile_frag="config/mt-mips-gnu"
6793 ;;
29383458 6794 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6795 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6796 ;;
6797 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6798 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6799 # commands to handle both 32-bit and 64-bit objects. These flags are
6800 # harmless if we're using GNU nm or ar.
6801 extra_arflags_for_target=" -X32_64"
6802 extra_nmflags_for_target=" -B -X32_64"
6803 ;;
92f4e989
JM
6804 *-*-darwin[3-9]*)
6805 # ranlib before Darwin10 requires the -c flag to look at common symbols.
a0da8069
NN
6806 extra_ranlibflags_for_target=" -c"
6807 ;;
a0da8069
NN
6808esac
6809
6810alphaieee_frag=/dev/null
6811case $target in
6812 alpha*-*-*)
6813 # This just makes sure to use the -mieee option to build target libs.
6814 # This should probably be set individually by each library.
6815 alphaieee_frag="config/mt-alphaieee"
6816 ;;
6817esac
6818
6819# If --enable-target-optspace always use -Os instead of -O2 to build
6820# the target libraries, similarly if it is not specified, use -Os
6821# on selected platforms.
6822ospace_frag=/dev/null
6823case "${enable_target_optspace}:${target}" in
6824 yes:*)
6825 ospace_frag="config/mt-ospace"
6826 ;;
6827 :d30v-*)
6828 ospace_frag="config/mt-d30v"
6829 ;;
6830 :m32r-* | :d10v-* | :fr30-*)
6831 ospace_frag="config/mt-ospace"
6832 ;;
6833 no:* | :*)
6834 ;;
6835 *)
6836 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6837 ;;
6838esac
6839
a0da8069
NN
6840# Default to using --with-stabs for certain targets.
6841if test x${with_stabs} = x ; then
6842 case "${target}" in
e31d1ea3 6843 mips*-*-irix[56]*)
a0da8069
NN
6844 ;;
6845 mips*-*-* | alpha*-*-osf*)
6846 with_stabs=yes;
6847 extra_host_args="${extra_host_args} --with-stabs"
6848 ;;
6849 esac
6850fi
6851
a0da8069
NN
6852# Some systems (e.g., one of the i386-aix systems the gas testers are
6853# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6854tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6855build_tooldir=${tooldir}
6856
a0da8069
NN
6857# Create a .gdbinit file which runs the one in srcdir
6858# and tells GDB to look there for source files.
6859
6860if test -r ${srcdir}/.gdbinit ; then
6861 case ${srcdir} in
6862 .) ;;
6863 *) cat > ./.gdbinit <<EOF
6864# ${NO_EDIT}
6865dir ${srcdir}
6866dir .
6867source ${srcdir}/.gdbinit
6868EOF
6869 ;;
6870 esac
6871fi
6872
a0da8069
NN
6873# Make sure that the compiler is able to generate an executable. If it
6874# can't, we are probably in trouble. We don't care whether we can run the
6875# executable--we might be using a cross compiler--we only care whether it
6876# can be created. At this point the main configure script has set CC.
6877we_are_ok=no
6878echo "int main () { return 0; }" > conftest.c
6879${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6880if test $? = 0 ; then
6881 if test -s conftest || test -s conftest.exe ; then
6882 we_are_ok=yes
6883 fi
c6b750e1 6884fi
a0da8069
NN
6885case $we_are_ok in
6886 no)
6887 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6888 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6889 rm -f conftest*
6890 exit 1
6891 ;;
6892esac
6893rm -f conftest*
6894
3bbd2f8f 6895# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6896case "${host}" in
6897 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 6898 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6899 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6900 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6901esac
6902
3bbd2f8f 6903# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6904# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6905# built executables to PATH.
3bbd2f8f
AL
6906if test "$RPATH_ENVVAR" = PATH; then
6907 GCC_SHLIB_SUBDIR=/shlib
6908else
6909 GCC_SHLIB_SUBDIR=
6910fi
6911
a0da8069
NN
6912# Record target_configdirs and the configure arguments for target and
6913# build configuration in Makefile.
6914target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6915build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6916
2aa2364a
JR
6917# If we are building libgomp, bootstrap it.
6918if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6919 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6920fi
6921
a0da8069
NN
6922# Determine whether gdb needs tk/tcl or not.
6923# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6924# and in that case we want gdb to be built without tk. Ugh!
6925# In fact I believe gdb is the *only* package directly dependent on tk,
6926# so we should be able to put the 'maybe's in unconditionally and
6927# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6928# 100% sure that that's safe though.
c180f501 6929
675c6968 6930gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6931case "$enable_gdbtk" in
6932 no)
6933 GDB_TK="" ;;
c180f501
AC
6934 yes)
6935 GDB_TK="${gdb_tk}" ;;
a0da8069 6936 *)
c180f501
AC
6937 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6938 # distro. Eventually someone will fix this and move Insight, nee
6939 # gdbtk to a separate directory.
6940 if test -d ${srcdir}/gdb/gdbtk ; then
6941 GDB_TK="${gdb_tk}"
6942 else
6943 GDB_TK=""
6944 fi
6945 ;;
a0da8069 6946esac
907be67c
DJ
6947CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6948INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6949
6bd3dfaa 6950# Strip out unwanted targets.
dd12c3a8
NN
6951
6952# While at that, we remove Makefiles if we were started for recursive
6953# configuration, so that the top-level Makefile reconfigures them,
6954# like we used to do when configure itself was recursive.
dd12c3a8 6955
06a51eac
RW
6956# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6957# but now we're fixing up the Makefile ourselves with the additional
6958# commands passed to AC_CONFIG_FILES. Use separate variables
6959# extrasub-{build,host,target} not because there is any reason to split
6960# the substitutions up that way, but only to remain below the limit of
6961# 99 commands in a script, for HP-UX sed.
6962# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 6963
81ecdfbb
RW
6964# Check whether --enable-bootstrap was given.
6965if test "${enable_bootstrap+set}" = set; then :
6966 enableval=$enable_bootstrap;
319cab08 6967else
9cb3fa6f 6968 enable_bootstrap=default
81ecdfbb
RW
6969fi
6970
319cab08 6971
9cb3fa6f
PB
6972# Issue errors and warnings for invalid/strange bootstrap combinations.
6973case "$configdirs" in
6974 *gcc*) have_compiler=yes ;;
6975 *) have_compiler=no ;;
6976esac
6977
6978case "$have_compiler:$host:$target:$enable_bootstrap" in
6979 *:*:*:no) ;;
6980
0aed8855 6981 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
6982 # and we are in a native configuration.
6983 yes:$build:$build:default)
0aed8855 6984 enable_bootstrap=yes ;;
9cb3fa6f
PB
6985
6986 *:*:*:default)
6987 enable_bootstrap=no ;;
6988
6989 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 6990 yes:$build:$build:yes)
9cb3fa6f
PB
6991 ;;
6992
6993 # Other configurations, but we have a compiler. Assume the user knows
6994 # what he's doing.
80911fe1 6995 yes:*:*:yes)
81ecdfbb
RW
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6997$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
6998 ;;
6999
7000 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 7001 no:*:*:yes)
81ecdfbb 7002 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
7003
7004 # Fail if wrong command line
7005 *)
81ecdfbb 7006 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
7007 ;;
7008esac
7009
4385ad3c
RW
7010case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7011 *,c++,*:yes:yes) ;;
7012 *:yes:yes)
7013 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7014 ;;
7015esac
7016
16b1ad29
RW
7017case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7018 yes:yes:*\ gold\ *:*,c++,*) ;;
7019 yes:yes:*\ gold\ *:*)
7020 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7021 ;;
7022esac
7023
9cb3fa6f 7024# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 7025case $enable_bootstrap in
319cab08 7026 yes)
96655cc4
AO
7027 bootstrap_suffix=bootstrap
7028 BUILD_CONFIG=bootstrap-debug
7029 ;;
319cab08 7030 no)
96655cc4
AO
7031 bootstrap_suffix=no-bootstrap
7032 BUILD_CONFIG=
7033 ;;
319cab08
PB
7034esac
7035
96655cc4
AO
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7037$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7038
7039
7040# Check whether --with-build-config was given.
7041if test "${with_build_config+set}" = set; then :
7042 withval=$with_build_config; case $with_build_config in
7043 yes) with_build_config= ;;
7044 no) with_build_config= BUILD_CONFIG= ;;
7045 esac
7046fi
7047
7048
7049if test "x${with_build_config}" != x; then
7050 BUILD_CONFIG=$with_build_config
7051else
7052 case $BUILD_CONFIG in
7053 bootstrap-debug)
7054 if echo "int f (void) { return 0; }" > conftest.c &&
7055 ${CC} -c conftest.c &&
7056 mv conftest.o conftest.o.g0 &&
7057 ${CC} -c -g conftest.c &&
7058 mv conftest.o conftest.o.g &&
a009f2e7 7059 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
7060 :
7061 else
7062 BUILD_CONFIG=
7063 fi
7064 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7065 ;;
7066 esac
7067fi
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7069$as_echo "$BUILD_CONFIG" >&6; }
7070
7071
06a51eac 7072extrasub_build=
6a9cf61e 7073for module in ${build_configdirs} ; do
498d4a71
CF
7074 if test -z "${no_recursion}" \
7075 && test -f ${build_subdir}/${module}/Makefile; then
7076 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7077 rm -f ${build_subdir}/${module}/Makefile
7078 fi
06a51eac 7079 extrasub_build="$extrasub_build
498d4a71
CF
7080/^@if build-$module\$/d
7081/^@endif build-$module\$/d
7082/^@if build-$module-$bootstrap_suffix\$/d
7083/^@endif build-$module-$bootstrap_suffix\$/d"
7084done
06a51eac 7085extrasub_host=
498d4a71 7086for module in ${configdirs} ; do
80911fe1 7087 if test -z "${no_recursion}"; then
8cf39b1b 7088 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7089 if test -f ${file}; then
7090 echo 1>&2 "*** removing ${file} to force reconfigure"
7091 rm -f ${file}
7092 fi
7093 done
498d4a71 7094 fi
06a51eac 7095 extrasub_host="$extrasub_host
498d4a71
CF
7096/^@if $module\$/d
7097/^@endif $module\$/d
7098/^@if $module-$bootstrap_suffix\$/d
7099/^@endif $module-$bootstrap_suffix\$/d"
7100done
06a51eac 7101extrasub_target=
498d4a71
CF
7102for module in ${target_configdirs} ; do
7103 if test -z "${no_recursion}" \
7104 && test -f ${target_subdir}/${module}/Makefile; then
7105 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7106 rm -f ${target_subdir}/${module}/Makefile
7107 fi
e8a5fa9c
RW
7108
7109 # We only bootstrap target libraries listed in bootstrap_target_libs.
7110 case $bootstrap_target_libs in
7111 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7112 *) target_bootstrap_suffix=no-bootstrap ;;
7113 esac
7114
06a51eac 7115 extrasub_target="$extrasub_target
498d4a71
CF
7116/^@if target-$module\$/d
7117/^@endif target-$module\$/d
e8a5fa9c
RW
7118/^@if target-$module-$target_bootstrap_suffix\$/d
7119/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7120done
7121
06a51eac
RW
7122# Do the final fixup along with target modules.
7123extrasub_target="$extrasub_target
6bd3dfaa 7124/^@if /,/^@endif /d"
a0da8069
NN
7125
7126# Create the serialization dependencies. This uses a temporary file.
7127
81ecdfbb
RW
7128# Check whether --enable-serial-configure was given.
7129if test "${enable_serial_configure+set}" = set; then :
7130 enableval=$enable_serial_configure;
7131fi
e6bfb94a
AO
7132
7133
1047cb91
DD
7134case ${enable_serial_configure} in
7135 yes)
7136 enable_serial_build_configure=yes
7137 enable_serial_host_configure=yes
7138 enable_serial_target_configure=yes
7139 ;;
7140esac
7141
a0da8069
NN
7142# These force 'configure's to be done one at a time, to avoid problems
7143# with contention over a shared config.cache.
7144rm -f serdep.tmp
e6bfb94a 7145echo '# serdep.tmp' > serdep.tmp
a0da8069 7146olditem=
1047cb91 7147test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7148for item in ${build_configdirs} ; do
7149 case ${olditem} in
7150 "") ;;
e6bfb94a 7151 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7152 esac
7153 olditem=${item}
7154done
7155olditem=
1047cb91 7156test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7157for item in ${configdirs} ; do
7158 case ${olditem} in
7159 "") ;;
e6bfb94a 7160 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7161 esac
7162 olditem=${item}
7163done
7164olditem=
1047cb91 7165test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7166for item in ${target_configdirs} ; do
7167 case ${olditem} in
7168 "") ;;
e6bfb94a 7169 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7170 esac
7171 olditem=${item}
7172done
7173serialization_dependencies=serdep.tmp
7174
7175
e6bfb94a 7176# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7177# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7178# might not want to pass down to subconfigures. The exception being
7179# --cache-file=/dev/null, which is used to turn off the use of cache
7180# files altogether, and which should be passed on to subconfigures.
7181# Also strip program-prefix, program-suffix, and program-transform-name,
7182# so that we can pass down a consistent program-transform-name.
c6b750e1 7183baseargs=
65b4571a 7184tbaseargs=
c6b750e1
DJ
7185keep_next=no
7186skip_next=no
7187eval "set -- $ac_configure_args"
18f6b6ee
PB
7188for ac_arg
7189do
c6b750e1
DJ
7190 if test X"$skip_next" = X"yes"; then
7191 skip_next=no
7192 continue
7193 fi
7194 if test X"$keep_next" = X"yes"; then
7195 case $ac_arg in
7196 *\'*)
7197 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7198 esac
7199 baseargs="$baseargs '$ac_arg'"
65b4571a 7200 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7201 keep_next=no
7202 continue
7203 fi
7204
7205 # Handle separated arguments. Based on the logic generated by
7206 # autoconf 2.59.
7207 case $ac_arg in
7208 *=* | --config-cache | -C | -disable-* | --disable-* \
7209 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7210 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7211 | -with-* | --with-* | -without-* | --without-* | --x)
7212 separate_arg=no
7213 ;;
7214 -*)
7215 separate_arg=yes
7216 ;;
7217 *)
7218 separate_arg=no
7219 ;;
7220 esac
7221
65b4571a
AO
7222 skip_targ=no
7223 case $ac_arg in
7224
7225 --with-* | --without-*)
7226 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7227
7228 case $libopt in
7229 *[-_]include)
7230 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7231 ;;
7232 *[-_]lib)
7233 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7234 ;;
7235 *)
7236 lib=$libopt
7237 ;;
7238 esac
7239
7240
7241 case $lib in
7242 mpc | mpfr | gmp | ppl | cloog)
7243 # If we're processing --with-$lib, --with-$lib-include or
7244 # --with-$lib-lib, for one of the libs above, and target is
7245 # different from host, don't pass the current argument to any
7246 # target library's configure.
7247 if test x$is_cross_compiler = xyes; then
7248 skip_targ=yes
7249 fi
7250 ;;
7251 esac
7252 ;;
7253 esac
7254
c6b750e1 7255 case "$ac_arg" in
30167e0a
NC
7256 --cache-file=/dev/null | \
7257 -cache-file=/dev/null )
7258 # Handled here to avoid the test to skip args below.
7259 baseargs="$baseargs '$ac_arg'"
65b4571a 7260 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7261 # Assert: $separate_arg should always be no.
7262 keep_next=$separate_arg
7263 ;;
c6b750e1
DJ
7264 --no*)
7265 continue
7266 ;;
7267 --c* | \
7268 --sr* | \
7269 --ho* | \
7270 --bu* | \
7271 --t* | \
7272 --program-* | \
7273 -cache_file* | \
7274 -srcdir* | \
7275 -host* | \
7276 -build* | \
7277 -target* | \
7278 -program-prefix* | \
7279 -program-suffix* | \
7280 -program-transform-name* )
7281 skip_next=$separate_arg
7282 continue
7283 ;;
7284 -*)
7285 # An option. Add it.
7286 case $ac_arg in
7287 *\'*)
7288 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7289 esac
7290 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7291 if test X"$skip_targ" = Xno; then
7292 tbaseargs="$tbaseargs '$ac_arg'"
7293 fi
c6b750e1
DJ
7294 keep_next=$separate_arg
7295 ;;
7296 *)
7297 # Either a variable assignment, or a nonopt (triplet). Don't
7298 # pass it down; let the Makefile handle this.
7299 continue
7300 ;;
7301 esac
7302done
7303# Remove the initial space we just introduced and, as these will be
7304# expanded by make, quote '$'.
7305baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7306
f27d4f92
DJ
7307# Add in --program-transform-name, after --program-prefix and
7308# --program-suffix have been applied to it. Autoconf has already
7309# doubled dollar signs and backslashes in program_transform_name; we want
7310# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7311# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7312# Also, because we want to override the logic in subdir configure scripts to
7313# choose program_transform_name, replace any s,x,x, with s,y,y,.
7314sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7315${program_transform_name}
7316EOF_SED
7317gcc_transform_name=`cat conftestsed.out`
7318rm -f conftestsed.out
7319baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7320tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7321if test "$silent" = yes; then
7322 baseargs="$baseargs --silent"
65b4571a 7323 tbaseargs="$tbaseargs --silent"
2444379b 7324fi
34a0f3cf 7325baseargs="$baseargs --disable-option-checking"
65b4571a 7326tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7327
4074d5f2
RW
7328# Record and document user additions to sub configure arguments.
7329
7330
7331
7332
a0da8069
NN
7333# For the build-side libraries, we just need to pretend we're native,
7334# and not use the same cache file. Multilibs are neither needed nor
7335# desired.
4074d5f2 7336build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7337
7338# For host modules, accept cache file option, or specification as blank.
7339case "${cache_file}" in
7340"") # empty
7341 cache_file_option="" ;;
7342/* | [A-Za-z]:[\\/]* ) # absolute path
7343 cache_file_option="--cache-file=${cache_file}" ;;
7344*) # relative path
7345 cache_file_option="--cache-file=../${cache_file}" ;;
7346esac
7347
82252c06
NN
7348# Host dirs don't like to share a cache file either, horribly enough.
7349# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7350host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7351
65b4571a 7352target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7353
7354# Passing a --with-cross-host argument lets the target libraries know
7355# whether they are being built with a cross-compiler or being built
7356# native. However, it would be better to use other mechanisms to make the
7357# sorts of decisions they want to make on this basis. Please consider
7358# this option to be deprecated. FIXME.
7359if test x${is_cross_compiler} = xyes ; then
c6b750e1 7360 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7361fi
7362
938d2b74
RW
7363# Default to --enable-multilib.
7364if test x${enable_multilib} = x ; then
a0da8069 7365 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7366fi
a0da8069
NN
7367
7368# Pass --with-newlib if appropriate. Note that target_configdirs has
7369# changed from the earlier setting of with_newlib.
7370if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7371 target_configargs="--with-newlib ${target_configargs}"
7372fi
7373
95036d20
NN
7374# Different target subdirs use different values of certain variables
7375# (notably CXX). Worse, multilibs use *lots* of different values.
7376# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7377# it doesn't automatically accept command-line overrides of them.
7378# This means it's not safe for target subdirs to share a cache file,
7379# which is disgusting, but there you have it. Hopefully this can be
7380# fixed in future. It's still worthwhile to use a cache file for each
7381# directory. I think.
7382
ae380b45
MS
7383# Pass the appropriate --build, --host, --target and --cache-file arguments.
7384# We need to pass --target, as newer autoconf's requires consistency
7385# for target_alias and gcc doesn't manage it consistently.
4b900473 7386target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7387
a0da8069
NN
7388FLAGS_FOR_TARGET=
7389case " $target_configdirs " in
7390 *" newlib "*)
7391 case " $target_configargs " in
7392 *" --with-newlib "*)
7393 case "$target" in
1f53ca9a
AO
7394 *-cygwin*)
7395 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'
7396 ;;
a0da8069
NN
7397 esac
7398
7399 # If we're not building GCC, don't discard standard headers.
7400 if test -d ${srcdir}/gcc; then
7401 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7402
7403 if test "${build}" != "${host}"; then
7404 # On Canadian crosses, CC_FOR_TARGET will have already been set
7405 # by `configure', so we won't have an opportunity to add -Bgcc/
7406 # to it. This is right: we don't want to search that directory
7407 # for binaries, but we want the header files in there, so add
7408 # them explicitly.
e552509b 7409 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7410
7411 # Someone might think of using the pre-installed headers on
7412 # Canadian crosses, in case the installed compiler is not fully
7413 # compatible with the compiler being built. In this case, it
7414 # would be better to flag an error than risking having
7415 # incompatible object files being constructed. We can't
7416 # guarantee that an error will be flagged, but let's hope the
7417 # compiler will do it, when presented with incompatible header
7418 # files.
7419 fi
7420 fi
7421
7422 case "${target}-${is_cross_compiler}" in
ec11bdc6 7423 i[3456789]86-*-linux*-no)
a0da8069
NN
7424 # Here host == target, so we don't need to build gcc,
7425 # so we don't want to discard standard headers.
7426 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7427 ;;
7428 *)
7429 # If we're building newlib, use its generic headers last, but search
7430 # for any libc-related directories first (so make it the last -B
7431 # switch).
7432 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
7433
7434 # If we're building libgloss, find the startup file, simulator library
7435 # and linker script.
7436 case " $target_configdirs " in
7437 *" libgloss "*)
7438 # Look for startup file, simulator library and maybe linker script.
7439 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7440 # Look for libnosys.a in case the target needs it.
7441 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7442 # Most targets have the linker script in the source directory.
7443 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7444 ;;
7445 esac
a0da8069
NN
7446 ;;
7447 esac
7448 ;;
7449 esac
7450 ;;
7451esac
1f53ca9a 7452
45055374 7453case "$target" in
1f53ca9a
AO
7454 x86_64-*mingw* | *-w64-mingw*)
7455 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7456 # however, use a symlink named 'mingw' in ${prefix} .
7457 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7458 ;;
7459 *-mingw*)
7460 # MinGW can't be handled as Cygwin above since it does not use newlib.
7461 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'
7462 ;;
45055374 7463esac
a0da8069 7464
5fbad20a
DD
7465# Allow the user to override the flags for
7466# our build compiler if desired.
c66487f8
NC
7467if test x"${build}" = x"${host}" ; then
7468 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7469 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7470 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7471fi
5fbad20a 7472
a0da8069
NN
7473# On Canadian crosses, we'll be searching the right directories for
7474# the previously-installed cross compiler, so don't bother to add
7475# flags for directories within the install tree of the compiler
7476# being built; programs in there won't even run.
7477if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7478 # Search for pre-installed headers if nothing else fits.
bba45b8b 7479 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
7480fi
7481
7482if test "x${use_gnu_ld}" = x &&
7483 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7484 # Arrange for us to find uninstalled linker scripts.
b00612cc 7485 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7486fi
7487
a481dbb7
DD
7488# Search for other target-specific linker scripts and such.
7489case "${target}" in
4e206d7e
DB
7490 mep*)
7491 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7492 ;;
7493esac
7494
a0da8069 7495# Makefile fragments.
3e707e94
PB
7496for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7497do
7498 eval fragval=\$$frag
7499 if test $fragval != /dev/null; then
7500 eval $frag=${srcdir}/$fragval
7501 fi
7502done
a0da8069
NN
7503
7504
7505
7506
7507
7508# Miscellanea: directories, flags, etc.
7509
7510
7511
7512
7513
7514
7515
3bbd2f8f 7516
6a9cf61e 7517# Build module lists & subconfigure args.
a0da8069
NN
7518
7519
7520
be01d343
PB
7521# Host module lists & subconfigure args.
7522
7523
7524
911e63d0 7525
be01d343
PB
7526# Target module lists & subconfigure args.
7527
7528
7529
7530# Build tools.
7531
7532
7533
1576798e
PB
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
be01d343
PB
7548# Generate default definitions for YACC, M4, LEX and other programs that run
7549# on the build machine. These are used if the Makefile can't locate these
7550# programs in objdir.
7551MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7552
7553for ac_prog in 'bison -y' byacc yacc
7554do
c6b750e1 7555 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7556set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558$as_echo_n "checking for $ac_word... " >&6; }
7559if test "${ac_cv_prog_YACC+set}" = set; then :
7560 $as_echo_n "(cached) " >&6
be01d343
PB
7561else
7562 if test -n "$YACC"; then
7563 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7564else
c6b750e1
DJ
7565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566for as_dir in $PATH
7567do
7568 IFS=$as_save_IFS
7569 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7572 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7574 break 2
7575 fi
7576done
81ecdfbb
RW
7577 done
7578IFS=$as_save_IFS
c6b750e1 7579
be01d343
PB
7580fi
7581fi
c6b750e1 7582YACC=$ac_cv_prog_YACC
be01d343 7583if test -n "$YACC"; then
81ecdfbb
RW
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7585$as_echo "$YACC" >&6; }
be01d343 7586else
81ecdfbb
RW
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588$as_echo "no" >&6; }
be01d343
PB
7589fi
7590
81ecdfbb 7591
c6b750e1 7592 test -n "$YACC" && break
be01d343
PB
7593done
7594test -n "$YACC" || YACC="$MISSING bison -y"
7595
7596case " $build_configdirs " in
7597 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7598esac
7599
7600for ac_prog in bison
7601do
c6b750e1 7602 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7603set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605$as_echo_n "checking for $ac_word... " >&6; }
7606if test "${ac_cv_prog_BISON+set}" = set; then :
7607 $as_echo_n "(cached) " >&6
be01d343
PB
7608else
7609 if test -n "$BISON"; then
7610 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7611else
c6b750e1
DJ
7612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH
7614do
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7619 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7621 break 2
7622 fi
7623done
81ecdfbb
RW
7624 done
7625IFS=$as_save_IFS
c6b750e1 7626
be01d343
PB
7627fi
7628fi
c6b750e1 7629BISON=$ac_cv_prog_BISON
be01d343 7630if test -n "$BISON"; then
81ecdfbb
RW
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7632$as_echo "$BISON" >&6; }
be01d343 7633else
81ecdfbb
RW
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635$as_echo "no" >&6; }
be01d343
PB
7636fi
7637
81ecdfbb 7638
c6b750e1 7639 test -n "$BISON" && break
be01d343
PB
7640done
7641test -n "$BISON" || BISON="$MISSING bison"
7642
7643case " $build_configdirs " in
7644 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7645esac
7646
7647for ac_prog in gm4 gnum4 m4
7648do
c6b750e1 7649 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7650set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652$as_echo_n "checking for $ac_word... " >&6; }
7653if test "${ac_cv_prog_M4+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
be01d343
PB
7655else
7656 if test -n "$M4"; then
7657 ac_cv_prog_M4="$M4" # Let the user override the test.
7658else
c6b750e1
DJ
7659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660for as_dir in $PATH
7661do
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7666 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7668 break 2
7669 fi
7670done
81ecdfbb
RW
7671 done
7672IFS=$as_save_IFS
c6b750e1 7673
be01d343
PB
7674fi
7675fi
c6b750e1 7676M4=$ac_cv_prog_M4
be01d343 7677if test -n "$M4"; then
81ecdfbb
RW
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7679$as_echo "$M4" >&6; }
be01d343 7680else
81ecdfbb
RW
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682$as_echo "no" >&6; }
be01d343
PB
7683fi
7684
81ecdfbb 7685
c6b750e1 7686 test -n "$M4" && break
be01d343
PB
7687done
7688test -n "$M4" || M4="$MISSING m4"
7689
7690case " $build_configdirs " in
7691 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7692esac
7693
7694for ac_prog in flex lex
7695do
c6b750e1 7696 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7697set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699$as_echo_n "checking for $ac_word... " >&6; }
7700if test "${ac_cv_prog_LEX+set}" = set; then :
7701 $as_echo_n "(cached) " >&6
be01d343
PB
7702else
7703 if test -n "$LEX"; then
7704 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7705else
c6b750e1
DJ
7706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707for as_dir in $PATH
7708do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7713 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7715 break 2
7716 fi
7717done
81ecdfbb
RW
7718 done
7719IFS=$as_save_IFS
c6b750e1 7720
be01d343
PB
7721fi
7722fi
c6b750e1 7723LEX=$ac_cv_prog_LEX
be01d343 7724if test -n "$LEX"; then
81ecdfbb
RW
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7726$as_echo "$LEX" >&6; }
be01d343 7727else
81ecdfbb
RW
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729$as_echo "no" >&6; }
be01d343
PB
7730fi
7731
81ecdfbb 7732
c6b750e1 7733 test -n "$LEX" && break
be01d343
PB
7734done
7735test -n "$LEX" || LEX="$MISSING flex"
7736
7737case " $build_configdirs " in
7738 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7739 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7740esac
7741
7742for ac_prog in flex
7743do
c6b750e1 7744 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7745set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747$as_echo_n "checking for $ac_word... " >&6; }
7748if test "${ac_cv_prog_FLEX+set}" = set; then :
7749 $as_echo_n "(cached) " >&6
be01d343
PB
7750else
7751 if test -n "$FLEX"; then
7752 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7753else
c6b750e1
DJ
7754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755for as_dir in $PATH
7756do
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7761 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7763 break 2
7764 fi
7765done
81ecdfbb
RW
7766 done
7767IFS=$as_save_IFS
c6b750e1 7768
be01d343
PB
7769fi
7770fi
c6b750e1 7771FLEX=$ac_cv_prog_FLEX
be01d343 7772if test -n "$FLEX"; then
81ecdfbb
RW
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7774$as_echo "$FLEX" >&6; }
be01d343 7775else
81ecdfbb
RW
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777$as_echo "no" >&6; }
be01d343
PB
7778fi
7779
81ecdfbb 7780
c6b750e1 7781 test -n "$FLEX" && break
be01d343
PB
7782done
7783test -n "$FLEX" || FLEX="$MISSING flex"
7784
7785case " $build_configdirs " in
7786 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7787esac
7788
7789for ac_prog in makeinfo
7790do
c6b750e1 7791 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7792set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794$as_echo_n "checking for $ac_word... " >&6; }
7795if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
be01d343
PB
7797else
7798 if test -n "$MAKEINFO"; then
7799 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7800else
c6b750e1
DJ
7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802for as_dir in $PATH
7803do
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7808 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7810 break 2
7811 fi
7812done
81ecdfbb
RW
7813 done
7814IFS=$as_save_IFS
c6b750e1 7815
be01d343
PB
7816fi
7817fi
c6b750e1 7818MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7819if test -n "$MAKEINFO"; then
81ecdfbb
RW
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7821$as_echo "$MAKEINFO" >&6; }
be01d343 7822else
81ecdfbb
RW
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824$as_echo "no" >&6; }
be01d343
PB
7825fi
7826
81ecdfbb 7827
c6b750e1 7828 test -n "$MAKEINFO" && break
be01d343
PB
7829done
7830test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7831
7832case " $build_configdirs " in
7833 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7834 *)
7835
10ad8ef3 7836 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7837 # higher, else we use the "missing" dummy.
7838 if ${MAKEINFO} --version \
10ad8ef3 7839 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7840 :
7841 else
7842 MAKEINFO="$MISSING makeinfo"
7843 fi
7844 ;;
7845
7846esac
a0da8069 7847
be01d343 7848# FIXME: expect and dejagnu may become build tools?
a0da8069 7849
be01d343
PB
7850for ac_prog in expect
7851do
c6b750e1 7852 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7853set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855$as_echo_n "checking for $ac_word... " >&6; }
7856if test "${ac_cv_prog_EXPECT+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
be01d343
PB
7858else
7859 if test -n "$EXPECT"; then
7860 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7861else
c6b750e1
DJ
7862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863for as_dir in $PATH
7864do
7865 IFS=$as_save_IFS
7866 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7869 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7871 break 2
7872 fi
7873done
81ecdfbb
RW
7874 done
7875IFS=$as_save_IFS
c6b750e1 7876
be01d343
PB
7877fi
7878fi
c6b750e1 7879EXPECT=$ac_cv_prog_EXPECT
be01d343 7880if test -n "$EXPECT"; then
81ecdfbb
RW
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7882$as_echo "$EXPECT" >&6; }
be01d343 7883else
81ecdfbb
RW
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885$as_echo "no" >&6; }
be01d343 7886fi
a0da8069 7887
81ecdfbb 7888
c6b750e1 7889 test -n "$EXPECT" && break
be01d343
PB
7890done
7891test -n "$EXPECT" || EXPECT="expect"
a0da8069 7892
be01d343
PB
7893case " $configdirs " in
7894 *" expect "*)
7895 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7896 ;;
7897esac
a0da8069 7898
be01d343
PB
7899for ac_prog in runtest
7900do
c6b750e1 7901 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7902set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904$as_echo_n "checking for $ac_word... " >&6; }
7905if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7906 $as_echo_n "(cached) " >&6
be01d343
PB
7907else
7908 if test -n "$RUNTEST"; then
7909 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7910else
c6b750e1
DJ
7911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912for as_dir in $PATH
7913do
7914 IFS=$as_save_IFS
7915 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7918 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7920 break 2
7921 fi
7922done
81ecdfbb
RW
7923 done
7924IFS=$as_save_IFS
c6b750e1 7925
be01d343
PB
7926fi
7927fi
c6b750e1 7928RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7929if test -n "$RUNTEST"; then
81ecdfbb
RW
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7931$as_echo "$RUNTEST" >&6; }
be01d343 7932else
81ecdfbb
RW
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934$as_echo "no" >&6; }
be01d343 7935fi
a0da8069 7936
81ecdfbb 7937
c6b750e1 7938 test -n "$RUNTEST" && break
be01d343
PB
7939done
7940test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7941
be01d343
PB
7942case " $configdirs " in
7943 *" dejagnu "*)
6b89cc21 7944 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7945 ;;
7946esac
a0da8069
NN
7947
7948
a0da8069 7949# Host tools.
859789af
AC
7950ncn_tool_prefix=
7951test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7952ncn_target_tool_prefix=
7953test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7954
9a819804
AO
7955
7956
7957if test -n "$AR"; then
7958 ac_cv_prog_AR=$AR
7959elif test -n "$ac_cv_prog_AR"; then
7960 AR=$ac_cv_prog_AR
7961fi
7962
7963if test -n "$ac_cv_prog_AR"; then
7964 for ncn_progname in ar; do
7965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7966set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7968$as_echo_n "checking for $ac_word... " >&6; }
7969if test "${ac_cv_prog_AR+set}" = set; then :
7970 $as_echo_n "(cached) " >&6
9a819804
AO
7971else
7972 if test -n "$AR"; then
7973 ac_cv_prog_AR="$AR" # Let the user override the test.
7974else
7975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976for as_dir in $PATH
7977do
7978 IFS=$as_save_IFS
7979 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7980 for ac_exec_ext in '' $ac_executable_extensions; do
7981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7982 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7984 break 2
7985 fi
7986done
81ecdfbb
RW
7987 done
7988IFS=$as_save_IFS
9a819804
AO
7989
7990fi
7991fi
7992AR=$ac_cv_prog_AR
7993if test -n "$AR"; then
81ecdfbb
RW
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7995$as_echo "$AR" >&6; }
9a819804 7996else
81ecdfbb
RW
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7998$as_echo "no" >&6; }
9a819804
AO
7999fi
8000
81ecdfbb 8001
9a819804
AO
8002 done
8003fi
8004
8005for ncn_progname in ar; do
05cbd757
PB
8006 if test -n "$ncn_tool_prefix"; then
8007 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8008set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010$as_echo_n "checking for $ac_word... " >&6; }
8011if test "${ac_cv_prog_AR+set}" = set; then :
8012 $as_echo_n "(cached) " >&6
859789af
AC
8013else
8014 if test -n "$AR"; then
8015 ac_cv_prog_AR="$AR" # Let the user override the test.
8016else
c6b750e1
DJ
8017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018for as_dir in $PATH
8019do
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8024 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8026 break 2
8027 fi
8028done
81ecdfbb
RW
8029 done
8030IFS=$as_save_IFS
c6b750e1 8031
859789af
AC
8032fi
8033fi
c6b750e1 8034AR=$ac_cv_prog_AR
859789af 8035if test -n "$AR"; then
81ecdfbb
RW
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8037$as_echo "$AR" >&6; }
859789af 8038else
81ecdfbb
RW
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040$as_echo "no" >&6; }
859789af
AC
8041fi
8042
81ecdfbb 8043
05cbd757
PB
8044 fi
8045 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8047set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049$as_echo_n "checking for $ac_word... " >&6; }
8050if test "${ac_cv_prog_AR+set}" = set; then :
8051 $as_echo_n "(cached) " >&6
859789af 8052else
05cbd757
PB
8053 if test -n "$AR"; then
8054 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8055else
c6b750e1
DJ
8056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057for as_dir in $PATH
8058do
8059 IFS=$as_save_IFS
8060 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8063 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8065 break 2
8066 fi
8067done
81ecdfbb
RW
8068 done
8069IFS=$as_save_IFS
c6b750e1 8070
859789af
AC
8071fi
8072fi
c6b750e1 8073AR=$ac_cv_prog_AR
05cbd757 8074if test -n "$AR"; then
81ecdfbb
RW
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8076$as_echo "$AR" >&6; }
859789af 8077else
81ecdfbb
RW
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079$as_echo "no" >&6; }
859789af 8080fi
c6b750e1 8081
81ecdfbb 8082
05cbd757
PB
8083 fi
8084 test -n "$ac_cv_prog_AR" && break
8085done
8086
8087if test -z "$ac_cv_prog_AR" ; then
8088 set dummy ar
8089 if test $build = $host ; then
8090 AR="$2"
859789af 8091 else
05cbd757 8092 AR="${ncn_tool_prefix}$2"
859789af 8093 fi
859789af
AC
8094fi
8095
9a819804
AO
8096
8097
8098if test -n "$AS"; then
8099 ac_cv_prog_AS=$AS
8100elif test -n "$ac_cv_prog_AS"; then
8101 AS=$ac_cv_prog_AS
8102fi
8103
8104if test -n "$ac_cv_prog_AS"; then
8105 for ncn_progname in as; do
8106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8107set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109$as_echo_n "checking for $ac_word... " >&6; }
8110if test "${ac_cv_prog_AS+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
9a819804
AO
8112else
8113 if test -n "$AS"; then
8114 ac_cv_prog_AS="$AS" # Let the user override the test.
8115else
8116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117for as_dir in $PATH
8118do
8119 IFS=$as_save_IFS
8120 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8123 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8125 break 2
8126 fi
8127done
81ecdfbb
RW
8128 done
8129IFS=$as_save_IFS
9a819804
AO
8130
8131fi
8132fi
8133AS=$ac_cv_prog_AS
8134if test -n "$AS"; then
81ecdfbb
RW
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8136$as_echo "$AS" >&6; }
9a819804 8137else
81ecdfbb
RW
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139$as_echo "no" >&6; }
9a819804
AO
8140fi
8141
81ecdfbb 8142
9a819804
AO
8143 done
8144fi
8145
8146for ncn_progname in as; do
05cbd757
PB
8147 if test -n "$ncn_tool_prefix"; then
8148 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8149set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151$as_echo_n "checking for $ac_word... " >&6; }
8152if test "${ac_cv_prog_AS+set}" = set; then :
8153 $as_echo_n "(cached) " >&6
859789af
AC
8154else
8155 if test -n "$AS"; then
8156 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8157else
8158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159for as_dir in $PATH
8160do
8161 IFS=$as_save_IFS
8162 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8165 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8167 break 2
8168 fi
8169done
81ecdfbb
RW
8170 done
8171IFS=$as_save_IFS
c6b750e1 8172
859789af
AC
8173fi
8174fi
c6b750e1 8175AS=$ac_cv_prog_AS
859789af 8176if test -n "$AS"; then
81ecdfbb
RW
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8178$as_echo "$AS" >&6; }
859789af 8179else
81ecdfbb
RW
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181$as_echo "no" >&6; }
859789af
AC
8182fi
8183
81ecdfbb 8184
05cbd757
PB
8185 fi
8186 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8188set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190$as_echo_n "checking for $ac_word... " >&6; }
8191if test "${ac_cv_prog_AS+set}" = set; then :
8192 $as_echo_n "(cached) " >&6
859789af 8193else
05cbd757
PB
8194 if test -n "$AS"; then
8195 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8196else
c6b750e1
DJ
8197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198for as_dir in $PATH
8199do
8200 IFS=$as_save_IFS
8201 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8204 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8206 break 2
8207 fi
8208done
81ecdfbb
RW
8209 done
8210IFS=$as_save_IFS
c6b750e1 8211
859789af
AC
8212fi
8213fi
c6b750e1 8214AS=$ac_cv_prog_AS
05cbd757 8215if test -n "$AS"; then
81ecdfbb
RW
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8217$as_echo "$AS" >&6; }
859789af 8218else
81ecdfbb
RW
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220$as_echo "no" >&6; }
859789af 8221fi
c6b750e1 8222
81ecdfbb 8223
05cbd757
PB
8224 fi
8225 test -n "$ac_cv_prog_AS" && break
8226done
8227
8228if test -z "$ac_cv_prog_AS" ; then
8229 set dummy as
8230 if test $build = $host ; then
8231 AS="$2"
859789af 8232 else
05cbd757 8233 AS="${ncn_tool_prefix}$2"
859789af 8234 fi
859789af
AC
8235fi
8236
9a819804
AO
8237
8238
8239if test -n "$DLLTOOL"; then
8240 ac_cv_prog_DLLTOOL=$DLLTOOL
8241elif test -n "$ac_cv_prog_DLLTOOL"; then
8242 DLLTOOL=$ac_cv_prog_DLLTOOL
8243fi
8244
8245if test -n "$ac_cv_prog_DLLTOOL"; then
8246 for ncn_progname in dlltool; do
8247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8248set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250$as_echo_n "checking for $ac_word... " >&6; }
8251if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
9a819804
AO
8253else
8254 if test -n "$DLLTOOL"; then
8255 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8256else
8257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258for as_dir in $PATH
8259do
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8264 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8266 break 2
8267 fi
8268done
81ecdfbb
RW
8269 done
8270IFS=$as_save_IFS
9a819804
AO
8271
8272fi
8273fi
8274DLLTOOL=$ac_cv_prog_DLLTOOL
8275if test -n "$DLLTOOL"; then
81ecdfbb
RW
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8277$as_echo "$DLLTOOL" >&6; }
9a819804 8278else
81ecdfbb
RW
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280$as_echo "no" >&6; }
9a819804
AO
8281fi
8282
81ecdfbb 8283
9a819804
AO
8284 done
8285fi
8286
8287for ncn_progname in dlltool; do
05cbd757
PB
8288 if test -n "$ncn_tool_prefix"; then
8289 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8290set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8292$as_echo_n "checking for $ac_word... " >&6; }
8293if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8294 $as_echo_n "(cached) " >&6
859789af
AC
8295else
8296 if test -n "$DLLTOOL"; then
8297 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8298else
c6b750e1
DJ
8299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300for as_dir in $PATH
8301do
8302 IFS=$as_save_IFS
8303 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8304 for ac_exec_ext in '' $ac_executable_extensions; do
8305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8306 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8308 break 2
8309 fi
8310done
81ecdfbb
RW
8311 done
8312IFS=$as_save_IFS
c6b750e1 8313
859789af
AC
8314fi
8315fi
c6b750e1 8316DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8317if test -n "$DLLTOOL"; then
81ecdfbb
RW
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8319$as_echo "$DLLTOOL" >&6; }
859789af 8320else
81ecdfbb
RW
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322$as_echo "no" >&6; }
859789af
AC
8323fi
8324
81ecdfbb 8325
05cbd757
PB
8326 fi
8327 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8328 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8329set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331$as_echo_n "checking for $ac_word... " >&6; }
8332if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8333 $as_echo_n "(cached) " >&6
859789af 8334else
05cbd757
PB
8335 if test -n "$DLLTOOL"; then
8336 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8337else
c6b750e1
DJ
8338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339for as_dir in $PATH
8340do
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8345 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8347 break 2
8348 fi
8349done
81ecdfbb
RW
8350 done
8351IFS=$as_save_IFS
c6b750e1 8352
859789af
AC
8353fi
8354fi
c6b750e1 8355DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8356if test -n "$DLLTOOL"; then
81ecdfbb
RW
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8358$as_echo "$DLLTOOL" >&6; }
859789af 8359else
81ecdfbb
RW
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361$as_echo "no" >&6; }
859789af 8362fi
c6b750e1 8363
81ecdfbb 8364
05cbd757
PB
8365 fi
8366 test -n "$ac_cv_prog_DLLTOOL" && break
8367done
8368
8369if test -z "$ac_cv_prog_DLLTOOL" ; then
8370 set dummy dlltool
8371 if test $build = $host ; then
8372 DLLTOOL="$2"
859789af 8373 else
05cbd757 8374 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8375 fi
859789af
AC
8376fi
8377
9a819804
AO
8378
8379
8380if test -n "$LD"; then
8381 ac_cv_prog_LD=$LD
8382elif test -n "$ac_cv_prog_LD"; then
8383 LD=$ac_cv_prog_LD
8384fi
8385
8386if test -n "$ac_cv_prog_LD"; then
8387 for ncn_progname in ld; do
8388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8389set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391$as_echo_n "checking for $ac_word... " >&6; }
8392if test "${ac_cv_prog_LD+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
9a819804
AO
8394else
8395 if test -n "$LD"; then
8396 ac_cv_prog_LD="$LD" # Let the user override the test.
8397else
8398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399for as_dir in $PATH
8400do
8401 IFS=$as_save_IFS
8402 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8403 for ac_exec_ext in '' $ac_executable_extensions; do
8404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8405 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8407 break 2
8408 fi
8409done
81ecdfbb
RW
8410 done
8411IFS=$as_save_IFS
9a819804
AO
8412
8413fi
8414fi
8415LD=$ac_cv_prog_LD
8416if test -n "$LD"; then
81ecdfbb
RW
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8418$as_echo "$LD" >&6; }
9a819804 8419else
81ecdfbb
RW
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421$as_echo "no" >&6; }
9a819804
AO
8422fi
8423
81ecdfbb 8424
9a819804
AO
8425 done
8426fi
8427
8428for ncn_progname in ld; do
05cbd757
PB
8429 if test -n "$ncn_tool_prefix"; then
8430 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8431set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433$as_echo_n "checking for $ac_word... " >&6; }
8434if test "${ac_cv_prog_LD+set}" = set; then :
8435 $as_echo_n "(cached) " >&6
859789af
AC
8436else
8437 if test -n "$LD"; then
8438 ac_cv_prog_LD="$LD" # Let the user override the test.
8439else
c6b750e1
DJ
8440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441for as_dir in $PATH
8442do
8443 IFS=$as_save_IFS
8444 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8445 for ac_exec_ext in '' $ac_executable_extensions; do
8446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8447 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8449 break 2
8450 fi
8451done
81ecdfbb
RW
8452 done
8453IFS=$as_save_IFS
c6b750e1 8454
859789af
AC
8455fi
8456fi
c6b750e1 8457LD=$ac_cv_prog_LD
859789af 8458if test -n "$LD"; then
81ecdfbb
RW
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8460$as_echo "$LD" >&6; }
859789af 8461else
81ecdfbb
RW
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463$as_echo "no" >&6; }
859789af
AC
8464fi
8465
81ecdfbb 8466
05cbd757
PB
8467 fi
8468 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8470set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472$as_echo_n "checking for $ac_word... " >&6; }
8473if test "${ac_cv_prog_LD+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
859789af 8475else
05cbd757
PB
8476 if test -n "$LD"; then
8477 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8478else
c6b750e1
DJ
8479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480for as_dir in $PATH
8481do
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8486 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8488 break 2
8489 fi
8490done
81ecdfbb
RW
8491 done
8492IFS=$as_save_IFS
c6b750e1 8493
859789af
AC
8494fi
8495fi
c6b750e1 8496LD=$ac_cv_prog_LD
05cbd757 8497if test -n "$LD"; then
81ecdfbb
RW
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8499$as_echo "$LD" >&6; }
859789af 8500else
81ecdfbb
RW
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502$as_echo "no" >&6; }
859789af 8503fi
c6b750e1 8504
81ecdfbb 8505
05cbd757
PB
8506 fi
8507 test -n "$ac_cv_prog_LD" && break
8508done
8509
8510if test -z "$ac_cv_prog_LD" ; then
8511 set dummy ld
8512 if test $build = $host ; then
8513 LD="$2"
859789af 8514 else
05cbd757 8515 LD="${ncn_tool_prefix}$2"
859789af 8516 fi
859789af
AC
8517fi
8518
9a819804
AO
8519
8520
8521if test -n "$LIPO"; then
8522 ac_cv_prog_LIPO=$LIPO
8523elif test -n "$ac_cv_prog_LIPO"; then
8524 LIPO=$ac_cv_prog_LIPO
8525fi
8526
8527if test -n "$ac_cv_prog_LIPO"; then
8528 for ncn_progname in lipo; do
8529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8530set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532$as_echo_n "checking for $ac_word... " >&6; }
8533if test "${ac_cv_prog_LIPO+set}" = set; then :
8534 $as_echo_n "(cached) " >&6
9a819804
AO
8535else
8536 if test -n "$LIPO"; then
8537 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8538else
8539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540for as_dir in $PATH
8541do
8542 IFS=$as_save_IFS
8543 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8546 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8548 break 2
8549 fi
8550done
81ecdfbb
RW
8551 done
8552IFS=$as_save_IFS
9a819804
AO
8553
8554fi
8555fi
8556LIPO=$ac_cv_prog_LIPO
8557if test -n "$LIPO"; then
81ecdfbb
RW
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8559$as_echo "$LIPO" >&6; }
9a819804 8560else
81ecdfbb
RW
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562$as_echo "no" >&6; }
9a819804
AO
8563fi
8564
81ecdfbb 8565
9a819804
AO
8566 done
8567fi
8568
8569for ncn_progname in lipo; do
be01d343
PB
8570 if test -n "$ncn_tool_prefix"; then
8571 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8572set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8574$as_echo_n "checking for $ac_word... " >&6; }
8575if test "${ac_cv_prog_LIPO+set}" = set; then :
8576 $as_echo_n "(cached) " >&6
be01d343
PB
8577else
8578 if test -n "$LIPO"; then
8579 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8580else
c6b750e1
DJ
8581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582for as_dir in $PATH
8583do
8584 IFS=$as_save_IFS
8585 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8588 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8590 break 2
8591 fi
8592done
81ecdfbb
RW
8593 done
8594IFS=$as_save_IFS
c6b750e1 8595
be01d343
PB
8596fi
8597fi
c6b750e1 8598LIPO=$ac_cv_prog_LIPO
be01d343 8599if test -n "$LIPO"; then
81ecdfbb
RW
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8601$as_echo "$LIPO" >&6; }
be01d343 8602else
81ecdfbb
RW
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604$as_echo "no" >&6; }
be01d343
PB
8605fi
8606
81ecdfbb 8607
be01d343
PB
8608 fi
8609 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8611set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613$as_echo_n "checking for $ac_word... " >&6; }
8614if test "${ac_cv_prog_LIPO+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
be01d343
PB
8616else
8617 if test -n "$LIPO"; then
8618 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8619else
c6b750e1
DJ
8620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621for as_dir in $PATH
8622do
8623 IFS=$as_save_IFS
8624 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8627 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8629 break 2
8630 fi
8631done
81ecdfbb
RW
8632 done
8633IFS=$as_save_IFS
c6b750e1 8634
be01d343
PB
8635fi
8636fi
c6b750e1 8637LIPO=$ac_cv_prog_LIPO
be01d343 8638if test -n "$LIPO"; then
81ecdfbb
RW
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8640$as_echo "$LIPO" >&6; }
be01d343 8641else
81ecdfbb
RW
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643$as_echo "no" >&6; }
be01d343 8644fi
c6b750e1 8645
81ecdfbb 8646
be01d343
PB
8647 fi
8648 test -n "$ac_cv_prog_LIPO" && break
8649done
8650
8651if test -z "$ac_cv_prog_LIPO" ; then
8652 set dummy lipo
8653 if test $build = $host ; then
8654 LIPO="$2"
8655 else
8656 LIPO="${ncn_tool_prefix}$2"
8657 fi
8658fi
8659
9a819804
AO
8660
8661
8662if test -n "$NM"; then
8663 ac_cv_prog_NM=$NM
8664elif test -n "$ac_cv_prog_NM"; then
8665 NM=$ac_cv_prog_NM
8666fi
8667
8668if test -n "$ac_cv_prog_NM"; then
8669 for ncn_progname in nm; do
8670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8671set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673$as_echo_n "checking for $ac_word... " >&6; }
8674if test "${ac_cv_prog_NM+set}" = set; then :
8675 $as_echo_n "(cached) " >&6
859789af
AC
8676else
8677 if test -n "$NM"; then
8678 ac_cv_prog_NM="$NM" # Let the user override the test.
8679else
c6b750e1
DJ
8680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681for as_dir in $PATH
8682do
8683 IFS=$as_save_IFS
8684 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8685 for ac_exec_ext in '' $ac_executable_extensions; do
8686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8687 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8689 break 2
8690 fi
8691done
81ecdfbb
RW
8692 done
8693IFS=$as_save_IFS
c6b750e1 8694
859789af
AC
8695fi
8696fi
c6b750e1 8697NM=$ac_cv_prog_NM
859789af 8698if test -n "$NM"; then
81ecdfbb
RW
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8700$as_echo "$NM" >&6; }
859789af 8701else
81ecdfbb
RW
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703$as_echo "no" >&6; }
859789af
AC
8704fi
8705
81ecdfbb 8706
9a819804
AO
8707 done
8708fi
8709
8710for ncn_progname in nm; do
8711 if test -n "$ncn_tool_prefix"; then
8712 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8713set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8715$as_echo_n "checking for $ac_word... " >&6; }
8716if test "${ac_cv_prog_NM+set}" = set; then :
8717 $as_echo_n "(cached) " >&6
859789af 8718else
05cbd757
PB
8719 if test -n "$NM"; then
8720 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8721else
c6b750e1
DJ
8722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723for as_dir in $PATH
8724do
8725 IFS=$as_save_IFS
8726 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8729 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8731 break 2
8732 fi
8733done
81ecdfbb
RW
8734 done
8735IFS=$as_save_IFS
c6b750e1 8736
859789af
AC
8737fi
8738fi
c6b750e1 8739NM=$ac_cv_prog_NM
05cbd757 8740if test -n "$NM"; then
81ecdfbb
RW
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8742$as_echo "$NM" >&6; }
859789af 8743else
81ecdfbb
RW
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8745$as_echo "no" >&6; }
859789af 8746fi
c6b750e1 8747
81ecdfbb 8748
05cbd757 8749 fi
9a819804
AO
8750 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8752set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754$as_echo_n "checking for $ac_word... " >&6; }
8755if test "${ac_cv_prog_NM+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
9a819804
AO
8757else
8758 if test -n "$NM"; then
8759 ac_cv_prog_NM="$NM" # Let the user override the test.
8760else
8761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762for as_dir in $PATH
8763do
8764 IFS=$as_save_IFS
8765 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8768 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8770 break 2
8771 fi
8772done
81ecdfbb
RW
8773 done
8774IFS=$as_save_IFS
9a819804
AO
8775
8776fi
8777fi
8778NM=$ac_cv_prog_NM
8779if test -n "$NM"; then
81ecdfbb
RW
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8781$as_echo "$NM" >&6; }
9a819804 8782else
81ecdfbb
RW
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784$as_echo "no" >&6; }
9a819804
AO
8785fi
8786
81ecdfbb 8787
9a819804
AO
8788 fi
8789 test -n "$ac_cv_prog_NM" && break
8790done
8791
8792if test -z "$ac_cv_prog_NM" ; then
8793 set dummy nm
8794 if test $build = $host ; then
8795 NM="$2"
8796 else
8797 NM="${ncn_tool_prefix}$2"
8798 fi
8799fi
8800
8801
8802
8803if test -n "$RANLIB"; then
8804 ac_cv_prog_RANLIB=$RANLIB
8805elif test -n "$ac_cv_prog_RANLIB"; then
8806 RANLIB=$ac_cv_prog_RANLIB
8807fi
8808
8809if test -n "$ac_cv_prog_RANLIB"; then
8810 for ncn_progname in ranlib; do
8811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8812set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8814$as_echo_n "checking for $ac_word... " >&6; }
8815if test "${ac_cv_prog_RANLIB+set}" = set; then :
8816 $as_echo_n "(cached) " >&6
9a819804
AO
8817else
8818 if test -n "$RANLIB"; then
8819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8820else
8821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822for as_dir in $PATH
8823do
8824 IFS=$as_save_IFS
8825 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8826 for ac_exec_ext in '' $ac_executable_extensions; do
8827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8828 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8830 break 2
8831 fi
8832done
81ecdfbb
RW
8833 done
8834IFS=$as_save_IFS
9a819804
AO
8835
8836fi
8837fi
8838RANLIB=$ac_cv_prog_RANLIB
8839if test -n "$RANLIB"; then
81ecdfbb
RW
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8841$as_echo "$RANLIB" >&6; }
9a819804 8842else
81ecdfbb
RW
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8844$as_echo "no" >&6; }
9a819804
AO
8845fi
8846
81ecdfbb 8847
9a819804
AO
8848 done
8849fi
859789af 8850
9a819804 8851for ncn_progname in ranlib; do
05cbd757
PB
8852 if test -n "$ncn_tool_prefix"; then
8853 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8854set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8856$as_echo_n "checking for $ac_word... " >&6; }
8857if test "${ac_cv_prog_RANLIB+set}" = set; then :
8858 $as_echo_n "(cached) " >&6
859789af
AC
8859else
8860 if test -n "$RANLIB"; then
8861 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8862else
c6b750e1
DJ
8863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864for as_dir in $PATH
8865do
8866 IFS=$as_save_IFS
8867 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8868 for ac_exec_ext in '' $ac_executable_extensions; do
8869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8870 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8872 break 2
8873 fi
8874done
81ecdfbb
RW
8875 done
8876IFS=$as_save_IFS
c6b750e1 8877
859789af
AC
8878fi
8879fi
c6b750e1 8880RANLIB=$ac_cv_prog_RANLIB
859789af 8881if test -n "$RANLIB"; then
81ecdfbb
RW
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8883$as_echo "$RANLIB" >&6; }
859789af 8884else
81ecdfbb
RW
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886$as_echo "no" >&6; }
859789af
AC
8887fi
8888
81ecdfbb 8889
05cbd757
PB
8890 fi
8891 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8893set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8895$as_echo_n "checking for $ac_word... " >&6; }
8896if test "${ac_cv_prog_RANLIB+set}" = set; then :
8897 $as_echo_n "(cached) " >&6
859789af 8898else
05cbd757
PB
8899 if test -n "$RANLIB"; then
8900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8901else
c6b750e1
DJ
8902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8903for as_dir in $PATH
8904do
8905 IFS=$as_save_IFS
8906 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8907 for ac_exec_ext in '' $ac_executable_extensions; do
8908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8909 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8911 break 2
8912 fi
8913done
81ecdfbb
RW
8914 done
8915IFS=$as_save_IFS
c6b750e1 8916
859789af
AC
8917fi
8918fi
c6b750e1 8919RANLIB=$ac_cv_prog_RANLIB
05cbd757 8920if test -n "$RANLIB"; then
81ecdfbb
RW
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8922$as_echo "$RANLIB" >&6; }
859789af 8923else
81ecdfbb
RW
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925$as_echo "no" >&6; }
859789af 8926fi
c6b750e1 8927
81ecdfbb 8928
859789af 8929 fi
05cbd757
PB
8930 test -n "$ac_cv_prog_RANLIB" && break
8931done
8932
8933if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 8934 RANLIB="true"
859789af
AC
8935fi
8936
9a819804
AO
8937
8938
8939if test -n "$STRIP"; then
8940 ac_cv_prog_STRIP=$STRIP
8941elif test -n "$ac_cv_prog_STRIP"; then
8942 STRIP=$ac_cv_prog_STRIP
8943fi
8944
8945if test -n "$ac_cv_prog_STRIP"; then
8946 for ncn_progname in strip; do
8947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8948set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8950$as_echo_n "checking for $ac_word... " >&6; }
8951if test "${ac_cv_prog_STRIP+set}" = set; then :
8952 $as_echo_n "(cached) " >&6
9a819804
AO
8953else
8954 if test -n "$STRIP"; then
8955 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8956else
8957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958for as_dir in $PATH
8959do
8960 IFS=$as_save_IFS
8961 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8962 for ac_exec_ext in '' $ac_executable_extensions; do
8963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8964 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8966 break 2
8967 fi
8968done
81ecdfbb
RW
8969 done
8970IFS=$as_save_IFS
9a819804
AO
8971
8972fi
8973fi
8974STRIP=$ac_cv_prog_STRIP
8975if test -n "$STRIP"; then
81ecdfbb
RW
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8977$as_echo "$STRIP" >&6; }
9a819804 8978else
81ecdfbb
RW
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980$as_echo "no" >&6; }
9a819804
AO
8981fi
8982
81ecdfbb 8983
9a819804
AO
8984 done
8985fi
8986
8987for ncn_progname in strip; do
be01d343
PB
8988 if test -n "$ncn_tool_prefix"; then
8989 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8990set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8992$as_echo_n "checking for $ac_word... " >&6; }
8993if test "${ac_cv_prog_STRIP+set}" = set; then :
8994 $as_echo_n "(cached) " >&6
be01d343
PB
8995else
8996 if test -n "$STRIP"; then
8997 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8998else
c6b750e1
DJ
8999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9000for as_dir in $PATH
9001do
9002 IFS=$as_save_IFS
9003 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9004 for ac_exec_ext in '' $ac_executable_extensions; do
9005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9006 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9008 break 2
9009 fi
9010done
81ecdfbb
RW
9011 done
9012IFS=$as_save_IFS
c6b750e1 9013
be01d343
PB
9014fi
9015fi
c6b750e1 9016STRIP=$ac_cv_prog_STRIP
be01d343 9017if test -n "$STRIP"; then
81ecdfbb
RW
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9019$as_echo "$STRIP" >&6; }
be01d343 9020else
81ecdfbb
RW
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022$as_echo "no" >&6; }
be01d343
PB
9023fi
9024
81ecdfbb 9025
be01d343
PB
9026 fi
9027 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9029set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031$as_echo_n "checking for $ac_word... " >&6; }
9032if test "${ac_cv_prog_STRIP+set}" = set; then :
9033 $as_echo_n "(cached) " >&6
be01d343
PB
9034else
9035 if test -n "$STRIP"; then
9036 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9037else
c6b750e1
DJ
9038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039for as_dir in $PATH
9040do
9041 IFS=$as_save_IFS
9042 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9045 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9047 break 2
9048 fi
9049done
81ecdfbb
RW
9050 done
9051IFS=$as_save_IFS
c6b750e1 9052
be01d343
PB
9053fi
9054fi
c6b750e1 9055STRIP=$ac_cv_prog_STRIP
be01d343 9056if test -n "$STRIP"; then
81ecdfbb
RW
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9058$as_echo "$STRIP" >&6; }
be01d343 9059else
81ecdfbb
RW
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061$as_echo "no" >&6; }
be01d343 9062fi
c6b750e1 9063
81ecdfbb 9064
be01d343
PB
9065 fi
9066 test -n "$ac_cv_prog_STRIP" && break
9067done
9068
9069if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9070 STRIP="true"
be01d343
PB
9071fi
9072
9a819804
AO
9073
9074
9075if test -n "$WINDRES"; then
9076 ac_cv_prog_WINDRES=$WINDRES
9077elif test -n "$ac_cv_prog_WINDRES"; then
9078 WINDRES=$ac_cv_prog_WINDRES
9079fi
9080
9081if test -n "$ac_cv_prog_WINDRES"; then
9082 for ncn_progname in windres; do
9083 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9084set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086$as_echo_n "checking for $ac_word... " >&6; }
9087if test "${ac_cv_prog_WINDRES+set}" = set; then :
9088 $as_echo_n "(cached) " >&6
9a819804
AO
9089else
9090 if test -n "$WINDRES"; then
9091 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9092else
9093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094for as_dir in $PATH
9095do
9096 IFS=$as_save_IFS
9097 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9098 for ac_exec_ext in '' $ac_executable_extensions; do
9099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9100 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9102 break 2
9103 fi
9104done
81ecdfbb
RW
9105 done
9106IFS=$as_save_IFS
9a819804
AO
9107
9108fi
9109fi
9110WINDRES=$ac_cv_prog_WINDRES
9111if test -n "$WINDRES"; then
81ecdfbb
RW
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9113$as_echo "$WINDRES" >&6; }
9a819804 9114else
81ecdfbb
RW
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116$as_echo "no" >&6; }
9a819804
AO
9117fi
9118
81ecdfbb 9119
9a819804
AO
9120 done
9121fi
9122
9123for ncn_progname in windres; do
05cbd757
PB
9124 if test -n "$ncn_tool_prefix"; then
9125 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9126set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9128$as_echo_n "checking for $ac_word... " >&6; }
9129if test "${ac_cv_prog_WINDRES+set}" = set; then :
9130 $as_echo_n "(cached) " >&6
859789af
AC
9131else
9132 if test -n "$WINDRES"; then
9133 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9134else
c6b750e1
DJ
9135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9136for as_dir in $PATH
9137do
9138 IFS=$as_save_IFS
9139 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9140 for ac_exec_ext in '' $ac_executable_extensions; do
9141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9142 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9144 break 2
9145 fi
9146done
81ecdfbb
RW
9147 done
9148IFS=$as_save_IFS
c6b750e1 9149
859789af
AC
9150fi
9151fi
c6b750e1 9152WINDRES=$ac_cv_prog_WINDRES
859789af 9153if test -n "$WINDRES"; then
81ecdfbb
RW
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9155$as_echo "$WINDRES" >&6; }
859789af 9156else
81ecdfbb
RW
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158$as_echo "no" >&6; }
859789af
AC
9159fi
9160
81ecdfbb 9161
05cbd757
PB
9162 fi
9163 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9164 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9165set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9167$as_echo_n "checking for $ac_word... " >&6; }
9168if test "${ac_cv_prog_WINDRES+set}" = set; then :
9169 $as_echo_n "(cached) " >&6
859789af 9170else
05cbd757
PB
9171 if test -n "$WINDRES"; then
9172 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9173else
c6b750e1
DJ
9174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9175for as_dir in $PATH
9176do
9177 IFS=$as_save_IFS
9178 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9179 for ac_exec_ext in '' $ac_executable_extensions; do
9180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9181 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9183 break 2
9184 fi
9185done
81ecdfbb
RW
9186 done
9187IFS=$as_save_IFS
c6b750e1 9188
859789af
AC
9189fi
9190fi
c6b750e1 9191WINDRES=$ac_cv_prog_WINDRES
05cbd757 9192if test -n "$WINDRES"; then
81ecdfbb
RW
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9194$as_echo "$WINDRES" >&6; }
859789af 9195else
81ecdfbb
RW
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9197$as_echo "no" >&6; }
859789af 9198fi
c6b750e1 9199
81ecdfbb 9200
05cbd757
PB
9201 fi
9202 test -n "$ac_cv_prog_WINDRES" && break
9203done
9204
9205if test -z "$ac_cv_prog_WINDRES" ; then
9206 set dummy windres
9207 if test $build = $host ; then
9208 WINDRES="$2"
859789af 9209 else
05cbd757 9210 WINDRES="${ncn_tool_prefix}$2"
859789af 9211 fi
859789af
AC
9212fi
9213
9a819804
AO
9214
9215
0c24b341
NC
9216if test -n "$WINDMC"; then
9217 ac_cv_prog_WINDMC=$WINDMC
9218elif test -n "$ac_cv_prog_WINDMC"; then
9219 WINDMC=$ac_cv_prog_WINDMC
9220fi
9221
9222if test -n "$ac_cv_prog_WINDMC"; then
9223 for ncn_progname in windmc; do
9224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9225set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9227$as_echo_n "checking for $ac_word... " >&6; }
9228if test "${ac_cv_prog_WINDMC+set}" = set; then :
9229 $as_echo_n "(cached) " >&6
0c24b341
NC
9230else
9231 if test -n "$WINDMC"; then
9232 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9233else
9234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235for as_dir in $PATH
9236do
9237 IFS=$as_save_IFS
9238 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9239 for ac_exec_ext in '' $ac_executable_extensions; do
9240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9241 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9243 break 2
9244 fi
9245done
81ecdfbb
RW
9246 done
9247IFS=$as_save_IFS
0c24b341
NC
9248
9249fi
9250fi
9251WINDMC=$ac_cv_prog_WINDMC
9252if test -n "$WINDMC"; then
81ecdfbb
RW
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9254$as_echo "$WINDMC" >&6; }
0c24b341 9255else
81ecdfbb
RW
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9257$as_echo "no" >&6; }
0c24b341
NC
9258fi
9259
81ecdfbb 9260
0c24b341
NC
9261 done
9262fi
9263
9264for ncn_progname in windmc; do
9265 if test -n "$ncn_tool_prefix"; then
9266 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9267set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9269$as_echo_n "checking for $ac_word... " >&6; }
9270if test "${ac_cv_prog_WINDMC+set}" = set; then :
9271 $as_echo_n "(cached) " >&6
0c24b341
NC
9272else
9273 if test -n "$WINDMC"; then
9274 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9275else
9276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277for as_dir in $PATH
9278do
9279 IFS=$as_save_IFS
9280 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9281 for ac_exec_ext in '' $ac_executable_extensions; do
9282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9283 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9285 break 2
9286 fi
9287done
81ecdfbb
RW
9288 done
9289IFS=$as_save_IFS
0c24b341
NC
9290
9291fi
9292fi
9293WINDMC=$ac_cv_prog_WINDMC
9294if test -n "$WINDMC"; then
81ecdfbb
RW
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9296$as_echo "$WINDMC" >&6; }
0c24b341 9297else
81ecdfbb
RW
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299$as_echo "no" >&6; }
0c24b341
NC
9300fi
9301
81ecdfbb 9302
0c24b341
NC
9303 fi
9304 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9306set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9308$as_echo_n "checking for $ac_word... " >&6; }
9309if test "${ac_cv_prog_WINDMC+set}" = set; then :
9310 $as_echo_n "(cached) " >&6
0c24b341
NC
9311else
9312 if test -n "$WINDMC"; then
9313 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9314else
9315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9316for as_dir in $PATH
9317do
9318 IFS=$as_save_IFS
9319 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9320 for ac_exec_ext in '' $ac_executable_extensions; do
9321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9322 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9324 break 2
9325 fi
9326done
81ecdfbb
RW
9327 done
9328IFS=$as_save_IFS
0c24b341
NC
9329
9330fi
9331fi
9332WINDMC=$ac_cv_prog_WINDMC
9333if test -n "$WINDMC"; then
81ecdfbb
RW
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9335$as_echo "$WINDMC" >&6; }
0c24b341 9336else
81ecdfbb
RW
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338$as_echo "no" >&6; }
0c24b341
NC
9339fi
9340
81ecdfbb 9341
0c24b341
NC
9342 fi
9343 test -n "$ac_cv_prog_WINDMC" && break
9344done
9345
9346if test -z "$ac_cv_prog_WINDMC" ; then
9347 set dummy windmc
9348 if test $build = $host ; then
9349 WINDMC="$2"
9350 else
9351 WINDMC="${ncn_tool_prefix}$2"
9352 fi
9353fi
9354
9355
9356
9a819804
AO
9357if test -n "$OBJCOPY"; then
9358 ac_cv_prog_OBJCOPY=$OBJCOPY
9359elif test -n "$ac_cv_prog_OBJCOPY"; then
9360 OBJCOPY=$ac_cv_prog_OBJCOPY
9361fi
9362
9363if test -n "$ac_cv_prog_OBJCOPY"; then
9364 for ncn_progname in objcopy; do
9365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9366set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9368$as_echo_n "checking for $ac_word... " >&6; }
9369if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9370 $as_echo_n "(cached) " >&6
9a819804
AO
9371else
9372 if test -n "$OBJCOPY"; then
9373 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9374else
9375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9376for as_dir in $PATH
9377do
9378 IFS=$as_save_IFS
9379 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9380 for ac_exec_ext in '' $ac_executable_extensions; do
9381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9382 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9384 break 2
9385 fi
9386done
81ecdfbb
RW
9387 done
9388IFS=$as_save_IFS
9a819804
AO
9389
9390fi
9391fi
9392OBJCOPY=$ac_cv_prog_OBJCOPY
9393if test -n "$OBJCOPY"; then
81ecdfbb
RW
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9395$as_echo "$OBJCOPY" >&6; }
9a819804 9396else
81ecdfbb
RW
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9398$as_echo "no" >&6; }
9a819804
AO
9399fi
9400
81ecdfbb 9401
9a819804
AO
9402 done
9403fi
9404
9405for ncn_progname in objcopy; do
05cbd757
PB
9406 if test -n "$ncn_tool_prefix"; then
9407 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9408set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9410$as_echo_n "checking for $ac_word... " >&6; }
9411if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9412 $as_echo_n "(cached) " >&6
859789af
AC
9413else
9414 if test -n "$OBJCOPY"; then
9415 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9416else
c6b750e1
DJ
9417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418for as_dir in $PATH
9419do
9420 IFS=$as_save_IFS
9421 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9422 for ac_exec_ext in '' $ac_executable_extensions; do
9423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9424 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9426 break 2
9427 fi
9428done
81ecdfbb
RW
9429 done
9430IFS=$as_save_IFS
c6b750e1 9431
859789af
AC
9432fi
9433fi
c6b750e1 9434OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9435if test -n "$OBJCOPY"; then
81ecdfbb
RW
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9437$as_echo "$OBJCOPY" >&6; }
859789af 9438else
81ecdfbb
RW
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440$as_echo "no" >&6; }
859789af
AC
9441fi
9442
81ecdfbb 9443
05cbd757
PB
9444 fi
9445 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9447set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9449$as_echo_n "checking for $ac_word... " >&6; }
9450if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9451 $as_echo_n "(cached) " >&6
859789af 9452else
05cbd757
PB
9453 if test -n "$OBJCOPY"; then
9454 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9455else
c6b750e1
DJ
9456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9457for as_dir in $PATH
9458do
9459 IFS=$as_save_IFS
9460 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9461 for ac_exec_ext in '' $ac_executable_extensions; do
9462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9463 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9465 break 2
9466 fi
9467done
81ecdfbb
RW
9468 done
9469IFS=$as_save_IFS
c6b750e1 9470
859789af
AC
9471fi
9472fi
c6b750e1 9473OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9474if test -n "$OBJCOPY"; then
81ecdfbb
RW
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9476$as_echo "$OBJCOPY" >&6; }
859789af 9477else
81ecdfbb
RW
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479$as_echo "no" >&6; }
859789af 9480fi
c6b750e1 9481
81ecdfbb 9482
05cbd757
PB
9483 fi
9484 test -n "$ac_cv_prog_OBJCOPY" && break
9485done
9486
9487if test -z "$ac_cv_prog_OBJCOPY" ; then
9488 set dummy objcopy
9489 if test $build = $host ; then
9490 OBJCOPY="$2"
859789af 9491 else
05cbd757 9492 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9493 fi
859789af
AC
9494fi
9495
9a819804
AO
9496
9497
9498if test -n "$OBJDUMP"; then
9499 ac_cv_prog_OBJDUMP=$OBJDUMP
9500elif test -n "$ac_cv_prog_OBJDUMP"; then
9501 OBJDUMP=$ac_cv_prog_OBJDUMP
9502fi
9503
9504if test -n "$ac_cv_prog_OBJDUMP"; then
9505 for ncn_progname in objdump; do
9506 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9507set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9509$as_echo_n "checking for $ac_word... " >&6; }
9510if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9511 $as_echo_n "(cached) " >&6
9a819804
AO
9512else
9513 if test -n "$OBJDUMP"; then
9514 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9515else
9516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517for as_dir in $PATH
9518do
9519 IFS=$as_save_IFS
9520 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9521 for ac_exec_ext in '' $ac_executable_extensions; do
9522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9523 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9525 break 2
9526 fi
9527done
81ecdfbb
RW
9528 done
9529IFS=$as_save_IFS
9a819804
AO
9530
9531fi
9532fi
9533OBJDUMP=$ac_cv_prog_OBJDUMP
9534if test -n "$OBJDUMP"; then
81ecdfbb
RW
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9536$as_echo "$OBJDUMP" >&6; }
9a819804 9537else
81ecdfbb
RW
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9539$as_echo "no" >&6; }
9a819804
AO
9540fi
9541
81ecdfbb 9542
9a819804
AO
9543 done
9544fi
9545
9546for ncn_progname in objdump; do
05cbd757
PB
9547 if test -n "$ncn_tool_prefix"; then
9548 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9549set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9551$as_echo_n "checking for $ac_word... " >&6; }
9552if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9553 $as_echo_n "(cached) " >&6
859789af
AC
9554else
9555 if test -n "$OBJDUMP"; then
9556 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9557else
c6b750e1
DJ
9558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9559for as_dir in $PATH
9560do
9561 IFS=$as_save_IFS
9562 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9563 for ac_exec_ext in '' $ac_executable_extensions; do
9564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9565 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9567 break 2
9568 fi
9569done
81ecdfbb
RW
9570 done
9571IFS=$as_save_IFS
c6b750e1 9572
859789af
AC
9573fi
9574fi
c6b750e1 9575OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9576if test -n "$OBJDUMP"; then
81ecdfbb
RW
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9578$as_echo "$OBJDUMP" >&6; }
859789af 9579else
81ecdfbb
RW
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9581$as_echo "no" >&6; }
859789af
AC
9582fi
9583
81ecdfbb 9584
05cbd757
PB
9585 fi
9586 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9587 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9588set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9590$as_echo_n "checking for $ac_word... " >&6; }
9591if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9592 $as_echo_n "(cached) " >&6
859789af 9593else
05cbd757
PB
9594 if test -n "$OBJDUMP"; then
9595 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9596else
c6b750e1
DJ
9597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9598for as_dir in $PATH
9599do
9600 IFS=$as_save_IFS
9601 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9602 for ac_exec_ext in '' $ac_executable_extensions; do
9603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9604 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9606 break 2
9607 fi
9608done
81ecdfbb
RW
9609 done
9610IFS=$as_save_IFS
c6b750e1 9611
859789af
AC
9612fi
9613fi
c6b750e1 9614OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9615if test -n "$OBJDUMP"; then
81ecdfbb
RW
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9617$as_echo "$OBJDUMP" >&6; }
859789af 9618else
81ecdfbb
RW
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9620$as_echo "no" >&6; }
859789af 9621fi
c6b750e1 9622
81ecdfbb 9623
05cbd757
PB
9624 fi
9625 test -n "$ac_cv_prog_OBJDUMP" && break
9626done
9627
9628if test -z "$ac_cv_prog_OBJDUMP" ; then
9629 set dummy objdump
9630 if test $build = $host ; then
9631 OBJDUMP="$2"
859789af 9632 else
05cbd757 9633 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9634 fi
859789af
AC
9635fi
9636
a0da8069
NN
9637
9638
9639
9640
9641
be01d343 9642# Target tools.
c6b750e1 9643
81ecdfbb
RW
9644# Check whether --with-build-time-tools was given.
9645if test "${with_build_time_tools+set}" = set; then :
9646 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9647 x/*) ;;
9648 *)
9649 with_build_time_tools=
81ecdfbb
RW
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9651$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9652 ;;
9653 esac
859789af 9654else
2429c060 9655 with_build_time_tools=
81ecdfbb
RW
9656fi
9657
859789af 9658
9a819804
AO
9659
9660
9661if test -n "$CC_FOR_TARGET"; then
9662 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9663elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9664 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9665fi
9666
9667if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9668 for ncn_progname in cc gcc; do
9669 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9670set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9672$as_echo_n "checking for $ac_word... " >&6; }
9673if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9674 $as_echo_n "(cached) " >&6
9a819804
AO
9675else
9676 if test -n "$CC_FOR_TARGET"; then
9677 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9678else
9679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9680for as_dir in $PATH
9681do
9682 IFS=$as_save_IFS
9683 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9684 for ac_exec_ext in '' $ac_executable_extensions; do
9685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9686 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9688 break 2
9689 fi
9690done
81ecdfbb
RW
9691 done
9692IFS=$as_save_IFS
9a819804
AO
9693
9694fi
9695fi
9696CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9697if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9699$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9700else
81ecdfbb
RW
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9702$as_echo "no" >&6; }
9a819804
AO
9703fi
9704
81ecdfbb 9705
9a819804
AO
9706 done
9707fi
9708
9709if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9710 for ncn_progname in cc gcc; do
81ecdfbb
RW
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9712$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9713 if test -x $with_build_time_tools/${ncn_progname}; then
9714 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9716$as_echo "yes" >&6; }
cac3d6c4 9717 break
2429c060 9718 else
81ecdfbb
RW
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9720$as_echo "no" >&6; }
cac3d6c4
CM
9721 fi
9722 done
55db4b87
PB
9723fi
9724
2429c060
PB
9725if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9726 for ncn_progname in cc gcc; do
9727 if test -n "$ncn_target_tool_prefix"; then
9728 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9729set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9731$as_echo_n "checking for $ac_word... " >&6; }
9732if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9733 $as_echo_n "(cached) " >&6
55db4b87
PB
9734else
9735 if test -n "$CC_FOR_TARGET"; then
9736 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9737else
c6b750e1
DJ
9738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739for as_dir in $PATH
9740do
9741 IFS=$as_save_IFS
9742 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9743 for ac_exec_ext in '' $ac_executable_extensions; do
9744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9745 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9747 break 2
9748 fi
9749done
81ecdfbb
RW
9750 done
9751IFS=$as_save_IFS
c6b750e1 9752
55db4b87
PB
9753fi
9754fi
c6b750e1 9755CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9756if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9758$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9759else
81ecdfbb
RW
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761$as_echo "no" >&6; }
55db4b87
PB
9762fi
9763
81ecdfbb 9764
2429c060
PB
9765 fi
9766 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9768set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9770$as_echo_n "checking for $ac_word... " >&6; }
9771if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9772 $as_echo_n "(cached) " >&6
55db4b87 9773else
05cbd757
PB
9774 if test -n "$CC_FOR_TARGET"; then
9775 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9776else
c6b750e1
DJ
9777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9778for as_dir in $PATH
9779do
9780 IFS=$as_save_IFS
9781 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9782 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9784 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9786 break 2
9787 fi
9788done
81ecdfbb
RW
9789 done
9790IFS=$as_save_IFS
c6b750e1 9791
55db4b87
PB
9792fi
9793fi
c6b750e1 9794CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9795if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9797$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9798else
81ecdfbb
RW
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800$as_echo "no" >&6; }
55db4b87 9801fi
c6b750e1 9802
81ecdfbb 9803
2429c060
PB
9804 fi
9805 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9806 done
9807fi
c6b750e1 9808
05cbd757
PB
9809if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9810 set dummy cc gcc
9811 if test $build = $target ; then
9812 CC_FOR_TARGET="$2"
55db4b87 9813 else
05cbd757 9814 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9815 fi
d3f5afc4
MS
9816else
9817 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9818fi
9819
9a819804
AO
9820
9821
9822if test -n "$CXX_FOR_TARGET"; then
9823 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9824elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9825 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9826fi
9827
9828if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9829 for ncn_progname in c++ g++ cxx gxx; do
9830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9831set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9833$as_echo_n "checking for $ac_word... " >&6; }
9834if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9835 $as_echo_n "(cached) " >&6
9a819804
AO
9836else
9837 if test -n "$CXX_FOR_TARGET"; then
9838 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9839else
9840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9841for as_dir in $PATH
9842do
9843 IFS=$as_save_IFS
9844 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9845 for ac_exec_ext in '' $ac_executable_extensions; do
9846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9847 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9849 break 2
9850 fi
9851done
81ecdfbb
RW
9852 done
9853IFS=$as_save_IFS
9a819804
AO
9854
9855fi
9856fi
9857CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9858if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9860$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9861else
81ecdfbb
RW
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9863$as_echo "no" >&6; }
9a819804
AO
9864fi
9865
81ecdfbb 9866
9a819804
AO
9867 done
9868fi
9869
9870if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9871 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9873$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9874 if test -x $with_build_time_tools/${ncn_progname}; then
9875 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9877$as_echo "yes" >&6; }
2429c060
PB
9878 break
9879 else
81ecdfbb
RW
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9881$as_echo "no" >&6; }
2429c060
PB
9882 fi
9883 done
9884fi
9885
9886if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9887 for ncn_progname in c++ g++ cxx gxx; do
9888 if test -n "$ncn_target_tool_prefix"; then
9889 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9890set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9892$as_echo_n "checking for $ac_word... " >&6; }
9893if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9894 $as_echo_n "(cached) " >&6
55db4b87
PB
9895else
9896 if test -n "$CXX_FOR_TARGET"; then
9897 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9898else
c6b750e1
DJ
9899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9900for as_dir in $PATH
9901do
9902 IFS=$as_save_IFS
9903 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9904 for ac_exec_ext in '' $ac_executable_extensions; do
9905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9906 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9908 break 2
9909 fi
9910done
81ecdfbb
RW
9911 done
9912IFS=$as_save_IFS
c6b750e1 9913
55db4b87
PB
9914fi
9915fi
c6b750e1 9916CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9917if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9919$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9920else
81ecdfbb
RW
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9922$as_echo "no" >&6; }
55db4b87
PB
9923fi
9924
81ecdfbb 9925
2429c060
PB
9926 fi
9927 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9929set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9931$as_echo_n "checking for $ac_word... " >&6; }
9932if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9933 $as_echo_n "(cached) " >&6
55db4b87 9934else
05cbd757
PB
9935 if test -n "$CXX_FOR_TARGET"; then
9936 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9937else
c6b750e1
DJ
9938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9939for as_dir in $PATH
9940do
9941 IFS=$as_save_IFS
9942 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9943 for ac_exec_ext in '' $ac_executable_extensions; do
9944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9945 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9947 break 2
9948 fi
9949done
81ecdfbb
RW
9950 done
9951IFS=$as_save_IFS
c6b750e1 9952
55db4b87
PB
9953fi
9954fi
c6b750e1 9955CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9956if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9958$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9959else
81ecdfbb
RW
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9961$as_echo "no" >&6; }
55db4b87 9962fi
c6b750e1 9963
81ecdfbb 9964
2429c060
PB
9965 fi
9966 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9967 done
9968fi
c6b750e1 9969
05cbd757
PB
9970if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9971 set dummy c++ g++ cxx gxx
9972 if test $build = $target ; then
9973 CXX_FOR_TARGET="$2"
55db4b87 9974 else
05cbd757 9975 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9976 fi
d3f5afc4
MS
9977else
9978 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
9979fi
9980
9a819804
AO
9981
9982
9983if test -n "$GCC_FOR_TARGET"; then
9984 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9985elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9986 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9987fi
9988
9989if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9990 for ncn_progname in gcc; do
9991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9992set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9994$as_echo_n "checking for $ac_word... " >&6; }
9995if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9996 $as_echo_n "(cached) " >&6
9a819804
AO
9997else
9998 if test -n "$GCC_FOR_TARGET"; then
9999 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10000else
10001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002for as_dir in $PATH
10003do
10004 IFS=$as_save_IFS
10005 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10006 for ac_exec_ext in '' $ac_executable_extensions; do
10007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10008 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10010 break 2
10011 fi
10012done
81ecdfbb
RW
10013 done
10014IFS=$as_save_IFS
9a819804
AO
10015
10016fi
10017fi
10018GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10019if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10021$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10022else
81ecdfbb
RW
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10024$as_echo "no" >&6; }
9a819804
AO
10025fi
10026
81ecdfbb 10027
9a819804
AO
10028 done
10029fi
10030
10031if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10032 for ncn_progname in gcc; do
81ecdfbb
RW
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10034$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10035 if test -x $with_build_time_tools/${ncn_progname}; then
10036 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10038$as_echo "yes" >&6; }
2429c060
PB
10039 break
10040 else
81ecdfbb
RW
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10042$as_echo "no" >&6; }
2429c060
PB
10043 fi
10044 done
10045fi
10046
10047if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10048 for ncn_progname in gcc; do
10049 if test -n "$ncn_target_tool_prefix"; then
10050 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10051set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053$as_echo_n "checking for $ac_word... " >&6; }
10054if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10055 $as_echo_n "(cached) " >&6
859789af 10056else
2429c060
PB
10057 if test -n "$GCC_FOR_TARGET"; then
10058 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10059else
c6b750e1
DJ
10060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061for as_dir in $PATH
10062do
10063 IFS=$as_save_IFS
10064 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10065 for ac_exec_ext in '' $ac_executable_extensions; do
10066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10067 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10069 break 2
10070 fi
10071done
81ecdfbb
RW
10072 done
10073IFS=$as_save_IFS
c6b750e1 10074
55db4b87
PB
10075fi
10076fi
c6b750e1 10077GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10078if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10080$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10081else
81ecdfbb
RW
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10083$as_echo "no" >&6; }
55db4b87
PB
10084fi
10085
81ecdfbb 10086
2429c060
PB
10087 fi
10088 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10090set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10092$as_echo_n "checking for $ac_word... " >&6; }
10093if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10094 $as_echo_n "(cached) " >&6
55db4b87 10095else
05cbd757
PB
10096 if test -n "$GCC_FOR_TARGET"; then
10097 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10098else
c6b750e1
DJ
10099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10100for as_dir in $PATH
10101do
10102 IFS=$as_save_IFS
10103 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10104 for ac_exec_ext in '' $ac_executable_extensions; do
10105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10106 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10108 break 2
10109 fi
10110done
81ecdfbb
RW
10111 done
10112IFS=$as_save_IFS
c6b750e1 10113
55db4b87
PB
10114fi
10115fi
c6b750e1 10116GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10117if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10119$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10120else
81ecdfbb
RW
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10122$as_echo "no" >&6; }
55db4b87 10123fi
c6b750e1 10124
81ecdfbb 10125
2429c060
PB
10126 fi
10127 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10128 done
10129fi
c6b750e1 10130
05cbd757
PB
10131if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10132 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10133else
10134 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10135fi
10136
9a819804
AO
10137
10138
10139if test -n "$GCJ_FOR_TARGET"; then
10140 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10141elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10142 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10143fi
10144
10145if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10146 for ncn_progname in gcj; do
10147 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10148set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10150$as_echo_n "checking for $ac_word... " >&6; }
10151if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10152 $as_echo_n "(cached) " >&6
9a819804
AO
10153else
10154 if test -n "$GCJ_FOR_TARGET"; then
10155 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10156else
10157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10158for as_dir in $PATH
10159do
10160 IFS=$as_save_IFS
10161 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10162 for ac_exec_ext in '' $ac_executable_extensions; do
10163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10164 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10166 break 2
10167 fi
10168done
81ecdfbb
RW
10169 done
10170IFS=$as_save_IFS
9a819804
AO
10171
10172fi
10173fi
10174GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10175if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10177$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10178else
81ecdfbb
RW
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180$as_echo "no" >&6; }
9a819804
AO
10181fi
10182
81ecdfbb 10183
9a819804
AO
10184 done
10185fi
10186
10187if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10188 for ncn_progname in gcj; do
81ecdfbb
RW
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10190$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10191 if test -x $with_build_time_tools/${ncn_progname}; then
10192 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10194$as_echo "yes" >&6; }
2429c060
PB
10195 break
10196 else
81ecdfbb
RW
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10198$as_echo "no" >&6; }
2429c060
PB
10199 fi
10200 done
10201fi
10202
10203if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10204 for ncn_progname in gcj; do
10205 if test -n "$ncn_target_tool_prefix"; then
10206 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10207set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10209$as_echo_n "checking for $ac_word... " >&6; }
10210if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10211 $as_echo_n "(cached) " >&6
55db4b87
PB
10212else
10213 if test -n "$GCJ_FOR_TARGET"; then
10214 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10215else
c6b750e1
DJ
10216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10217for as_dir in $PATH
10218do
10219 IFS=$as_save_IFS
10220 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10221 for ac_exec_ext in '' $ac_executable_extensions; do
10222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10223 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10225 break 2
10226 fi
10227done
81ecdfbb
RW
10228 done
10229IFS=$as_save_IFS
c6b750e1 10230
55db4b87
PB
10231fi
10232fi
9a819804
AO
10233GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10234if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10236$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10237else
81ecdfbb
RW
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239$as_echo "no" >&6; }
9a819804
AO
10240fi
10241
81ecdfbb 10242
9a819804
AO
10243 fi
10244 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10246set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10248$as_echo_n "checking for $ac_word... " >&6; }
10249if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10250 $as_echo_n "(cached) " >&6
9a819804
AO
10251else
10252 if test -n "$GCJ_FOR_TARGET"; then
10253 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10254else
10255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10256for as_dir in $PATH
10257do
10258 IFS=$as_save_IFS
10259 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10260 for ac_exec_ext in '' $ac_executable_extensions; do
10261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10262 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10264 break 2
10265 fi
10266done
81ecdfbb
RW
10267 done
10268IFS=$as_save_IFS
9a819804
AO
10269
10270fi
10271fi
10272GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10273if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10275$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10276else
81ecdfbb
RW
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278$as_echo "no" >&6; }
9a819804
AO
10279fi
10280
81ecdfbb 10281
9a819804
AO
10282 fi
10283 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10284 done
10285fi
10286
10287if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10288 set dummy gcj
10289 if test $build = $target ; then
10290 GCJ_FOR_TARGET="$2"
10291 else
10292 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10293 fi
d3f5afc4
MS
10294else
10295 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10296fi
10297
10298
10299
10300if test -n "$GFORTRAN_FOR_TARGET"; then
10301 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10302elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10303 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10304fi
10305
9a819804
AO
10306if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10307 for ncn_progname in gfortran; do
10308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10309set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10311$as_echo_n "checking for $ac_word... " >&6; }
10312if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10313 $as_echo_n "(cached) " >&6
55db4b87 10314else
9a819804
AO
10315 if test -n "$GFORTRAN_FOR_TARGET"; then
10316 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10317else
c6b750e1
DJ
10318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10319for as_dir in $PATH
10320do
10321 IFS=$as_save_IFS
10322 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10323 for ac_exec_ext in '' $ac_executable_extensions; do
10324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10325 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10327 break 2
10328 fi
10329done
81ecdfbb
RW
10330 done
10331IFS=$as_save_IFS
c6b750e1 10332
55db4b87
PB
10333fi
10334fi
9a819804
AO
10335GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10336if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10338$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10339else
81ecdfbb
RW
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341$as_echo "no" >&6; }
55db4b87 10342fi
c6b750e1 10343
81ecdfbb 10344
2429c060
PB
10345 done
10346fi
c6b750e1 10347
9a819804 10348if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10349 for ncn_progname in gfortran; do
81ecdfbb
RW
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10351$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10352 if test -x $with_build_time_tools/${ncn_progname}; then
10353 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10355$as_echo "yes" >&6; }
2429c060
PB
10356 break
10357 else
81ecdfbb
RW
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359$as_echo "no" >&6; }
2429c060
PB
10360 fi
10361 done
10362fi
10363
10364if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10365 for ncn_progname in gfortran; do
10366 if test -n "$ncn_target_tool_prefix"; then
10367 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10368set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10370$as_echo_n "checking for $ac_word... " >&6; }
10371if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10372 $as_echo_n "(cached) " >&6
55db4b87
PB
10373else
10374 if test -n "$GFORTRAN_FOR_TARGET"; then
10375 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10376else
c6b750e1
DJ
10377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10378for as_dir in $PATH
10379do
10380 IFS=$as_save_IFS
10381 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10382 for ac_exec_ext in '' $ac_executable_extensions; do
10383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10384 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10386 break 2
10387 fi
10388done
81ecdfbb
RW
10389 done
10390IFS=$as_save_IFS
c6b750e1 10391
55db4b87
PB
10392fi
10393fi
c6b750e1 10394GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10395if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10397$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10398else
81ecdfbb
RW
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10400$as_echo "no" >&6; }
55db4b87
PB
10401fi
10402
81ecdfbb 10403
2429c060
PB
10404 fi
10405 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10407set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10409$as_echo_n "checking for $ac_word... " >&6; }
10410if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10411 $as_echo_n "(cached) " >&6
55db4b87 10412else
05cbd757 10413 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10414 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10415else
10416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10417for as_dir in $PATH
10418do
10419 IFS=$as_save_IFS
10420 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10421 for ac_exec_ext in '' $ac_executable_extensions; do
10422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10423 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10425 break 2
10426 fi
10427done
81ecdfbb
RW
10428 done
10429IFS=$as_save_IFS
c6b750e1 10430
55db4b87
PB
10431fi
10432fi
c6b750e1 10433GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10434if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10436$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10437else
81ecdfbb
RW
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439$as_echo "no" >&6; }
55db4b87 10440fi
c6b750e1 10441
81ecdfbb 10442
2429c060
PB
10443 fi
10444 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10445 done
10446fi
c6b750e1 10447
05cbd757
PB
10448if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10449 set dummy gfortran
10450 if test $build = $target ; then
10451 GFORTRAN_FOR_TARGET="$2"
55db4b87 10452 else
05cbd757 10453 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10454 fi
d3f5afc4
MS
10455else
10456 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10457fi
10458
2429c060
PB
10459
10460
e552509b
ILT
10461if test -n "$GOC_FOR_TARGET"; then
10462 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10463elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10464 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10465fi
10466
10467if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10468 for ncn_progname in gccgo; do
10469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10470set dummy ${ncn_progname}; ac_word=$2
10471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10472$as_echo_n "checking for $ac_word... " >&6; }
10473if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10474 $as_echo_n "(cached) " >&6
10475else
10476 if test -n "$GOC_FOR_TARGET"; then
10477 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10478else
10479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480for as_dir in $PATH
10481do
10482 IFS=$as_save_IFS
10483 test -z "$as_dir" && as_dir=.
10484 for ac_exec_ext in '' $ac_executable_extensions; do
10485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10486 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10488 break 2
10489 fi
10490done
10491 done
10492IFS=$as_save_IFS
10493
10494fi
10495fi
10496GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10497if test -n "$GOC_FOR_TARGET"; then
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10499$as_echo "$GOC_FOR_TARGET" >&6; }
10500else
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10502$as_echo "no" >&6; }
10503fi
10504
10505
10506 done
10507fi
10508
10509if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10510 for ncn_progname in gccgo; do
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10512$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10513 if test -x $with_build_time_tools/${ncn_progname}; then
10514 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10516$as_echo "yes" >&6; }
10517 break
10518 else
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520$as_echo "no" >&6; }
10521 fi
10522 done
10523fi
10524
10525if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10526 for ncn_progname in gccgo; do
10527 if test -n "$ncn_target_tool_prefix"; then
10528 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10529set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10531$as_echo_n "checking for $ac_word... " >&6; }
10532if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10533 $as_echo_n "(cached) " >&6
10534else
10535 if test -n "$GOC_FOR_TARGET"; then
10536 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10537else
10538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10539for as_dir in $PATH
10540do
10541 IFS=$as_save_IFS
10542 test -z "$as_dir" && as_dir=.
10543 for ac_exec_ext in '' $ac_executable_extensions; do
10544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10545 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10547 break 2
10548 fi
10549done
10550 done
10551IFS=$as_save_IFS
10552
10553fi
10554fi
10555GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10556if test -n "$GOC_FOR_TARGET"; then
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10558$as_echo "$GOC_FOR_TARGET" >&6; }
10559else
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10561$as_echo "no" >&6; }
10562fi
10563
10564
10565 fi
10566 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10567 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10568set dummy ${ncn_progname}; ac_word=$2
10569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10570$as_echo_n "checking for $ac_word... " >&6; }
10571if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10572 $as_echo_n "(cached) " >&6
10573else
10574 if test -n "$GOC_FOR_TARGET"; then
10575 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10576else
10577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10578for as_dir in $PATH
10579do
10580 IFS=$as_save_IFS
10581 test -z "$as_dir" && as_dir=.
10582 for ac_exec_ext in '' $ac_executable_extensions; do
10583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10584 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10586 break 2
10587 fi
10588done
10589 done
10590IFS=$as_save_IFS
10591
10592fi
10593fi
10594GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10595if test -n "$GOC_FOR_TARGET"; then
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10597$as_echo "$GOC_FOR_TARGET" >&6; }
10598else
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10600$as_echo "no" >&6; }
10601fi
10602
10603
10604 fi
10605 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10606 done
10607fi
10608
10609if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10610 set dummy gccgo
10611 if test $build = $target ; then
10612 GOC_FOR_TARGET="$2"
10613 else
10614 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10615 fi
10616else
10617 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10618fi
10619
10620
10621
2429c060
PB
10622cat > conftest.c << \EOF
10623#ifdef __GNUC__
10624 gcc_yay;
10625#endif
10626EOF
10627if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10628 have_gcc_for_target=yes
859789af 10629else
2429c060
PB
10630 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10631 have_gcc_for_target=no
859789af 10632fi
2429c060
PB
10633rm conftest.c
10634
10635
10636
859789af 10637
2429c060
PB
10638if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10639 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10641$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10642 if test -x $with_build_time_tools/ar; then
10643 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10644 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10646$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10647 else
81ecdfbb
RW
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649$as_echo "no" >&6; }
3a35eeb3 10650 fi
2429c060
PB
10651 elif test $build != $host && test $have_gcc_for_target = yes; then
10652 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10653 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10654 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10655 fi
2429c060 10656fi
c6b750e1 10657if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10658 # Extract the first word of "ar", so it can be a program name with args.
10659set dummy ar; ac_word=$2
81ecdfbb
RW
10660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10661$as_echo_n "checking for $ac_word... " >&6; }
10662if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10663 $as_echo_n "(cached) " >&6
859789af 10664else
c6b750e1
DJ
10665 case $AR_FOR_TARGET in
10666 [\\/]* | ?:[\\/]*)
2429c060
PB
10667 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10668 ;;
2429c060 10669 *)
c6b750e1
DJ
10670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671for as_dir in $gcc_cv_tool_dirs
10672do
10673 IFS=$as_save_IFS
10674 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10675 for ac_exec_ext in '' $ac_executable_extensions; do
10676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10677 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10679 break 2
10680 fi
10681done
81ecdfbb
RW
10682 done
10683IFS=$as_save_IFS
c6b750e1 10684
2429c060
PB
10685 ;;
10686esac
859789af 10687fi
c6b750e1 10688AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10689if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10691$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10692else
81ecdfbb
RW
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694$as_echo "no" >&6; }
859789af 10695fi
05cbd757 10696
81ecdfbb 10697
2429c060
PB
10698fi
10699if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10700
10701
10702if test -n "$AR_FOR_TARGET"; then
10703 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10704elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10705 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10706fi
10707
10708if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10709 for ncn_progname in ar; do
10710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10711set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10713$as_echo_n "checking for $ac_word... " >&6; }
10714if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10715 $as_echo_n "(cached) " >&6
9a819804
AO
10716else
10717 if test -n "$AR_FOR_TARGET"; then
10718 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10719else
10720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721for as_dir in $PATH
10722do
10723 IFS=$as_save_IFS
10724 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10725 for ac_exec_ext in '' $ac_executable_extensions; do
10726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10727 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10729 break 2
10730 fi
10731done
81ecdfbb
RW
10732 done
10733IFS=$as_save_IFS
9a819804
AO
10734
10735fi
10736fi
10737AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10738if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10740$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10741else
81ecdfbb
RW
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743$as_echo "no" >&6; }
9a819804
AO
10744fi
10745
81ecdfbb 10746
9a819804
AO
10747 done
10748fi
10749
10750if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10751 for ncn_progname in ar; do
81ecdfbb
RW
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10753$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10754 if test -x $with_build_time_tools/${ncn_progname}; then
10755 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10757$as_echo "yes" >&6; }
2429c060
PB
10758 break
10759 else
81ecdfbb
RW
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10761$as_echo "no" >&6; }
2429c060
PB
10762 fi
10763 done
859789af
AC
10764fi
10765
2429c060
PB
10766if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10767 for ncn_progname in ar; do
10768 if test -n "$ncn_target_tool_prefix"; then
10769 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10770set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10772$as_echo_n "checking for $ac_word... " >&6; }
10773if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10774 $as_echo_n "(cached) " >&6
7e0f7140 10775else
2429c060
PB
10776 if test -n "$AR_FOR_TARGET"; then
10777 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10778else
c6b750e1
DJ
10779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780for as_dir in $PATH
10781do
10782 IFS=$as_save_IFS
10783 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10784 for ac_exec_ext in '' $ac_executable_extensions; do
10785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10786 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10788 break 2
10789 fi
10790done
81ecdfbb
RW
10791 done
10792IFS=$as_save_IFS
c6b750e1 10793
7e0f7140
GK
10794fi
10795fi
c6b750e1 10796AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10797if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10799$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10800else
81ecdfbb
RW
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10802$as_echo "no" >&6; }
7e0f7140
GK
10803fi
10804
81ecdfbb 10805
2429c060
PB
10806 fi
10807 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10809set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10811$as_echo_n "checking for $ac_word... " >&6; }
10812if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10813 $as_echo_n "(cached) " >&6
7e0f7140 10814else
2429c060
PB
10815 if test -n "$AR_FOR_TARGET"; then
10816 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10817else
c6b750e1
DJ
10818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10819for as_dir in $PATH
10820do
10821 IFS=$as_save_IFS
10822 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10823 for ac_exec_ext in '' $ac_executable_extensions; do
10824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10825 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10827 break 2
10828 fi
10829done
81ecdfbb
RW
10830 done
10831IFS=$as_save_IFS
c6b750e1 10832
7e0f7140
GK
10833fi
10834fi
c6b750e1 10835AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10836if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10838$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10839else
81ecdfbb
RW
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841$as_echo "no" >&6; }
7e0f7140 10842fi
c6b750e1 10843
81ecdfbb 10844
2429c060
PB
10845 fi
10846 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10847 done
10848fi
c6b750e1 10849
2429c060
PB
10850if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10851 set dummy ar
7e0f7140 10852 if test $build = $target ; then
2429c060 10853 AR_FOR_TARGET="$2"
7e0f7140 10854 else
2429c060 10855 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10856 fi
d3f5afc4
MS
10857else
10858 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10859fi
10860
3a35eeb3
PB
10861else
10862 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10863fi
10864
10865
10866
10867
10868if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10869 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10871$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10872 if test -x $with_build_time_tools/as; then
10873 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10874 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10876$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10877 else
81ecdfbb
RW
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879$as_echo "no" >&6; }
3a35eeb3 10880 fi
2429c060
PB
10881 elif test $build != $host && test $have_gcc_for_target = yes; then
10882 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10883 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10884 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10885 fi
10886fi
c6b750e1 10887if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10888 # Extract the first word of "as", so it can be a program name with args.
10889set dummy as; ac_word=$2
81ecdfbb
RW
10890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10891$as_echo_n "checking for $ac_word... " >&6; }
10892if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10893 $as_echo_n "(cached) " >&6
2429c060 10894else
c6b750e1
DJ
10895 case $AS_FOR_TARGET in
10896 [\\/]* | ?:[\\/]*)
2429c060
PB
10897 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10898 ;;
2429c060 10899 *)
c6b750e1
DJ
10900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901for as_dir in $gcc_cv_tool_dirs
10902do
10903 IFS=$as_save_IFS
10904 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10907 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10909 break 2
10910 fi
10911done
81ecdfbb
RW
10912 done
10913IFS=$as_save_IFS
c6b750e1 10914
2429c060
PB
10915 ;;
10916esac
10917fi
c6b750e1 10918AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10919if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10921$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10922else
81ecdfbb
RW
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924$as_echo "no" >&6; }
2429c060
PB
10925fi
10926
81ecdfbb 10927
2429c060
PB
10928fi
10929if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10930
10931
10932if test -n "$AS_FOR_TARGET"; then
10933 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10934elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10935 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10936fi
10937
10938if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10939 for ncn_progname in as; do
10940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10941set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10943$as_echo_n "checking for $ac_word... " >&6; }
10944if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10945 $as_echo_n "(cached) " >&6
9a819804
AO
10946else
10947 if test -n "$AS_FOR_TARGET"; then
10948 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10949else
10950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951for as_dir in $PATH
10952do
10953 IFS=$as_save_IFS
10954 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10955 for ac_exec_ext in '' $ac_executable_extensions; do
10956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10957 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10959 break 2
10960 fi
10961done
81ecdfbb
RW
10962 done
10963IFS=$as_save_IFS
9a819804
AO
10964
10965fi
10966fi
10967AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10968if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10970$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 10971else
81ecdfbb
RW
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973$as_echo "no" >&6; }
9a819804
AO
10974fi
10975
81ecdfbb 10976
9a819804
AO
10977 done
10978fi
10979
10980if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10981 for ncn_progname in as; do
81ecdfbb
RW
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10983$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10984 if test -x $with_build_time_tools/${ncn_progname}; then
10985 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10987$as_echo "yes" >&6; }
2429c060
PB
10988 break
10989 else
81ecdfbb
RW
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991$as_echo "no" >&6; }
2429c060
PB
10992 fi
10993 done
10994fi
10995
10996if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10997 for ncn_progname in as; do
10998 if test -n "$ncn_target_tool_prefix"; then
10999 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11000set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11002$as_echo_n "checking for $ac_word... " >&6; }
11003if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11004 $as_echo_n "(cached) " >&6
2429c060
PB
11005else
11006 if test -n "$AS_FOR_TARGET"; then
11007 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11008else
c6b750e1
DJ
11009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11010for as_dir in $PATH
11011do
11012 IFS=$as_save_IFS
11013 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11014 for ac_exec_ext in '' $ac_executable_extensions; do
11015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11016 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11018 break 2
11019 fi
11020done
81ecdfbb
RW
11021 done
11022IFS=$as_save_IFS
c6b750e1 11023
2429c060
PB
11024fi
11025fi
c6b750e1 11026AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11027if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11029$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11030else
81ecdfbb
RW
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11032$as_echo "no" >&6; }
2429c060
PB
11033fi
11034
81ecdfbb 11035
2429c060
PB
11036 fi
11037 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11039set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11041$as_echo_n "checking for $ac_word... " >&6; }
11042if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11043 $as_echo_n "(cached) " >&6
2429c060
PB
11044else
11045 if test -n "$AS_FOR_TARGET"; then
11046 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11047else
c6b750e1
DJ
11048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049for as_dir in $PATH
11050do
11051 IFS=$as_save_IFS
11052 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11053 for ac_exec_ext in '' $ac_executable_extensions; do
11054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11055 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11057 break 2
11058 fi
11059done
81ecdfbb
RW
11060 done
11061IFS=$as_save_IFS
c6b750e1 11062
2429c060
PB
11063fi
11064fi
c6b750e1 11065AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11066if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11068$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11069else
81ecdfbb
RW
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071$as_echo "no" >&6; }
2429c060 11072fi
c6b750e1 11073
81ecdfbb 11074
2429c060
PB
11075 fi
11076 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11077 done
11078fi
c6b750e1 11079
2429c060
PB
11080if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11081 set dummy as
11082 if test $build = $target ; then
11083 AS_FOR_TARGET="$2"
11084 else
11085 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11086 fi
d3f5afc4
MS
11087else
11088 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11089fi
11090
3a35eeb3
PB
11091else
11092 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11093fi
11094
11095
11096
11097
11098if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11099 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11101$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11102 if test -x $with_build_time_tools/dlltool; then
11103 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11104 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11106$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11107 else
81ecdfbb
RW
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109$as_echo "no" >&6; }
3a35eeb3 11110 fi
2429c060
PB
11111 elif test $build != $host && test $have_gcc_for_target = yes; then
11112 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11113 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11114 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11115 fi
11116fi
c6b750e1 11117if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11118 # Extract the first word of "dlltool", so it can be a program name with args.
11119set dummy dlltool; ac_word=$2
81ecdfbb
RW
11120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11121$as_echo_n "checking for $ac_word... " >&6; }
11122if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11123 $as_echo_n "(cached) " >&6
2429c060 11124else
c6b750e1
DJ
11125 case $DLLTOOL_FOR_TARGET in
11126 [\\/]* | ?:[\\/]*)
2429c060
PB
11127 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11128 ;;
2429c060 11129 *)
c6b750e1
DJ
11130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11131for as_dir in $gcc_cv_tool_dirs
11132do
11133 IFS=$as_save_IFS
11134 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11135 for ac_exec_ext in '' $ac_executable_extensions; do
11136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11137 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11139 break 2
11140 fi
11141done
81ecdfbb
RW
11142 done
11143IFS=$as_save_IFS
c6b750e1 11144
2429c060
PB
11145 ;;
11146esac
11147fi
c6b750e1 11148DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11149if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11151$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11152else
81ecdfbb
RW
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154$as_echo "no" >&6; }
2429c060
PB
11155fi
11156
81ecdfbb 11157
2429c060
PB
11158fi
11159if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11160
11161
11162if test -n "$DLLTOOL_FOR_TARGET"; then
11163 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11164elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11165 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11166fi
11167
11168if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11169 for ncn_progname in dlltool; do
11170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11171set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11173$as_echo_n "checking for $ac_word... " >&6; }
11174if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11175 $as_echo_n "(cached) " >&6
9a819804
AO
11176else
11177 if test -n "$DLLTOOL_FOR_TARGET"; then
11178 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11179else
11180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11181for as_dir in $PATH
11182do
11183 IFS=$as_save_IFS
11184 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11185 for ac_exec_ext in '' $ac_executable_extensions; do
11186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11187 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11189 break 2
11190 fi
11191done
81ecdfbb
RW
11192 done
11193IFS=$as_save_IFS
9a819804
AO
11194
11195fi
11196fi
11197DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11198if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11200$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11201else
81ecdfbb
RW
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11203$as_echo "no" >&6; }
9a819804
AO
11204fi
11205
81ecdfbb 11206
9a819804
AO
11207 done
11208fi
11209
11210if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11211 for ncn_progname in dlltool; do
81ecdfbb
RW
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11213$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11214 if test -x $with_build_time_tools/${ncn_progname}; then
11215 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11217$as_echo "yes" >&6; }
2429c060
PB
11218 break
11219 else
81ecdfbb
RW
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221$as_echo "no" >&6; }
2429c060
PB
11222 fi
11223 done
11224fi
11225
11226if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11227 for ncn_progname in dlltool; do
11228 if test -n "$ncn_target_tool_prefix"; then
11229 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11230set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11232$as_echo_n "checking for $ac_word... " >&6; }
11233if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11234 $as_echo_n "(cached) " >&6
2429c060
PB
11235else
11236 if test -n "$DLLTOOL_FOR_TARGET"; then
11237 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11238else
c6b750e1
DJ
11239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11240for as_dir in $PATH
11241do
11242 IFS=$as_save_IFS
11243 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11244 for ac_exec_ext in '' $ac_executable_extensions; do
11245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11246 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11248 break 2
11249 fi
11250done
81ecdfbb
RW
11251 done
11252IFS=$as_save_IFS
c6b750e1 11253
2429c060
PB
11254fi
11255fi
c6b750e1 11256DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11257if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11259$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11260else
81ecdfbb
RW
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262$as_echo "no" >&6; }
2429c060
PB
11263fi
11264
81ecdfbb 11265
2429c060
PB
11266 fi
11267 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11269set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11271$as_echo_n "checking for $ac_word... " >&6; }
11272if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11273 $as_echo_n "(cached) " >&6
2429c060
PB
11274else
11275 if test -n "$DLLTOOL_FOR_TARGET"; then
11276 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11277else
c6b750e1
DJ
11278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11279for as_dir in $PATH
11280do
11281 IFS=$as_save_IFS
11282 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11283 for ac_exec_ext in '' $ac_executable_extensions; do
11284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11285 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11287 break 2
11288 fi
11289done
81ecdfbb
RW
11290 done
11291IFS=$as_save_IFS
c6b750e1 11292
2429c060
PB
11293fi
11294fi
c6b750e1 11295DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11296if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11298$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11299else
81ecdfbb
RW
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11301$as_echo "no" >&6; }
2429c060 11302fi
c6b750e1 11303
81ecdfbb 11304
2429c060
PB
11305 fi
11306 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11307 done
11308fi
c6b750e1 11309
2429c060
PB
11310if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11311 set dummy dlltool
11312 if test $build = $target ; then
11313 DLLTOOL_FOR_TARGET="$2"
11314 else
11315 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11316 fi
d3f5afc4
MS
11317else
11318 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11319fi
11320
3a35eeb3
PB
11321else
11322 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11323fi
11324
11325
11326
11327
11328if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11329 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11331$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11332 if test -x $with_build_time_tools/ld; then
11333 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11334 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11336$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11337 else
81ecdfbb
RW
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339$as_echo "no" >&6; }
3a35eeb3 11340 fi
2429c060
PB
11341 elif test $build != $host && test $have_gcc_for_target = yes; then
11342 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11343 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11344 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11345 fi
11346fi
c6b750e1 11347if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11348 # Extract the first word of "ld", so it can be a program name with args.
11349set dummy ld; ac_word=$2
81ecdfbb
RW
11350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11351$as_echo_n "checking for $ac_word... " >&6; }
11352if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11353 $as_echo_n "(cached) " >&6
2429c060 11354else
c6b750e1
DJ
11355 case $LD_FOR_TARGET in
11356 [\\/]* | ?:[\\/]*)
2429c060
PB
11357 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11358 ;;
2429c060 11359 *)
c6b750e1
DJ
11360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11361for as_dir in $gcc_cv_tool_dirs
11362do
11363 IFS=$as_save_IFS
11364 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11365 for ac_exec_ext in '' $ac_executable_extensions; do
11366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11367 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11369 break 2
11370 fi
11371done
81ecdfbb
RW
11372 done
11373IFS=$as_save_IFS
c6b750e1 11374
2429c060
PB
11375 ;;
11376esac
11377fi
c6b750e1 11378LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11379if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11381$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11382else
81ecdfbb
RW
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384$as_echo "no" >&6; }
2429c060
PB
11385fi
11386
81ecdfbb 11387
2429c060
PB
11388fi
11389if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11390
11391
11392if test -n "$LD_FOR_TARGET"; then
11393 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11394elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11395 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11396fi
11397
11398if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11399 for ncn_progname in ld; do
11400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11401set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11403$as_echo_n "checking for $ac_word... " >&6; }
11404if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11405 $as_echo_n "(cached) " >&6
9a819804
AO
11406else
11407 if test -n "$LD_FOR_TARGET"; then
11408 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11409else
11410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11411for as_dir in $PATH
11412do
11413 IFS=$as_save_IFS
11414 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11415 for ac_exec_ext in '' $ac_executable_extensions; do
11416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11417 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11419 break 2
11420 fi
11421done
81ecdfbb
RW
11422 done
11423IFS=$as_save_IFS
9a819804
AO
11424
11425fi
11426fi
11427LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11428if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11430$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11431else
81ecdfbb
RW
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433$as_echo "no" >&6; }
9a819804
AO
11434fi
11435
81ecdfbb 11436
9a819804
AO
11437 done
11438fi
11439
11440if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11441 for ncn_progname in ld; do
81ecdfbb
RW
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11443$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11444 if test -x $with_build_time_tools/${ncn_progname}; then
11445 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11447$as_echo "yes" >&6; }
2429c060
PB
11448 break
11449 else
81ecdfbb
RW
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11451$as_echo "no" >&6; }
2429c060
PB
11452 fi
11453 done
11454fi
11455
11456if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11457 for ncn_progname in ld; do
11458 if test -n "$ncn_target_tool_prefix"; then
11459 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11460set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11462$as_echo_n "checking for $ac_word... " >&6; }
11463if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11464 $as_echo_n "(cached) " >&6
2429c060
PB
11465else
11466 if test -n "$LD_FOR_TARGET"; then
11467 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11468else
c6b750e1
DJ
11469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11470for as_dir in $PATH
11471do
11472 IFS=$as_save_IFS
11473 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11474 for ac_exec_ext in '' $ac_executable_extensions; do
11475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11476 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11478 break 2
11479 fi
11480done
81ecdfbb
RW
11481 done
11482IFS=$as_save_IFS
c6b750e1 11483
2429c060
PB
11484fi
11485fi
c6b750e1 11486LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11487if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11489$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11490else
81ecdfbb
RW
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492$as_echo "no" >&6; }
2429c060
PB
11493fi
11494
81ecdfbb 11495
2429c060
PB
11496 fi
11497 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11499set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11501$as_echo_n "checking for $ac_word... " >&6; }
11502if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11503 $as_echo_n "(cached) " >&6
2429c060
PB
11504else
11505 if test -n "$LD_FOR_TARGET"; then
11506 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11507else
c6b750e1
DJ
11508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509for as_dir in $PATH
11510do
11511 IFS=$as_save_IFS
11512 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11513 for ac_exec_ext in '' $ac_executable_extensions; do
11514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11515 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11517 break 2
11518 fi
11519done
81ecdfbb
RW
11520 done
11521IFS=$as_save_IFS
c6b750e1 11522
2429c060
PB
11523fi
11524fi
c6b750e1 11525LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11526if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11528$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11529else
81ecdfbb
RW
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531$as_echo "no" >&6; }
2429c060 11532fi
c6b750e1 11533
81ecdfbb 11534
2429c060
PB
11535 fi
11536 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11537 done
11538fi
c6b750e1 11539
2429c060
PB
11540if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11541 set dummy ld
11542 if test $build = $target ; then
11543 LD_FOR_TARGET="$2"
11544 else
11545 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11546 fi
d3f5afc4
MS
11547else
11548 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11549fi
11550
3a35eeb3
PB
11551else
11552 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11553fi
11554
11555
11556
11557
11558if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11559 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11561$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11562 if test -x $with_build_time_tools/lipo; then
11563 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11564 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11566$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11567 else
81ecdfbb
RW
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569$as_echo "no" >&6; }
3a35eeb3 11570 fi
2429c060
PB
11571 elif test $build != $host && test $have_gcc_for_target = yes; then
11572 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11573 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11574 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11575 fi
11576fi
9a819804
AO
11577if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11578 # Extract the first word of "lipo", so it can be a program name with args.
11579set dummy lipo; ac_word=$2
81ecdfbb
RW
11580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11581$as_echo_n "checking for $ac_word... " >&6; }
11582if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11583 $as_echo_n "(cached) " >&6
9a819804
AO
11584else
11585 case $LIPO_FOR_TARGET in
11586 [\\/]* | ?:[\\/]*)
11587 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11588 ;;
11589 *)
11590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591for as_dir in $gcc_cv_tool_dirs
11592do
11593 IFS=$as_save_IFS
11594 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11595 for ac_exec_ext in '' $ac_executable_extensions; do
11596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11597 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11599 break 2
11600 fi
11601done
81ecdfbb
RW
11602 done
11603IFS=$as_save_IFS
9a819804
AO
11604
11605 ;;
11606esac
11607fi
11608LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11609if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11611$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11612else
81ecdfbb
RW
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614$as_echo "no" >&6; }
9a819804
AO
11615fi
11616
81ecdfbb 11617
9a819804
AO
11618fi
11619if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11620
11621
11622if test -n "$LIPO_FOR_TARGET"; then
11623 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11624elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11625 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11626fi
11627
11628if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11629 for ncn_progname in lipo; do
11630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11631set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633$as_echo_n "checking for $ac_word... " >&6; }
11634if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11635 $as_echo_n "(cached) " >&6
2429c060 11636else
9a819804
AO
11637 if test -n "$LIPO_FOR_TARGET"; then
11638 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11639else
11640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641for as_dir in $PATH
c6b750e1
DJ
11642do
11643 IFS=$as_save_IFS
11644 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11645 for ac_exec_ext in '' $ac_executable_extensions; do
11646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11647 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11649 break 2
11650 fi
11651done
81ecdfbb
RW
11652 done
11653IFS=$as_save_IFS
c6b750e1 11654
2429c060 11655fi
9a819804
AO
11656fi
11657LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11658if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11660$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11661else
81ecdfbb
RW
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663$as_echo "no" >&6; }
2429c060
PB
11664fi
11665
81ecdfbb 11666
9a819804 11667 done
2429c060 11668fi
9a819804
AO
11669
11670if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11671 for ncn_progname in lipo; do
81ecdfbb
RW
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11673$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11674 if test -x $with_build_time_tools/${ncn_progname}; then
11675 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11677$as_echo "yes" >&6; }
2429c060
PB
11678 break
11679 else
81ecdfbb
RW
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681$as_echo "no" >&6; }
2429c060
PB
11682 fi
11683 done
11684fi
11685
11686if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11687 for ncn_progname in lipo; do
11688 if test -n "$ncn_target_tool_prefix"; then
11689 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11690set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11692$as_echo_n "checking for $ac_word... " >&6; }
11693if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11694 $as_echo_n "(cached) " >&6
2429c060
PB
11695else
11696 if test -n "$LIPO_FOR_TARGET"; then
11697 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11698else
c6b750e1
DJ
11699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700for as_dir in $PATH
11701do
11702 IFS=$as_save_IFS
11703 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11704 for ac_exec_ext in '' $ac_executable_extensions; do
11705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11706 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11708 break 2
11709 fi
11710done
81ecdfbb
RW
11711 done
11712IFS=$as_save_IFS
c6b750e1 11713
2429c060
PB
11714fi
11715fi
c6b750e1 11716LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11717if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11719$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11720else
81ecdfbb
RW
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722$as_echo "no" >&6; }
2429c060
PB
11723fi
11724
81ecdfbb 11725
2429c060
PB
11726 fi
11727 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11729set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11731$as_echo_n "checking for $ac_word... " >&6; }
11732if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11733 $as_echo_n "(cached) " >&6
2429c060
PB
11734else
11735 if test -n "$LIPO_FOR_TARGET"; then
11736 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11737else
c6b750e1
DJ
11738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11739for as_dir in $PATH
11740do
11741 IFS=$as_save_IFS
11742 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11743 for ac_exec_ext in '' $ac_executable_extensions; do
11744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11745 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11747 break 2
11748 fi
11749done
81ecdfbb
RW
11750 done
11751IFS=$as_save_IFS
c6b750e1 11752
2429c060
PB
11753fi
11754fi
c6b750e1 11755LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11756if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11758$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11759else
81ecdfbb
RW
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761$as_echo "no" >&6; }
2429c060 11762fi
c6b750e1 11763
81ecdfbb 11764
2429c060
PB
11765 fi
11766 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11767 done
11768fi
c6b750e1 11769
2429c060
PB
11770if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11771 set dummy lipo
11772 if test $build = $target ; then
11773 LIPO_FOR_TARGET="$2"
11774 else
11775 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11776 fi
d3f5afc4
MS
11777else
11778 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11779fi
11780
3a35eeb3
PB
11781else
11782 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11783fi
11784
11785
11786
11787
11788if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11789 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11791$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11792 if test -x $with_build_time_tools/nm; then
11793 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11794 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11796$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11797 else
81ecdfbb
RW
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799$as_echo "no" >&6; }
3a35eeb3 11800 fi
2429c060
PB
11801 elif test $build != $host && test $have_gcc_for_target = yes; then
11802 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11803 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11804 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11805 fi
11806fi
c6b750e1 11807if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11808 # Extract the first word of "nm", so it can be a program name with args.
11809set dummy nm; ac_word=$2
81ecdfbb
RW
11810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811$as_echo_n "checking for $ac_word... " >&6; }
11812if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11813 $as_echo_n "(cached) " >&6
2429c060 11814else
c6b750e1
DJ
11815 case $NM_FOR_TARGET in
11816 [\\/]* | ?:[\\/]*)
2429c060
PB
11817 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11818 ;;
2429c060 11819 *)
c6b750e1
DJ
11820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821for as_dir in $gcc_cv_tool_dirs
11822do
11823 IFS=$as_save_IFS
11824 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11825 for ac_exec_ext in '' $ac_executable_extensions; do
11826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11827 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11829 break 2
11830 fi
11831done
81ecdfbb
RW
11832 done
11833IFS=$as_save_IFS
c6b750e1 11834
2429c060
PB
11835 ;;
11836esac
11837fi
c6b750e1 11838NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11839if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11841$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11842else
81ecdfbb
RW
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844$as_echo "no" >&6; }
2429c060
PB
11845fi
11846
81ecdfbb 11847
2429c060
PB
11848fi
11849if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11850
11851
11852if test -n "$NM_FOR_TARGET"; then
11853 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11854elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11855 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11856fi
11857
11858if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11859 for ncn_progname in nm; do
11860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11861set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863$as_echo_n "checking for $ac_word... " >&6; }
11864if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11865 $as_echo_n "(cached) " >&6
9a819804
AO
11866else
11867 if test -n "$NM_FOR_TARGET"; then
11868 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11869else
11870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11871for as_dir in $PATH
11872do
11873 IFS=$as_save_IFS
11874 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11875 for ac_exec_ext in '' $ac_executable_extensions; do
11876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11877 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11879 break 2
11880 fi
11881done
81ecdfbb
RW
11882 done
11883IFS=$as_save_IFS
9a819804
AO
11884
11885fi
11886fi
11887NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11888if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11890$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11891else
81ecdfbb
RW
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893$as_echo "no" >&6; }
9a819804
AO
11894fi
11895
81ecdfbb 11896
9a819804
AO
11897 done
11898fi
11899
11900if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11901 for ncn_progname in nm; do
81ecdfbb
RW
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11903$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11904 if test -x $with_build_time_tools/${ncn_progname}; then
11905 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11907$as_echo "yes" >&6; }
2429c060
PB
11908 break
11909 else
81ecdfbb
RW
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911$as_echo "no" >&6; }
2429c060
PB
11912 fi
11913 done
11914fi
11915
11916if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11917 for ncn_progname in nm; do
11918 if test -n "$ncn_target_tool_prefix"; then
11919 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11920set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11922$as_echo_n "checking for $ac_word... " >&6; }
11923if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11924 $as_echo_n "(cached) " >&6
859789af 11925else
55db4b87
PB
11926 if test -n "$NM_FOR_TARGET"; then
11927 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11928else
c6b750e1
DJ
11929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930for as_dir in $PATH
11931do
11932 IFS=$as_save_IFS
11933 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11934 for ac_exec_ext in '' $ac_executable_extensions; do
11935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11936 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11938 break 2
11939 fi
11940done
81ecdfbb
RW
11941 done
11942IFS=$as_save_IFS
c6b750e1 11943
859789af
AC
11944fi
11945fi
c6b750e1 11946NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11947if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11949$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11950else
81ecdfbb
RW
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952$as_echo "no" >&6; }
859789af
AC
11953fi
11954
81ecdfbb 11955
2429c060
PB
11956 fi
11957 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11959set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11961$as_echo_n "checking for $ac_word... " >&6; }
11962if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11963 $as_echo_n "(cached) " >&6
859789af 11964else
05cbd757
PB
11965 if test -n "$NM_FOR_TARGET"; then
11966 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11967else
c6b750e1
DJ
11968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969for as_dir in $PATH
11970do
11971 IFS=$as_save_IFS
11972 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11973 for ac_exec_ext in '' $ac_executable_extensions; do
11974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11975 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11977 break 2
11978 fi
11979done
81ecdfbb
RW
11980 done
11981IFS=$as_save_IFS
c6b750e1 11982
859789af
AC
11983fi
11984fi
c6b750e1 11985NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 11986if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11988$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11989else
81ecdfbb
RW
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991$as_echo "no" >&6; }
859789af 11992fi
c6b750e1 11993
81ecdfbb 11994
2429c060
PB
11995 fi
11996 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11997 done
11998fi
c6b750e1 11999
05cbd757
PB
12000if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12001 set dummy nm
12002 if test $build = $target ; then
12003 NM_FOR_TARGET="$2"
859789af 12004 else
05cbd757 12005 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12006 fi
d3f5afc4
MS
12007else
12008 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12009fi
12010
3a35eeb3
PB
12011else
12012 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12013fi
12014
12015
12016
12017
12018if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12019 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12021$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12022 if test -x $with_build_time_tools/objdump; then
12023 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12024 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12026$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12027 else
81ecdfbb
RW
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029$as_echo "no" >&6; }
3a35eeb3 12030 fi
2429c060
PB
12031 elif test $build != $host && test $have_gcc_for_target = yes; then
12032 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12033 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12034 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12035 fi
12036fi
c6b750e1 12037if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12038 # Extract the first word of "objdump", so it can be a program name with args.
12039set dummy objdump; ac_word=$2
81ecdfbb
RW
12040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12041$as_echo_n "checking for $ac_word... " >&6; }
12042if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12043 $as_echo_n "(cached) " >&6
2429c060 12044else
c6b750e1
DJ
12045 case $OBJDUMP_FOR_TARGET in
12046 [\\/]* | ?:[\\/]*)
2429c060
PB
12047 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12048 ;;
2429c060 12049 *)
c6b750e1
DJ
12050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051for as_dir in $gcc_cv_tool_dirs
12052do
12053 IFS=$as_save_IFS
12054 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12055 for ac_exec_ext in '' $ac_executable_extensions; do
12056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12057 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12059 break 2
12060 fi
12061done
81ecdfbb
RW
12062 done
12063IFS=$as_save_IFS
c6b750e1 12064
2429c060
PB
12065 ;;
12066esac
12067fi
c6b750e1 12068OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12069if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12071$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12072else
81ecdfbb
RW
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074$as_echo "no" >&6; }
2429c060
PB
12075fi
12076
81ecdfbb 12077
2429c060
PB
12078fi
12079if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12080
12081
12082if test -n "$OBJDUMP_FOR_TARGET"; then
12083 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12084elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12085 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12086fi
12087
12088if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12089 for ncn_progname in objdump; do
12090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12091set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12093$as_echo_n "checking for $ac_word... " >&6; }
12094if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12095 $as_echo_n "(cached) " >&6
9a819804
AO
12096else
12097 if test -n "$OBJDUMP_FOR_TARGET"; then
12098 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12099else
12100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101for as_dir in $PATH
12102do
12103 IFS=$as_save_IFS
12104 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12105 for ac_exec_ext in '' $ac_executable_extensions; do
12106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12107 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12109 break 2
12110 fi
12111done
81ecdfbb
RW
12112 done
12113IFS=$as_save_IFS
9a819804
AO
12114
12115fi
12116fi
12117OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12118if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12120$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12121else
81ecdfbb
RW
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123$as_echo "no" >&6; }
9a819804
AO
12124fi
12125
81ecdfbb 12126
9a819804
AO
12127 done
12128fi
12129
12130if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12131 for ncn_progname in objdump; do
81ecdfbb
RW
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12133$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12134 if test -x $with_build_time_tools/${ncn_progname}; then
12135 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12137$as_echo "yes" >&6; }
2429c060
PB
12138 break
12139 else
81ecdfbb
RW
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12141$as_echo "no" >&6; }
2429c060
PB
12142 fi
12143 done
12144fi
12145
12146if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12147 for ncn_progname in objdump; do
12148 if test -n "$ncn_target_tool_prefix"; then
12149 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12150set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12152$as_echo_n "checking for $ac_word... " >&6; }
12153if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12154 $as_echo_n "(cached) " >&6
5ae72758
DJ
12155else
12156 if test -n "$OBJDUMP_FOR_TARGET"; then
12157 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12158else
c6b750e1
DJ
12159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160for as_dir in $PATH
12161do
12162 IFS=$as_save_IFS
12163 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12164 for ac_exec_ext in '' $ac_executable_extensions; do
12165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12166 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12168 break 2
12169 fi
12170done
81ecdfbb
RW
12171 done
12172IFS=$as_save_IFS
c6b750e1 12173
5ae72758
DJ
12174fi
12175fi
c6b750e1 12176OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12177if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12179$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12180else
81ecdfbb
RW
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182$as_echo "no" >&6; }
5ae72758
DJ
12183fi
12184
81ecdfbb 12185
2429c060
PB
12186 fi
12187 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12189set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12191$as_echo_n "checking for $ac_word... " >&6; }
12192if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12193 $as_echo_n "(cached) " >&6
5ae72758
DJ
12194else
12195 if test -n "$OBJDUMP_FOR_TARGET"; then
12196 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12197else
c6b750e1
DJ
12198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12199for as_dir in $PATH
12200do
12201 IFS=$as_save_IFS
12202 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12203 for ac_exec_ext in '' $ac_executable_extensions; do
12204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12205 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12207 break 2
12208 fi
12209done
81ecdfbb
RW
12210 done
12211IFS=$as_save_IFS
c6b750e1 12212
5ae72758
DJ
12213fi
12214fi
c6b750e1 12215OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12216if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12218$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12219else
81ecdfbb
RW
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12221$as_echo "no" >&6; }
5ae72758 12222fi
c6b750e1 12223
81ecdfbb 12224
2429c060
PB
12225 fi
12226 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12227 done
12228fi
c6b750e1 12229
5ae72758
DJ
12230if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12231 set dummy objdump
12232 if test $build = $target ; then
12233 OBJDUMP_FOR_TARGET="$2"
12234 else
12235 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12236 fi
d3f5afc4
MS
12237else
12238 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12239fi
12240
3a35eeb3
PB
12241else
12242 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12243fi
12244
12245
12246
12247
12248if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12249 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12251$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12252 if test -x $with_build_time_tools/ranlib; then
12253 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12254 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12256$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12257 else
81ecdfbb
RW
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259$as_echo "no" >&6; }
3a35eeb3 12260 fi
2429c060
PB
12261 elif test $build != $host && test $have_gcc_for_target = yes; then
12262 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12263 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12264 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12265 fi
12266fi
c6b750e1 12267if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12268 # Extract the first word of "ranlib", so it can be a program name with args.
12269set dummy ranlib; ac_word=$2
81ecdfbb
RW
12270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12271$as_echo_n "checking for $ac_word... " >&6; }
12272if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12273 $as_echo_n "(cached) " >&6
2429c060 12274else
c6b750e1
DJ
12275 case $RANLIB_FOR_TARGET in
12276 [\\/]* | ?:[\\/]*)
2429c060
PB
12277 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12278 ;;
2429c060 12279 *)
c6b750e1
DJ
12280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281for as_dir in $gcc_cv_tool_dirs
12282do
12283 IFS=$as_save_IFS
12284 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12285 for ac_exec_ext in '' $ac_executable_extensions; do
12286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12287 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12289 break 2
12290 fi
12291done
81ecdfbb
RW
12292 done
12293IFS=$as_save_IFS
c6b750e1 12294
2429c060
PB
12295 ;;
12296esac
12297fi
c6b750e1 12298RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12299if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12301$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12302else
81ecdfbb
RW
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304$as_echo "no" >&6; }
2429c060
PB
12305fi
12306
81ecdfbb 12307
2429c060
PB
12308fi
12309if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12310
12311
12312if test -n "$RANLIB_FOR_TARGET"; then
12313 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12314elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12315 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12316fi
12317
12318if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12319 for ncn_progname in ranlib; do
12320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12321set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12323$as_echo_n "checking for $ac_word... " >&6; }
12324if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12325 $as_echo_n "(cached) " >&6
9a819804
AO
12326else
12327 if test -n "$RANLIB_FOR_TARGET"; then
12328 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12329else
12330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12331for as_dir in $PATH
12332do
12333 IFS=$as_save_IFS
12334 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12335 for ac_exec_ext in '' $ac_executable_extensions; do
12336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12337 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12339 break 2
12340 fi
12341done
81ecdfbb
RW
12342 done
12343IFS=$as_save_IFS
9a819804
AO
12344
12345fi
12346fi
12347RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12348if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12350$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12351else
81ecdfbb
RW
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353$as_echo "no" >&6; }
9a819804
AO
12354fi
12355
81ecdfbb 12356
9a819804
AO
12357 done
12358fi
12359
12360if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12361 for ncn_progname in ranlib; do
81ecdfbb
RW
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12363$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12364 if test -x $with_build_time_tools/${ncn_progname}; then
12365 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12367$as_echo "yes" >&6; }
2429c060
PB
12368 break
12369 else
81ecdfbb
RW
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371$as_echo "no" >&6; }
2429c060
PB
12372 fi
12373 done
12374fi
12375
12376if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12377 for ncn_progname in ranlib; do
12378 if test -n "$ncn_target_tool_prefix"; then
12379 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12380set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12382$as_echo_n "checking for $ac_word... " >&6; }
12383if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12384 $as_echo_n "(cached) " >&6
859789af 12385else
55db4b87
PB
12386 if test -n "$RANLIB_FOR_TARGET"; then
12387 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12388else
c6b750e1
DJ
12389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12390for as_dir in $PATH
12391do
12392 IFS=$as_save_IFS
12393 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12394 for ac_exec_ext in '' $ac_executable_extensions; do
12395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12396 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12398 break 2
12399 fi
12400done
81ecdfbb
RW
12401 done
12402IFS=$as_save_IFS
c6b750e1 12403
859789af
AC
12404fi
12405fi
c6b750e1 12406RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12407if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12409$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12410else
81ecdfbb
RW
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12412$as_echo "no" >&6; }
859789af
AC
12413fi
12414
81ecdfbb 12415
2429c060
PB
12416 fi
12417 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12419set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12421$as_echo_n "checking for $ac_word... " >&6; }
12422if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12423 $as_echo_n "(cached) " >&6
859789af 12424else
05cbd757
PB
12425 if test -n "$RANLIB_FOR_TARGET"; then
12426 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12427else
c6b750e1
DJ
12428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429for as_dir in $PATH
12430do
12431 IFS=$as_save_IFS
12432 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12433 for ac_exec_ext in '' $ac_executable_extensions; do
12434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12435 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12437 break 2
12438 fi
12439done
81ecdfbb
RW
12440 done
12441IFS=$as_save_IFS
c6b750e1 12442
859789af
AC
12443fi
12444fi
c6b750e1 12445RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12446if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12448$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12449else
81ecdfbb
RW
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12451$as_echo "no" >&6; }
859789af 12452fi
c6b750e1 12453
81ecdfbb 12454
2429c060
PB
12455 fi
12456 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12457 done
12458fi
c6b750e1 12459
2429c060
PB
12460if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12461 set dummy ranlib
12462 if test $build = $target ; then
12463 RANLIB_FOR_TARGET="$2"
12464 else
12465 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12466 fi
d3f5afc4
MS
12467else
12468 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12469fi
05cbd757 12470
3a35eeb3
PB
12471else
12472 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12473fi
12474
2429c060
PB
12475
12476
12477
12478if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12479 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12481$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12482 if test -x $with_build_time_tools/strip; then
12483 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12484 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12486$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12487 else
81ecdfbb
RW
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489$as_echo "no" >&6; }
3a35eeb3 12490 fi
2429c060
PB
12491 elif test $build != $host && test $have_gcc_for_target = yes; then
12492 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12493 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12494 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12495 fi
12496fi
c6b750e1 12497if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12498 # Extract the first word of "strip", so it can be a program name with args.
12499set dummy strip; ac_word=$2
81ecdfbb
RW
12500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12501$as_echo_n "checking for $ac_word... " >&6; }
12502if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12503 $as_echo_n "(cached) " >&6
2429c060 12504else
c6b750e1
DJ
12505 case $STRIP_FOR_TARGET in
12506 [\\/]* | ?:[\\/]*)
2429c060
PB
12507 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12508 ;;
2429c060 12509 *)
c6b750e1
DJ
12510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12511for as_dir in $gcc_cv_tool_dirs
12512do
12513 IFS=$as_save_IFS
12514 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12515 for ac_exec_ext in '' $ac_executable_extensions; do
12516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12517 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12519 break 2
12520 fi
12521done
81ecdfbb
RW
12522 done
12523IFS=$as_save_IFS
c6b750e1 12524
2429c060
PB
12525 ;;
12526esac
12527fi
c6b750e1 12528STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12529if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12531$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12532else
81ecdfbb
RW
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534$as_echo "no" >&6; }
2429c060
PB
12535fi
12536
81ecdfbb 12537
2429c060
PB
12538fi
12539if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12540
12541
12542if test -n "$STRIP_FOR_TARGET"; then
12543 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12544elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12545 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12546fi
12547
12548if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12549 for ncn_progname in strip; do
12550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12551set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553$as_echo_n "checking for $ac_word... " >&6; }
12554if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12555 $as_echo_n "(cached) " >&6
9a819804
AO
12556else
12557 if test -n "$STRIP_FOR_TARGET"; then
12558 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12559else
12560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12561for as_dir in $PATH
12562do
12563 IFS=$as_save_IFS
12564 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12565 for ac_exec_ext in '' $ac_executable_extensions; do
12566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12567 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12569 break 2
12570 fi
12571done
81ecdfbb
RW
12572 done
12573IFS=$as_save_IFS
9a819804
AO
12574
12575fi
12576fi
12577STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12578if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12580$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12581else
81ecdfbb
RW
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583$as_echo "no" >&6; }
9a819804
AO
12584fi
12585
81ecdfbb 12586
9a819804
AO
12587 done
12588fi
12589
12590if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12591 for ncn_progname in strip; do
81ecdfbb
RW
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12593$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12594 if test -x $with_build_time_tools/${ncn_progname}; then
12595 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12597$as_echo "yes" >&6; }
2429c060
PB
12598 break
12599 else
81ecdfbb
RW
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12601$as_echo "no" >&6; }
2429c060
PB
12602 fi
12603 done
12604fi
12605
12606if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12607 for ncn_progname in strip; do
12608 if test -n "$ncn_target_tool_prefix"; then
12609 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12610set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12612$as_echo_n "checking for $ac_word... " >&6; }
12613if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12614 $as_echo_n "(cached) " >&6
7e0f7140
GK
12615else
12616 if test -n "$STRIP_FOR_TARGET"; then
12617 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12618else
12619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12620for as_dir in $PATH
12621do
12622 IFS=$as_save_IFS
12623 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12624 for ac_exec_ext in '' $ac_executable_extensions; do
12625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12626 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12628 break 2
12629 fi
12630done
81ecdfbb
RW
12631 done
12632IFS=$as_save_IFS
c6b750e1 12633
7e0f7140
GK
12634fi
12635fi
c6b750e1 12636STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12637if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12639$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12640else
81ecdfbb
RW
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12642$as_echo "no" >&6; }
7e0f7140
GK
12643fi
12644
81ecdfbb 12645
2429c060
PB
12646 fi
12647 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12648 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12649set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12651$as_echo_n "checking for $ac_word... " >&6; }
12652if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12653 $as_echo_n "(cached) " >&6
7e0f7140
GK
12654else
12655 if test -n "$STRIP_FOR_TARGET"; then
12656 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12657else
c6b750e1
DJ
12658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12659for as_dir in $PATH
12660do
12661 IFS=$as_save_IFS
12662 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12663 for ac_exec_ext in '' $ac_executable_extensions; do
12664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12665 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12667 break 2
12668 fi
12669done
81ecdfbb
RW
12670 done
12671IFS=$as_save_IFS
c6b750e1 12672
7e0f7140
GK
12673fi
12674fi
c6b750e1 12675STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12676if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12678$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12679else
81ecdfbb
RW
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681$as_echo "no" >&6; }
7e0f7140 12682fi
c6b750e1 12683
81ecdfbb 12684
2429c060
PB
12685 fi
12686 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12687 done
12688fi
c6b750e1 12689
7e0f7140
GK
12690if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12691 set dummy strip
12692 if test $build = $target ; then
12693 STRIP_FOR_TARGET="$2"
12694 else
12695 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12696 fi
d3f5afc4
MS
12697else
12698 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12699fi
12700
3a35eeb3
PB
12701else
12702 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12703fi
12704
12705
12706
12707
12708if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12709 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12711$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12712 if test -x $with_build_time_tools/windres; then
12713 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12714 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12716$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12717 else
81ecdfbb
RW
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719$as_echo "no" >&6; }
3a35eeb3 12720 fi
2429c060
PB
12721 elif test $build != $host && test $have_gcc_for_target = yes; then
12722 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12723 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12724 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12725 fi
12726fi
c6b750e1 12727if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12728 # Extract the first word of "windres", so it can be a program name with args.
12729set dummy windres; ac_word=$2
81ecdfbb
RW
12730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12731$as_echo_n "checking for $ac_word... " >&6; }
12732if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12733 $as_echo_n "(cached) " >&6
2429c060 12734else
c6b750e1
DJ
12735 case $WINDRES_FOR_TARGET in
12736 [\\/]* | ?:[\\/]*)
2429c060
PB
12737 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12738 ;;
2429c060 12739 *)
c6b750e1
DJ
12740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12741for as_dir in $gcc_cv_tool_dirs
12742do
12743 IFS=$as_save_IFS
12744 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12745 for ac_exec_ext in '' $ac_executable_extensions; do
12746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12747 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12749 break 2
12750 fi
12751done
81ecdfbb
RW
12752 done
12753IFS=$as_save_IFS
c6b750e1 12754
2429c060
PB
12755 ;;
12756esac
12757fi
c6b750e1 12758WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12759if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12761$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12762else
81ecdfbb
RW
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764$as_echo "no" >&6; }
2429c060
PB
12765fi
12766
81ecdfbb 12767
2429c060
PB
12768fi
12769if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12770
12771
12772if test -n "$WINDRES_FOR_TARGET"; then
12773 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12774elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12775 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12776fi
12777
12778if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12779 for ncn_progname in windres; do
12780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12781set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12783$as_echo_n "checking for $ac_word... " >&6; }
12784if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12785 $as_echo_n "(cached) " >&6
9a819804
AO
12786else
12787 if test -n "$WINDRES_FOR_TARGET"; then
12788 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12789else
12790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12791for as_dir in $PATH
12792do
12793 IFS=$as_save_IFS
12794 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12795 for ac_exec_ext in '' $ac_executable_extensions; do
12796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12797 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12799 break 2
12800 fi
12801done
81ecdfbb
RW
12802 done
12803IFS=$as_save_IFS
9a819804
AO
12804
12805fi
12806fi
12807WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12808if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12810$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12811else
81ecdfbb
RW
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12813$as_echo "no" >&6; }
9a819804
AO
12814fi
12815
81ecdfbb 12816
9a819804
AO
12817 done
12818fi
12819
12820if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12821 for ncn_progname in windres; do
81ecdfbb
RW
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12823$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12824 if test -x $with_build_time_tools/${ncn_progname}; then
12825 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12827$as_echo "yes" >&6; }
2429c060
PB
12828 break
12829 else
81ecdfbb
RW
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12831$as_echo "no" >&6; }
2429c060
PB
12832 fi
12833 done
12834fi
12835
12836if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12837 for ncn_progname in windres; do
12838 if test -n "$ncn_target_tool_prefix"; then
12839 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12840set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12842$as_echo_n "checking for $ac_word... " >&6; }
12843if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12844 $as_echo_n "(cached) " >&6
859789af 12845else
55db4b87
PB
12846 if test -n "$WINDRES_FOR_TARGET"; then
12847 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12848else
c6b750e1
DJ
12849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12850for as_dir in $PATH
12851do
12852 IFS=$as_save_IFS
12853 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12854 for ac_exec_ext in '' $ac_executable_extensions; do
12855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12856 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12858 break 2
12859 fi
12860done
81ecdfbb
RW
12861 done
12862IFS=$as_save_IFS
c6b750e1 12863
859789af
AC
12864fi
12865fi
c6b750e1 12866WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 12867if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12869$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12870else
81ecdfbb
RW
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872$as_echo "no" >&6; }
859789af
AC
12873fi
12874
81ecdfbb 12875
2429c060
PB
12876 fi
12877 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12879set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12881$as_echo_n "checking for $ac_word... " >&6; }
12882if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12883 $as_echo_n "(cached) " >&6
859789af 12884else
05cbd757
PB
12885 if test -n "$WINDRES_FOR_TARGET"; then
12886 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12887else
c6b750e1
DJ
12888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12889for as_dir in $PATH
12890do
12891 IFS=$as_save_IFS
12892 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12893 for ac_exec_ext in '' $ac_executable_extensions; do
12894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12895 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12897 break 2
12898 fi
12899done
81ecdfbb
RW
12900 done
12901IFS=$as_save_IFS
c6b750e1 12902
859789af
AC
12903fi
12904fi
c6b750e1 12905WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 12906if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12908$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12909else
81ecdfbb
RW
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911$as_echo "no" >&6; }
859789af 12912fi
c6b750e1 12913
81ecdfbb 12914
2429c060
PB
12915 fi
12916 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12917 done
12918fi
c6b750e1 12919
05cbd757
PB
12920if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12921 set dummy windres
12922 if test $build = $target ; then
12923 WINDRES_FOR_TARGET="$2"
859789af 12924 else
05cbd757 12925 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12926 fi
d3f5afc4
MS
12927else
12928 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
12929fi
12930
3a35eeb3
PB
12931else
12932 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
12933fi
12934
852e5f18 12935
0c24b341
NC
12936
12937
12938if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12939 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12941$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
12942 if test -x $with_build_time_tools/windmc; then
12943 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12944 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12946$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 12947 else
81ecdfbb
RW
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12949$as_echo "no" >&6; }
0c24b341
NC
12950 fi
12951 elif test $build != $host && test $have_gcc_for_target = yes; then
12952 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12953 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12954 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12955 fi
12956fi
12957if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12958 # Extract the first word of "windmc", so it can be a program name with args.
12959set dummy windmc; ac_word=$2
81ecdfbb
RW
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961$as_echo_n "checking for $ac_word... " >&6; }
12962if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12963 $as_echo_n "(cached) " >&6
0c24b341
NC
12964else
12965 case $WINDMC_FOR_TARGET in
12966 [\\/]* | ?:[\\/]*)
12967 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12968 ;;
12969 *)
12970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12971for as_dir in $gcc_cv_tool_dirs
12972do
12973 IFS=$as_save_IFS
12974 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12975 for ac_exec_ext in '' $ac_executable_extensions; do
12976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12977 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12979 break 2
12980 fi
12981done
81ecdfbb
RW
12982 done
12983IFS=$as_save_IFS
0c24b341
NC
12984
12985 ;;
12986esac
12987fi
12988WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 12989if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12991$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12992else
81ecdfbb
RW
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994$as_echo "no" >&6; }
0c24b341
NC
12995fi
12996
81ecdfbb 12997
0c24b341
NC
12998fi
12999if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13000
13001
13002if test -n "$WINDMC_FOR_TARGET"; then
13003 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13004elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13005 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13006fi
13007
13008if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13009 for ncn_progname in windmc; do
13010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13011set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013$as_echo_n "checking for $ac_word... " >&6; }
13014if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13015 $as_echo_n "(cached) " >&6
0c24b341
NC
13016else
13017 if test -n "$WINDMC_FOR_TARGET"; then
13018 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13019else
13020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021for as_dir in $PATH
13022do
13023 IFS=$as_save_IFS
13024 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13025 for ac_exec_ext in '' $ac_executable_extensions; do
13026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13027 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13029 break 2
13030 fi
13031done
81ecdfbb
RW
13032 done
13033IFS=$as_save_IFS
0c24b341
NC
13034
13035fi
13036fi
13037WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13038if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13040$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13041else
81ecdfbb
RW
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043$as_echo "no" >&6; }
0c24b341
NC
13044fi
13045
81ecdfbb 13046
0c24b341
NC
13047 done
13048fi
13049
13050if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13051 for ncn_progname in windmc; do
81ecdfbb
RW
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13053$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13054 if test -x $with_build_time_tools/${ncn_progname}; then
13055 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13057$as_echo "yes" >&6; }
0c24b341
NC
13058 break
13059 else
81ecdfbb
RW
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13061$as_echo "no" >&6; }
0c24b341
NC
13062 fi
13063 done
13064fi
13065
13066if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13067 for ncn_progname in windmc; do
13068 if test -n "$ncn_target_tool_prefix"; then
13069 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13070set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13072$as_echo_n "checking for $ac_word... " >&6; }
13073if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13074 $as_echo_n "(cached) " >&6
0c24b341
NC
13075else
13076 if test -n "$WINDMC_FOR_TARGET"; then
13077 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13078else
13079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13080for as_dir in $PATH
13081do
13082 IFS=$as_save_IFS
13083 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13084 for ac_exec_ext in '' $ac_executable_extensions; do
13085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13086 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13088 break 2
13089 fi
13090done
81ecdfbb
RW
13091 done
13092IFS=$as_save_IFS
0c24b341
NC
13093
13094fi
13095fi
13096WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13097if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13099$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13100else
81ecdfbb
RW
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13102$as_echo "no" >&6; }
0c24b341
NC
13103fi
13104
81ecdfbb 13105
0c24b341
NC
13106 fi
13107 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13109set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13111$as_echo_n "checking for $ac_word... " >&6; }
13112if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13113 $as_echo_n "(cached) " >&6
0c24b341
NC
13114else
13115 if test -n "$WINDMC_FOR_TARGET"; then
13116 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13117else
13118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119for as_dir in $PATH
13120do
13121 IFS=$as_save_IFS
13122 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13123 for ac_exec_ext in '' $ac_executable_extensions; do
13124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13125 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13127 break 2
13128 fi
13129done
81ecdfbb
RW
13130 done
13131IFS=$as_save_IFS
0c24b341
NC
13132
13133fi
13134fi
13135WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13136if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13138$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13139else
81ecdfbb
RW
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141$as_echo "no" >&6; }
0c24b341
NC
13142fi
13143
81ecdfbb 13144
0c24b341
NC
13145 fi
13146 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13147 done
13148fi
13149
13150if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13151 set dummy windmc
13152 if test $build = $target ; then
13153 WINDMC_FOR_TARGET="$2"
13154 else
13155 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13156 fi
13157else
13158 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13159fi
13160
13161else
13162 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13163fi
13164
13165
be01d343
PB
13166RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13167
81ecdfbb
RW
13168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13169$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13170if test "x${build}" != "x${host}" ; then
2429c060
PB
13171 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13172 # We already found the complete path
b8025f34 13173 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13175$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13176 else
13177 # Canadian cross, just use what we found
81ecdfbb
RW
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13179$as_echo "pre-installed" >&6; }
2429c060 13180 fi
be01d343
PB
13181else
13182 ok=yes
13183 case " ${configdirs} " in
13184 *" binutils "*) ;;
13185 *) ok=no ;;
13186 esac
c6b750e1 13187
be01d343
PB
13188 if test $ok = yes; then
13189 # An in-tree tool is available and we can use it
13190 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13192$as_echo "just compiled" >&6; }
2429c060
PB
13193 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13194 # We already found the complete path
b8025f34 13195 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13197$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13198 elif test "x$target" = "x$host"; then
13199 # We can use an host tool
13200 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13202$as_echo "host tool" >&6; }
be01d343
PB
13203 else
13204 # We need a cross tool
81ecdfbb
RW
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13206$as_echo "pre-installed" >&6; }
be01d343
PB
13207 fi
13208fi
4b900473 13209
81ecdfbb
RW
13210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13211$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13212if test "x${build}" != "x${host}" ; then
2429c060
PB
13213 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13214 # We already found the complete path
b8025f34 13215 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13217$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13218 else
13219 # Canadian cross, just use what we found
81ecdfbb
RW
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13221$as_echo "pre-installed" >&6; }
2429c060 13222 fi
be01d343
PB
13223else
13224 ok=yes
13225 case " ${configdirs} " in
13226 *" gas "*) ;;
13227 *) ok=no ;;
13228 esac
c6b750e1 13229
be01d343
PB
13230 if test $ok = yes; then
13231 # An in-tree tool is available and we can use it
13232 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13234$as_echo "just compiled" >&6; }
2429c060
PB
13235 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13236 # We already found the complete path
b8025f34 13237 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13239$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13240 elif test "x$target" = "x$host"; then
13241 # We can use an host tool
13242 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13244$as_echo "host tool" >&6; }
be01d343
PB
13245 else
13246 # We need a cross tool
81ecdfbb
RW
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13248$as_echo "pre-installed" >&6; }
be01d343
PB
13249 fi
13250fi
4b900473 13251
81ecdfbb
RW
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13253$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13254if test "x${build}" != "x${host}" ; then
2429c060
PB
13255 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13256 # We already found the complete path
b8025f34 13257 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13259$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13260 else
13261 # Canadian cross, just use what we found
81ecdfbb
RW
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13263$as_echo "pre-installed" >&6; }
2429c060 13264 fi
be01d343
PB
13265else
13266 ok=yes
13267 case " ${configdirs} " in
13268 *" gcc "*) ;;
13269 *) ok=no ;;
13270 esac
c6b750e1 13271
be01d343
PB
13272 if test $ok = yes; then
13273 # An in-tree tool is available and we can use it
13274 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13276$as_echo "just compiled" >&6; }
2429c060
PB
13277 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13278 # We already found the complete path
b8025f34 13279 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13281$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13282 elif test "x$target" = "x$host"; then
13283 # We can use an host tool
13284 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13286$as_echo "host tool" >&6; }
be01d343
PB
13287 else
13288 # We need a cross tool
81ecdfbb
RW
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13290$as_echo "pre-installed" >&6; }
be01d343
PB
13291 fi
13292fi
4b900473 13293
81ecdfbb
RW
13294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13295$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13296if test "x${build}" != "x${host}" ; then
2429c060
PB
13297 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13298 # We already found the complete path
b8025f34 13299 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13301$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13302 else
13303 # Canadian cross, just use what we found
81ecdfbb
RW
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13305$as_echo "pre-installed" >&6; }
2429c060 13306 fi
be01d343
PB
13307else
13308 ok=yes
13309 case " ${configdirs} " in
13310 *" gcc "*) ;;
13311 *) ok=no ;;
13312 esac
13313 case ,${enable_languages}, in
13314 *,c++,*) ;;
13315 *) ok=no ;;
13316 esac
13317 if test $ok = yes; then
13318 # An in-tree tool is available and we can use it
87cda2cf 13319 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
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13321$as_echo "just compiled" >&6; }
2429c060
PB
13322 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13323 # We already found the complete path
b8025f34 13324 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13326$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13327 elif test "x$target" = "x$host"; then
13328 # We can use an host tool
13329 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13331$as_echo "host tool" >&6; }
be01d343
PB
13332 else
13333 # We need a cross tool
81ecdfbb
RW
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13335$as_echo "pre-installed" >&6; }
be01d343
PB
13336 fi
13337fi
4b900473 13338
81ecdfbb
RW
13339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13340$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13341if test "x${build}" != "x${host}" ; then
2429c060
PB
13342 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13343 # We already found the complete path
b8025f34 13344 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13346$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13347 else
13348 # Canadian cross, just use what we found
81ecdfbb
RW
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13350$as_echo "pre-installed" >&6; }
2429c060 13351 fi
be01d343
PB
13352else
13353 ok=yes
13354 case " ${configdirs} " in
13355 *" gcc "*) ;;
13356 *) ok=no ;;
13357 esac
13358 case ,${enable_languages}, in
13359 *,c++,*) ;;
13360 *) ok=no ;;
13361 esac
13362 if test $ok = yes; then
13363 # An in-tree tool is available and we can use it
13364 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
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13366$as_echo "just compiled" >&6; }
2429c060
PB
13367 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13368 # We already found the complete path
b8025f34 13369 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13371$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13372 elif test "x$target" = "x$host"; then
13373 # We can use an host tool
13374 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13376$as_echo "host tool" >&6; }
be01d343
PB
13377 else
13378 # We need a cross tool
81ecdfbb
RW
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13380$as_echo "pre-installed" >&6; }
be01d343
PB
13381 fi
13382fi
4b900473 13383
81ecdfbb
RW
13384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13385$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13386if test "x${build}" != "x${host}" ; then
2429c060
PB
13387 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13388 # We already found the complete path
b8025f34 13389 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13391$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13392 else
13393 # Canadian cross, just use what we found
81ecdfbb
RW
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13395$as_echo "pre-installed" >&6; }
2429c060 13396 fi
be01d343
PB
13397else
13398 ok=yes
13399 case " ${configdirs} " in
13400 *" binutils "*) ;;
13401 *) ok=no ;;
13402 esac
c6b750e1 13403
be01d343
PB
13404 if test $ok = yes; then
13405 # An in-tree tool is available and we can use it
13406 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13408$as_echo "just compiled" >&6; }
2429c060
PB
13409 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13410 # We already found the complete path
b8025f34 13411 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13413$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13414 elif test "x$target" = "x$host"; then
13415 # We can use an host tool
13416 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13418$as_echo "host tool" >&6; }
be01d343
PB
13419 else
13420 # We need a cross tool
81ecdfbb
RW
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13422$as_echo "pre-installed" >&6; }
be01d343
PB
13423 fi
13424fi
4b900473 13425
81ecdfbb
RW
13426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13427$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13428if test "x${build}" != "x${host}" ; then
2429c060
PB
13429 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13430 # We already found the complete path
b8025f34 13431 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13433$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13434 else
13435 # Canadian cross, just use what we found
81ecdfbb
RW
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13437$as_echo "pre-installed" >&6; }
2429c060 13438 fi
be01d343
PB
13439else
13440 ok=yes
13441 case " ${configdirs} " in
13442 *" gcc "*) ;;
13443 *) ok=no ;;
13444 esac
c6b750e1 13445
be01d343
PB
13446 if test $ok = yes; then
13447 # An in-tree tool is available and we can use it
13448 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13450$as_echo "just compiled" >&6; }
2429c060
PB
13451 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13452 # We already found the complete path
b8025f34 13453 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13455$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13456 elif test "x$target" = "x$host"; then
13457 # We can use an host tool
13458 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13460$as_echo "host tool" >&6; }
be01d343
PB
13461 else
13462 # We need a cross tool
81ecdfbb
RW
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13464$as_echo "pre-installed" >&6; }
be01d343
PB
13465 fi
13466fi
4b900473 13467
81ecdfbb
RW
13468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13469$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13470if test "x${build}" != "x${host}" ; then
2429c060
PB
13471 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13472 # We already found the complete path
b8025f34 13473 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13475$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13476 else
13477 # Canadian cross, just use what we found
81ecdfbb
RW
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13479$as_echo "pre-installed" >&6; }
2429c060 13480 fi
be01d343
PB
13481else
13482 ok=yes
13483 case " ${configdirs} " in
13484 *" gcc "*) ;;
13485 *) ok=no ;;
13486 esac
13487 case ,${enable_languages}, in
13488 *,java,*) ;;
13489 *) ok=no ;;
13490 esac
13491 if test $ok = yes; then
13492 # An in-tree tool is available and we can use it
13493 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13495$as_echo "just compiled" >&6; }
2429c060
PB
13496 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13497 # We already found the complete path
b8025f34 13498 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13500$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13501 elif test "x$target" = "x$host"; then
13502 # We can use an host tool
13503 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13505$as_echo "host tool" >&6; }
be01d343
PB
13506 else
13507 # We need a cross tool
81ecdfbb
RW
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13509$as_echo "pre-installed" >&6; }
be01d343
PB
13510 fi
13511fi
4b900473 13512
81ecdfbb
RW
13513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13514$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13515if test "x${build}" != "x${host}" ; then
2429c060
PB
13516 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13517 # We already found the complete path
b8025f34 13518 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13520$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13521 else
13522 # Canadian cross, just use what we found
81ecdfbb
RW
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13524$as_echo "pre-installed" >&6; }
2429c060 13525 fi
be01d343
PB
13526else
13527 ok=yes
13528 case " ${configdirs} " in
13529 *" gcc "*) ;;
13530 *) ok=no ;;
13531 esac
13532 case ,${enable_languages}, in
13533 *,fortran,*) ;;
13534 *) ok=no ;;
13535 esac
13536 if test $ok = yes; then
13537 # An in-tree tool is available and we can use it
13538 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13540$as_echo "just compiled" >&6; }
2429c060
PB
13541 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13542 # We already found the complete path
b8025f34 13543 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13545$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13546 elif test "x$target" = "x$host"; then
13547 # We can use an host tool
13548 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13550$as_echo "host tool" >&6; }
be01d343
PB
13551 else
13552 # We need a cross tool
81ecdfbb
RW
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13554$as_echo "pre-installed" >&6; }
be01d343
PB
13555 fi
13556fi
4b900473 13557
e552509b
ILT
13558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13559$as_echo_n "checking where to find the target gccgo... " >&6; }
13560if test "x${build}" != "x${host}" ; then
13561 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13562 # We already found the complete path
13563 ac_dir=`dirname $GOC_FOR_TARGET`
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13565$as_echo "pre-installed in $ac_dir" >&6; }
13566 else
13567 # Canadian cross, just use what we found
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13569$as_echo "pre-installed" >&6; }
13570 fi
13571else
13572 ok=yes
13573 case " ${configdirs} " in
13574 *" gcc "*) ;;
13575 *) ok=no ;;
13576 esac
13577 case ,${enable_languages}, in
13578 *,go,*) ;;
13579 *) ok=no ;;
13580 esac
13581 if test $ok = yes; then
13582 # An in-tree tool is available and we can use it
13583 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13585$as_echo "just compiled" >&6; }
13586 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13587 # We already found the complete path
13588 ac_dir=`dirname $GOC_FOR_TARGET`
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13590$as_echo "pre-installed in $ac_dir" >&6; }
13591 elif test "x$target" = "x$host"; then
13592 # We can use an host tool
13593 GOC_FOR_TARGET='$(GOC)'
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13595$as_echo "host tool" >&6; }
13596 else
13597 # We need a cross tool
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13599$as_echo "pre-installed" >&6; }
13600 fi
13601fi
13602
81ecdfbb
RW
13603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13604$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13605if test "x${build}" != "x${host}" ; then
2429c060
PB
13606 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13607 # We already found the complete path
b8025f34 13608 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13610$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13611 else
13612 # Canadian cross, just use what we found
81ecdfbb
RW
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13614$as_echo "pre-installed" >&6; }
2429c060 13615 fi
be01d343
PB
13616else
13617 ok=yes
13618 case " ${configdirs} " in
13619 *" ld "*) ;;
13620 *) ok=no ;;
13621 esac
c6b750e1 13622
be01d343
PB
13623 if test $ok = yes; then
13624 # An in-tree tool is available and we can use it
13625 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13627$as_echo "just compiled" >&6; }
2429c060
PB
13628 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13629 # We already found the complete path
b8025f34 13630 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13632$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13633 elif test "x$target" = "x$host"; then
13634 # We can use an host tool
13635 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13637$as_echo "host tool" >&6; }
be01d343
PB
13638 else
13639 # We need a cross tool
81ecdfbb
RW
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13641$as_echo "pre-installed" >&6; }
be01d343
PB
13642 fi
13643fi
4b900473 13644
81ecdfbb
RW
13645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13646$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13647if test "x${build}" != "x${host}" ; then
2429c060
PB
13648 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13649 # We already found the complete path
b8025f34 13650 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13652$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13653 else
13654 # Canadian cross, just use what we found
81ecdfbb
RW
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13656$as_echo "pre-installed" >&6; }
2429c060 13657 fi
be01d343 13658else
2429c060
PB
13659 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13660 # We already found the complete path
b8025f34 13661 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13663$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13664 elif test "x$target" = "x$host"; then
be01d343
PB
13665 # We can use an host tool
13666 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13668$as_echo "host tool" >&6; }
be01d343
PB
13669 else
13670 # We need a cross tool
81ecdfbb
RW
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13672$as_echo "pre-installed" >&6; }
be01d343
PB
13673 fi
13674fi
4b900473 13675
81ecdfbb
RW
13676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13677$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13678if test "x${build}" != "x${host}" ; then
2429c060
PB
13679 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13680 # We already found the complete path
b8025f34 13681 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13683$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13684 else
13685 # Canadian cross, just use what we found
81ecdfbb
RW
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13687$as_echo "pre-installed" >&6; }
2429c060 13688 fi
be01d343
PB
13689else
13690 ok=yes
13691 case " ${configdirs} " in
13692 *" binutils "*) ;;
13693 *) ok=no ;;
13694 esac
c6b750e1 13695
be01d343
PB
13696 if test $ok = yes; then
13697 # An in-tree tool is available and we can use it
13698 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13700$as_echo "just compiled" >&6; }
2429c060
PB
13701 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13702 # We already found the complete path
b8025f34 13703 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13705$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13706 elif test "x$target" = "x$host"; then
13707 # We can use an host tool
13708 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13710$as_echo "host tool" >&6; }
be01d343
PB
13711 else
13712 # We need a cross tool
81ecdfbb
RW
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13714$as_echo "pre-installed" >&6; }
be01d343
PB
13715 fi
13716fi
4b900473 13717
81ecdfbb
RW
13718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13719$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13720if test "x${build}" != "x${host}" ; then
2429c060
PB
13721 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13722 # We already found the complete path
b8025f34 13723 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13725$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13726 else
13727 # Canadian cross, just use what we found
81ecdfbb
RW
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13729$as_echo "pre-installed" >&6; }
2429c060 13730 fi
be01d343
PB
13731else
13732 ok=yes
13733 case " ${configdirs} " in
13734 *" binutils "*) ;;
13735 *) ok=no ;;
13736 esac
c6b750e1 13737
be01d343
PB
13738 if test $ok = yes; then
13739 # An in-tree tool is available and we can use it
13740 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13742$as_echo "just compiled" >&6; }
2429c060
PB
13743 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13744 # We already found the complete path
b8025f34 13745 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13747$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13748 elif test "x$target" = "x$host"; then
13749 # We can use an host tool
13750 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13752$as_echo "host tool" >&6; }
be01d343
PB
13753 else
13754 # We need a cross tool
81ecdfbb
RW
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13756$as_echo "pre-installed" >&6; }
be01d343
PB
13757 fi
13758fi
4b900473 13759
81ecdfbb
RW
13760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13761$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13762if test "x${build}" != "x${host}" ; then
2429c060
PB
13763 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13764 # We already found the complete path
b8025f34 13765 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13767$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13768 else
13769 # Canadian cross, just use what we found
81ecdfbb
RW
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13771$as_echo "pre-installed" >&6; }
2429c060 13772 fi
be01d343
PB
13773else
13774 ok=yes
13775 case " ${configdirs} " in
13776 *" binutils "*) ;;
13777 *) ok=no ;;
13778 esac
c6b750e1 13779
be01d343
PB
13780 if test $ok = yes; then
13781 # An in-tree tool is available and we can use it
13782 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13784$as_echo "just compiled" >&6; }
2429c060
PB
13785 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13786 # We already found the complete path
b8025f34 13787 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13789$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13790 elif test "x$target" = "x$host"; then
13791 # We can use an host tool
13792 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13794$as_echo "host tool" >&6; }
be01d343
PB
13795 else
13796 # We need a cross tool
81ecdfbb
RW
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13798$as_echo "pre-installed" >&6; }
be01d343
PB
13799 fi
13800fi
4b900473 13801
81ecdfbb
RW
13802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13803$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 13804if test "x${build}" != "x${host}" ; then
2429c060
PB
13805 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13806 # We already found the complete path
b8025f34 13807 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13809$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13810 else
13811 # Canadian cross, just use what we found
81ecdfbb
RW
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13813$as_echo "pre-installed" >&6; }
2429c060 13814 fi
be01d343
PB
13815else
13816 ok=yes
13817 case " ${configdirs} " in
13818 *" binutils "*) ;;
13819 *) ok=no ;;
13820 esac
c6b750e1 13821
be01d343
PB
13822 if test $ok = yes; then
13823 # An in-tree tool is available and we can use it
9b980aa1 13824 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13826$as_echo "just compiled" >&6; }
2429c060
PB
13827 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13828 # We already found the complete path
b8025f34 13829 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13831$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13832 elif test "x$target" = "x$host"; then
13833 # We can use an host tool
13834 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13836$as_echo "host tool" >&6; }
be01d343
PB
13837 else
13838 # We need a cross tool
81ecdfbb
RW
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13840$as_echo "pre-installed" >&6; }
be01d343
PB
13841 fi
13842fi
4b900473 13843
81ecdfbb
RW
13844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13845$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 13846if test "x${build}" != "x${host}" ; then
2429c060
PB
13847 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13848 # We already found the complete path
b8025f34 13849 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13851$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13852 else
13853 # Canadian cross, just use what we found
81ecdfbb
RW
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13855$as_echo "pre-installed" >&6; }
2429c060 13856 fi
be01d343
PB
13857else
13858 ok=yes
13859 case " ${configdirs} " in
13860 *" binutils "*) ;;
13861 *) ok=no ;;
13862 esac
c6b750e1 13863
be01d343
PB
13864 if test $ok = yes; then
13865 # An in-tree tool is available and we can use it
13866 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13868$as_echo "just compiled" >&6; }
2429c060
PB
13869 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13870 # We already found the complete path
b8025f34 13871 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13873$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13874 elif test "x$target" = "x$host"; then
13875 # We can use an host tool
13876 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13878$as_echo "host tool" >&6; }
be01d343
PB
13879 else
13880 # We need a cross tool
81ecdfbb
RW
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13882$as_echo "pre-installed" >&6; }
be01d343 13883 fi
a0da8069 13884fi
54752a6b 13885
81ecdfbb
RW
13886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13887$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
13888if test "x${build}" != "x${host}" ; then
13889 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13890 # We already found the complete path
13891 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13893$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13894 else
13895 # Canadian cross, just use what we found
81ecdfbb
RW
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13897$as_echo "pre-installed" >&6; }
0c24b341
NC
13898 fi
13899else
13900 ok=yes
13901 case " ${configdirs} " in
13902 *" binutils "*) ;;
13903 *) ok=no ;;
13904 esac
13905
13906 if test $ok = yes; then
13907 # An in-tree tool is available and we can use it
13908 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13910$as_echo "just compiled" >&6; }
0c24b341
NC
13911 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13912 # We already found the complete path
13913 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13915$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13916 elif test "x$target" = "x$host"; then
13917 # We can use an host tool
13918 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13920$as_echo "host tool" >&6; }
0c24b341
NC
13921 else
13922 # We need a cross tool
81ecdfbb
RW
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13924$as_echo "pre-installed" >&6; }
0c24b341
NC
13925 fi
13926fi
13927
54752a6b
NN
13928
13929
be01d343 13930
4b900473 13931
a0da8069
NN
13932# Certain tools may need extra flags.
13933AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13934RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13935NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13936
be01d343
PB
13937# When building target libraries, except in a Canadian cross, we use
13938# the same toolchain as the compiler we just built.
13939COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13940COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13941COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13942if test $host = $build; then
13943 case " $configdirs " in
13944 *" gcc "*)
13945 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13946 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13947 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13948 ;;
13949 esac
13950fi
13951
13952
13953
13954
13955
81ecdfbb
RW
13956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13957$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13958# Check whether --enable-maintainer-mode was given.
13959if test "${enable_maintainer_mode+set}" = set; then :
13960 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
13961else
13962 USE_MAINTAINER_MODE=no
81ecdfbb
RW
13963fi
13964
13965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13966$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
13967
13968
13969if test "$USE_MAINTAINER_MODE" = yes; then
13970 MAINTAINER_MODE_TRUE=
13971 MAINTAINER_MODE_FALSE='#'
13972else
13973 MAINTAINER_MODE_TRUE='#'
13974 MAINTAINER_MODE_FALSE=
c6b750e1 13975fi
3d5e36ae
AO
13976MAINT=$MAINTAINER_MODE_TRUE
13977
1d39f329
NN
13978# ---------------------
13979# GCC bootstrap support
13980# ---------------------
13981
13982# Stage specific cflags for build.
13983stage1_cflags="-g"
13984case $build in
13985 vax-*-*)
13986 case ${GCC} in
13987 yes) stage1_cflags="-g -Wa,-J" ;;
13988 *) stage1_cflags="-g -J" ;;
13989 esac ;;
1d39f329
NN
13990esac
13991
1d89b610 13992# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 13993if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
13994 saved_CFLAGS="$CFLAGS"
13995
13996 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13997 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13999$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
14001/* end confdefs.h. */
14002
2038f525
PB
14003#if (__GNUC__ < 3) \
14004 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14005 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14006#error http://gcc.gnu.org/PR29382
14007#endif
14008
c6b750e1
DJ
14009int
14010main ()
14011{
14012
14013 ;
14014 return 0;
14015}
14016_ACEOF
81ecdfbb
RW
14017if ac_fn_c_try_compile "$LINENO"; then :
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14019$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 14020else
81ecdfbb
RW
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022$as_echo "no" >&6; }
c6b750e1 14023fi
81ecdfbb 14024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
14025
14026 CFLAGS="$saved_CFLAGS"
14027fi
14028
14029
1d39f329 14030
8a0d8a5c 14031# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14032# Check whether --enable-stage1-checking was given.
14033if test "${enable_stage1_checking+set}" = set; then :
14034 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14035else
5566c1fa 14036 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14037 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14038else
5566c1fa 14039 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14040fi
81ecdfbb 14041fi
8a0d8a5c
PB
14042
14043
c6b750e1 14044
81ecdfbb
RW
14045# Enable -Werror in bootstrap stage2 and later.
14046# Check whether --enable-werror was given.
14047if test "${enable_werror+set}" = set; then :
14048 enableval=$enable_werror;
1d39f329 14049else
a0323144 14050 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14051 enable_werror=yes
79fcd0ec
PB
14052else
14053 enable_werror=no
14054fi
81ecdfbb
RW
14055fi
14056
1a6f2dc7
NN
14057case ${enable_werror} in
14058 yes) stage2_werror_flag="--enable-werror-always" ;;
14059 *) stage2_werror_flag="" ;;
1d39f329
NN
14060esac
14061
14062
e8a5fa9c
RW
14063# Specify what files to not compare during bootstrap.
14064
14065compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14066case "$target" in
14067 hppa*64*-*-hpux*) ;;
14068 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14069esac
1f53ca9a
AO
14070case " $configdirs " in
14071*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14072esac
e8a5fa9c
RW
14073
14074
81ecdfbb
RW
14075ac_config_files="$ac_config_files Makefile"
14076
c6b750e1 14077cat >confcache <<\_ACEOF
a0da8069
NN
14078# This file is a shell script that caches the results of configure
14079# tests run on this system so they can be shared between configure
c6b750e1
DJ
14080# scripts and configure runs, see configure's option --config-cache.
14081# It is not useful on other systems. If it contains results you don't
14082# want to keep, you may remove or edit it.
a0da8069 14083#
c6b750e1
DJ
14084# config.status only pays attention to the cache file if you give it
14085# the --recheck option to rerun configure.
a0da8069 14086#
c6b750e1
DJ
14087# `ac_cv_env_foo' variables (set or unset) will be overridden when
14088# loading this file, other *unset* `ac_cv_foo' will be assigned the
14089# following values.
14090
14091_ACEOF
14092
a0da8069
NN
14093# The following way of writing the cache mishandles newlines in values,
14094# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14095# So, we kill variables containing newlines.
a0da8069
NN
14096# Ultrix sh set writes to stderr and can't be redirected directly,
14097# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14098(
14099 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14100 eval ac_val=\$$ac_var
14101 case $ac_val in #(
14102 *${as_nl}*)
14103 case $ac_var in #(
14104 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14105$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14106 esac
14107 case $ac_var in #(
14108 _ | IFS | as_nl) ;; #(
14109 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14110 *) { eval $ac_var=; unset $ac_var;} ;;
14111 esac ;;
14112 esac
14113 done
14114
c6b750e1 14115 (set) 2>&1 |
81ecdfbb
RW
14116 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14117 *${as_nl}ac_space=\ *)
14118 # `set' does not quote correctly, so add quotes: double-quote
14119 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14120 sed -n \
14121 "s/'/'\\\\''/g;
14122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14123 ;; #(
c6b750e1
DJ
14124 *)
14125 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14126 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14127 ;;
81ecdfbb
RW
14128 esac |
14129 sort
14130) |
c6b750e1 14131 sed '
81ecdfbb 14132 /^ac_cv_env_/b end
c6b750e1 14133 t clear
81ecdfbb 14134 :clear
c6b750e1
DJ
14135 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14136 t end
81ecdfbb
RW
14137 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14138 :end' >>confcache
14139if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14140 if test -w "$cache_file"; then
14141 test "x$cache_file" != "x/dev/null" &&
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14143$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14144 cat confcache >$cache_file
a0da8069 14145 else
81ecdfbb
RW
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14147$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14148 fi
852e5f18 14149fi
a0da8069 14150rm -f confcache
852e5f18 14151
a0da8069
NN
14152test "x$prefix" = xNONE && prefix=$ac_default_prefix
14153# Let make expand exec_prefix.
14154test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14155
a0da8069
NN
14156# Transform confdefs.h into DEFS.
14157# Protect against shell expansion while executing Makefile rules.
14158# Protect against Makefile macro expansion.
c6b750e1
DJ
14159#
14160# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14161# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14162# look for a macro that doesn't take arguments.
81ecdfbb
RW
14163ac_script='
14164:mline
14165/\\$/{
14166 N
14167 s,\\\n,,
14168 b mline
14169}
c6b750e1 14170t clear
81ecdfbb
RW
14171:clear
14172s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14173t quote
81ecdfbb 14174s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14175t quote
81ecdfbb
RW
14176b any
14177:quote
14178s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14179s/\[/\\&/g
14180s/\]/\\&/g
14181s/\$/$$/g
14182H
14183:any
14184${
14185 g
14186 s/^\n//
14187 s/\n/ /g
14188 p
14189}
14190'
14191DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14192
14193
14194ac_libobjs=
14195ac_ltlibobjs=
14196for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14197 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14198 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14199 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14200 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14201 # will be set to the directory where LIBOBJS objects are built.
14202 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14203 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14204done
14205LIBOBJS=$ac_libobjs
852e5f18 14206
c6b750e1 14207LTLIBOBJS=$ac_ltlibobjs
376a0e54 14208
cac3d6c4 14209
c6b750e1
DJ
14210
14211: ${CONFIG_STATUS=./config.status}
81ecdfbb 14212ac_write_fail=0
c6b750e1
DJ
14213ac_clean_files_save=$ac_clean_files
14214ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14215{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14216$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14217as_write_fail=0
14218cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14219#! $SHELL
14220# Generated by $as_me.
a0da8069 14221# Run this file to recreate the current configuration.
a0da8069 14222# Compiler output produced by configure, useful for debugging
c6b750e1 14223# configure, is in config.log if it exists.
376a0e54 14224
c6b750e1
DJ
14225debug=false
14226ac_cs_recheck=false
14227ac_cs_silent=false
c6b750e1 14228
81ecdfbb
RW
14229SHELL=\${CONFIG_SHELL-$SHELL}
14230export SHELL
14231_ASEOF
14232cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14233## -------------------- ##
14234## M4sh Initialization. ##
14235## -------------------- ##
14236
14237# Be more Bourne compatible
14238DUALCASE=1; export DUALCASE # for MKS sh
14239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14240 emulate sh
14241 NULLCMD=:
81ecdfbb 14242 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14243 # is contrary to our usage. Disable this feature.
14244 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14245 setopt NO_GLOB_SUBST
14246else
14247 case `(set -o) 2>/dev/null` in #(
14248 *posix*) :
14249 set -o posix ;; #(
14250 *) :
14251 ;;
14252esac
c6b750e1 14253fi
c6b750e1 14254
81ecdfbb
RW
14255
14256as_nl='
14257'
14258export as_nl
14259# Printing a long string crashes Solaris 7 /usr/bin/printf.
14260as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14261as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14262as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14263# Prefer a ksh shell builtin over an external printf program on Solaris,
14264# but without wasting forks for bash or zsh.
14265if test -z "$BASH_VERSION$ZSH_VERSION" \
14266 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14267 as_echo='print -r --'
14268 as_echo_n='print -rn --'
14269elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14270 as_echo='printf %s\n'
14271 as_echo_n='printf %s'
14272else
14273 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14274 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14275 as_echo_n='/usr/ucb/echo -n'
14276 else
14277 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14278 as_echo_n_body='eval
14279 arg=$1;
14280 case $arg in #(
14281 *"$as_nl"*)
14282 expr "X$arg" : "X\\(.*\\)$as_nl";
14283 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14284 esac;
14285 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14286 '
14287 export as_echo_n_body
14288 as_echo_n='sh -c $as_echo_n_body as_echo'
14289 fi
14290 export as_echo_body
14291 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14292fi
14293
81ecdfbb
RW
14294# The user is always right.
14295if test "${PATH_SEPARATOR+set}" != set; then
14296 PATH_SEPARATOR=:
14297 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14298 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14299 PATH_SEPARATOR=';'
14300 }
14301fi
14302
14303
14304# IFS
14305# We need space, tab and new line, in precisely that order. Quoting is
14306# there to prevent editors from complaining about space-tab.
14307# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14308# splitting by setting IFS to empty value.)
14309IFS=" "" $as_nl"
14310
14311# Find who we are. Look in the path if we contain no directory separator.
14312case $0 in #((
14313 *[\\/]* ) as_myself=$0 ;;
14314 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14315for as_dir in $PATH
14316do
14317 IFS=$as_save_IFS
14318 test -z "$as_dir" && as_dir=.
14319 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14320 done
14321IFS=$as_save_IFS
14322
14323 ;;
14324esac
14325# We did not find ourselves, most probably we were run as `sh COMMAND'
14326# in which case we are not to be found in the path.
14327if test "x$as_myself" = x; then
14328 as_myself=$0
14329fi
14330if test ! -f "$as_myself"; then
14331 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14332 exit 1
14333fi
c6b750e1 14334
81ecdfbb
RW
14335# Unset variables that we do not need and which cause bugs (e.g. in
14336# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14337# suppresses any "Segmentation fault" message there. '((' could
14338# trigger a bug in pdksh 5.2.14.
14339for as_var in BASH_ENV ENV MAIL MAILPATH
14340do eval test x\${$as_var+set} = xset \
14341 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14342done
c6b750e1
DJ
14343PS1='$ '
14344PS2='> '
14345PS4='+ '
14346
14347# NLS nuisances.
81ecdfbb
RW
14348LC_ALL=C
14349export LC_ALL
14350LANGUAGE=C
14351export LANGUAGE
14352
14353# CDPATH.
14354(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14355
14356
14357# as_fn_error ERROR [LINENO LOG_FD]
14358# ---------------------------------
14359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14361# script with status $?, using 1 if that was 0.
14362as_fn_error ()
14363{
14364 as_status=$?; test $as_status -eq 0 && as_status=1
14365 if test "$3"; then
14366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14368 fi
81ecdfbb
RW
14369 $as_echo "$as_me: error: $1" >&2
14370 as_fn_exit $as_status
14371} # as_fn_error
14372
14373
14374# as_fn_set_status STATUS
14375# -----------------------
14376# Set $? to STATUS, without forking.
14377as_fn_set_status ()
14378{
14379 return $1
14380} # as_fn_set_status
14381
14382# as_fn_exit STATUS
14383# -----------------
14384# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14385as_fn_exit ()
14386{
14387 set +e
14388 as_fn_set_status $1
14389 exit $1
14390} # as_fn_exit
14391
14392# as_fn_unset VAR
14393# ---------------
14394# Portably unset VAR.
14395as_fn_unset ()
14396{
14397 { eval $1=; unset $1;}
14398}
14399as_unset=as_fn_unset
14400# as_fn_append VAR VALUE
14401# ----------------------
14402# Append the text in VALUE to the end of the definition contained in VAR. Take
14403# advantage of any shell optimizations that allow amortized linear growth over
14404# repeated appends, instead of the typical quadratic growth present in naive
14405# implementations.
14406if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14407 eval 'as_fn_append ()
14408 {
14409 eval $1+=\$2
14410 }'
14411else
14412 as_fn_append ()
14413 {
14414 eval $1=\$$1\$2
14415 }
14416fi # as_fn_append
14417
14418# as_fn_arith ARG...
14419# ------------------
14420# Perform arithmetic evaluation on the ARGs, and store the result in the
14421# global $as_val. Take advantage of shells that can avoid forks. The arguments
14422# must be portable across $(()) and expr.
14423if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14424 eval 'as_fn_arith ()
14425 {
14426 as_val=$(( $* ))
14427 }'
14428else
14429 as_fn_arith ()
14430 {
14431 as_val=`expr "$@" || test $? -eq 1`
14432 }
14433fi # as_fn_arith
14434
c6b750e1 14435
81ecdfbb
RW
14436if expr a : '\(a\)' >/dev/null 2>&1 &&
14437 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14438 as_expr=expr
14439else
14440 as_expr=false
14441fi
14442
81ecdfbb 14443if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14444 as_basename=basename
14445else
14446 as_basename=false
14447fi
14448
81ecdfbb
RW
14449if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14450 as_dirname=dirname
14451else
14452 as_dirname=false
14453fi
c6b750e1 14454
81ecdfbb 14455as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14456$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14457 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14458 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14459$as_echo X/"$0" |
14460 sed '/^.*\/\([^/][^/]*\)\/*$/{
14461 s//\1/
14462 q
14463 }
14464 /^X\/\(\/\/\)$/{
14465 s//\1/
14466 q
14467 }
14468 /^X\/\(\/\).*/{
14469 s//\1/
14470 q
14471 }
14472 s/.*/./; q'`
c6b750e1 14473
c6b750e1
DJ
14474# Avoid depending upon Character Ranges.
14475as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14476as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14477as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14478as_cr_digits='0123456789'
14479as_cr_alnum=$as_cr_Letters$as_cr_digits
14480
81ecdfbb
RW
14481ECHO_C= ECHO_N= ECHO_T=
14482case `echo -n x` in #(((((
14483-n*)
14484 case `echo 'xy\c'` in
14485 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14486 xy) ECHO_C='\c';;
14487 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14488 ECHO_T=' ';;
14489 esac;;
14490*)
14491 ECHO_N='-n';;
c6b750e1
DJ
14492esac
14493
81ecdfbb
RW
14494rm -f conf$$ conf$$.exe conf$$.file
14495if test -d conf$$.dir; then
14496 rm -f conf$$.dir/conf$$.file
c6b750e1 14497else
81ecdfbb
RW
14498 rm -f conf$$.dir
14499 mkdir conf$$.dir 2>/dev/null
c6b750e1 14500fi
81ecdfbb
RW
14501if (echo >conf$$.file) 2>/dev/null; then
14502 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14503 as_ln_s='ln -s'
81ecdfbb
RW
14504 # ... but there are two gotchas:
14505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14507 # In both cases, we have to default to `cp -p'.
14508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14509 as_ln_s='cp -p'
14510 elif ln conf$$.file conf$$ 2>/dev/null; then
14511 as_ln_s=ln
14512 else
14513 as_ln_s='cp -p'
c6b750e1 14514 fi
c6b750e1
DJ
14515else
14516 as_ln_s='cp -p'
14517fi
81ecdfbb
RW
14518rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14519rmdir conf$$.dir 2>/dev/null
14520
14521
14522# as_fn_mkdir_p
14523# -------------
14524# Create "$as_dir" as a directory, including parents if necessary.
14525as_fn_mkdir_p ()
14526{
14527
14528 case $as_dir in #(
14529 -*) as_dir=./$as_dir;;
14530 esac
14531 test -d "$as_dir" || eval $as_mkdir_p || {
14532 as_dirs=
14533 while :; do
14534 case $as_dir in #(
14535 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14536 *) as_qdir=$as_dir;;
14537 esac
14538 as_dirs="'$as_qdir' $as_dirs"
14539 as_dir=`$as_dirname -- "$as_dir" ||
14540$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14541 X"$as_dir" : 'X\(//\)[^/]' \| \
14542 X"$as_dir" : 'X\(//\)$' \| \
14543 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14544$as_echo X"$as_dir" |
14545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14546 s//\1/
14547 q
14548 }
14549 /^X\(\/\/\)[^/].*/{
14550 s//\1/
14551 q
14552 }
14553 /^X\(\/\/\)$/{
14554 s//\1/
14555 q
14556 }
14557 /^X\(\/\).*/{
14558 s//\1/
14559 q
14560 }
14561 s/.*/./; q'`
14562 test -d "$as_dir" && break
14563 done
14564 test -z "$as_dirs" || eval "mkdir $as_dirs"
14565 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14566
c6b750e1 14567
81ecdfbb 14568} # as_fn_mkdir_p
c6b750e1 14569if mkdir -p . 2>/dev/null; then
81ecdfbb 14570 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14571else
14572 test -d ./-p && rmdir ./-p
14573 as_mkdir_p=false
14574fi
14575
81ecdfbb
RW
14576if test -x / >/dev/null 2>&1; then
14577 as_test_x='test -x'
14578else
14579 if ls -dL / >/dev/null 2>&1; then
14580 as_ls_L_option=L
14581 else
14582 as_ls_L_option=
14583 fi
14584 as_test_x='
14585 eval sh -c '\''
14586 if test -d "$1"; then
14587 test -d "$1/.";
14588 else
14589 case $1 in #(
14590 -*)set "./$1";;
14591 esac;
14592 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14593 ???[sx]*):;;*)false;;esac;fi
14594 '\'' sh
14595 '
14596fi
14597as_executable_p=$as_test_x
c6b750e1
DJ
14598
14599# Sed expression to map a string onto a valid CPP name.
14600as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14601
14602# Sed expression to map a string onto a valid variable name.
14603as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14604
14605
c6b750e1 14606exec 6>&1
81ecdfbb
RW
14607## ----------------------------------- ##
14608## Main body of $CONFIG_STATUS script. ##
14609## ----------------------------------- ##
14610_ASEOF
14611test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14612
14613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14614# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14615# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14616# values after options handling.
14617ac_log="
c6b750e1 14618This file was extended by $as_me, which was
81ecdfbb 14619generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14620
14621 CONFIG_FILES = $CONFIG_FILES
14622 CONFIG_HEADERS = $CONFIG_HEADERS
14623 CONFIG_LINKS = $CONFIG_LINKS
14624 CONFIG_COMMANDS = $CONFIG_COMMANDS
14625 $ $0 $@
14626
81ecdfbb
RW
14627on `(hostname || uname -n) 2>/dev/null | sed 1q`
14628"
14629
c6b750e1
DJ
14630_ACEOF
14631
81ecdfbb
RW
14632case $ac_config_files in *"
14633"*) set x $ac_config_files; shift; ac_config_files=$*;;
14634esac
c6b750e1 14635
c6b750e1 14636
c6b750e1 14637
81ecdfbb
RW
14638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14639# Files that config.status was made for.
14640config_files="$ac_config_files"
c6b750e1 14641
81ecdfbb 14642_ACEOF
c6b750e1 14643
81ecdfbb 14644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14645ac_cs_usage="\
81ecdfbb
RW
14646\`$as_me' instantiates files and other configuration actions
14647from templates according to the current configuration. Unless the files
14648and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14649
81ecdfbb 14650Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14651
14652 -h, --help print this help, then exit
81ecdfbb
RW
14653 -V, --version print version number and configuration settings, then exit
14654 -q, --quiet, --silent
14655 do not print progress messages
c6b750e1
DJ
14656 -d, --debug don't remove temporary files
14657 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14658 --file=FILE[:TEMPLATE]
14659 instantiate the configuration file FILE
c6b750e1
DJ
14660
14661Configuration files:
14662$config_files
14663
81ecdfbb 14664Report bugs to the package provider."
c6b750e1 14665
81ecdfbb
RW
14666_ACEOF
14667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14668ac_cs_version="\\
14669config.status
81ecdfbb
RW
14670configured by $0, generated by GNU Autoconf 2.64,
14671 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14672
81ecdfbb 14673Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14674This config.status script is free software; the Free Software Foundation
14675gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14676
14677ac_pwd='$ac_pwd'
14678srcdir='$srcdir'
14679INSTALL='$INSTALL'
8e957354 14680AWK='$AWK'
81ecdfbb 14681test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14682_ACEOF
14683
81ecdfbb
RW
14684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14685# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14686ac_need_defaults=:
14687while test $# != 0
a0da8069 14688do
c6b750e1
DJ
14689 case $1 in
14690 --*=*)
81ecdfbb
RW
14691 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14692 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14693 ac_shift=:
14694 ;;
81ecdfbb 14695 *)
c6b750e1
DJ
14696 ac_option=$1
14697 ac_optarg=$2
14698 ac_shift=shift
14699 ;;
c6b750e1
DJ
14700 esac
14701
14702 case $ac_option in
14703 # Handling of the options.
a0da8069 14704 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14705 ac_cs_recheck=: ;;
81ecdfbb
RW
14706 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14707 $as_echo "$ac_cs_version"; exit ;;
14708 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14709 debug=: ;;
14710 --file | --fil | --fi | --f )
14711 $ac_shift
81ecdfbb
RW
14712 case $ac_optarg in
14713 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14714 esac
14715 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14716 ac_need_defaults=false;;
81ecdfbb
RW
14717 --he | --h | --help | --hel | -h )
14718 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14719 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14720 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14721 ac_cs_silent=: ;;
14722
14723 # This is an error.
81ecdfbb
RW
14724 -*) as_fn_error "unrecognized option: \`$1'
14725Try \`$0 --help' for more information." ;;
c6b750e1 14726
81ecdfbb
RW
14727 *) as_fn_append ac_config_targets " $1"
14728 ac_need_defaults=false ;;
c6b750e1 14729
376a0e54 14730 esac
c6b750e1 14731 shift
376a0e54
CM
14732done
14733
c6b750e1 14734ac_configure_extra_args=
376a0e54 14735
c6b750e1
DJ
14736if $ac_cs_silent; then
14737 exec 6>/dev/null
14738 ac_configure_extra_args="$ac_configure_extra_args --silent"
14739fi
376a0e54 14740
c6b750e1 14741_ACEOF
81ecdfbb 14742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14743if \$ac_cs_recheck; then
81ecdfbb
RW
14744 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14745 shift
14746 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14747 CONFIG_SHELL='$SHELL'
14748 export CONFIG_SHELL
14749 exec "\$@"
c6b750e1
DJ
14750fi
14751
14752_ACEOF
81ecdfbb
RW
14753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14754exec 5>>config.log
14755{
14756 echo
14757 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14758## Running $as_me. ##
14759_ASBOX
14760 $as_echo "$ac_log"
14761} >&5
c6b750e1 14762
81ecdfbb
RW
14763_ACEOF
14764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14765#
14766# INIT-COMMANDS
14767#
14768extrasub_build="$extrasub_build"
14769 extrasub_host="$extrasub_host"
14770 extrasub_target="$extrasub_target"
14771
81ecdfbb 14772_ACEOF
c6b750e1 14773
81ecdfbb 14774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14775
81ecdfbb 14776# Handling of arguments.
c6b750e1
DJ
14777for ac_config_target in $ac_config_targets
14778do
81ecdfbb
RW
14779 case $ac_config_target in
14780 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14781
14782 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14783 esac
14784done
14785
81ecdfbb 14786
c6b750e1
DJ
14787# If the user did not use the arguments to specify the items to instantiate,
14788# then the envvar interface is used. Set only those that are not.
14789# We use the long form for the default assignment because of an extremely
14790# bizarre bug on SunOS 4.1.3.
14791if $ac_need_defaults; then
14792 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14793fi
14794
14795# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14796# simply because there is no reason against having it here, and in addition,
c6b750e1 14797# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14798# Hook for its removal unless debugging.
14799# Note that there is a small window in which the directory will not be cleaned:
14800# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14801$debug ||
14802{
81ecdfbb
RW
14803 tmp=
14804 trap 'exit_status=$?
14805 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14806' 0
14807 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14808}
c6b750e1
DJ
14809# Create a (secure) tmp directory for tmp files.
14810
14811{
81ecdfbb 14812 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14813 test -n "$tmp" && test -d "$tmp"
14814} ||
14815{
81ecdfbb
RW
14816 tmp=./conf$$-$RANDOM
14817 (umask 077 && mkdir "$tmp")
14818} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14819
14820# Set up the scripts for CONFIG_FILES section.
14821# No need to generate them if there are no CONFIG_FILES.
14822# This happens for instance with `./config.status config.h'.
14823if test -n "$CONFIG_FILES"; then
14824
14825if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14826 ac_cs_awk_getline=:
14827 ac_cs_awk_pipe_init=
14828 ac_cs_awk_read_file='
14829 while ((getline aline < (F[key])) > 0)
14830 print(aline)
14831 close(F[key])'
14832 ac_cs_awk_pipe_fini=
14833else
14834 ac_cs_awk_getline=false
14835 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14836 ac_cs_awk_read_file='
14837 print "|#_!!_#|"
14838 print "cat " F[key] " &&"
14839 '$ac_cs_awk_pipe_init
14840 # The final `:' finishes the AND list.
14841 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14842fi
14843ac_cr=`echo X | tr X '\015'`
14844# On cygwin, bash can eat \r inside `` if the user requested igncr.
14845# But we know of no other shell where ac_cr would be empty at this
14846# point, so we can use a bashism as a fallback.
14847if test "x$ac_cr" = x; then
14848 eval ac_cr=\$\'\\r\'
14849fi
14850ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14851if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14852 ac_cs_awk_cr='\r'
14853else
14854 ac_cs_awk_cr=$ac_cr
14855fi
14856
14857echo 'BEGIN {' >"$tmp/subs1.awk" &&
14858_ACEOF
14859
14860# Create commands to substitute file output variables.
c6b750e1 14861{
81ecdfbb
RW
14862 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14863 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14864 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14865 echo "_ACAWK" &&
14866 echo "_ACEOF"
14867} >conf$$files.sh &&
14868. ./conf$$files.sh ||
14869 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14870rm -f conf$$files.sh
c6b750e1 14871
81ecdfbb
RW
14872{
14873 echo "cat >conf$$subs.awk <<_ACEOF" &&
14874 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14875 echo "_ACEOF"
14876} >conf$$subs.sh ||
14877 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14878ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14879ac_delim='%!_!# '
14880for ac_last_try in false false false false false :; do
14881 . ./conf$$subs.sh ||
14882 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14883
14884 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14885 if test $ac_delim_n = $ac_delim_num; then
14886 break
14887 elif $ac_last_try; then
14888 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14889 else
14890 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14891 fi
14892done
14893rm -f conf$$subs.sh
14894
14895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14896cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 14897_ACEOF
81ecdfbb
RW
14898sed -n '
14899h
14900s/^/S["/; s/!.*/"]=/
14901p
14902g
14903s/^[^!]*!//
14904:repl
14905t repl
14906s/'"$ac_delim"'$//
14907t delim
14908:nl
14909h
14910s/\(.\{148\}\).*/\1/
14911t more1
14912s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14913p
14914n
14915b repl
14916:more1
14917s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14918p
14919g
14920s/.\{148\}//
14921t nl
14922:delim
14923h
14924s/\(.\{148\}\).*/\1/
14925t more2
14926s/["\\]/\\&/g; s/^/"/; s/$/"/
14927p
14928b
14929:more2
14930s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14931p
14932g
14933s/.\{148\}//
14934t delim
14935' <conf$$subs.awk | sed '
14936/^[^""]/{
14937 N
14938 s/\n//
14939}
14940' >>$CONFIG_STATUS || ac_write_fail=1
14941rm -f conf$$subs.awk
14942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14943_ACAWK
14944cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14945 for (key in S) S_is_set[key] = 1
14946 FS = "\a"
14947 \$ac_cs_awk_pipe_init
14948}
14949{
14950 line = $ 0
14951 nfields = split(line, field, "@")
14952 substed = 0
14953 len = length(field[1])
14954 for (i = 2; i < nfields; i++) {
14955 key = field[i]
14956 keylen = length(key)
14957 if (S_is_set[key]) {
14958 value = S[key]
14959 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14960 len += length(value) + length(field[++i])
14961 substed = 1
14962 } else
14963 len += 1 + keylen
14964 }
14965 if (nfields == 3 && !substed) {
14966 key = field[2]
14967 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14968 \$ac_cs_awk_read_file
14969 next
14970 }
14971 }
14972 print line
14973}
14974\$ac_cs_awk_pipe_fini
14975_ACAWK
14976_ACEOF
14977cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14978if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14979 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14980else
14981 cat
14982fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14983 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14984_ACEOF
14985
14986# VPATH may cause trouble with some makes, so we remove $(srcdir),
14987# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14988# trailing colons and then remove the whole line if VPATH becomes empty
14989# (actually we leave an empty line to preserve line numbers).
14990if test "x$srcdir" = x.; then
14991 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14992s/:*\$(srcdir):*/:/
14993s/:*\${srcdir}:*/:/
14994s/:*@srcdir@:*/:/
14995s/^\([^=]*=[ ]*\):*/\1/
14996s/:*$//
14997s/^[^=]*=[ ]*$//
14998}'
14999fi
c6b750e1 15000
81ecdfbb
RW
15001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15002fi # test -n "$CONFIG_FILES"
c6b750e1 15003
c6b750e1 15004
81ecdfbb
RW
15005eval set X " :F $CONFIG_FILES "
15006shift
15007for ac_tag
15008do
15009 case $ac_tag in
15010 :[FHLC]) ac_mode=$ac_tag; continue;;
15011 esac
15012 case $ac_mode$ac_tag in
15013 :[FHL]*:*);;
15014 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15015 :[FH]-) ac_tag=-:-;;
15016 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15017 esac
15018 ac_save_IFS=$IFS
15019 IFS=:
15020 set x $ac_tag
15021 IFS=$ac_save_IFS
15022 shift
15023 ac_file=$1
15024 shift
252b5132 15025
81ecdfbb
RW
15026 case $ac_mode in
15027 :L) ac_source=$1;;
15028 :[FH])
15029 ac_file_inputs=
15030 for ac_f
15031 do
15032 case $ac_f in
15033 -) ac_f="$tmp/stdin";;
15034 *) # Look for the file first in the build tree, then in the source tree
15035 # (if the path is not absolute). The absolute path cannot be DOS-style,
15036 # because $ac_f cannot contain `:'.
15037 test -f "$ac_f" ||
15038 case $ac_f in
15039 [\\/$]*) false;;
15040 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15041 esac ||
15042 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15043 esac
15044 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15045 as_fn_append ac_file_inputs " '$ac_f'"
15046 done
c6b750e1 15047
81ecdfbb
RW
15048 # Let's still pretend it is `configure' which instantiates (i.e., don't
15049 # use $as_me), people would be surprised to read:
15050 # /* config.h. Generated by config.status. */
15051 configure_input='Generated from '`
15052 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15053 `' by configure.'
15054 if test x"$ac_file" != x-; then
15055 configure_input="$ac_file. $configure_input"
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15057$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15058 fi
81ecdfbb
RW
15059 # Neutralize special characters interpreted by sed in replacement strings.
15060 case $configure_input in #(
15061 *\&* | *\|* | *\\* )
15062 ac_sed_conf_input=`$as_echo "$configure_input" |
15063 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15064 *) ac_sed_conf_input=$configure_input;;
15065 esac
cac3d6c4 15066
81ecdfbb
RW
15067 case $ac_tag in
15068 *:-:* | *:-) cat >"$tmp/stdin" \
15069 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15070 esac
15071 ;;
a0da8069 15072 esac
252b5132 15073
81ecdfbb 15074 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15075$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15076 X"$ac_file" : 'X\(//\)[^/]' \| \
15077 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15078 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15079$as_echo X"$ac_file" |
15080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15081 s//\1/
15082 q
15083 }
15084 /^X\(\/\/\)[^/].*/{
15085 s//\1/
15086 q
15087 }
15088 /^X\(\/\/\)$/{
15089 s//\1/
15090 q
15091 }
15092 /^X\(\/\).*/{
15093 s//\1/
15094 q
15095 }
15096 s/.*/./; q'`
15097 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15098 ac_builddir=.
252b5132 15099
81ecdfbb
RW
15100case "$ac_dir" in
15101.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15102*)
15103 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15104 # A ".." for each directory in $ac_dir_suffix.
15105 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15106 case $ac_top_builddir_sub in
15107 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15108 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15109 esac ;;
15110esac
15111ac_abs_top_builddir=$ac_pwd
15112ac_abs_builddir=$ac_pwd$ac_dir_suffix
15113# for backward compatibility:
15114ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15115
15116case $srcdir in
81ecdfbb 15117 .) # We are building in place.
c6b750e1 15118 ac_srcdir=.
81ecdfbb
RW
15119 ac_top_srcdir=$ac_top_builddir_sub
15120 ac_abs_top_srcdir=$ac_pwd ;;
15121 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15122 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15123 ac_top_srcdir=$srcdir
15124 ac_abs_top_srcdir=$srcdir ;;
15125 *) # Relative name.
15126 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15127 ac_top_srcdir=$ac_top_build_prefix$srcdir
15128 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15129esac
81ecdfbb 15130ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15131
252b5132 15132
81ecdfbb
RW
15133 case $ac_mode in
15134 :F)
15135 #
15136 # CONFIG_FILE
15137 #
c6b750e1
DJ
15138
15139 case $INSTALL in
15140 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15141 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15142 esac
81ecdfbb 15143_ACEOF
252b5132 15144
81ecdfbb
RW
15145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15146# If the template does not know about datarootdir, expand it.
15147# FIXME: This hack should be removed a few years after 2.60.
15148ac_datarootdir_hack=; ac_datarootdir_seen=
15149ac_sed_dataroot='
15150/datarootdir/ {
15151 p
15152 q
15153}
15154/@datadir@/p
15155/@docdir@/p
15156/@infodir@/p
15157/@localedir@/p
15158/@mandir@/p'
15159case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15160*datarootdir*) ac_datarootdir_seen=yes;;
15161*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15163$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15164_ACEOF
81ecdfbb
RW
15165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15166 ac_datarootdir_hack='
15167 s&@datadir@&$datadir&g
15168 s&@docdir@&$docdir&g
15169 s&@infodir@&$infodir&g
15170 s&@localedir@&$localedir&g
15171 s&@mandir@&$mandir&g
15172 s&\\\${datarootdir}&$datarootdir&g' ;;
15173esac
15174_ACEOF
15175
15176# Neutralize VPATH when `$srcdir' = `.'.
15177# Shell code in configure.ac might set extrasub.
15178# FIXME: do we really want to maintain this feature?
15179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15180ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15181$extrasub
15182_ACEOF
81ecdfbb 15183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15184:t
15185/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15186s|@configure_input@|$ac_sed_conf_input|;t t
15187s&@top_builddir@&$ac_top_builddir_sub&;t t
15188s&@top_build_prefix@&$ac_top_build_prefix&;t t
15189s&@srcdir@&$ac_srcdir&;t t
15190s&@abs_srcdir@&$ac_abs_srcdir&;t t
15191s&@top_srcdir@&$ac_top_srcdir&;t t
15192s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15193s&@builddir@&$ac_builddir&;t t
15194s&@abs_builddir@&$ac_abs_builddir&;t t
15195s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15196s&@INSTALL@&$ac_INSTALL&;t t
15197$ac_datarootdir_hack
15198"
15199eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15200if $ac_cs_awk_getline; then
15201 $AWK -f "$tmp/subs.awk"
15202else
15203 $AWK -f "$tmp/subs.awk" | $SHELL
15204fi >$tmp/out \
15205 || as_fn_error "could not create $ac_file" "$LINENO" 5
15206
15207test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15208 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15209 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15211which seems to be undefined. Please make sure it is defined." >&5
15212$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15213which seems to be undefined. Please make sure it is defined." >&2;}
15214
15215 rm -f "$tmp/stdin"
15216 case $ac_file in
15217 -) cat "$tmp/out" && rm -f "$tmp/out";;
15218 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15219 esac \
15220 || as_fn_error "could not create $ac_file" "$LINENO" 5
15221 ;;
c148b4cb 15222
c148b4cb 15223
c148b4cb 15224
81ecdfbb
RW
15225 esac
15226
06a51eac
RW
15227
15228 case $ac_file$ac_mode in
15229 "Makefile":F) sed "$extrasub_build" Makefile |
15230 sed "$extrasub_host" |
15231 sed "$extrasub_target" > mf$$
15232 mv -f mf$$ Makefile ;;
15233
15234 esac
81ecdfbb
RW
15235done # for ac_tag
15236
15237
15238as_fn_exit 0
c6b750e1 15239_ACEOF
c6b750e1
DJ
15240ac_clean_files=$ac_clean_files_save
15241
81ecdfbb
RW
15242test $ac_write_fail = 0 ||
15243 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15244
c6b750e1
DJ
15245
15246# configure is writing to config.log, and then calls config.status.
15247# config.status does its own redirection, appending to config.log.
15248# Unfortunately, on DOS this fails, as config.log is still kept open
15249# by configure, so config.status won't be able to write to it; its
15250# output is simply discarded. So we exec the FD to /dev/null,
15251# effectively closing config.log, so it can be properly (re)opened and
15252# appended to by config.status. When coming back to configure, we
15253# need to make the FD available again.
15254if test "$no_create" != yes; then
15255 ac_cs_success=:
15256 ac_config_status_args=
15257 test "$silent" = yes &&
15258 ac_config_status_args="$ac_config_status_args --quiet"
15259 exec 5>/dev/null
15260 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15261 exec 5>>config.log
15262 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15263 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15264 $ac_cs_success || as_fn_exit $?
15265fi
15266if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15268$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15269fi
c148b4cb 15270
This page took 1.513158 seconds and 4 git commands to generate.