]> gcc.gnu.org Git - gcc.git/blame - configure
[Patch AArch64] Fix up BSL expander for floating point types
[gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
5213506e
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.
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
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 :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
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 }
1c710c3c
DJ
79fi
80
81
5213506e
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
1c710c3c
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
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'\" &&
87264276
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"
5213506e
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
1c710c3c 184do
5213506e
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."
1c710c3c 228 else
5213506e
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."
1c710c3c 233 fi
5213506e
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
1c710c3c 263
5213506e
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
1c710c3c
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
5213506e 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
5213506e
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
1c710c3c 391
5213506e 392as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
5213506e
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'`
1c710c3c 410
2aeb72e9
DD
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
11a67599 417
1c710c3c 418
5213506e
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 |
1c710c3c 428 sed '
5213506e
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
1c710c3c 433 N
5213506e
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 436 t loop
5213506e 437 s/-\n.*//
1c710c3c 438 ' >$as_me.lineno &&
5213506e
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; }
1c710c3c
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
5213506e
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
1c710c3c
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
5213506e
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';;
1c710c3c
DJ
461esac
462
5213506e
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
1c710c3c 466else
5213506e
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
1c710c3c 469fi
5213506e
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 472 as_ln_s='ln -s'
5213506e
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'
2aeb72e9 483 fi
1c710c3c
DJ
484else
485 as_ln_s='cp -p'
486fi
5213506e
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
489
490if mkdir -p . 2>/dev/null; then
5213506e 491 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
5213506e
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
0b0dc272 519
1c710c3c
DJ
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
5213506e 527exec 7<&0 </dev/null 6>&1
1c710c3c
DJ
528
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
1c710c3c
DJ
534#
535# Initializations.
536#
671aa708 537ac_default_prefix=/usr/local
5213506e 538ac_clean_files=
1c710c3c 539ac_config_libobj_dir=.
5213506e 540LIBOBJS=
1c710c3c
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
2aeb72e9 545
1c710c3c
DJ
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
5213506e 552PACKAGE_URL=
1c710c3c
DJ
553
554ac_unique_file="move-if-change"
5213506e
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
459260ec 559host_shared
5213506e
RW
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
e7a82751 574READELF_FOR_TARGET
5213506e
RW
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
577NM_FOR_TARGET
578LIPO_FOR_TARGET
579LD_FOR_TARGET
580DLLTOOL_FOR_TARGET
581AS_FOR_TARGET
582AR_FOR_TARGET
632e2a07 583GOC_FOR_TARGET
5213506e
RW
584GFORTRAN_FOR_TARGET
585GCJ_FOR_TARGET
586GCC_FOR_TARGET
587CXX_FOR_TARGET
588CC_FOR_TARGET
e7a82751 589READELF
5213506e
RW
590OBJDUMP
591OBJCOPY
592WINDMC
593WINDRES
594STRIP
595RANLIB
596NM
597LIPO
598LD
599DLLTOOL
600AS
601AR
602RUNTEST
603EXPECT
604MAKEINFO
605FLEX
606LEX
607M4
608BISON
609YACC
5213506e
RW
610WINDRES_FOR_BUILD
611WINDMC_FOR_BUILD
612RANLIB_FOR_BUILD
613NM_FOR_BUILD
614LD_FOR_BUILD
615LDFLAGS_FOR_BUILD
632e2a07 616GOC_FOR_BUILD
5213506e
RW
617GFORTRAN_FOR_BUILD
618GCJ_FOR_BUILD
619DLLTOOL_FOR_BUILD
620CXX_FOR_BUILD
621CXXFLAGS_FOR_BUILD
622CFLAGS_FOR_BUILD
623CC_FOR_BUILD
624AS_FOR_BUILD
625AR_FOR_BUILD
aae29963 626target_configdirs
5213506e 627configdirs
5213506e 628build_configdirs
5213506e
RW
629INSTALL_GDB_TK
630GDB_TK
631CONFIGURE_GDB_TK
632build_tooldir
633tooldir
634GCC_SHLIB_SUBDIR
635RPATH_ENVVAR
ffedf511
RW
636target_configargs
637host_configargs
638build_configargs
e12c4094 639BUILD_CONFIG
6f57bdf6 640LDFLAGS_FOR_TARGET
5213506e
RW
641CXXFLAGS_FOR_TARGET
642CFLAGS_FOR_TARGET
643DEBUG_PREFIX_CFLAGS_FOR_TARGET
644SYSROOT_CFLAGS_FOR_TARGET
d7f09764 645extra_host_libiberty_configure_flags
fca38047 646stage1_languages
45b3824d
TS
647extra_linker_plugin_flags
648extra_linker_plugin_configure_flags
5213506e
RW
649clooginc
650clooglibs
33ad93b9 651islinc
eae1a5d4 652isllibs
5213506e 653poststage1_ldflags
ed2eaa9f 654poststage1_libs
5213506e 655stage1_ldflags
0b21f5d3 656stage1_libs
0ff2d841 657extra_isl_gmp_configure_flags
5213506e
RW
658extra_mpc_mpfr_configure_flags
659extra_mpc_gmp_configure_flags
660extra_mpfr_configure_flags
661gmpinc
662gmplibs
663do_compare
664GNATMAKE
665GNATBIND
666ac_ct_CXX
667CXXFLAGS
668CXX
669OBJEXT
670EXEEXT
671ac_ct_CC
672CPPFLAGS
673LDFLAGS
674CFLAGS
675CC
a4a2c37d 676EXTRA_CONFIGARGS_LIBJAVA
5213506e
RW
677target_subdir
678host_subdir
679build_subdir
680build_libsubdir
87264276
PB
681AWK
682SED
5213506e
RW
683LN_S
684LN
685INSTALL_DATA
686INSTALL_SCRIPT
687INSTALL_PROGRAM
688target_os
689target_vendor
690target_cpu
691target
692host_os
693host_vendor
694host_cpu
695host
696target_noncanonical
697host_noncanonical
698build_noncanonical
699build_os
700build_vendor
701build_cpu
702build
703TOPLEVEL_CONFIGURE_ARGUMENTS
704target_alias
705host_alias
706build_alias
707LIBS
708ECHO_T
709ECHO_N
710ECHO_C
711DEFS
712mandir
713localedir
714libdir
715psdir
716pdfdir
717dvidir
718htmldir
719infodir
720docdir
721oldincludedir
722includedir
723localstatedir
724sharedstatedir
725sysconfdir
726datadir
727datarootdir
728libexecdir
729sbindir
730bindir
731program_transform_name
732prefix
733exec_prefix
734PACKAGE_URL
735PACKAGE_BUGREPORT
736PACKAGE_STRING
737PACKAGE_VERSION
738PACKAGE_TARNAME
739PACKAGE_NAME
740PATH_SEPARATOR
741SHELL'
742ac_subst_files='serialization_dependencies
743host_makefile_frag
744target_makefile_frag
745alphaieee_frag
746ospace_frag'
747ac_user_opts='
748enable_option_checking
749with_build_libsubdir
750enable_gold
21539e2e 751enable_ld
87e6d9dc
TB
752enable_libquadmath
753enable_libquadmath_support
5213506e
RW
754enable_libada
755enable_libssp
1873ec0c 756enable_libstdcxx
a4a2c37d 757enable_static_libjava
ff3ac0f4 758enable_bootstrap
5213506e
RW
759with_mpc
760with_mpc_include
761with_mpc_lib
762with_mpfr_dir
763with_mpfr
764with_mpfr_include
765with_mpfr_lib
766with_gmp_dir
767with_gmp
768with_gmp_include
769with_gmp_lib
770with_host_libstdcxx
5213506e 771with_stage1_libs
0b21f5d3 772with_stage1_ldflags
5213506e 773with_boot_libs
ed2eaa9f 774with_boot_ldflags
625afa23 775with_cloog
33ad93b9
RG
776with_isl
777with_isl_include
778with_isl_lib
779enable_isl_version_check
5213506e
RW
780with_cloog_include
781with_cloog_lib
782enable_cloog_version_check
d7f09764 783enable_lto
45b3824d
TS
784enable_linker_plugin_configure_flags
785enable_linker_plugin_flags
5213506e
RW
786enable_stage1_languages
787enable_objc_gc
788with_build_sysroot
789with_debug_prefix_map
5646b7b9 790with_build_config
beeda1d9 791enable_vtable_verify
5213506e
RW
792enable_serial_configure
793with_build_time_tools
794enable_maintainer_mode
795enable_stage1_checking
796enable_werror
459260ec 797enable_host_shared
5213506e
RW
798'
799 ac_precious_vars='build_alias
800host_alias
801target_alias
802CC
803CFLAGS
804LDFLAGS
805LIBS
806CPPFLAGS
807CXX
808CXXFLAGS
809CCC
ffedf511
RW
810build_configargs
811host_configargs
812target_configargs
5213506e
RW
813AR
814AS
815DLLTOOL
816LD
817LIPO
818NM
819RANLIB
820STRIP
821WINDRES
822WINDMC
823OBJCOPY
824OBJDUMP
e7a82751 825READELF
5213506e
RW
826CC_FOR_TARGET
827CXX_FOR_TARGET
828GCC_FOR_TARGET
829GCJ_FOR_TARGET
830GFORTRAN_FOR_TARGET
632e2a07 831GOC_FOR_TARGET
5213506e
RW
832AR_FOR_TARGET
833AS_FOR_TARGET
834DLLTOOL_FOR_TARGET
835LD_FOR_TARGET
836LIPO_FOR_TARGET
837NM_FOR_TARGET
838OBJDUMP_FOR_TARGET
839RANLIB_FOR_TARGET
e7a82751 840READELF_FOR_TARGET
5213506e
RW
841STRIP_FOR_TARGET
842WINDRES_FOR_TARGET
843WINDMC_FOR_TARGET'
844
671aa708
NN
845
846# Initialize some variables set by options.
1c710c3c
DJ
847ac_init_help=
848ac_init_version=false
5213506e
RW
849ac_unrecognized_opts=
850ac_unrecognized_sep=
671aa708
NN
851# The variables have the same names as the options, with
852# dashes changed to underlines.
1c710c3c 853cache_file=/dev/null
671aa708 854exec_prefix=NONE
671aa708 855no_create=
671aa708
NN
856no_recursion=
857prefix=NONE
858program_prefix=NONE
859program_suffix=NONE
860program_transform_name=s,x,x,
861silent=
862site=
863srcdir=
671aa708
NN
864verbose=
865x_includes=NONE
866x_libraries=NONE
1c710c3c
DJ
867
868# Installation directory options.
869# These are left unexpanded so users can "make install exec_prefix=/foo"
870# and all the variables that are supposed to be based on exec_prefix
871# by default will actually change.
872# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 873# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
874bindir='${exec_prefix}/bin'
875sbindir='${exec_prefix}/sbin'
876libexecdir='${exec_prefix}/libexec'
5213506e
RW
877datarootdir='${prefix}/share'
878datadir='${datarootdir}'
671aa708
NN
879sysconfdir='${prefix}/etc'
880sharedstatedir='${prefix}/com'
881localstatedir='${prefix}/var'
671aa708
NN
882includedir='${prefix}/include'
883oldincludedir='/usr/include'
5213506e
RW
884docdir='${datarootdir}/doc/${PACKAGE}'
885infodir='${datarootdir}/info'
886htmldir='${docdir}'
887dvidir='${docdir}'
888pdfdir='${docdir}'
889psdir='${docdir}'
890libdir='${exec_prefix}/lib'
891localedir='${datarootdir}/locale'
892mandir='${datarootdir}/man'
79c06341 893
671aa708 894ac_prev=
5213506e 895ac_dashdash=
671aa708
NN
896for ac_option
897do
671aa708
NN
898 # If the previous option needs an argument, assign it.
899 if test -n "$ac_prev"; then
5213506e 900 eval $ac_prev=\$ac_option
671aa708
NN
901 ac_prev=
902 continue
903 fi
79c06341 904
5213506e
RW
905 case $ac_option in
906 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 *) ac_optarg=yes ;;
908 esac
671aa708
NN
909
910 # Accept the important Cygnus configure options, so we can diagnose typos.
911
5213506e
RW
912 case $ac_dashdash$ac_option in
913 --)
914 ac_dashdash=yes ;;
671aa708
NN
915
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 919 bindir=$ac_optarg ;;
671aa708
NN
920
921 -build | --build | --buil | --bui | --bu)
1c710c3c 922 ac_prev=build_alias ;;
671aa708 923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 924 build_alias=$ac_optarg ;;
671aa708
NN
925
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
931 cache_file=$ac_optarg ;;
932
933 --config-cache | -C)
934 cache_file=config.cache ;;
671aa708 935
5213506e 936 -datadir | --datadir | --datadi | --datad)
671aa708 937 ac_prev=datadir ;;
5213506e 938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 939 datadir=$ac_optarg ;;
671aa708 940
5213506e
RW
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
947
671aa708 948 -disable-* | --disable-*)
5213506e 949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 950 # Reject names that are not valid shell variable names.
5213506e
RW
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957"enable_$ac_useropt"
958"*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=no ;;
963
964 -docdir | --docdir | --docdi | --doc | --do)
965 ac_prev=docdir ;;
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967 docdir=$ac_optarg ;;
968
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 ac_prev=dvidir ;;
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972 dvidir=$ac_optarg ;;
671aa708
NN
973
974 -enable-* | --enable-*)
5213506e 975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 976 # Reject names that are not valid shell variable names.
5213506e
RW
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
982 *"
983"enable_$ac_useropt"
984"*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
2aeb72e9 987 esac
5213506e 988 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
989
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
1c710c3c 997 exec_prefix=$ac_optarg ;;
671aa708
NN
998
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1001 with_gas=yes ;;
1002
1c710c3c
DJ
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
671aa708
NN
1009
1010 -host | --host | --hos | --ho)
1c710c3c 1011 ac_prev=host_alias ;;
671aa708 1012 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1013 host_alias=$ac_optarg ;;
671aa708 1014
5213506e
RW
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 ac_prev=htmldir ;;
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 | --ht=*)
1019 htmldir=$ac_optarg ;;
1020
671aa708
NN
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1026 includedir=$ac_optarg ;;
671aa708
NN
1027
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 ac_prev=infodir ;;
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1031 infodir=$ac_optarg ;;
671aa708
NN
1032
1033 -libdir | --libdir | --libdi | --libd)
1034 ac_prev=libdir ;;
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1036 libdir=$ac_optarg ;;
671aa708
NN
1037
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1043 libexecdir=$ac_optarg ;;
671aa708 1044
5213506e
RW
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1049
671aa708 1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1051 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1055 localstatedir=$ac_optarg ;;
671aa708
NN
1056
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 ac_prev=mandir ;;
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1060 mandir=$ac_optarg ;;
671aa708
NN
1061
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1064 with_fp=no ;;
1065
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1067 | --no-cr | --no-c | -n)
671aa708
NN
1068 no_create=yes ;;
1069
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 no_recursion=yes ;;
1073
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1081 oldincludedir=$ac_optarg ;;
671aa708
NN
1082
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 ac_prev=prefix ;;
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1086 prefix=$ac_optarg ;;
671aa708
NN
1087
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1093 program_prefix=$ac_optarg ;;
671aa708
NN
1094
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1100 program_suffix=$ac_optarg ;;
671aa708
NN
1101
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1117 program_transform_name=$ac_optarg ;;
671aa708 1118
5213506e
RW
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 ac_prev=pdfdir ;;
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1123
1124 -psdir | --psdir | --psdi | --psd | --ps)
1125 ac_prev=psdir ;;
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 psdir=$ac_optarg ;;
1128
671aa708
NN
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 silent=yes ;;
1132
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
1c710c3c 1137 sbindir=$ac_optarg ;;
671aa708
NN
1138
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
1c710c3c 1148 sharedstatedir=$ac_optarg ;;
671aa708
NN
1149
1150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
1c710c3c 1153 site=$ac_optarg ;;
671aa708
NN
1154
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1158 srcdir=$ac_optarg ;;
671aa708
NN
1159
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1165 sysconfdir=$ac_optarg ;;
671aa708
NN
1166
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1168 ac_prev=target_alias ;;
671aa708 1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1170 target_alias=$ac_optarg ;;
671aa708
NN
1171
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1174
1c710c3c
DJ
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
671aa708
NN
1177
1178 -with-* | --with-*)
5213506e 1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1180 # Reject names that are not valid shell variable names.
5213506e
RW
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187"with_$ac_useropt"
1188"*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
2aeb72e9 1191 esac
5213506e 1192 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1193
1194 -without-* | --without-*)
5213506e 1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1196 # Reject names that are not valid shell variable names.
5213506e
RW
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203"with_$ac_useropt"
1204"*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=no ;;
671aa708
NN
1209
1210 --x)
1211 # Obsolete; use --with-x.
1212 with_x=yes ;;
1213
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1219 x_includes=$ac_optarg ;;
671aa708
NN
1220
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1226 x_libraries=$ac_optarg ;;
671aa708 1227
5213506e
RW
1228 -*) as_fn_error "unrecognized option: \`$ac_option'
1229Try \`$0 --help' for more information."
671aa708
NN
1230 ;;
1231
1c710c3c
DJ
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
5213506e
RW
1235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
1237 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1238 esac
1239 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1240 export $ac_envvar ;;
1241
671aa708 1242 *)
1c710c3c 1243 # FIXME: should be removed in autoconf 3.0.
5213506e 1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1247 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1248 ;;
1249
1250 esac
1251done
1252
1253if test -n "$ac_prev"; then
1c710c3c 1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1255 as_fn_error "missing argument to $ac_option"
af71363e 1256fi
af71363e 1257
5213506e
RW
1258if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
1261 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1263 esac
5213506e 1264fi
2aeb72e9 1265
5213506e
RW
1266# Check all directory arguments for consistency.
1267for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
2aeb72e9 1271do
5213506e
RW
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1274 case $ac_val in
1275 */ )
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1278 esac
1279 # Be sure to have absolute directory names.
2aeb72e9 1280 case $ac_val in
5213506e
RW
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1283 esac
5213506e 1284 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1285done
1286
1c710c3c
DJ
1287# There might be people who depend on the old broken behavior: `$host'
1288# used to hold the argument of --host etc.
1289# FIXME: To remove some day.
1290build=$build_alias
1291host=$host_alias
1292target=$target_alias
0b0dc272 1293
1c710c3c
DJ
1294# FIXME: To remove some day.
1295if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
5213506e 1298 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1299 If a cross compiler is detected then cross compile mode will be used." >&2
1300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1302 fi
1303fi
1304
1305ac_tool_prefix=
1306test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308test "$silent" = yes && exec 6>/dev/null
671aa708 1309
671aa708 1310
5213506e
RW
1311ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312ac_ls_di=`ls -di .` &&
1313ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 as_fn_error "working directory cannot be determined"
1315test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 as_fn_error "pwd does not report name of working directory"
1317
1318
671aa708
NN
1319# Find the source files, if location was not specified.
1320if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
5213506e
RW
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328$as_echo X"$as_myself" |
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)[^/].*/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\).*/{
1342 s//\1/
1343 q
1344 }
1345 s/.*/./; q'`
671aa708 1346 srcdir=$ac_confdir
5213506e 1347 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1348 srcdir=..
1349 fi
1350else
1351 ac_srcdir_defaulted=no
1352fi
5213506e
RW
1353if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1356fi
1357ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1360 pwd)`
1361# When building in place, set srcdir=.
1362if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 srcdir=.
1364fi
1365# Remove unnecessary trailing slashes from srcdir.
1366# Double slashes in file names in object file debugging info
1367# mess up M-x gdb in Emacs.
1368case $srcdir in
1369*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370esac
87841584
AM
1371case $srcdir in
1372 *" "*)
1373 as_fn_error "path to source, $srcdir, contains spaces"
1374 ;;
1375esac
ac9e6043
RW
1376ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1377
5213506e
RW
1378for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383done
1c710c3c
DJ
1384
1385#
1386# Report the --help message.
1387#
1388if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
1392\`configure' configures this package to adapt to many kinds of systems.
1393
1394Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397VAR=VALUE. See below for descriptions of some of the useful variables.
1398
1399Defaults for the options are specified in brackets.
1400
1401Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411
1c710c3c
DJ
1412Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1414 [$ac_default_prefix]
1c710c3c 1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1416 [PREFIX]
1c710c3c
DJ
1417
1418By default, \`make install' will install all the files in
1419\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421for instance \`--prefix=\$HOME'.
1422
1423For better control, use the options below.
1424
1425Fine tuning of the installation directories:
5213506e
RW
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1445_ACEOF
1446
1447 cat <<\_ACEOF
1448
1449Program names:
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1453
1454System types:
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 --target=TARGET configure for building compilers for TARGET [HOST]
1458_ACEOF
1459fi
1460
1461if test -n "$ac_init_help"; then
1462
1463 cat <<\_ACEOF
1464
1465Optional Features:
5213506e 1466 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
21539e2e 1469 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1470 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
87e6d9dc
TB
1471 --disable-libquadmath do not build libquadmath directory
1472 --disable-libquadmath-support
1473 disable libquadmath support for Fortran
30b74385
RW
1474 --enable-libada build libada directory
1475 --enable-libssp build libssp directory
1873ec0c 1476 --disable-libstdcxx do not build libstdc++-v3 directory
a4a2c37d
MK
1477 --enable-static-libjava[=ARG]
1478 build static libjava [default=no]
ff3ac0f4 1479 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9
RG
1480 --disable-isl-version-check
1481 disable check for ISL version
d32ef397
AS
1482 --disable-cloog-version-check
1483 disable check for CLooG version
d7f09764 1484 --enable-lto enable link time optimization support
45b3824d
TS
1485 --enable-linker-plugin-configure-flags=FLAGS
1486 additional flags for configuring linker plugins
1487 [none]
1488 --enable-linker-plugin-flags=FLAGS
1489 additional flags for configuring and building linker
1490 plugins [none]
33e39b66
AS
1491 --enable-stage1-languages[=all]
1492 choose additional languages to build during stage1.
1493 Mostly useful for compiler development
1494 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1495 Objective-C runtime
beeda1d9 1496 --enable-vtable-verify Enable vtable verification feature
30b74385 1497 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1498 force sequential configuration of sub-packages for
1499 the host, target or build machine, or all
1500 sub-packages
1501 --enable-maintainer-mode
1502 enable make rules and dependencies not useful (and
1503 sometimes confusing) to the casual installer
1504 --enable-stage1-checking[=all]
1505 choose additional checking for stage1 of the
1506 compiler
1c710c3c 1507 --enable-werror enable -Werror in bootstrap stage2 and later
459260ec 1508 --enable-host-shared build host code as shared libraries
1c710c3c
DJ
1509
1510Optional Packages:
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-build-libsubdir=DIR Directory where to find libraries for build system
33e39b66
AS
1514 --with-mpc=PATH specify prefix directory for installed MPC package.
1515 Equivalent to --with-mpc-include=PATH/include plus
1516 --with-mpc-lib=PATH/lib
1517 --with-mpc-include=PATH specify directory for installed MPC include files
1518 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1519 --with-mpfr-dir=PATH this option has been REMOVED
1520 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1521 Equivalent to --with-mpfr-include=PATH/include plus
1522 --with-mpfr-lib=PATH/lib
1c710c3c 1523 --with-mpfr-include=PATH
30b74385
RW
1524 specify directory for installed MPFR include files
1525 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1526 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1527 --with-gmp=PATH specify prefix directory for the installed GMP
1528 package. Equivalent to
1529 --with-gmp-include=PATH/include plus
1530 --with-gmp-lib=PATH/lib
30b74385
RW
1531 --with-gmp-include=PATH specify directory for installed GMP include files
1532 --with-gmp-lib=PATH specify directory for the installed GMP library
33e39b66
AS
1533 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1534 linking with PPL
0b21f5d3 1535 --with-stage1-libs=LIBS libraries for stage1
33e39b66
AS
1536 --with-stage1-ldflags=FLAGS
1537 linker flags for stage1
33e39b66
AS
1538 --with-boot-libs=LIBS libraries for stage2 and later
1539 --with-boot-ldflags=FLAGS
1540 linker flags for stage2 and later
625afa23
RG
1541 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1542 package. Equivalent to
1543 --with-cloog-include=PATH/include plus
1544 --with-cloog-lib=PATH/lib
33ad93b9 1545 --with-isl=PATH Specify prefix directory for the installed ISL
33e39b66 1546 package. Equivalent to
33ad93b9
RG
1547 --with-isl-include=PATH/include plus
1548 --with-isl-lib=PATH/lib
1549 --with-isl-include=PATH Specify directory for installed ISL include files
1550 --with-isl-lib=PATH Specify the directory for the installed ISL library
d32ef397
AS
1551 --with-cloog-include=PATH
1552 Specify directory for installed CLooG include files
1553 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1554 library
30b74385 1555 --with-build-sysroot=SYSROOT
1c710c3c 1556 use sysroot as the system root during the build
c8aea42c 1557 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1558 map A to B, C to D ... in debug information
1559 --with-build-config='NAME NAME2...'
1560 use config/NAME.mk build configuration
30b74385 1561 --with-build-time-tools=PATH
1c710c3c 1562 use given path to find target tools during the build
1c710c3c
DJ
1563
1564Some influential environment variables:
1565 CC C compiler command
1566 CFLAGS C compiler flags
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
5213506e
RW
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1572 CXX C++ compiler command
1573 CXXFLAGS C++ compiler flags
ffedf511
RW
1574 build_configargs
1575 additional configure arguments for build directories
1576 host_configargs
1577 additional configure arguments for host directories
1578 target_configargs
1579 additional configure arguments for target directories
278a7a38
AO
1580 AR AR for the host
1581 AS AS for the host
1582 DLLTOOL DLLTOOL for the host
1583 LD LD for the host
1584 LIPO LIPO for the host
1585 NM NM for the host
1586 RANLIB RANLIB for the host
1587 STRIP STRIP for the host
1588 WINDRES WINDRES for the host
901119ae 1589 WINDMC WINDMC for the host
278a7a38
AO
1590 OBJCOPY OBJCOPY for the host
1591 OBJDUMP OBJDUMP for the host
e7a82751 1592 READELF READELF for the host
278a7a38
AO
1593 CC_FOR_TARGET
1594 CC for the target
1595 CXX_FOR_TARGET
1596 CXX for the target
1597 GCC_FOR_TARGET
1598 GCC for the target
1599 GCJ_FOR_TARGET
1600 GCJ for the target
1601 GFORTRAN_FOR_TARGET
1602 GFORTRAN for the target
632e2a07
ILT
1603 GOC_FOR_TARGET
1604 GOC for the target
278a7a38
AO
1605 AR_FOR_TARGET
1606 AR for the target
1607 AS_FOR_TARGET
1608 AS for the target
1609 DLLTOOL_FOR_TARGET
1610 DLLTOOL for the target
1611 LD_FOR_TARGET
1612 LD for the target
1613 LIPO_FOR_TARGET
1614 LIPO for the target
1615 NM_FOR_TARGET
1616 NM for the target
1617 OBJDUMP_FOR_TARGET
1618 OBJDUMP for the target
1619 RANLIB_FOR_TARGET
1620 RANLIB for the target
e7a82751
RM
1621 READELF_FOR_TARGET
1622 READELF for the target
278a7a38
AO
1623 STRIP_FOR_TARGET
1624 STRIP for the target
1625 WINDRES_FOR_TARGET
1626 WINDRES for the target
901119ae
KT
1627 WINDMC_FOR_TARGET
1628 WINDMC for the target
1c710c3c
DJ
1629
1630Use these variables to override the choices made by `configure' or to help
1631it to find libraries and programs with nonstandard names/locations.
1632
5213506e 1633Report bugs to the package provider.
1c710c3c 1634_ACEOF
5213506e 1635ac_status=$?
1c710c3c
DJ
1636fi
1637
1638if test "$ac_init_help" = "recursive"; then
1639 # If there are subdirs, report their specific --help.
1c710c3c 1640 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1641 test -d "$ac_dir" ||
1642 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643 continue
1c710c3c
DJ
1644 ac_builddir=.
1645
5213506e
RW
1646case "$ac_dir" in
1647.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648*)
1649 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1650 # A ".." for each directory in $ac_dir_suffix.
1651 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652 case $ac_top_builddir_sub in
1653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655 esac ;;
1656esac
1657ac_abs_top_builddir=$ac_pwd
1658ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659# for backward compatibility:
1660ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1661
1662case $srcdir in
5213506e 1663 .) # We are building in place.
1c710c3c 1664 ac_srcdir=.
5213506e
RW
1665 ac_top_srcdir=$ac_top_builddir_sub
1666 ac_abs_top_srcdir=$ac_pwd ;;
1667 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1668 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1669 ac_top_srcdir=$srcdir
1670 ac_abs_top_srcdir=$srcdir ;;
1671 *) # Relative name.
1672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673 ac_top_srcdir=$ac_top_build_prefix$srcdir
1674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1675esac
5213506e
RW
1676ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677
1678 cd "$ac_dir" || { ac_status=$?; continue; }
1679 # Check for guested configure.
1680 if test -f "$ac_srcdir/configure.gnu"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683 elif test -f "$ac_srcdir/configure"; then
1684 echo &&
1685 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1686 else
5213506e
RW
1687 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688 fi || ac_status=$?
1689 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1690 done
1691fi
1692
5213506e 1693test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1694if $ac_init_version; then
1695 cat <<\_ACEOF
5213506e
RW
1696configure
1697generated by GNU Autoconf 2.64
1c710c3c 1698
5213506e 1699Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1700This configure script is free software; the Free Software Foundation
1701gives unlimited permission to copy, distribute and modify it.
1702_ACEOF
5213506e 1703 exit
0b0dc272 1704fi
5213506e
RW
1705
1706## ------------------------ ##
1707## Autoconf initialization. ##
1708## ------------------------ ##
1709
1710# ac_fn_c_try_compile LINENO
1711# --------------------------
1712# Try to compile conftest.$ac_ext, and return whether this succeeded.
1713ac_fn_c_try_compile ()
1714{
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext
1717 if { { ac_try="$ac_compile"
1718case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721esac
1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723$as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_compile") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1730 fi
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest.$ac_objext; then :
1736 ac_retval=0
1737else
1738 $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=1
1742fi
1743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1744 return $ac_retval
1745
1746} # ac_fn_c_try_compile
1747
1748# ac_fn_cxx_try_compile LINENO
1749# ----------------------------
1750# Try to compile conftest.$ac_ext, and return whether this succeeded.
1751ac_fn_cxx_try_compile ()
1752{
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 rm -f conftest.$ac_objext
1755 if { { ac_try="$ac_compile"
1756case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_compile") 2>conftest.err
1763 ac_status=$?
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1768 fi
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && {
1771 test -z "$ac_cxx_werror_flag" ||
1772 test ! -s conftest.err
1773 } && test -s conftest.$ac_objext; then :
1774 ac_retval=0
1775else
1776 $as_echo "$as_me: failed program was:" >&5
1777sed 's/^/| /' conftest.$ac_ext >&5
1778
1779 ac_retval=1
1780fi
1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1782 return $ac_retval
1783
1784} # ac_fn_cxx_try_compile
1785
0b21f5d3
EB
1786# ac_fn_cxx_try_link LINENO
1787# -------------------------
1788# Try to link conftest.$ac_ext, and return whether this succeeded.
1789ac_fn_cxx_try_link ()
1790{
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1794case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797esac
1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799$as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1806 fi
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_cxx_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 $as_test_x conftest$ac_exeext
1814 }; then :
1815 ac_retval=0
1816else
1817 $as_echo "$as_me: failed program was:" >&5
1818sed 's/^/| /' conftest.$ac_ext >&5
1819
1820 ac_retval=1
1821fi
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 return $ac_retval
1829
1830} # ac_fn_cxx_try_link
1831
5213506e
RW
1832# ac_fn_c_try_link LINENO
1833# -----------------------
1834# Try to link conftest.$ac_ext, and return whether this succeeded.
1835ac_fn_c_try_link ()
1836{
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext conftest$ac_exeext
1839 if { { ac_try="$ac_link"
1840case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest$ac_exeext && {
1858 test "$cross_compiling" = yes ||
1859 $as_test_x conftest$ac_exeext
1860 }; then :
1861 ac_retval=0
1862else
1863 $as_echo "$as_me: failed program was:" >&5
1864sed 's/^/| /' conftest.$ac_ext >&5
1865
1866 ac_retval=1
1867fi
1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870 # interfere with the next link command; also delete a directory that is
1871 # left behind by Apple's compiler. We do this before executing the actions.
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 return $ac_retval
1875
1876} # ac_fn_c_try_link
1877cat >config.log <<_ACEOF
1c710c3c
DJ
1878This file contains any messages produced by compilers while
1879running configure, to aid debugging if configure makes a mistake.
1880
1881It was created by $as_me, which was
5213506e 1882generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1883
1884 $ $0 $@
1885
1886_ACEOF
5213506e 1887exec 5>>config.log
1c710c3c
DJ
1888{
1889cat <<_ASUNAME
1890## --------- ##
1891## Platform. ##
1892## --------- ##
1893
1894hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1895uname -m = `(uname -m) 2>/dev/null || echo unknown`
1896uname -r = `(uname -r) 2>/dev/null || echo unknown`
1897uname -s = `(uname -s) 2>/dev/null || echo unknown`
1898uname -v = `(uname -v) 2>/dev/null || echo unknown`
1899
1900/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1901/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1902
1903/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1904/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1905/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1906/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1907/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1908/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1909/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1910
1911_ASUNAME
1912
1913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914for as_dir in $PATH
1915do
1916 IFS=$as_save_IFS
1917 test -z "$as_dir" && as_dir=.
5213506e
RW
1918 $as_echo "PATH: $as_dir"
1919 done
1920IFS=$as_save_IFS
1c710c3c
DJ
1921
1922} >&5
1923
1924cat >&5 <<_ACEOF
1925
1926
1927## ----------- ##
1928## Core tests. ##
1929## ----------- ##
1930
1931_ACEOF
1932
1933
1934# Keep a trace of the command line.
1935# Strip out --no-create and --no-recursion so they do not pile up.
1936# Strip out --silent because we don't want to record it for future runs.
1937# Also quote any args containing shell meta-characters.
1938# Make two passes to allow for proper duplicate-argument suppression.
1939ac_configure_args=
1940ac_configure_args0=
1941ac_configure_args1=
1c710c3c
DJ
1942ac_must_keep_next=false
1943for ac_pass in 1 2
1944do
1945 for ac_arg
1946 do
1947 case $ac_arg in
1948 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1950 | -silent | --silent | --silen | --sile | --sil)
1951 continue ;;
5213506e
RW
1952 *\'*)
1953 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1954 esac
1955 case $ac_pass in
5213506e 1956 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1957 2)
5213506e 1958 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1959 if test $ac_must_keep_next = true; then
1960 ac_must_keep_next=false # Got value, back to normal.
1961 else
1962 case $ac_arg in
1963 *=* | --config-cache | -C | -disable-* | --disable-* \
1964 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1965 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1966 | -with-* | --with-* | -without-* | --without-* | --x)
1967 case "$ac_configure_args0 " in
1968 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1969 esac
1970 ;;
1971 -* ) ac_must_keep_next=true ;;
1972 esac
1973 fi
5213506e 1974 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1975 ;;
1976 esac
1977 done
1978done
5213506e
RW
1979{ ac_configure_args0=; unset ac_configure_args0;}
1980{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1981
1982# When interrupted or exit'd, cleanup temporary files, and complete
1983# config.log. We remove comments because anyway the quotes in there
1984# would cause problems or look ugly.
5213506e
RW
1985# WARNING: Use '\'' to represent an apostrophe within the trap.
1986# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
1987trap 'exit_status=$?
1988 # Save into config.log some information that might help in debugging.
1989 {
1990 echo
1991
1992 cat <<\_ASBOX
1993## ---------------- ##
1994## Cache variables. ##
1995## ---------------- ##
1996_ASBOX
1997 echo
1998 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
1999(
2000 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in #(
2003 *${as_nl}*)
2004 case $ac_var in #(
2005 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2006$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007 esac
2008 case $ac_var in #(
2009 _ | IFS | as_nl) ;; #(
2010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2011 *) { eval $ac_var=; unset $ac_var;} ;;
2012 esac ;;
2013 esac
2014 done
1c710c3c 2015 (set) 2>&1 |
5213506e
RW
2016 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2017 *${as_nl}ac_space=\ *)
1c710c3c 2018 sed -n \
5213506e
RW
2019 "s/'\''/'\''\\\\'\'''\''/g;
2020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2021 ;; #(
1c710c3c 2022 *)
5213506e 2023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2024 ;;
5213506e
RW
2025 esac |
2026 sort
2027)
1c710c3c
DJ
2028 echo
2029
2030 cat <<\_ASBOX
2031## ----------------- ##
2032## Output variables. ##
2033## ----------------- ##
2034_ASBOX
2035 echo
2036 for ac_var in $ac_subst_vars
2037 do
5213506e
RW
2038 eval ac_val=\$$ac_var
2039 case $ac_val in
2040 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041 esac
2042 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2043 done | sort
2044 echo
2045
2046 if test -n "$ac_subst_files"; then
2047 cat <<\_ASBOX
5213506e
RW
2048## ------------------- ##
2049## File substitutions. ##
2050## ------------------- ##
1c710c3c
DJ
2051_ASBOX
2052 echo
2053 for ac_var in $ac_subst_files
2054 do
5213506e
RW
2055 eval ac_val=\$$ac_var
2056 case $ac_val in
2057 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2058 esac
2059 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2060 done | sort
2061 echo
2062 fi
2063
2064 if test -s confdefs.h; then
2065 cat <<\_ASBOX
2066## ----------- ##
2067## confdefs.h. ##
2068## ----------- ##
2069_ASBOX
2070 echo
5213506e 2071 cat confdefs.h
1c710c3c
DJ
2072 echo
2073 fi
2074 test "$ac_signal" != 0 &&
5213506e
RW
2075 $as_echo "$as_me: caught signal $ac_signal"
2076 $as_echo "$as_me: exit $exit_status"
1c710c3c 2077 } >&5
5213506e
RW
2078 rm -f core *.core core.conftest.* &&
2079 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2080 exit $exit_status
5213506e 2081' 0
1c710c3c 2082for ac_signal in 1 2 13 15; do
5213506e 2083 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2084done
2085ac_signal=0
2086
2087# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2088rm -f -r conftest* confdefs.h
2089
2090$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2091
2092# Predefined preprocessor variables.
2093
2094cat >>confdefs.h <<_ACEOF
2095#define PACKAGE_NAME "$PACKAGE_NAME"
2096_ACEOF
2097
1c710c3c
DJ
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2100_ACEOF
2101
1c710c3c
DJ
2102cat >>confdefs.h <<_ACEOF
2103#define PACKAGE_VERSION "$PACKAGE_VERSION"
2104_ACEOF
0b0dc272 2105
1c710c3c
DJ
2106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_STRING "$PACKAGE_STRING"
2108_ACEOF
2109
1c710c3c
DJ
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2112_ACEOF
2113
5213506e
RW
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE_URL "$PACKAGE_URL"
2116_ACEOF
2117
1c710c3c
DJ
2118
2119# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2120# Prefer an explicitly selected file to automatically selected ones.
2121ac_site_file1=NONE
2122ac_site_file2=NONE
2123if test -n "$CONFIG_SITE"; then
2124 ac_site_file1=$CONFIG_SITE
2125elif test "x$prefix" != xNONE; then
2126 ac_site_file1=$prefix/share/config.site
2127 ac_site_file2=$prefix/etc/config.site
2128else
2129 ac_site_file1=$ac_default_prefix/share/config.site
2130 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2131fi
5213506e
RW
2132for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2133do
2134 test "x$ac_site_file" = xNONE && continue
671aa708 2135 if test -r "$ac_site_file"; then
5213506e
RW
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2137$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2138 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2139 . "$ac_site_file"
2140 fi
2141done
2142
2143if test -r "$cache_file"; then
1c710c3c
DJ
2144 # Some versions of bash will fail to source /dev/null (special
2145 # files actually), so we avoid doing that.
2146 if test -f "$cache_file"; then
5213506e
RW
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2148$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2149 case $cache_file in
5213506e
RW
2150 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2151 *) . "./$cache_file";;
1c710c3c
DJ
2152 esac
2153 fi
671aa708 2154else
5213506e
RW
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2156$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2157 >$cache_file
2158fi
2159
2160# Check that the precious variables saved in the cache have kept the same
2161# value.
2162ac_cache_corrupted=false
5213506e 2163for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2164 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2165 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2166 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2167 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2168 case $ac_old_set,$ac_new_set in
2169 set,)
5213506e
RW
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2171$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2172 ac_cache_corrupted=: ;;
2173 ,set)
5213506e
RW
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2175$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2176 ac_cache_corrupted=: ;;
2177 ,);;
2178 *)
2179 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2180 # differences in whitespace do not lead to failure.
2181 ac_old_val_w=`echo x $ac_old_val`
2182 ac_new_val_w=`echo x $ac_new_val`
2183 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2185$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2186 ac_cache_corrupted=:
2187 else
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2189$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2190 eval $ac_var=\$ac_old_val
2191 fi
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2193$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2195$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2196 fi;;
2197 esac
2198 # Pass precious variables to config.status.
2199 if test "$ac_new_set" = set; then
2200 case $ac_new_val in
5213506e 2201 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2202 *) ac_arg=$ac_var=$ac_new_val ;;
2203 esac
2204 case " $ac_configure_args " in
2205 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2206 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2207 esac
2208 fi
2209done
2210if $ac_cache_corrupted; then
5213506e
RW
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2214$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2215 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2216fi
5213506e
RW
2217## -------------------- ##
2218## Main body of script. ##
2219## -------------------- ##
671aa708 2220
2aeb72e9
DD
2221ac_ext=c
2222ac_cpp='$CPP $CPPFLAGS'
2223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225ac_compiler_gnu=$ac_cv_c_compiler_gnu
2226
1c710c3c
DJ
2227
2228
2229
1c710c3c
DJ
2230
2231
0115d4a3 2232
1c710c3c 2233
ad33ff57
RW
2234
2235progname=$0
2236# if PWD already has a value, it is probably wrong.
2237if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2238
2239# Export original configure arguments for use by sub-configures.
2240# Quote arguments with shell meta charatcers.
2241TOPLEVEL_CONFIGURE_ARGUMENTS=
2242set -- "$progname" "$@"
2243for ac_arg
2244do
2245 case "$ac_arg" in
2246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2247 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2248 # if the argument is of the form -foo=baz, quote the baz part only
2249 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2250 *) ;;
2251 esac
2252 # Add the quoted argument to the list.
2253 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2254done
2255if test "$silent" = yes; then
2256 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2257fi
2258# Remove the initial space we just introduced and, as these will be
2259# expanded by make, quote '$'.
2260TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2261
1c710c3c
DJ
2262
2263# Find the build, host, and target systems.
671aa708 2264ac_aux_dir=
5213506e
RW
2265for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2266 for ac_t in install-sh install.sh shtool; do
2267 if test -f "$ac_dir/$ac_t"; then
2268 ac_aux_dir=$ac_dir
2269 ac_install_sh="$ac_aux_dir/$ac_t -c"
2270 break 2
2271 fi
2272 done
671aa708
NN
2273done
2274if test -z "$ac_aux_dir"; then
5213506e 2275 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2276fi
5213506e
RW
2277
2278# These three variables are undocumented and unsupported,
2279# and are intended to be withdrawn in a future Autoconf release.
2280# They can cause serious problems if a builder's source tree is in a directory
2281# whose full name contains unusual characters.
2282ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2283ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2284ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2285
671aa708 2286
1c710c3c 2287# Make sure we can run config.sub.
5213506e
RW
2288$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2289 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2290
2291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2292$as_echo_n "checking build system type... " >&6; }
2293if test "${ac_cv_build+set}" = set; then :
2294 $as_echo_n "(cached) " >&6
2295else
2296 ac_build_alias=$build_alias
2297test "x$ac_build_alias" = x &&
2298 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2299test "x$ac_build_alias" = x &&
2300 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2301ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2302 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2303
2304fi
2305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2306$as_echo "$ac_cv_build" >&6; }
2307case $ac_cv_build in
2308*-*-*) ;;
2309*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2310esac
1c710c3c 2311build=$ac_cv_build
5213506e
RW
2312ac_save_IFS=$IFS; IFS='-'
2313set x $ac_cv_build
2314shift
2315build_cpu=$1
2316build_vendor=$2
2317shift; shift
2318# Remember, the first character of IFS is used to create $*,
2319# except with old shells:
2320build_os=$*
2321IFS=$ac_save_IFS
2322case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2323
671aa708 2324
1c710c3c
DJ
2325 case ${build_alias} in
2326 "") build_noncanonical=${build} ;;
2327 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2328esac
2329
2330
af71363e 2331
1c710c3c
DJ
2332 case ${host_alias} in
2333 "") host_noncanonical=${build_noncanonical} ;;
2334 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2335esac
2336
af71363e 2337
1c710c3c
DJ
2338
2339 case ${target_alias} in
2340 "") target_noncanonical=${host_noncanonical} ;;
2341 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2342esac
2343
af71363e 2344
1c710c3c
DJ
2345
2346
2347test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2348 test "$program_prefix$program_suffix$program_transform_name" = \
2349 NONENONEs,x,x, &&
1c710c3c 2350 program_transform_name=s,y,y,
af71363e 2351
5213506e
RW
2352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2353$as_echo_n "checking host system type... " >&6; }
2354if test "${ac_cv_host+set}" = set; then :
2355 $as_echo_n "(cached) " >&6
af71363e 2356else
5213506e
RW
2357 if test "x$host_alias" = x; then
2358 ac_cv_host=$ac_cv_build
2359else
2360 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2361 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2362fi
1c710c3c 2363
af71363e 2364fi
5213506e
RW
2365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2366$as_echo "$ac_cv_host" >&6; }
2367case $ac_cv_host in
2368*-*-*) ;;
2369*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2370esac
1c710c3c 2371host=$ac_cv_host
5213506e
RW
2372ac_save_IFS=$IFS; IFS='-'
2373set x $ac_cv_host
2374shift
2375host_cpu=$1
2376host_vendor=$2
2377shift; shift
2378# Remember, the first character of IFS is used to create $*,
2379# except with old shells:
2380host_os=$*
2381IFS=$ac_save_IFS
2382case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2383
2384
5213506e
RW
2385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2386$as_echo_n "checking target system type... " >&6; }
2387if test "${ac_cv_target+set}" = set; then :
2388 $as_echo_n "(cached) " >&6
1c710c3c 2389else
5213506e
RW
2390 if test "x$target_alias" = x; then
2391 ac_cv_target=$ac_cv_host
2392else
2393 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2394 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2395fi
1c710c3c
DJ
2396
2397fi
5213506e
RW
2398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2399$as_echo "$ac_cv_target" >&6; }
2400case $ac_cv_target in
2401*-*-*) ;;
2402*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2403esac
1c710c3c 2404target=$ac_cv_target
5213506e
RW
2405ac_save_IFS=$IFS; IFS='-'
2406set x $ac_cv_target
2407shift
2408target_cpu=$1
2409target_vendor=$2
2410shift; shift
2411# Remember, the first character of IFS is used to create $*,
2412# except with old shells:
2413target_os=$*
2414IFS=$ac_save_IFS
2415case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2416
2417
2418# The aliases save the names the user supplied, while $host etc.
2419# will get canonicalized.
2420test -n "$target_alias" &&
2421 test "$program_prefix$program_suffix$program_transform_name" = \
2422 NONENONEs,x,x, &&
2423 program_prefix=${target_alias}-
5213506e 2424
671aa708 2425test "$program_prefix" != NONE &&
5213506e 2426 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2427# Use a double $ so make ignores it.
2428test "$program_suffix" != NONE &&
5213506e
RW
2429 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2430# Double any \ or $.
1c710c3c 2431# By default was `s,x,x', remove it if useless.
5213506e
RW
2432ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2433program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2434
671aa708
NN
2435
2436
775956d0
NN
2437# Get 'install' or 'install-sh' and its variants.
2438# Find a good install program. We prefer a C program (faster),
2439# so one script is as good as another. But avoid the broken or
2440# incompatible versions:
2441# SysV /etc/install, /usr/sbin/install
2442# SunOS /usr/etc/install
2443# IRIX /sbin/install
2444# AIX /bin/install
1c710c3c 2445# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2446# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2447# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2448# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2449# OS/2's system install, which has a completely different semantic
775956d0 2450# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2451# Reject install programs that cannot install multiple files.
5213506e
RW
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2453$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2454if test -z "$INSTALL"; then
5213506e
RW
2455if test "${ac_cv_path_install+set}" = set; then :
2456 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2457else
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459for as_dir in $PATH
2460do
2461 IFS=$as_save_IFS
2462 test -z "$as_dir" && as_dir=.
5213506e
RW
2463 # Account for people who put trailing slashes in PATH elements.
2464case $as_dir/ in #((
2465 ./ | .// | /[cC]/* | \
1c710c3c 2466 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2467 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2468 /usr/ucb/* ) ;;
2469 *)
2470 # OSF1 and SCO ODT 3.0 have their own names for install.
2471 # Don't use installbsd from OSF since it installs stuff as root
2472 # by default.
2473 for ac_prog in ginstall scoinst install; do
2474 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2475 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2476 if test $ac_prog = install &&
1c710c3c 2477 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2478 # AIX install. It has an incompatible calling convention.
2479 :
1c710c3c
DJ
2480 elif test $ac_prog = install &&
2481 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2482 # program-specific install script used by HP pwplus--don't use.
2483 :
775956d0 2484 else
38d24731
RW
2485 rm -rf conftest.one conftest.two conftest.dir
2486 echo one > conftest.one
2487 echo two > conftest.two
2488 mkdir conftest.dir
2489 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2490 test -s conftest.one && test -s conftest.two &&
2491 test -s conftest.dir/conftest.one &&
2492 test -s conftest.dir/conftest.two
2493 then
2494 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2495 break 3
2496 fi
775956d0
NN
2497 fi
2498 fi
2499 done
1c710c3c
DJ
2500 done
2501 ;;
2502esac
5213506e
RW
2503
2504 done
2505IFS=$as_save_IFS
1c710c3c 2506
38d24731 2507rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2508
2509fi
2510 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2511 INSTALL=$ac_cv_path_install
775956d0 2512 else
38d24731
RW
2513 # As a last resort, use the slow shell script. Don't cache a
2514 # value for INSTALL within a source directory, because that will
775956d0 2515 # break other packages using the cache if that directory is
38d24731 2516 # removed, or if the value is a relative name.
1c710c3c 2517 INSTALL=$ac_install_sh
775956d0
NN
2518 fi
2519fi
5213506e
RW
2520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2521$as_echo "$INSTALL" >&6; }
775956d0
NN
2522
2523# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2524# It thinks the first close brace ends the variable substitution.
2525test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2526
1c710c3c 2527test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2528
2529test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2530
5213506e
RW
2531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2532$as_echo_n "checking whether ln works... " >&6; }
2533if test "${acx_cv_prog_LN+set}" = set; then :
2534 $as_echo_n "(cached) " >&6
ad6717df
PB
2535else
2536 rm -f conftestdata_t
2537echo >conftestdata_f
2538if ln conftestdata_f conftestdata_t 2>/dev/null
2539then
2540 acx_cv_prog_LN=ln
2541else
2542 acx_cv_prog_LN=no
2543fi
2544rm -f conftestdata_f conftestdata_t
2545
2546fi
2547if test $acx_cv_prog_LN = no; then
2548 LN="cp"
5213506e
RW
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2550$as_echo "no, using $LN" >&6; }
ad6717df
PB
2551else
2552 LN="$acx_cv_prog_LN"
5213506e
RW
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2554$as_echo "yes" >&6; }
ad6717df
PB
2555fi
2556
5213506e
RW
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2558$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2559LN_S=$as_ln_s
2560if test "$LN_S" = "ln -s"; then
5213506e
RW
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2562$as_echo "yes" >&6; }
fb0103e5 2563else
5213506e
RW
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2565$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2566fi
2567
87264276
PB
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2569$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2570if test "${ac_cv_path_SED+set}" = set; then :
2571 $as_echo_n "(cached) " >&6
2572else
2573 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2574 for ac_i in 1 2 3 4 5 6 7; do
2575 ac_script="$ac_script$as_nl$ac_script"
2576 done
2577 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2578 { ac_script=; unset ac_script;}
2579 if test -z "$SED"; then
2580 ac_path_SED_found=false
2581 # Loop through the user's path and test for each of PROGNAME-LIST
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_prog in sed gsed; do
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2590 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2591# Check for GNU ac_path_SED and select it if it is found.
2592 # Check for GNU $ac_path_SED
2593case `"$ac_path_SED" --version 2>&1` in
2594*GNU*)
2595 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2596*)
2597 ac_count=0
2598 $as_echo_n 0123456789 >"conftest.in"
2599 while :
2600 do
2601 cat "conftest.in" "conftest.in" >"conftest.tmp"
2602 mv "conftest.tmp" "conftest.in"
2603 cp "conftest.in" "conftest.nl"
2604 $as_echo '' >> "conftest.nl"
2605 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2607 as_fn_arith $ac_count + 1 && ac_count=$as_val
2608 if test $ac_count -gt ${ac_path_SED_max-0}; then
2609 # Best one so far, save it but keep looking for a better one
2610 ac_cv_path_SED="$ac_path_SED"
2611 ac_path_SED_max=$ac_count
2612 fi
2613 # 10*(2^10) chars as input seems more than enough
2614 test $ac_count -gt 10 && break
2615 done
2616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2617esac
2618
2619 $ac_path_SED_found && break 3
2620 done
2621 done
2622 done
2623IFS=$as_save_IFS
2624 if test -z "$ac_cv_path_SED"; then
2625 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2626 fi
2627else
2628 ac_cv_path_SED=$SED
2629fi
2630
2631fi
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2633$as_echo "$ac_cv_path_SED" >&6; }
2634 SED="$ac_cv_path_SED"
2635 rm -f conftest.sed
2636
2637for ac_prog in gawk mawk nawk awk
2638do
2639 # Extract the first word of "$ac_prog", so it can be a program name with args.
2640set dummy $ac_prog; ac_word=$2
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642$as_echo_n "checking for $ac_word... " >&6; }
2643if test "${ac_cv_prog_AWK+set}" = set; then :
2644 $as_echo_n "(cached) " >&6
2645else
2646 if test -n "$AWK"; then
2647 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2648else
2649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH
2651do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 ac_cv_prog_AWK="$ac_prog"
2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 break 2
2659 fi
2660done
2661 done
2662IFS=$as_save_IFS
2663
2664fi
2665fi
2666AWK=$ac_cv_prog_AWK
2667if test -n "$AWK"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2669$as_echo "$AWK" >&6; }
2670else
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672$as_echo "no" >&6; }
2673fi
2674
2675
2676 test -n "$AWK" && break
2677done
2678
775956d0 2679
ee6a22df
L
2680srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2681
2682# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2683# a relative path.
2684if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2685 INSTALL="${srcpwd}/install-sh -c"
2686fi
2687
671aa708
NN
2688# Set srcdir to "." if that's what it is.
2689# This is important for multilib support.
2690pwd=`${PWDCMD-pwd}`
671aa708
NN
2691if test "${pwd}" = "${srcpwd}" ; then
2692 srcdir=.
79c06341
JL
2693fi
2694
671aa708 2695topsrcdir=$srcpwd
5d4a5ee6 2696
671aa708 2697extra_host_args=
afabd8e6 2698
671aa708
NN
2699### To add a new directory to the tree, first choose whether it is a target
2700### or a host dependent tool. Then put it into the appropriate list
2701### (library or tools, host or target), doing a dependency sort.
79c06341 2702
1c710c3c 2703# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2704# configdirs, or target_configdirs; see the serialization section below.
79c06341 2705
1c710c3c
DJ
2706# Dependency sorting is only needed when *configuration* must be done in
2707# a particular order. In all cases a dependency should be specified in
671aa708 2708# the Makefile, whether or not it's implicitly specified here.
79c06341 2709
671aa708
NN
2710# Double entries in build_configdirs, configdirs, or target_configdirs may
2711# cause circular dependencies and break everything horribly.
79c06341 2712
23f6b2f9
PB
2713# these library is used by various programs built for the build
2714# environment
2715#
929315a9 2716build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2717
2718# these tools are built for the build environment
85bfb75e 2719build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2720
671aa708 2721# these libraries are used by various programs built for the host environment
eae1a5d4 2722#f
eff02e4f 2723host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
671aa708 2724
671aa708
NN
2725# these tools are built for the host environment
2726# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2727# know that we are building the simulator.
2728# binutils, gas and ld appear in that order because it makes sense to run
2729# "make check" in that particular order.
38e3d868 2730# If --enable-gold is used, "gold" may replace "ld".
ddc8de03 2731host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1"
671aa708
NN
2732
2733# libgcj represents the runtime libraries only used by gcj.
2734libgcj="target-libffi \
671aa708 2735 target-zlib \
671aa708
NN
2736 target-libjava"
2737
2738# these libraries are built for the target environment, and are built after
2739# the host libraries and the host tools (which may be a cross compiler)
8499116a 2740# Note that libiberty is not a target library.
291f172e 2741target_libraries="target-libgcc \
eff02e4f 2742 target-libbacktrace \
671aa708
NN
2743 target-libgloss \
2744 target-newlib \
6d3b5aea 2745 target-libgomp \
3038054c 2746 target-libcilkrts \
48310492 2747 target-libatomic \
0a35513e 2748 target-libitm \
cb543528 2749 target-libstdc++-v3 \
f35db108 2750 target-libsanitizer \
2077db1b 2751 target-libvtv \
77008252 2752 target-libssp \
1ec601bf 2753 target-libquadmath \
6de9cd9a 2754 target-libgfortran \
7cd0cf9c 2755 target-boehm-gc \
77d187bc 2756 ${libgcj} \
d9cdb878 2757 target-libobjc \
632e2a07
ILT
2758 target-libada \
2759 target-libgo"
671aa708 2760
4dbda6f0
NN
2761# these tools are built using the target libraries, and are intended to
2762# run only in the target environment
671aa708 2763#
4dbda6f0 2764# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2765# list belongs in this list.
671aa708 2766#
85bfb75e 2767target_tools="target-rda"
79c06341 2768
671aa708 2769################################################################################
79c06341 2770
671aa708
NN
2771## All tools belong in one of the four categories, and are assigned above
2772## We assign ${configdirs} this way to remove all embedded newlines. This
2773## is important because configure will choke if they ever get through.
2774## ${configdirs} is directories we build using the host tools.
2775## ${target_configdirs} is directories we build using the target tools.
671aa708 2776configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2777target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2778build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2779
ac9e6043
RW
2780
2781
671aa708 2782################################################################################
79c06341 2783
671aa708 2784srcname="gnu development package"
79c06341 2785
671aa708
NN
2786# This gets set non-empty for some net releases of packages.
2787appdirs=""
79c06341 2788
671aa708
NN
2789# Define is_cross_compiler to save on calls to 'test'.
2790is_cross_compiler=
2791if test x"${host}" = x"${target}" ; then
2792 is_cross_compiler=no
79c06341 2793else
671aa708 2794 is_cross_compiler=yes
1c710c3c 2795fi
79c06341 2796
b4acb5ef 2797# Find the build and target subdir names.
8b87bb96 2798
2e9e6f68
DJ
2799# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2800# have matching libraries, they should use host libraries: Makefile.tpl
2801# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2802# However, they still use the build modules, because the corresponding
2803# host modules (e.g. bison) are only built for the host when bootstrap
2804# finishes. So:
2805# - build_subdir is where we find build modules, and never changes.
2806# - build_libsubdir is where we find build libraries, and can be overridden.
2807
2808# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2809build_subdir="build-${build_noncanonical}"
1c710c3c 2810
5213506e
RW
2811# Check whether --with-build-libsubdir was given.
2812if test "${with_build_libsubdir+set}" = set; then :
2813 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2814else
2815 build_libsubdir="$build_subdir"
5213506e
RW
2816fi
2817
215c351a
PB
2818# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2819if ( test $srcdir = . && test -d gcc ) \
2820 || test -d $srcdir/../host-${host_noncanonical}; then
2821 host_subdir="host-${host_noncanonical}"
2822else
2823 host_subdir=.
2824fi
8b87bb96
NN
2825# No prefix.
2826target_subdir=${target_noncanonical}
1c710c3c 2827
0db770bd
RW
2828# Be sure to cover against remnants of an in-tree build.
2829if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2830 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2831Use a pristine source tree when building in a separate tree" "$LINENO" 5
2832fi
79c06341 2833
671aa708
NN
2834# Skipdirs are removed silently.
2835skipdirs=
2836# Noconfigdirs are removed loudly.
2837noconfigdirs=""
79c06341 2838
671aa708
NN
2839use_gnu_ld=
2840# Make sure we don't let GNU ld be added if we didn't want it.
2841if test x$with_gnu_ld = xno ; then
2842 use_gnu_ld=no
5afab7ad 2843 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2844fi
2845
671aa708
NN
2846use_gnu_as=
2847# Make sure we don't let GNU as be added if we didn't want it.
2848if test x$with_gnu_as = xno ; then
2849 use_gnu_as=no
2850 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2851fi
2852
d7f09764
DN
2853use_included_zlib=
2854# Make sure we don't let ZLIB be added if we didn't want it.
2855if test x$with_system_zlib = xyes ; then
2856 use_included_zlib=no
2857 noconfigdirs="$noconfigdirs zlib"
2858fi
2859
1c710c3c 2860# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2861# it's not even worth trying to configure, much less build, that tool.
79c06341 2862
671aa708
NN
2863case ${with_x} in
2864 yes | "") ;; # the default value for this tree is that X11 is available
2865 no)
b4f96efe 2866 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2867 # We won't be able to build gdbtk without X.
1c710c3c 2868 enable_gdbtk=no
671aa708
NN
2869 ;;
2870 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2871esac
79c06341 2872
1bcce263 2873# Some are only suitable for cross toolchains.
671aa708
NN
2874# Remove these if host=target.
2875cross_only="target-libgloss target-newlib target-opcodes"
2876
2877case $is_cross_compiler in
2878 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2879esac
79c06341 2880
671aa708
NN
2881# If both --with-headers and --with-libs are specified, default to
2882# --without-newlib.
ee6a22df
L
2883if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2884 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2885 if test x"${with_newlib}" = x ; then
2886 with_newlib=no
2887 fi
79c06341
JL
2888fi
2889
671aa708
NN
2890# Recognize --with-newlib/--without-newlib.
2891case ${with_newlib} in
2892 no) skipdirs="${skipdirs} target-newlib" ;;
2893 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2894esac
79c06341 2895
21539e2e
MK
2896# Handle --enable-gold, --enable-ld.
2897# --disable-gold [--enable-ld]
2898# Build only ld. Default option.
9580395f
L
2899# --enable-gold [--enable-ld]
2900# Build both gold and ld. Install gold as "ld.gold", install ld
2901# as "ld.bfd" and "ld".
2902# --enable-gold=default [--enable-ld]
21539e2e
MK
2903# Build both gold and ld. Install gold as "ld.gold" and "ld",
2904# install ld as "ld.bfd".
2905# --enable-gold[=default] --disable-ld
2906# Build only gold, which is then installed as both "ld.gold" and "ld".
2907# --enable-gold --enable-ld=default
9580395f
L
2908# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2909# and ld.bfd).
21539e2e
MK
2910# In other words, ld is default
2911# --enable-gold=default --enable-ld=default
2912# Error.
2913
2914default_ld=
5213506e
RW
2915# Check whether --enable-gold was given.
2916if test "${enable_gold+set}" = set; then :
2917 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2918else
2919 ENABLE_GOLD=no
5213506e
RW
2920fi
2921
21539e2e
MK
2922case "${ENABLE_GOLD}" in
2923 yes|default)
38e3d868
RM
2924 # Check for ELF target.
2925 is_elf=no
2926 case "${target}" in
2927 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 2928 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 2929 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 2930 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
2931 case "${target}" in
2932 *-*-linux*aout* | *-*-linux*oldld*)
2933 ;;
2934 *)
2935 is_elf=yes
2936 ;;
2937 esac
2938 esac
2939
2940 if test "$is_elf" = "yes"; then
2941 # Check for target supported by gold.
5afab7ad 2942 case "${target}" in
7705dfd1
JY
2943 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2944 | aarch64*-*-* | tilegx*-*-*)
21539e2e
MK
2945 configdirs="$configdirs gold"
2946 if test x${ENABLE_GOLD} = xdefault; then
2947 default_ld=gold
2948 fi
38e3d868 2949 ENABLE_GOLD=yes
5afab7ad
ILT
2950 ;;
2951 esac
38e3d868
RM
2952 fi
2953 ;;
2954 no)
2955 ;;
2956 *)
2957 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2958 ;;
21539e2e
MK
2959esac
2960
2961# Check whether --enable-ld was given.
2962if test "${enable_ld+set}" = set; then :
2963 enableval=$enable_ld; ENABLE_LD=$enableval
2964else
2965 ENABLE_LD=yes
2966fi
2967
2968
2969case "${ENABLE_LD}" in
2970 default)
9580395f 2971 if test x${default_ld} != x; then
21539e2e
MK
2972 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2973 fi
2974 ;;
2975 yes)
2976 ;;
2977 no)
2978 if test x${ENABLE_GOLD} != xyes; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2980$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2981 fi
2982 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2983 ;;
2984 *)
2985 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2986 ;;
2987esac
5afab7ad 2988
671aa708 2989# Configure extra directories which are host specific
79c06341 2990
671aa708
NN
2991case "${host}" in
2992 *-cygwin*)
2993 configdirs="$configdirs libtermcap" ;;
2994esac
79c06341 2995
4fab7234
HPN
2996# A target can indicate whether a language isn't supported for some reason.
2997# Only spaces may be used in this macro; not newlines or tabs.
2998unsupported_languages=
2999
1c710c3c 3000# Remove more programs from consideration, based on the host or
671aa708
NN
3001# target this usually means that a port of the program doesn't
3002# exist yet.
ec8d6ddc 3003
671aa708 3004case "${host}" in
111eeb6e 3005 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3006 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3007 ;;
671aa708 3008esac
ec8d6ddc 3009
6de9cd9a 3010
87e6d9dc
TB
3011# Check whether --enable-libquadmath was given.
3012if test "${enable_libquadmath+set}" = set; then :
3013 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3014else
3015 ENABLE_LIBQUADMATH=yes
3016fi
3017
3018if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3019 noconfigdirs="$noconfigdirs target-libquadmath"
3020fi
3021
3022
3023# Check whether --enable-libquadmath-support was given.
3024if test "${enable_libquadmath_support+set}" = set; then :
3025 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3026else
3027 ENABLE_LIBQUADMATH_SUPPORT=yes
3028fi
3029
3030enable_libquadmath_support=
3031if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3032 enable_libquadmath_support=no
3033fi
3034
3035
5213506e
RW
3036# Check whether --enable-libada was given.
3037if test "${enable_libada+set}" = set; then :
3038 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3039else
3040 ENABLE_LIBADA=yes
5213506e
RW
3041fi
3042
d9cdb878 3043if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3044 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3045fi
3046
5213506e
RW
3047# Check whether --enable-libssp was given.
3048if test "${enable_libssp+set}" = set; then :
3049 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3050else
3051 ENABLE_LIBSSP=yes
5213506e
RW
3052fi
3053
ef0087a7 3054
1873ec0c
L
3055# Check whether --enable-libstdcxx was given.
3056if test "${enable_libstdcxx+set}" = set; then :
3057 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3058else
3059 ENABLE_LIBSTDCXX=default
3060fi
3061
3062if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3063 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3064fi
3065
671aa708
NN
3066# Save it here so that, even in case of --enable-libgcj, if the Java
3067# front-end isn't enabled, we still get libgcj disabled.
3068libgcj_saved=$libgcj
3069case $enable_libgcj in
3070yes)
3071 # If we reset it here, it won't get added to noconfigdirs in the
3072 # target-specific build rules, so it will be forcibly enabled
3073 # (unless the Java language itself isn't enabled).
3074 libgcj=
3075 ;;
3076no)
3077 # Make sure we get it printed in the list of not supported target libs.
4da3b0f8
ILT
3078 # Don't disable libffi, though, other languages use it.
3079 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
d479b128
ILT
3080 # Clear libgcj_saved so that even if java is enabled libffi won't be
3081 # built.
3082 libgcj_saved=
671aa708
NN
3083 ;;
3084esac
ec8d6ddc 3085
a4a2c37d
MK
3086# Check whether --enable-static-libjava was given.
3087if test "${enable_static_libjava+set}" = set; then :
3088 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3089else
3090 ENABLE_STATIC_LIBJAVA=no
3091fi
3092
3093enable_static_libjava=
3094if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3095 enable_static_libjava=yes
3096fi
3097
3098if test x$enable_static_libjava != xyes ; then
3099 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3100fi
3101
6de9cd9a 3102
27079765
AH
3103# Disable libgomp on non POSIX hosted systems.
3104if test x$enable_libgomp = x ; then
953ff289
DN
3105 # Enable libgomp by default on hosted POSIX systems.
3106 case "${target}" in
416ac4d4 3107 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3108 ;;
8c6d158a 3109 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3110 ;;
b24513a1 3111 *-*-solaris2* | *-*-hpux11*)
953ff289 3112 ;;
cac90078 3113 *-*-darwin* | *-*-aix*)
953ff289
DN
3114 ;;
3115 *)
3116 noconfigdirs="$noconfigdirs target-libgomp"
3117 ;;
3118 esac
27079765 3119fi
953ff289 3120
48310492
RH
3121# Disable libatomic on unsupported systems.
3122if test -d ${srcdir}/libatomic; then
3123 if test x$enable_libatomic = x; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3125$as_echo_n "checking for libatomic support... " >&6; }
3126 if (srcdir=${srcdir}/libatomic; \
3127 . ${srcdir}/configure.tgt; \
3128 test -n "$UNSUPPORTED")
3129 then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131$as_echo "no" >&6; }
3132 noconfigdirs="$noconfigdirs target-libatomic"
3133 else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3135$as_echo "yes" >&6; }
3136 fi
3137 fi
3138fi
3139
3038054c
BI
3140# Disable libcilkrts on unsupported systems.
3141if test -d ${srcdir}/libcilkrts; then
3142 if test x$enable_libcilkrts = x; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3144$as_echo_n "checking for libcilkrts support... " >&6; }
3145 if (srcdir=${srcdir}/libcilkrts; \
3146 . ${srcdir}/configure.tgt; \
3147 test -n "$UNSUPPORTED")
3148 then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150$as_echo "no" >&6; }
3151 noconfigdirs="$noconfigdirs target-libcilkrts"
3152 else
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3154$as_echo "yes" >&6; }
3155 fi
3156 fi
3157fi
3158
e948157d
RH
3159# Disable libitm on unsupported systems.
3160if test -d ${srcdir}/libitm; then
3161 if test x$enable_libitm = x; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3163$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3164 if (srcdir=${srcdir}/libitm; \
3165 . ${srcdir}/configure.tgt; \
3166 test -n "$UNSUPPORTED")
3167 then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3169$as_echo "no" >&6; }
e948157d
RH
3170 noconfigdirs="$noconfigdirs target-libitm"
3171 else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3173$as_echo "yes" >&6; }
e948157d
RH
3174 fi
3175 fi
0a35513e
AH
3176fi
3177
93bf5390
RH
3178# Disable libsanitizer on unsupported systems.
3179if test -d ${srcdir}/libsanitizer; then
3180 if test x$enable_libsanitizer = x; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3182$as_echo_n "checking for libsanitizer support... " >&6; }
3183 if (srcdir=${srcdir}/libsanitizer; \
3184 . ${srcdir}/configure.tgt; \
3185 test -n "$UNSUPPORTED")
3186 then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188$as_echo "no" >&6; }
3189 noconfigdirs="$noconfigdirs target-libsanitizer"
3190 else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3192$as_echo "yes" >&6; }
3193 fi
3194 fi
3195fi
3196
2077db1b
CT
3197# Disable libvtv on unsupported systems.
3198if test -d ${srcdir}/libvtv; then
3199 if test x$enable_libvtv = x; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3201$as_echo_n "checking for libvtv support... " >&6; }
3202 if (srcdir=${srcdir}/libvtv; \
3203 . ${srcdir}/configure.tgt; \
1e74b850 3204 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3205 then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207$as_echo "no" >&6; }
3208 noconfigdirs="$noconfigdirs target-libvtv"
3209 else
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3211$as_echo "yes" >&6; }
3212 fi
3213 fi
3214fi
3215
d91491e5
SE
3216# Disable libquadmath for some systems.
3217case "${target}" in
e7fae550
DE
3218 avr-*-*)
3219 noconfigdirs="$noconfigdirs target-libquadmath"
3220 ;;
d91491e5
SE
3221 # libquadmath is unused on AIX and libquadmath build process use of
3222 # LD_LIBRARY_PATH can break AIX bootstrap.
3223 powerpc-*-aix* | rs6000-*-aix*)
3224 noconfigdirs="$noconfigdirs target-libquadmath"
3225 ;;
3226esac
3227
1e9e0e23
JM
3228# Disable libssp for some systems.
3229case "${target}" in
3230 avr-*-*)
b318fb4b 3231 # No hosted I/O support.
1e9e0e23
JM
3232 noconfigdirs="$noconfigdirs target-libssp"
3233 ;;
3234 powerpc-*-aix* | rs6000-*-aix*)
3235 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3236 ;;
3237 rl78-*-*)
7cb62ef1
EB
3238 # libssp uses a misaligned load to trigger a fault, but the RL78
3239 # doesn't fault for those - instead, it gives a build-time error
3240 # for explicit misaligned loads.
85b8555e 3241 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3242 ;;
1e9e0e23
JM
3243esac
3244
1e9e0e23 3245# Disable libstdc++-v3 for some systems.
1873ec0c
L
3246# Allow user to override this if they pass --enable-libstdc++-v3
3247if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3248 case "${target}" in
3249 *-*-vxworks*)
3250 # VxWorks uses the Dinkumware C++ library.
3251 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3252 ;;
3253 arm*-wince-pe*)
3254 # the C++ libraries don't build on top of CE's C libraries
3255 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3256 ;;
3257 avr-*-*)
3258 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3259 ;;
3260 esac
3261fi
1e9e0e23
JM
3262
3263# Disable Fortran for some systems.
3264case "${target}" in
3265 mmix-*-*)
3266 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3267 unsupported_languages="$unsupported_languages fortran"
3268 ;;
3269esac
3270
80f81134 3271# Disable Java if libffi is not supported.
2909494b 3272case "${target}" in
eb7062cf
AS
3273 aarch64-*-*)
3274 ;;
80f81134
JM
3275 alpha*-*-*)
3276 ;;
3277 arm*-*-*)
3278 ;;
3279 cris-*-*)
3280 ;;
3281 frv-*-*)
3282 ;;
3283 hppa*-*-linux*)
3284 ;;
3285 hppa*-*-hpux*)
3286 ;;
3287 i?86-*-*)
3288 ;;
3289 ia64*-*-*)
3290 ;;
3291 m32r*-*-*)
3292 ;;
3293 m68k-*-*)
3294 ;;
b24513a1 3295 mips*-*-rtems*)
80f81134
JM
3296 ;;
3297 mips*-*-linux*)
3298 ;;
3299 powerpc*-*-linux*)
3300 ;;
3301 powerpc-*-darwin*)
3302 ;;
3303 powerpc-*-aix* | rs6000-*-aix*)
3304 ;;
3305 powerpc-*-freebsd*)
3306 ;;
3307 powerpc64-*-freebsd*)
3308 ;;
3309 powerpc*-*-rtems*)
2909494b 3310 ;;
80f81134
JM
3311 s390-*-* | s390x-*-*)
3312 ;;
3313 sh-*-* | sh[34]*-*-*)
3314 ;;
3315 sh64-*-* | sh5*-*-*)
3316 ;;
3317 sparc*-*-*)
3318 ;;
3319 x86_64-*-*)
3320 ;;
3321 *-*-*)
3322 unsupported_languages="$unsupported_languages java"
3323 ;;
3324esac
3325
3326# Disable Java, libgcj or related libraries for some systems.
3327case "${target}" in
2909494b
JM
3328 powerpc-*-darwin*)
3329 ;;
3330 i[3456789]86-*-darwin*)
3331 ;;
3332 x86_64-*-darwin[912]*)
3333 ;;
3334 *-*-darwin*)
3335 noconfigdirs="$noconfigdirs ${libgcj}"
3336 ;;
2909494b
JM
3337 *-*-netware*)
3338 noconfigdirs="$noconfigdirs ${libgcj}"
3339 ;;
3340 *-*-rtems*)
3341 noconfigdirs="$noconfigdirs ${libgcj}"
3342 ;;
3343 *-*-tpf*)
3344 noconfigdirs="$noconfigdirs ${libgcj}"
3345 ;;
3346 *-*-uclinux*)
3347 noconfigdirs="$noconfigdirs ${libgcj}"
3348 ;;
3349 *-*-vxworks*)
3350 noconfigdirs="$noconfigdirs ${libgcj}"
3351 ;;
2909494b
JM
3352 alpha*-*-*vms*)
3353 noconfigdirs="$noconfigdirs ${libgcj}"
3354 ;;
80f81134 3355 arm-wince-pe)
2909494b
JM
3356 noconfigdirs="$noconfigdirs ${libgcj}"
3357 ;;
2909494b
JM
3358 arm*-*-symbianelf*)
3359 noconfigdirs="$noconfigdirs ${libgcj}"
3360 ;;
2909494b 3361 bfin-*-*)
2909494b
JM
3362 noconfigdirs="$noconfigdirs target-boehm-gc"
3363 ;;
2909494b
JM
3364 cris-*-* | crisv32-*-*)
3365 unsupported_languages="$unsupported_languages java"
3366 case "${target}" in
3367 *-*-linux*)
3368 ;;
3369 *) # See PR46792 regarding target-libffi.
3370 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3371 esac
3372 ;;
2909494b
JM
3373 hppa*64*-*-linux*)
3374 # In this case, it's because the hppa64-linux target is for
3375 # the kernel only at this point and has no libc, and thus no
3376 # headers, crt*.o, etc., all of which are needed by these.
fddf9ee7 3377 unsupported_languages="$unsupported_languages java"
2909494b 3378 ;;
fddf9ee7 3379 hppa*64*-*-hpux*)
2909494b
JM
3380 noconfigdirs="$noconfigdirs ${libgcj}"
3381 ;;
3382 hppa*-hp-hpux11*)
3383 ;;
fddf9ee7 3384 hppa*-*-hpux*)
2909494b
JM
3385 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3386 # build on HP-UX 10.20.
3387 noconfigdirs="$noconfigdirs ${libgcj}"
3388 ;;
2909494b
JM
3389 ia64*-*-*vms*)
3390 noconfigdirs="$noconfigdirs ${libgcj}"
3391 ;;
2909494b
JM
3392 i[3456789]86-w64-mingw*)
3393 noconfigdirs="$noconfigdirs ${libgcj}"
3394 ;;
3395 i[3456789]86-*-mingw*)
3396 noconfigdirs="$noconfigdirs ${libgcj}"
3397 ;;
3398 x86_64-*-mingw*)
3399 noconfigdirs="$noconfigdirs ${libgcj}"
3400 ;;
2909494b
JM
3401 mmix-*-*)
3402 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
2909494b
JM
3403 ;;
3404 powerpc-*-aix*)
3405 # copied from rs6000-*-* entry
3406 noconfigdirs="$noconfigdirs ${libgcj}"
3407 ;;
2909494b
JM
3408 rs6000-*-aix*)
3409 noconfigdirs="$noconfigdirs ${libgcj}"
3410 ;;
2909494b
JM
3411 *-*-lynxos*)
3412 noconfigdirs="$noconfigdirs ${libgcj}"
3413 ;;
2909494b
JM
3414esac
3415
1335a8ca
JBG
3416# Disable the go frontend on systems where it is known to not work. Please keep
3417# this in sync with contrib/config-list.mk.
74cc5471
ILT
3418case "${target}" in
3419*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3420 unsupported_languages="$unsupported_languages go"
3421 ;;
3422esac
3423
cdbc9e92
ILT
3424# Disable libgo for some systems where it is known to not work.
3425# For testing, you can easily override this with --enable-libgo.
3426if test x$enable_libgo = x; then
3427 case "${target}" in
3428 *-*-darwin*)
3429 # PR 46986
3430 noconfigdirs="$noconfigdirs target-libgo"
3431 ;;
3432 *-*-cygwin* | *-*-mingw*)
3433 noconfigdirs="$noconfigdirs target-libgo"
3434 ;;
3435 *-*-aix*)
3436 noconfigdirs="$noconfigdirs target-libgo"
3437 ;;
3438 esac
3439fi
3440
c03353e2
RIL
3441# Default libgloss CPU subdirectory.
3442libgloss_dir="$target_cpu"
6de9cd9a 3443
fbcf0dca
JM
3444case "${target}" in
3445 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3446 libgloss_dir=wince
3447 ;;
4dddfc74
YZ
3448 aarch64*-*-* )
3449 libgloss_dir=aarch64
3450 ;;
fbcf0dca
JM
3451 arm*-*-*)
3452 libgloss_dir=arm
3453 ;;
3454 cris-*-* | crisv32-*-*)
3455 libgloss_dir=cris
3456 ;;
3457 hppa*-*-*)
3458 libgloss_dir=pa
3459 ;;
3460 i[3456789]86-*-*)
3461 libgloss_dir=i386
3462 ;;
3463 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3464 libgloss_dir=m68hc11
3465 ;;
3466 m68*-*-* | fido-*-*)
3467 libgloss_dir=m68k
3468 ;;
3469 mips*-*-*)
3470 libgloss_dir=mips
3471 ;;
3472 powerpc*-*-*)
3473 libgloss_dir=rs6000
3474 ;;
3475 sparc*-*-*)
3476 libgloss_dir=sparc
3477 ;;
3478esac
3479
6a789d5e 3480# Disable newlib and libgloss for various target OSes.
671aa708 3481case "${target}" in
6a789d5e
JM
3482 alpha*-dec-osf*)
3483 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3484 ;;
3485 i[3456789]86-*-linux*)
3486 # This section makes it possible to build newlib natively on linux.
3487 # If we are using a cross compiler then don't configure newlib.
3488 if test x${is_cross_compiler} != xno ; then
3489 noconfigdirs="$noconfigdirs target-newlib"
3490 fi
3491 noconfigdirs="$noconfigdirs target-libgloss"
3492 # If we are not using a cross compiler, do configure newlib.
3493 # Note however, that newlib will only be configured in this situation
3494 # if the --with-newlib option has been given, because otherwise
3495 # 'target-newlib' will appear in skipdirs.
3496 ;;
3497 i[3456789]86-*-rdos*)
3498 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3499 ;;
3500 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3501 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3502 ;;
3503 sparc-*-sunos4*)
3504 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3505 ;;
3506 *-*-aix*)
3507 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3508 ;;
3509 *-*-beos*)
3510 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3511 ;;
671aa708 3512 *-*-chorusos)
0036370f 3513 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3514 ;;
6a789d5e
JM
3515 *-*-dragonfly*)
3516 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3517 ;;
3518 *-*-freebsd*)
3519 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3520 ;;
3521 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3522 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3523 ;;
3524 *-*-lynxos*)
3525 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3526 ;;
3527 *-*-mingw*)
3528 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3529 ;;
3530 *-*-netbsd*)
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3532 ;;
3533 *-*-netware*)
3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3535 ;;
3536 *-*-tpf*)
3537 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3538 ;;
3539 *-*-uclinux*)
3540 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3541 ;;
3542 *-*-vxworks*)
3543 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3544 ;;
3545esac
3546
3547case "${target}" in
3548 *-*-chorusos)
3549 ;;
75eeae1a 3550 powerpc-*-darwin*)
e1514c3f 3551 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3552 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3553 ;;
354ebf88
RW
3554 i[3456789]86-*-darwin*)
3555 noconfigdirs="$noconfigdirs ld gprof"
3556 noconfigdirs="$noconfigdirs sim target-rda"
3557 ;;
3558 x86_64-*-darwin[912]*)
0db3a858
TG
3559 noconfigdirs="$noconfigdirs ld gas gprof"
3560 noconfigdirs="$noconfigdirs sim target-rda"
3561 ;;
42c1cd8a
AT
3562 *-*-darwin*)
3563 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3564 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3565 ;;
8c6d158a 3566 *-*-dragonfly*)
8c6d158a 3567 ;;
c3f84f61 3568 *-*-freebsd*)
6de9cd9a
DN
3569 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3570 && test -f /usr/local/include/gmp.h; then
3571 with_gmp=/usr/local
3572 fi
6de9cd9a 3573 ;;
ef4e7569
US
3574 *-*-kaos*)
3575 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3576 noconfigdirs="$noconfigdirs target-libgloss"
3577 ;;
671aa708 3578 *-*-netbsd*)
671aa708 3579 ;;
61fec9ff 3580 *-*-netware*)
671aa708
NN
3581 ;;
3582 *-*-rtems*)
2909494b 3583 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3584 ;;
a8ba31f2
EC
3585 # The tpf target doesn't support gdb yet.
3586 *-*-tpf*)
6a789d5e 3587 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3588 ;;
5785c0ed 3589 *-*-uclinux*)
6a789d5e 3590 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3591 ;;
671aa708 3592 *-*-vxworks*)
671aa708
NN
3593 ;;
3594 alpha*-dec-osf*)
3595 # ld works, but does not support shared libraries.
671aa708 3596 # gas doesn't generate exception information.
6a789d5e 3597 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3598 ;;
3599 alpha*-*-*vms*)
2909494b 3600 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3601 ;;
671aa708
NN
3602 alpha*-*-*)
3603 # newlib is not 64 bit ready
2909494b 3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3605 ;;
671aa708 3606 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3607 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3608 ;;
53426f6c 3609 arc-*-*|arceb-*-*)
ebb9f8b0 3610 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3611 ;;
671aa708 3612 arm-*-pe*)
2909494b 3613 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3614 ;;
671aa708 3615 arm-*-riscix*)
0036370f 3616 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3617 ;;
b588ae30
GJL
3618 avr-*-rtems*)
3619 ;;
3620 avr-*-*)
3621 if test x${with_avrlibc} != xno; then
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623 fi
3624 ;;
671aa708 3625 c4x-*-* | tic4x-*-*)
0036370f 3626 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3627 ;;
0036370f
JM
3628 tic54x-*-*)
3629 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3630 ;;
671aa708 3631 d10v-*-*)
0036370f 3632 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3633 ;;
3634 d30v-*-*)
0036370f 3635 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3636 ;;
3637 fr30-*-elf*)
2909494b 3638 noconfigdirs="$noconfigdirs gdb"
671aa708 3639 ;;
55f2d967 3640 moxie-*-*)
55f2d967
AG
3641 noconfigdirs="$noconfigdirs gprof"
3642 ;;
671aa708 3643 h8300*-*-*)
2909494b 3644 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3645 ;;
3646 h8500-*-*)
0036370f 3647 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3648 ;;
ee6a22df 3649 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3650 ;;
4569f85e 3651 hppa*64*-*-linux*)
671aa708 3652 ;;
56f8587a 3653 hppa*-*-linux*)
3e732ba0 3654 ;;
671aa708 3655 hppa*-*-*elf* | \
671aa708
NN
3656 hppa*-*-lites* | \
3657 hppa*-*-openbsd* | \
3658 hppa*64*-*-*)
671aa708 3659 ;;
2a332582 3660 hppa*-hp-hpux11*)
1bcce263 3661 noconfigdirs="$noconfigdirs ld"
2a332582 3662 ;;
c03353e2 3663 hppa*-*-pro*)
c03353e2 3664 ;;
671aa708 3665 hppa*-*-*)
2909494b 3666 noconfigdirs="$noconfigdirs ld"
671aa708 3667 ;;
fb87ad5d 3668 i960-*-*)
0036370f 3669 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3670 ;;
671aa708
NN
3671 ia64*-*-elf*)
3672 # No gdb support yet.
1bcce263 3673 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3674 ;;
3675 ia64*-**-hpux*)
5a2931d1 3676 # No ld support yet.
2909494b 3677 noconfigdirs="$noconfigdirs libgui itcl ld"
671aa708 3678 ;;
52535a64 3679 ia64*-*-*vms*)
091fe9ca
TG
3680 # No ld support yet.
3681 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3682 ;;
ef4c4300 3683 i[3456789]86-w64-mingw*)
ef4c4300
KT
3684 ;;
3685 i[3456789]86-*-mingw*)
b91f0a41 3686 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3687 ;;
671aa708
NN
3688 *-*-cygwin*)
3689 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3690 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3691 # always build newlib if winsup directory is present.
b91f0a41 3692 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3693 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3694 elif test -d "$srcdir/newlib"; then
b91f0a41 3695 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3696 fi
1c710c3c 3697 ;;
f2a0e225 3698 i[3456789]86-*-pe)
ebb9f8b0 3699 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3700 ;;
f2a0e225 3701 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3702 # The linker does not yet know about weak symbols in COFF,
3703 # and is not configured to handle mixed ELF and COFF.
0036370f 3704 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3705 ;;
f2a0e225 3706 i[3456789]86-*-sco*)
0036370f 3707 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3708 ;;
fbdd5d87 3709 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3710 noconfigdirs="$noconfigdirs target-libgloss"
3711 ;;
f2a0e225 3712 i[3456789]86-*-sysv4*)
0036370f 3713 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3714 ;;
f2a0e225 3715 i[3456789]86-*-beos*)
6a789d5e 3716 noconfigdirs="$noconfigdirs gdb"
3aa83176 3717 ;;
d1f8db0c 3718 i[3456789]86-*-rdos*)
6a789d5e 3719 noconfigdirs="$noconfigdirs gdb"
c03353e2 3720 ;;
671aa708 3721 mmix-*-*)
2909494b 3722 noconfigdirs="$noconfigdirs gdb"
671aa708 3723 ;;
ab34901f 3724 mt-*-*)
79dd769c
AH
3725 noconfigdirs="$noconfigdirs sim"
3726 ;;
671aa708
NN
3727 powerpc-*-aix*)
3728 # copied from rs6000-*-* entry
6a789d5e 3729 noconfigdirs="$noconfigdirs gprof"
671aa708 3730 ;;
4569f85e 3731 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3732 target_configdirs="$target_configdirs target-winsup"
0036370f 3733 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3734 # always build newlib.
3735 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3736 ;;
3737 # This is temporary until we can link against shared libraries
3738 powerpcle-*-solaris*)
0036370f 3739 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3740 ;;
3741 powerpc-*-beos*)
6a789d5e 3742 noconfigdirs="$noconfigdirs gdb"
671aa708 3743 ;;
671aa708 3744 rs6000-*-lynxos*)
6a789d5e 3745 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3746 ;;
3747 rs6000-*-aix*)
6a789d5e 3748 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3749 ;;
3750 rs6000-*-*)
2909494b 3751 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3752 ;;
3753 m68k-apollo-*)
0036370f 3754 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3755 ;;
ca9fe997 3756 microblaze*)
2909494b 3757 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3758 ;;
d91491e5 3759 mips*-sde-elf* | mips*-mti-elf*)
d9dced13
RS
3760 if test x$with_newlib = xyes; then
3761 noconfigdirs="$noconfigdirs gprof"
3762 fi
d9dced13 3763 ;;
671aa708 3764 mips*-*-irix5*)
0036370f 3765 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3766 ;;
3767 mips*-*-irix6*)
2909494b 3768 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3769 ;;
671aa708 3770 mips*-*-bsd*)
bc98bcc4 3771 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3772 ;;
671aa708 3773 mips*-*-linux*)
671aa708 3774 ;;
bc98bcc4
JBG
3775 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3776 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3777 noconfigdirs="$noconfigdirs ld gas gprof"
3778 ;;
671aa708 3779 mips*-*-*)
2909494b 3780 noconfigdirs="$noconfigdirs gprof"
671aa708 3781 ;;
738f2522
BS
3782 nvptx*-*-*)
3783 # nvptx is just a compiler
3784 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3785 ;;
669f01d8 3786 sh-*-* | sh64-*-*)
ea2002ba
CB
3787 case "${target}" in
3788 sh*-*-elf)
2909494b 3789 ;;
ea2002ba 3790 *)
2909494b 3791 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3792 esac
671aa708 3793 ;;
671aa708 3794 sparc-*-sunos4*)
6a789d5e 3795 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3796 use_gnu_ld=no
3797 fi
3798 ;;
b42f0d7e 3799 tic6x-*-*)
0d557ff8 3800 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3801 ;;
341c653c 3802 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
3803 noconfigdirs="$noconfigdirs sim"
3804 ;;
671aa708 3805 v810-*-*)
0036370f 3806 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3807 ;;
3808 vax-*-*)
2909494b 3809 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3810 ;;
671aa708 3811esac
79c06341 3812
671aa708
NN
3813# If we aren't building newlib, then don't build libgloss, since libgloss
3814# depends upon some newlib header files.
3815case "${noconfigdirs}" in
3816 *target-libgloss*) ;;
3817 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3818esac
3819
671aa708 3820# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3821host_makefile_frag=/dev/null
3822if test -d ${srcdir}/config ; then
3823case "${host}" in
f2a0e225 3824 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3825 host_makefile_frag="config/mh-djgpp"
3826 ;;
3827 *-cygwin*)
2a79c47f 3828
5213506e
RW
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3830$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3831echo a >cygwin-cat-check
e25a8c82 3832if test `cat cygwin-cat-check` = a ; then
2a79c47f 3833 rm cygwin-cat-check
5213506e
RW
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3835$as_echo "yes" >&6; }
2a79c47f
NC
3836else
3837 rm cygwin-cat-check
5213506e
RW
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839$as_echo "no" >&6; }
3840 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3841 Please either mount the build directory in binary mode or run the following
3842 commands before running any configure script:
3843set -o igncr
3844export SHELLOPTS
5213506e 3845 " "$LINENO" 5
2a79c47f
NC
3846fi
3847
671aa708
NN
3848 host_makefile_frag="config/mh-cygwin"
3849 ;;
c53a18d3 3850 *-mingw*)
1f5a6b84 3851 host_makefile_frag="config/mh-mingw"
95af8923 3852 ;;
7b7f941a
UB
3853 alpha*-*-linux*)
3854 host_makefile_frag="config/mh-alpha-linux"
3855 ;;
efd41714 3856 hppa*-hp-hpux10*)
efd41714 3857 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3858 ;;
111eeb6e 3859 hppa*-hp-hpux*)
efd41714
PB
3860 host_makefile_frag="config/mh-pa"
3861 ;;
3862 hppa*-*)
3863 host_makefile_frag="config/mh-pa"
3864 ;;
d8ed14ce
IS
3865 *-*-darwin*)
3866 host_makefile_frag="config/mh-darwin"
be8fff81 3867 ;;
d19bca38
PB
3868 powerpc-*-aix*)
3869 host_makefile_frag="config/mh-ppc-aix"
3870 ;;
3871 rs6000-*-aix*)
3872 host_makefile_frag="config/mh-ppc-aix"
3873 ;;
671aa708
NN
3874esac
3875fi
3876
55ffb5ed 3877if test "${build}" != "${host}" ; then
0999159b
PB
3878 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3879 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3880 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3881 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3882 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3883 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3884 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3885 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3886 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3887 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3888 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3889 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3890 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3891else
3892 AR_FOR_BUILD="\$(AR)"
3893 AS_FOR_BUILD="\$(AS)"
fb0103e5 3894 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3895 CXX_FOR_BUILD="\$(CXX)"
3896 GCJ_FOR_BUILD="\$(GCJ)"
3897 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3898 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3899 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3900 LD_FOR_BUILD="\$(LD)"
3901 NM_FOR_BUILD="\$(NM)"
3902 RANLIB_FOR_BUILD="\$(RANLIB)"
3903 WINDRES_FOR_BUILD="\$(WINDRES)"
3904 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3905fi
3906
3907ac_ext=c
1c710c3c
DJ
3908ac_cpp='$CPP $CPPFLAGS'
3909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912if test -n "$ac_tool_prefix"; then
3913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3914set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916$as_echo_n "checking for $ac_word... " >&6; }
3917if test "${ac_cv_prog_CC+set}" = set; then :
3918 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3919else
3920 if test -n "$CC"; then
3921 ac_cv_prog_CC="$CC" # Let the user override the test.
3922else
3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH
3925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
5213506e
RW
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3930 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3932 break 2
3933 fi
3934done
5213506e
RW
3935 done
3936IFS=$as_save_IFS
1c710c3c
DJ
3937
3938fi
3939fi
3940CC=$ac_cv_prog_CC
3941if test -n "$CC"; then
5213506e
RW
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3943$as_echo "$CC" >&6; }
1c710c3c 3944else
5213506e
RW
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946$as_echo "no" >&6; }
1c710c3c
DJ
3947fi
3948
5213506e 3949
1c710c3c
DJ
3950fi
3951if test -z "$ac_cv_prog_CC"; then
3952 ac_ct_CC=$CC
fb0103e5
RG
3953 # Extract the first word of "gcc", so it can be a program name with args.
3954set dummy gcc; ac_word=$2
5213506e
RW
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956$as_echo_n "checking for $ac_word... " >&6; }
3957if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3958 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3959else
3960 if test -n "$ac_ct_CC"; then
3961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3962else
3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH
3965do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
5213506e
RW
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3970 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3972 break 2
3973 fi
3974done
5213506e
RW
3975 done
3976IFS=$as_save_IFS
1c710c3c
DJ
3977
3978fi
3979fi
3980ac_ct_CC=$ac_cv_prog_ac_ct_CC
3981if test -n "$ac_ct_CC"; then
5213506e
RW
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3983$as_echo "$ac_ct_CC" >&6; }
1c710c3c 3984else
5213506e
RW
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986$as_echo "no" >&6; }
1c710c3c
DJ
3987fi
3988
5213506e
RW
3989 if test "x$ac_ct_CC" = x; then
3990 CC=""
3991 else
3992 case $cross_compiling:$ac_tool_warned in
3993yes:)
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3996ac_tool_warned=yes ;;
3997esac
3998 CC=$ac_ct_CC
3999 fi
1c710c3c
DJ
4000else
4001 CC="$ac_cv_prog_CC"
4002fi
4003
4004if test -z "$CC"; then
5213506e
RW
4005 if test -n "$ac_tool_prefix"; then
4006 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4007set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009$as_echo_n "checking for $ac_word... " >&6; }
4010if test "${ac_cv_prog_CC+set}" = set; then :
4011 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4012else
4013 if test -n "$CC"; then
4014 ac_cv_prog_CC="$CC" # Let the user override the test.
4015else
1c710c3c
DJ
4016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017for as_dir in $PATH
4018do
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
5213506e
RW
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4023 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4025 break 2
4026 fi
4027done
5213506e
RW
4028 done
4029IFS=$as_save_IFS
1c710c3c 4030
0b0dc272 4031fi
0b0dc272 4032fi
1c710c3c 4033CC=$ac_cv_prog_CC
af71363e 4034if test -n "$CC"; then
5213506e
RW
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4036$as_echo "$CC" >&6; }
2aeb72e9 4037else
5213506e
RW
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039$as_echo "no" >&6; }
2aeb72e9
DD
4040fi
4041
2aeb72e9 4042
5213506e 4043 fi
1c710c3c 4044fi
55ffb5ed
NN
4045if test -z "$CC"; then
4046 # Extract the first word of "cc", so it can be a program name with args.
4047set dummy cc; ac_word=$2
5213506e
RW
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049$as_echo_n "checking for $ac_word... " >&6; }
4050if test "${ac_cv_prog_CC+set}" = set; then :
4051 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4052else
4053 if test -n "$CC"; then
4054 ac_cv_prog_CC="$CC" # Let the user override the test.
4055else
0b0dc272 4056 ac_prog_rejected=no
1c710c3c
DJ
4057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058for as_dir in $PATH
4059do
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
5213506e
RW
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4064 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4065 ac_prog_rejected=yes
4066 continue
4067 fi
4068 ac_cv_prog_CC="cc"
5213506e 4069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4070 break 2
4071 fi
4072done
5213506e
RW
4073 done
4074IFS=$as_save_IFS
1c710c3c 4075
55ffb5ed
NN
4076if test $ac_prog_rejected = yes; then
4077 # We found a bogon in the path, so make sure we never use it.
4078 set dummy $ac_cv_prog_CC
4079 shift
1c710c3c 4080 if test $# != 0; then
55ffb5ed
NN
4081 # We chose a different compiler from the bogus one.
4082 # However, it has the same basename, so the bogon will be chosen
4083 # first if we set CC to just the basename; use the full file name.
4084 shift
1c710c3c 4085 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4086 fi
4087fi
4088fi
4089fi
1c710c3c 4090CC=$ac_cv_prog_CC
55ffb5ed 4091if test -n "$CC"; then
5213506e
RW
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4093$as_echo "$CC" >&6; }
55ffb5ed 4094else
5213506e
RW
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096$as_echo "no" >&6; }
55ffb5ed
NN
4097fi
4098
5213506e 4099
1c710c3c
DJ
4100fi
4101if test -z "$CC"; then
4102 if test -n "$ac_tool_prefix"; then
5213506e 4103 for ac_prog in cl.exe
1c710c3c
DJ
4104 do
4105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4106set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108$as_echo_n "checking for $ac_word... " >&6; }
4109if test "${ac_cv_prog_CC+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4111else
4112 if test -n "$CC"; then
4113 ac_cv_prog_CC="$CC" # Let the user override the test.
4114else
1c710c3c
DJ
4115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116for as_dir in $PATH
4117do
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
5213506e
RW
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4122 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4124 break 2
4125 fi
4126done
5213506e
RW
4127 done
4128IFS=$as_save_IFS
1c710c3c 4129
55ffb5ed
NN
4130fi
4131fi
1c710c3c 4132CC=$ac_cv_prog_CC
55ffb5ed 4133if test -n "$CC"; then
5213506e
RW
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4135$as_echo "$CC" >&6; }
a4b9e93e 4136else
5213506e
RW
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4138$as_echo "no" >&6; }
fb0103e5 4139fi
af71363e 4140
5213506e 4141
1c710c3c
DJ
4142 test -n "$CC" && break
4143 done
af71363e 4144fi
1c710c3c
DJ
4145if test -z "$CC"; then
4146 ac_ct_CC=$CC
5213506e 4147 for ac_prog in cl.exe
1c710c3c
DJ
4148do
4149 # Extract the first word of "$ac_prog", so it can be a program name with args.
4150set dummy $ac_prog; ac_word=$2
5213506e
RW
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152$as_echo_n "checking for $ac_word... " >&6; }
4153if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4154 $as_echo_n "(cached) " >&6
0b0dc272 4155else
1c710c3c
DJ
4156 if test -n "$ac_ct_CC"; then
4157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4158else
1c710c3c
DJ
4159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160for as_dir in $PATH
4161do
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
5213506e
RW
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4166 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4168 break 2
4169 fi
4170done
5213506e
RW
4171 done
4172IFS=$as_save_IFS
1c710c3c 4173
af71363e
AS
4174fi
4175fi
1c710c3c
DJ
4176ac_ct_CC=$ac_cv_prog_ac_ct_CC
4177if test -n "$ac_ct_CC"; then
5213506e
RW
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4179$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4180else
5213506e
RW
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182$as_echo "no" >&6; }
af71363e 4183fi
0b0dc272 4184
5213506e 4185
1c710c3c
DJ
4186 test -n "$ac_ct_CC" && break
4187done
4188
5213506e
RW
4189 if test "x$ac_ct_CC" = x; then
4190 CC=""
4191 else
4192 case $cross_compiling:$ac_tool_warned in
4193yes:)
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4196ac_tool_warned=yes ;;
4197esac
4198 CC=$ac_ct_CC
4199 fi
1c710c3c
DJ
4200fi
4201
4202fi
4203
4204
5213506e
RW
4205test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4207as_fn_error "no acceptable C compiler found in \$PATH
4208See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4209
4210# Provide some information about the compiler.
5213506e
RW
4211$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4212set X $ac_compile
4213ac_compiler=$2
4214for ac_option in --version -v -V -qversion; do
4215 { { ac_try="$ac_compiler $ac_option >&5"
4216case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219esac
4220eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4221$as_echo "$ac_try_echo"; } >&5
4222 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4223 ac_status=$?
5213506e
RW
4224 if test -s conftest.err; then
4225 sed '10a\
4226... rest of stderr output deleted ...
4227 10q' conftest.err >conftest.er1
4228 cat conftest.er1 >&5
4229 rm -f conftest.er1 conftest.err
4230 fi
4231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4232 test $ac_status = 0; }
4233done
1c710c3c 4234
5213506e 4235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4236/* end confdefs.h. */
4237
4238int
4239main ()
4240{
4241
4242 ;
4243 return 0;
4244}
4245_ACEOF
4246ac_clean_files_save=$ac_clean_files
5213506e 4247ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4248# Try to create an executable without -o first, disregard a.out.
4249# It will help us diagnose broken compilers, and finding out an intuition
4250# of exeext.
5213506e
RW
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4252$as_echo_n "checking for C compiler default output file name... " >&6; }
4253ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4254
4255# The possible output files:
4256ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4257
4258ac_rmfiles=
4259for ac_file in $ac_files
4260do
4261 case $ac_file in
4262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4263 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4264 esac
4265done
4266rm -f $ac_rmfiles
4267
4268if { { ac_try="$ac_link_default"
4269case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272esac
4273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274$as_echo "$ac_try_echo"; } >&5
4275 (eval "$ac_link_default") 2>&5
1c710c3c 4276 ac_status=$?
5213506e
RW
4277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4278 test $ac_status = 0; }; then :
4279 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4280# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4281# in a Makefile. We should not override ac_cv_exeext if it was cached,
4282# so that the user can short-circuit this test for compilers unknown to
4283# Autoconf.
4284for ac_file in $ac_files ''
1c710c3c
DJ
4285do
4286 test -f "$ac_file" || continue
4287 case $ac_file in
5213506e 4288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4289 ;;
4290 [ab].out )
4291 # We found the default executable, but exeext='' is most
4292 # certainly right.
4293 break;;
4294 *.* )
5213506e
RW
4295 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4296 then :; else
4297 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4298 fi
4299 # We set ac_cv_exeext here because the later test for it is not
4300 # safe: cross compilers may not add the suffix if given an `-o'
4301 # argument, so we may need to know it at that point already.
4302 # Even if this section looks crufty: it has the advantage of
4303 # actually working.
1c710c3c
DJ
4304 break;;
4305 * )
4306 break;;
4307 esac
4308done
5213506e
RW
4309test "$ac_cv_exeext" = no && ac_cv_exeext=
4310
1c710c3c 4311else
5213506e
RW
4312 ac_file=''
4313fi
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4315$as_echo "$ac_file" >&6; }
4316if test -z "$ac_file"; then :
4317 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4318sed 's/^/| /' conftest.$ac_ext >&5
4319
5213506e
RW
4320{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4322{ as_fn_set_status 77
4323as_fn_error "C compiler cannot create executables
4324See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4325fi
1c710c3c 4326ac_exeext=$ac_cv_exeext
1c710c3c 4327
5213506e 4328# Check that the compiler produces executables we can run. If not, either
1c710c3c 4329# the compiler is broken, or we cross compile.
5213506e
RW
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4331$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4332# If not cross compiling, check that we can run a simple program.
4333if test "$cross_compiling" != yes; then
4334 if { ac_try='./$ac_file'
5213506e
RW
4335 { { case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4338esac
4339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340$as_echo "$ac_try_echo"; } >&5
4341 (eval "$ac_try") 2>&5
1c710c3c 4342 ac_status=$?
5213506e
RW
4343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344 test $ac_status = 0; }; }; then
1c710c3c
DJ
4345 cross_compiling=no
4346 else
4347 if test "$cross_compiling" = maybe; then
4348 cross_compiling=yes
4349 else
5213506e
RW
4350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4352as_fn_error "cannot run C compiled programs.
1c710c3c 4353If you meant to cross compile, use \`--host'.
5213506e 4354See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4355 fi
4356 fi
4357fi
5213506e
RW
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4359$as_echo "yes" >&6; }
1c710c3c 4360
5213506e 4361rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4362ac_clean_files=$ac_clean_files_save
5213506e 4363# Check that the compiler produces executables we can run. If not, either
1c710c3c 4364# the compiler is broken, or we cross compile.
5213506e
RW
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4366$as_echo_n "checking whether we are cross compiling... " >&6; }
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4368$as_echo "$cross_compiling" >&6; }
4369
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4371$as_echo_n "checking for suffix of executables... " >&6; }
4372if { { ac_try="$ac_link"
4373case "(($ac_try" in
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4376esac
4377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378$as_echo "$ac_try_echo"; } >&5
4379 (eval "$ac_link") 2>&5
1c710c3c 4380 ac_status=$?
5213506e
RW
4381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4382 test $ac_status = 0; }; then :
1c710c3c
DJ
4383 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4384# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4385# work properly (i.e., refer to `conftest.exe'), while it won't with
4386# `rm'.
4387for ac_file in conftest.exe conftest conftest.*; do
4388 test -f "$ac_file" || continue
4389 case $ac_file in
5213506e 4390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4391 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4392 break;;
4393 * ) break;;
4394 esac
4395done
af71363e 4396else
5213506e
RW
4397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4399as_fn_error "cannot compute suffix of executables: cannot compile and link
4400See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4401fi
1c710c3c 4402rm -f conftest$ac_cv_exeext
5213506e
RW
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4404$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4405
4406rm -f conftest.$ac_ext
4407EXEEXT=$ac_cv_exeext
4408ac_exeext=$EXEEXT
5213506e
RW
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4410$as_echo_n "checking for suffix of object files... " >&6; }
4411if test "${ac_cv_objext+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
1c710c3c 4413else
5213506e 4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4415/* end confdefs.h. */
4416
4417int
4418main ()
4419{
4420
4421 ;
4422 return 0;
4423}
4424_ACEOF
4425rm -f conftest.o conftest.obj
5213506e
RW
4426if { { ac_try="$ac_compile"
4427case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4430esac
4431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432$as_echo "$ac_try_echo"; } >&5
4433 (eval "$ac_compile") 2>&5
1c710c3c 4434 ac_status=$?
5213506e
RW
4435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; }; then :
4437 for ac_file in conftest.o conftest.obj conftest.*; do
4438 test -f "$ac_file" || continue;
1c710c3c 4439 case $ac_file in
5213506e 4440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4441 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4442 break;;
4443 esac
4444done
4445else
5213506e 4446 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4447sed 's/^/| /' conftest.$ac_ext >&5
4448
5213506e
RW
4449{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4451as_fn_error "cannot compute suffix of object files: cannot compile
4452See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4453fi
1c710c3c
DJ
4454rm -f conftest.$ac_cv_objext conftest.$ac_ext
4455fi
5213506e
RW
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4457$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4458OBJEXT=$ac_cv_objext
4459ac_objext=$OBJEXT
5213506e
RW
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4461$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4462if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
1c710c3c 4464else
5213506e 4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4466/* end confdefs.h. */
4467
4468int
4469main ()
4470{
4471#ifndef __GNUC__
4472 choke me
4473#endif
4474
4475 ;
4476 return 0;
4477}
4478_ACEOF
5213506e 4479if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4480 ac_compiler_gnu=yes
4481else
5213506e 4482 ac_compiler_gnu=no
1c710c3c 4483fi
5213506e 4484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4485ac_cv_c_compiler_gnu=$ac_compiler_gnu
4486
4487fi
5213506e
RW
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4489$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4490if test $ac_compiler_gnu = yes; then
4491 GCC=yes
4492else
4493 GCC=
4494fi
1c710c3c
DJ
4495ac_test_CFLAGS=${CFLAGS+set}
4496ac_save_CFLAGS=$CFLAGS
5213506e
RW
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4498$as_echo_n "checking whether $CC accepts -g... " >&6; }
4499if test "${ac_cv_prog_cc_g+set}" = set; then :
4500 $as_echo_n "(cached) " >&6
4501else
4502 ac_save_c_werror_flag=$ac_c_werror_flag
4503 ac_c_werror_flag=yes
4504 ac_cv_prog_cc_g=no
4505 CFLAGS="-g"
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4507/* end confdefs.h. */
4508
4509int
4510main ()
4511{
4512
4513 ;
4514 return 0;
4515}
4516_ACEOF
5213506e 4517if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4518 ac_cv_prog_cc_g=yes
4519else
5213506e
RW
4520 CFLAGS=""
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522/* end confdefs.h. */
4523
4524int
4525main ()
4526{
4527
4528 ;
4529 return 0;
4530}
4531_ACEOF
4532if ac_fn_c_try_compile "$LINENO"; then :
4533
4534else
4535 ac_c_werror_flag=$ac_save_c_werror_flag
4536 CFLAGS="-g"
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538/* end confdefs.h. */
af71363e 4539
5213506e
RW
4540int
4541main ()
4542{
4543
4544 ;
4545 return 0;
4546}
4547_ACEOF
4548if ac_fn_c_try_compile "$LINENO"; then :
4549 ac_cv_prog_cc_g=yes
4550fi
4551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4552fi
5213506e 4553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4554fi
5213506e
RW
4555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556 ac_c_werror_flag=$ac_save_c_werror_flag
4557fi
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4559$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4560if test "$ac_test_CFLAGS" = set; then
1c710c3c 4561 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4562elif test $ac_cv_prog_cc_g = yes; then
4563 if test "$GCC" = yes; then
4564 CFLAGS="-g -O2"
4565 else
4566 CFLAGS="-g"
4567 fi
4568else
4569 if test "$GCC" = yes; then
4570 CFLAGS="-O2"
4571 else
4572 CFLAGS=
4573 fi
4574fi
5213506e
RW
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4576$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4577if test "${ac_cv_prog_cc_c89+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
1c710c3c 4579else
5213506e 4580 ac_cv_prog_cc_c89=no
1c710c3c 4581ac_save_CC=$CC
5213506e 4582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4583/* end confdefs.h. */
4584#include <stdarg.h>
4585#include <stdio.h>
4586#include <sys/types.h>
4587#include <sys/stat.h>
4588/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4589struct buf { int x; };
4590FILE * (*rcsopen) (struct buf *, struct stat *, int);
4591static char *e (p, i)
4592 char **p;
4593 int i;
4594{
4595 return p[i];
4596}
4597static char *f (char * (*g) (char **, int), char **p, ...)
4598{
4599 char *s;
4600 va_list v;
4601 va_start (v,p);
4602 s = g (p, va_arg (v,int));
4603 va_end (v);
4604 return s;
4605}
4606
4607/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4608 function prototypes and stuff, but not '\xHH' hex character constants.
4609 These don't provoke an error unfortunately, instead are silently treated
5213506e 4610 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4611 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4612 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4613 that's true only with -std. */
1c710c3c
DJ
4614int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4615
5213506e
RW
4616/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4617 inside strings and character constants. */
4618#define FOO(x) 'x'
4619int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4620
1c710c3c
DJ
4621int test (int i, double x);
4622struct s1 {int (*f) (int a);};
4623struct s2 {int (*f) (double a);};
4624int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4625int argc;
4626char **argv;
4627int
4628main ()
4629{
4630return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4631 ;
4632 return 0;
4633}
4634_ACEOF
5213506e
RW
4635for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4636 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4637do
4638 CC="$ac_save_CC $ac_arg"
5213506e
RW
4639 if ac_fn_c_try_compile "$LINENO"; then :
4640 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4641fi
5213506e
RW
4642rm -f core conftest.err conftest.$ac_objext
4643 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4644done
5213506e 4645rm -f conftest.$ac_ext
1c710c3c
DJ
4646CC=$ac_save_CC
4647
4648fi
5213506e
RW
4649# AC_CACHE_VAL
4650case "x$ac_cv_prog_cc_c89" in
4651 x)
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4653$as_echo "none needed" >&6; } ;;
4654 xno)
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4656$as_echo "unsupported" >&6; } ;;
1c710c3c 4657 *)
5213506e
RW
4658 CC="$CC $ac_cv_prog_cc_c89"
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4660$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4661esac
5213506e 4662if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4663
2aeb72e9
DD
4664fi
4665
2aeb72e9
DD
4666ac_ext=c
4667ac_cpp='$CPP $CPPFLAGS'
4668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4670ac_compiler_gnu=$ac_cv_c_compiler_gnu
4671
5213506e 4672ac_ext=cpp
2aeb72e9
DD
4673ac_cpp='$CXXCPP $CPPFLAGS'
4674ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4675ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4676ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4677if test -z "$CXX"; then
4678 if test -n "$CCC"; then
4679 CXX=$CCC
4680 else
4681 if test -n "$ac_tool_prefix"; then
4682 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4683 do
4684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4685set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687$as_echo_n "checking for $ac_word... " >&6; }
4688if test "${ac_cv_prog_CXX+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4690else
4691 if test -n "$CXX"; then
4692 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4693else
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
5213506e
RW
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4701 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4703 break 2
4704 fi
4705done
5213506e
RW
4706 done
4707IFS=$as_save_IFS
55ffb5ed 4708
c3a86da9
DJ
4709fi
4710fi
4711CXX=$ac_cv_prog_CXX
4712if test -n "$CXX"; then
5213506e
RW
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4714$as_echo "$CXX" >&6; }
c3a86da9 4715else
5213506e
RW
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717$as_echo "no" >&6; }
c3a86da9
DJ
4718fi
4719
5213506e 4720
c3a86da9
DJ
4721 test -n "$CXX" && break
4722 done
4723fi
4724if test -z "$CXX"; then
4725 ac_ct_CXX=$CXX
5213506e 4726 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4727do
4728 # Extract the first word of "$ac_prog", so it can be a program name with args.
4729set dummy $ac_prog; ac_word=$2
5213506e
RW
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4731$as_echo_n "checking for $ac_word... " >&6; }
4732if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4733 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4734else
4735 if test -n "$ac_ct_CXX"; then
4736 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4737else
4738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739for as_dir in $PATH
4740do
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
5213506e
RW
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4745 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4747 break 2
4748 fi
4749done
5213506e
RW
4750 done
4751IFS=$as_save_IFS
c3a86da9
DJ
4752
4753fi
4754fi
4755ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4756if test -n "$ac_ct_CXX"; then
5213506e
RW
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4758$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4759else
5213506e
RW
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761$as_echo "no" >&6; }
c3a86da9
DJ
4762fi
4763
5213506e 4764
c3a86da9
DJ
4765 test -n "$ac_ct_CXX" && break
4766done
c3a86da9 4767
5213506e
RW
4768 if test "x$ac_ct_CXX" = x; then
4769 CXX="g++"
4770 else
4771 case $cross_compiling:$ac_tool_warned in
4772yes:)
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4775ac_tool_warned=yes ;;
4776esac
4777 CXX=$ac_ct_CXX
4778 fi
c3a86da9
DJ
4779fi
4780
5213506e
RW
4781 fi
4782fi
c3a86da9 4783# Provide some information about the compiler.
5213506e
RW
4784$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4785set X $ac_compile
4786ac_compiler=$2
4787for ac_option in --version -v -V -qversion; do
4788 { { ac_try="$ac_compiler $ac_option >&5"
4789case "(($ac_try" in
4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4792esac
4793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4794$as_echo "$ac_try_echo"; } >&5
4795 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4796 ac_status=$?
5213506e
RW
4797 if test -s conftest.err; then
4798 sed '10a\
4799... rest of stderr output deleted ...
4800 10q' conftest.err >conftest.er1
4801 cat conftest.er1 >&5
4802 rm -f conftest.er1 conftest.err
4803 fi
4804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4805 test $ac_status = 0; }
4806done
c3a86da9 4807
5213506e
RW
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4809$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4810if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4811 $as_echo_n "(cached) " >&6
c3a86da9 4812else
5213506e 4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4814/* end confdefs.h. */
4815
4816int
4817main ()
4818{
4819#ifndef __GNUC__
4820 choke me
4821#endif
4822
4823 ;
4824 return 0;
4825}
4826_ACEOF
5213506e 4827if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4828 ac_compiler_gnu=yes
4829else
5213506e 4830 ac_compiler_gnu=no
c3a86da9 4831fi
5213506e 4832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4833ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4834
4835fi
5213506e
RW
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4837$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4838if test $ac_compiler_gnu = yes; then
4839 GXX=yes
4840else
4841 GXX=
4842fi
c3a86da9
DJ
4843ac_test_CXXFLAGS=${CXXFLAGS+set}
4844ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4846$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4847if test "${ac_cv_prog_cxx_g+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
4849else
4850 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4851 ac_cxx_werror_flag=yes
4852 ac_cv_prog_cxx_g=no
4853 CXXFLAGS="-g"
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4855/* end confdefs.h. */
4856
4857int
4858main ()
4859{
4860
4861 ;
4862 return 0;
4863}
4864_ACEOF
5213506e 4865if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4866 ac_cv_prog_cxx_g=yes
4867else
5213506e
RW
4868 CXXFLAGS=""
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4870/* end confdefs.h. */
5213506e 4871
c3a86da9
DJ
4872int
4873main ()
4874{
5213506e 4875
c3a86da9
DJ
4876 ;
4877 return 0;
4878}
4879_ACEOF
5213506e 4880if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4881
5213506e
RW
4882else
4883 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4884 CXXFLAGS="-g"
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4886/* end confdefs.h. */
5213506e 4887
c3a86da9
DJ
4888int
4889main ()
4890{
5213506e 4891
c3a86da9
DJ
4892 ;
4893 return 0;
4894}
4895_ACEOF
5213506e
RW
4896if ac_fn_cxx_try_compile "$LINENO"; then :
4897 ac_cv_prog_cxx_g=yes
11a67599 4898fi
5213506e
RW
4899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900fi
4901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902fi
4903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4905fi
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4907$as_echo "$ac_cv_prog_cxx_g" >&6; }
4908if test "$ac_test_CXXFLAGS" = set; then
4909 CXXFLAGS=$ac_save_CXXFLAGS
4910elif test $ac_cv_prog_cxx_g = yes; then
4911 if test "$GXX" = yes; then
4912 CXXFLAGS="-g -O2"
4913 else
4914 CXXFLAGS="-g"
4915 fi
4916else
4917 if test "$GXX" = yes; then
4918 CXXFLAGS="-O2"
4919 else
4920 CXXFLAGS=
4921 fi
c3a86da9 4922fi
c3a86da9
DJ
4923ac_ext=c
4924ac_cpp='$CPP $CPPFLAGS'
4925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927ac_compiler_gnu=$ac_cv_c_compiler_gnu
4928
4929
4930# We must set the default linker to the linker used by gcc for the correct
4931# operation of libtool. If LD is not defined and we are using gcc, try to
4932# set the LD default to the ld used by gcc.
4933if test -z "$LD"; then
4934 if test "$GCC" = yes; then
4935 case $build in
4936 *-*-mingw*)
4937 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4938 *)
4939 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4940 esac
4941 case $gcc_prog_ld in
4942 # Accept absolute paths.
4943 [\\/]* | [A-Za-z]:[\\/]*)
4944 LD="$gcc_prog_ld" ;;
4945 esac
4946 fi
23f6b2f9
PB
4947fi
4948
0b21f5d3
EB
4949# Check whether -static-libstdc++ -static-libgcc is supported.
4950have_static_libs=no
4951if test "$GCC" = yes; then
4952 saved_LDFLAGS="$LDFLAGS"
4953
4954 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4956$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4957 ac_ext=cpp
4958ac_cpp='$CXXCPP $CPPFLAGS'
4959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4962
4963
4964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965/* end confdefs.h. */
0d6414b2
EB
4966
4967#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4968#error -static-libstdc++ not implemented
4969#endif
0b21f5d3
EB
4970int main() {}
4971_ACEOF
4972if ac_fn_cxx_try_link "$LINENO"; then :
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4974$as_echo "yes" >&6; }; have_static_libs=yes
4975else
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977$as_echo "no" >&6; }
4978fi
4979rm -f core conftest.err conftest.$ac_objext \
4980 conftest$ac_exeext conftest.$ac_ext
4981 ac_ext=c
4982ac_cpp='$CPP $CPPFLAGS'
4983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985ac_compiler_gnu=$ac_cv_c_compiler_gnu
4986
4987
4988 LDFLAGS="$saved_LDFLAGS"
4989fi
4990
23f6b2f9
PB
4991
4992
55ffb5ed 4993
1c710c3c
DJ
4994if test -n "$ac_tool_prefix"; then
4995 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4996set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998$as_echo_n "checking for $ac_word... " >&6; }
4999if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5000 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5001else
5002 if test -n "$GNATBIND"; then
5003 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5004else
1c710c3c
DJ
5005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH
5007do
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
5213506e
RW
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5012 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5014 break 2
5015 fi
5016done
5213506e
RW
5017 done
5018IFS=$as_save_IFS
1c710c3c 5019
55ffb5ed
NN
5020fi
5021fi
1c710c3c 5022GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5023if test -n "$GNATBIND"; then
5213506e
RW
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5025$as_echo "$GNATBIND" >&6; }
55ffb5ed 5026else
5213506e
RW
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028$as_echo "no" >&6; }
55ffb5ed
NN
5029fi
5030
5213506e 5031
1c710c3c 5032fi
55ffb5ed 5033if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5034 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5035 # Extract the first word of "gnatbind", so it can be a program name with args.
5036set dummy gnatbind; ac_word=$2
5213506e
RW
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038$as_echo_n "checking for $ac_word... " >&6; }
5039if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5040 $as_echo_n "(cached) " >&6
55ffb5ed 5041else
1c710c3c
DJ
5042 if test -n "$ac_ct_GNATBIND"; then
5043 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5044else
1c710c3c
DJ
5045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046for as_dir in $PATH
5047do
5048 IFS=$as_save_IFS
5049 test -z "$as_dir" && as_dir=.
5213506e
RW
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5052 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5054 break 2
5055 fi
5056done
5213506e
RW
5057 done
5058IFS=$as_save_IFS
1c710c3c 5059
55ffb5ed
NN
5060fi
5061fi
1c710c3c
DJ
5062ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5063if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5065$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5066else
5213506e
RW
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068$as_echo "no" >&6; }
55ffb5ed
NN
5069fi
5070
5213506e
RW
5071 if test "x$ac_ct_GNATBIND" = x; then
5072 GNATBIND="no"
5073 else
5074 case $cross_compiling:$ac_tool_warned in
5075yes:)
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5078ac_tool_warned=yes ;;
5079esac
5080 GNATBIND=$ac_ct_GNATBIND
5081 fi
55ffb5ed 5082else
1c710c3c 5083 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5084fi
5085
1c710c3c
DJ
5086if test -n "$ac_tool_prefix"; then
5087 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5088set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090$as_echo_n "checking for $ac_word... " >&6; }
5091if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5305be7e
RG
5093else
5094 if test -n "$GNATMAKE"; then
5095 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5096else
1c710c3c
DJ
5097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098for as_dir in $PATH
5099do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5213506e
RW
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5104 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5106 break 2
5107 fi
5108done
5213506e
RW
5109 done
5110IFS=$as_save_IFS
1c710c3c 5111
5305be7e
RG
5112fi
5113fi
1c710c3c 5114GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5115if test -n "$GNATMAKE"; then
5213506e
RW
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5117$as_echo "$GNATMAKE" >&6; }
5305be7e 5118else
5213506e
RW
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120$as_echo "no" >&6; }
5305be7e
RG
5121fi
5122
5213506e 5123
1c710c3c 5124fi
5305be7e 5125if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5126 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5127 # Extract the first word of "gnatmake", so it can be a program name with args.
5128set dummy gnatmake; ac_word=$2
5213506e
RW
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130$as_echo_n "checking for $ac_word... " >&6; }
5131if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5132 $as_echo_n "(cached) " >&6
5305be7e 5133else
1c710c3c
DJ
5134 if test -n "$ac_ct_GNATMAKE"; then
5135 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5136else
1c710c3c
DJ
5137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138for as_dir in $PATH
5139do
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5213506e
RW
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5144 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5146 break 2
5147 fi
5148done
5213506e
RW
5149 done
5150IFS=$as_save_IFS
1c710c3c 5151
5305be7e
RG
5152fi
5153fi
1c710c3c
DJ
5154ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5155if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5157$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5158else
5213506e
RW
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160$as_echo "no" >&6; }
5305be7e
RG
5161fi
5162
5213506e
RW
5163 if test "x$ac_ct_GNATMAKE" = x; then
5164 GNATMAKE="no"
5165 else
5166 case $cross_compiling:$ac_tool_warned in
5167yes:)
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5170ac_tool_warned=yes ;;
5171esac
5172 GNATMAKE=$ac_ct_GNATMAKE
5173 fi
5305be7e 5174else
1c710c3c 5175 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5176fi
5177
5213506e
RW
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5179$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5180if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5181 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5182else
5183 cat >conftest.adb <<EOF
5184procedure conftest is begin null; end conftest;
5185EOF
5186acx_cv_cc_gcc_supports_ada=no
5187# There is a bug in old released versions of GCC which causes the
5188# driver to exit successfully when the appropriate language module
5189# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5190# Therefore we must check for the error message as well as an
5191# unsuccessful exit.
1db673ca
RO
5192# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5193# given a .adb file, but produce no object file. So we must check
5194# if an object file was really produced to guard against this.
55ffb5ed 5195errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5196if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5197 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5198fi
5199rm -f conftest.*
5200fi
5213506e
RW
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5202$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5203
7cb62ef1 5204if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5205 have_gnat=yes
5206else
5207 have_gnat=no
5208fi
5209
5213506e
RW
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5211$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5212if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5213 $as_echo_n "(cached) " >&6
a76494aa
PB
5214else
5215 echo abfoo >t1
5216 echo cdfoo >t2
5217 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5218 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5219 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5220 :
5221 else
5222 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5223 fi
5224 fi
a76494aa
PB
5225 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5226 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5227 :
a76494aa
PB
5228 else
5229 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5230 fi
5231 fi
5232 rm t1 t2
5233
5234fi
5213506e
RW
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5236$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5237do_compare="$gcc_cv_prog_cmp_skip"
5238
5239
55ffb5ed 5240
ff3ac0f4
ILT
5241# Check whether --enable-bootstrap was given.
5242if test "${enable_bootstrap+set}" = set; then :
5243 enableval=$enable_bootstrap;
5244else
5245 enable_bootstrap=default
5246fi
5247
5248
5249# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5250if test -r $srcdir/gcc/configure; then
5251 have_compiler=yes
5252else
5253 have_compiler=no
5254fi
ff3ac0f4
ILT
5255
5256case "$have_compiler:$host:$target:$enable_bootstrap" in
5257 *:*:*:no) ;;
5258
5259 # Default behavior. Enable bootstrap if we have a compiler
5260 # and we are in a native configuration.
5261 yes:$build:$build:default)
5262 enable_bootstrap=yes ;;
5263
5264 *:*:*:default)
5265 enable_bootstrap=no ;;
5266
5267 # We have a compiler and we are in a native configuration, bootstrap is ok
5268 yes:$build:$build:yes)
5269 ;;
5270
5271 # Other configurations, but we have a compiler. Assume the user knows
5272 # what he's doing.
5273 yes:*:*:yes)
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5275$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5276 ;;
5277
5278 # No compiler: if they passed --enable-bootstrap explicitly, fail
5279 no:*:*:yes)
5280 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5281
5282 # Fail if wrong command line
5283 *)
5284 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5285 ;;
5286esac
5287
592c90ff
KG
5288# Used for setting $lt_cv_objdir
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5290$as_echo_n "checking for objdir... " >&6; }
5291if test "${lt_cv_objdir+set}" = set; then :
5292 $as_echo_n "(cached) " >&6
5293else
5294 rm -f .libs 2>/dev/null
5295mkdir .libs 2>/dev/null
5296if test -d .libs; then
5297 lt_cv_objdir=.libs
5298else
5299 # MS-DOS does not allow filenames that begin with a dot.
5300 lt_cv_objdir=_libs
5301fi
5302rmdir .libs 2>/dev/null
5303fi
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5305$as_echo "$lt_cv_objdir" >&6; }
5306objdir=$lt_cv_objdir
5307
5308
5309
5310
5311
5312cat >>confdefs.h <<_ACEOF
5313#define LT_OBJDIR "$lt_cv_objdir/"
5314_ACEOF
5315
5316
5317
acd26225 5318# Check for GMP, MPFR and MPC
3a5729ea 5319gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5320gmpinc=
e69bf64b 5321have_gmp=no
acd26225
KG
5322
5323# Specify a location for mpc
5324# check for this first so it ends up on the link line before mpfr.
5325
5213506e
RW
5326# Check whether --with-mpc was given.
5327if test "${with_mpc+set}" = set; then :
5328 withval=$with_mpc;
5329fi
acd26225 5330
acd26225 5331
9965e3cd 5332# Check whether --with-mpc-include was given.
5213506e
RW
5333if test "${with_mpc_include+set}" = set; then :
5334 withval=$with_mpc_include;
5335fi
acd26225 5336
acd26225 5337
9965e3cd 5338# Check whether --with-mpc-lib was given.
5213506e
RW
5339if test "${with_mpc_lib+set}" = set; then :
5340 withval=$with_mpc_lib;
5341fi
acd26225 5342
acd26225
KG
5343
5344if test "x$with_mpc" != x; then
3a5729ea
KG
5345 gmplibs="-L$with_mpc/lib $gmplibs"
5346 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5347fi
5348if test "x$with_mpc_include" != x; then
3a5729ea 5349 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5350fi
5351if test "x$with_mpc_lib" != x; then
3a5729ea 5352 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5353fi
5354if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5355 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5356 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5357 # Do not test the mpc version. Assume that it is sufficient, since
5358 # it is in the source tree, and the library has not been built yet
5359 # but it would be included on the link line in the version check below
5360 # hence making the test fail.
3a5729ea 5361 have_gmp=yes
acd26225 5362fi
e69bf64b 5363
bebf829d
PB
5364# Specify a location for mpfr
5365# check for this first so it ends up on the link line before gmp.
1c710c3c 5366
5213506e
RW
5367# Check whether --with-mpfr-dir was given.
5368if test "${with_mpfr_dir+set}" = set; then :
5369 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5370Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5371fi
5372
bebf829d
PB
5373
5374
5213506e
RW
5375# Check whether --with-mpfr was given.
5376if test "${with_mpfr+set}" = set; then :
5377 withval=$with_mpfr;
5378fi
1c710c3c 5379
bebf829d 5380
9965e3cd 5381# Check whether --with-mpfr-include was given.
5213506e
RW
5382if test "${with_mpfr_include+set}" = set; then :
5383 withval=$with_mpfr_include;
5384fi
1c710c3c 5385
8a877c9c 5386
9965e3cd 5387# Check whether --with-mpfr-lib was given.
5213506e
RW
5388if test "${with_mpfr_lib+set}" = set; then :
5389 withval=$with_mpfr_lib;
5390fi
8a877c9c 5391
bebf829d
PB
5392
5393if test "x$with_mpfr" != x; then
5394 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5395 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5396fi
8a877c9c 5397if test "x$with_mpfr_include" != x; then
3a5729ea 5398 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5399fi
5400if test "x$with_mpfr_lib" != x; then
5401 gmplibs="-L$with_mpfr_lib $gmplibs"
5402fi
e69bf64b 5403if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5b0d38e4
NC
5404 # MPFR v3.1.0 moved the sources into a src sub-directory.
5405 if test -d ${srcdir}/mpfr/src; then
5406 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5407 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5408 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5409 else
5410 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5411 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5412 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5413 fi
e69bf64b
PB
5414 # Do not test the mpfr version. Assume that it is sufficient, since
5415 # it is in the source tree, and the library has not been built yet
5416 # but it would be included on the link line in the version check below
5417 # hence making the test fail.
5418 have_gmp=yes
5419fi
bebf829d 5420
6de9cd9a 5421# Specify a location for gmp
1c710c3c 5422
5213506e
RW
5423# Check whether --with-gmp-dir was given.
5424if test "${with_gmp_dir+set}" = set; then :
5425 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5426Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5427fi
5428
6de9cd9a 5429
6de9cd9a 5430
5213506e
RW
5431# Check whether --with-gmp was given.
5432if test "${with_gmp+set}" = set; then :
5433 withval=$with_gmp;
5434fi
1c710c3c 5435
6de9cd9a 5436
9965e3cd 5437# Check whether --with-gmp-include was given.
5213506e
RW
5438if test "${with_gmp_include+set}" = set; then :
5439 withval=$with_gmp_include;
5440fi
1c710c3c 5441
8a877c9c 5442
9965e3cd 5443# Check whether --with-gmp-lib was given.
5213506e
RW
5444if test "${with_gmp_lib+set}" = set; then :
5445 withval=$with_gmp_lib;
5446fi
8a877c9c
KG
5447
5448
6de9cd9a 5449
bebf829d
PB
5450if test "x$with_gmp" != x; then
5451 gmplibs="-L$with_gmp/lib $gmplibs"
5452 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5453fi
8a877c9c
KG
5454if test "x$with_gmp_include" != x; then
5455 gmpinc="-I$with_gmp_include $gmpinc"
5456fi
5457if test "x$with_gmp_lib" != x; then
5458 gmplibs="-L$with_gmp_lib $gmplibs"
5459fi
e69bf64b 5460if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5461 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5462 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5463 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5464 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5465 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5466 # Do not test the gmp version. Assume that it is sufficient, since
5467 # it is in the source tree, and the library has not been built yet
5468 # but it would be included on the link line in the version check below
5469 # hence making the test fail.
5470 have_gmp=yes
5471fi
6de9cd9a 5472
d943d7c4 5473if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5474 have_gmp=yes
5475 saved_CFLAGS="$CFLAGS"
5476 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5477 # Check for the recommended and required versions of GMP.
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5479$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5480
5481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5482/* end confdefs.h. */
5483#include "gmp.h"
5484int
5485main ()
5486{
5487
5488 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5489 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5490 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5491 choke me
5492 #endif
5493
5494 ;
5495 return 0;
5496}
5497_ACEOF
5498if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5500/* end confdefs.h. */
362c6d2f 5501#include <gmp.h>
1c710c3c
DJ
5502int
5503main ()
5504{
6de9cd9a 5505
362c6d2f
KG
5506 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5507 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5508 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5509 choke me
5510 #endif
1c710c3c
DJ
5511
5512 ;
5513 return 0;
5514}
5515_ACEOF
5213506e
RW
5516if ac_fn_c_try_compile "$LINENO"; then :
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5518$as_echo "yes" >&6; }
362c6d2f
KG
5519else
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5521$as_echo "buggy but acceptable" >&6; }
5522fi
5523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5524else
5213506e
RW
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5527fi
5213506e 5528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5529
acd26225 5530 # If we have GMP, check the MPFR version.
e69bf64b 5531 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5532 # Check for the recommended and required versions of MPFR.
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5534$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5536/* end confdefs.h. */
70ec446f 5537#include <gmp.h>
e69bf64b 5538 #include <mpfr.h>
1c710c3c
DJ
5539int
5540main ()
5541{
e48d66a9 5542
f7d6bc01 5543 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5544 choke me
5545 #endif
1c710c3c
DJ
5546
5547 ;
5548 return 0;
5549}
5550_ACEOF
5213506e
RW
5551if ac_fn_c_try_compile "$LINENO"; then :
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5553/* end confdefs.h. */
a3993f33 5554#include <gmp.h>
e69bf64b 5555 #include <mpfr.h>
1c710c3c
DJ
5556int
5557main ()
5558{
a3993f33 5559
362c6d2f 5560 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5561 choke me
5562 #endif
acd26225
KG
5563
5564 ;
5565 return 0;
5566}
5567_ACEOF
5213506e
RW
5568if ac_fn_c_try_compile "$LINENO"; then :
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5570$as_echo "yes" >&6; }
acd26225 5571else
5213506e
RW
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5573$as_echo "buggy but acceptable" >&6; }
acd26225 5574fi
5213506e 5575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5576else
5213506e
RW
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578$as_echo "no" >&6; }; have_gmp=no
acd26225 5579fi
5213506e 5580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5581 fi
5582
5583 # Check for the MPC header version.
3a5729ea 5584 if test x"$have_gmp" = xyes ; then
362c6d2f 5585 # Check for the recommended and required versions of MPC.
5213506e
RW
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5587$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5589/* end confdefs.h. */
5590#include <mpc.h>
5591int
5592main ()
5593{
5594
362c6d2f
KG
5595 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5596 choke me
5597 #endif
5598
5599 ;
5600 return 0;
5601}
5602_ACEOF
5603if ac_fn_c_try_compile "$LINENO"; then :
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605/* end confdefs.h. */
5606#include <mpc.h>
5607int
5608main ()
5609{
5610
5611 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5612 choke me
5613 #endif
5614
5615 ;
5616 return 0;
5617}
5618_ACEOF
5213506e
RW
5619if ac_fn_c_try_compile "$LINENO"; then :
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5621$as_echo "yes" >&6; }
362c6d2f
KG
5622else
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5624$as_echo "buggy but acceptable" >&6; }
5625fi
5626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5627else
5213506e 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5629$as_echo "no" >&6; }; have_gmp=no
acd26225 5630fi
5213506e 5631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5632 fi
5633
5634 # Now check the MPFR library.
5635 if test x"$have_gmp" = xyes; then
5636 saved_LIBS="$LIBS"
5637 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5639$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5641/* end confdefs.h. */
3a5729ea 5642#include <mpc.h>
acd26225
KG
5643int
5644main ()
5645{
5646
5647 mpfr_t n;
5648 mpfr_t x;
3a5729ea 5649 mpc_t c;
acd26225
KG
5650 int t;
5651 mpfr_init (n);
5652 mpfr_init (x);
5653 mpfr_atan2 (n, n, x, GMP_RNDN);
5654 mpfr_erfc (n, x, GMP_RNDN);
5655 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5656 mpfr_clear(n);
5657 mpfr_clear(x);
5658 mpc_init2 (c, 53);
5659 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5660 mpc_cosh (c, c, MPC_RNDNN);
5661 mpc_pow (c, c, c, MPC_RNDNN);
5662 mpc_acosh (c, c, MPC_RNDNN);
5663 mpc_clear (c);
1c710c3c
DJ
5664
5665 ;
5666 return 0;
5667}
5668_ACEOF
5213506e
RW
5669if ac_fn_c_try_link "$LINENO"; then :
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5671$as_echo "yes" >&6; }
1c710c3c 5672else
5213506e
RW
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5675fi
5213506e
RW
5676rm -f core conftest.err conftest.$ac_objext \
5677 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5678 LIBS="$saved_LIBS"
5679 fi
5680
e69bf64b 5681 CFLAGS="$saved_CFLAGS"
6de9cd9a 5682
362c6d2f
KG
5683# The library versions listed in the error message below should match
5684# the HARD-minimums enforced above.
e69bf64b 5685 if test x$have_gmp != xyes; then
f7d6bc01 5686 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5687Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5688their locations. Source code for these libraries can be found at
5689their respective hosting sites as well as at
5690ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5691http://gcc.gnu.org/install/prerequisites.html for additional info. If
5692you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5693make sure that you have installed both the libraries and the header
5694files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5695 fi
70ec446f
KG
5696fi
5697
acd26225
KG
5698# Flags needed for both GMP, MPFR and/or MPC.
5699
5700
6de9cd9a
DN
5701
5702
5703
9e3eba15 5704
0ff2d841 5705
f38095f3
JM
5706# Allow host libstdc++ to be specified for static linking with PPL.
5707
5213506e
RW
5708# Check whether --with-host-libstdcxx was given.
5709if test "${with_host_libstdcxx+set}" = set; then :
5710 withval=$with_host_libstdcxx;
5711fi
f38095f3 5712
f38095f3
JM
5713
5714case $with_host_libstdcxx in
5715 no|yes)
5213506e 5716 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5717 ;;
5718esac
f8bf9252 5719
0b21f5d3 5720# Libraries to use for stage1 or when not bootstrapping.
00020c16 5721
0b21f5d3
EB
5722# Check whether --with-stage1-libs was given.
5723if test "${with_stage1_libs+set}" = set; then :
5724 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5725 stage1_libs=
00020c16 5726 else
0b21f5d3 5727 stage1_libs=$withval
00020c16
ILT
5728 fi
5729else
0b21f5d3 5730 stage1_libs=$with_host_libstdcxx
5213506e
RW
5731fi
5732
00020c16
ILT
5733
5734
0b21f5d3 5735# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5736
0b21f5d3
EB
5737# Check whether --with-stage1-ldflags was given.
5738if test "${with_stage1_ldflags+set}" = set; then :
5739 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5740 stage1_ldflags=
00020c16 5741 else
0b21f5d3 5742 stage1_ldflags=$withval
00020c16
ILT
5743 fi
5744else
0b21f5d3
EB
5745 stage1_ldflags=
5746 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5747 # if supported. But if the user explicitly specified the libraries to use,
5748 # trust that they are doing what they want.
5749 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5750 stage1_ldflags="-static-libstdc++ -static-libgcc"
5751 fi
5213506e
RW
5752fi
5753
00020c16
ILT
5754
5755
00020c16
ILT
5756# Libraries to use for stage2 and later builds. This defaults to the
5757# argument passed to --with-host-libstdcxx.
5758
5213506e
RW
5759# Check whether --with-boot-libs was given.
5760if test "${with_boot_libs+set}" = set; then :
5761 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5762 poststage1_libs=
5763 else
5764 poststage1_libs=$withval
5765 fi
5766else
00020c16 5767 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5768fi
5769
00020c16
ILT
5770
5771
ed2eaa9f
ILT
5772# Linker flags to use for stage2 and later builds.
5773
5774# Check whether --with-boot-ldflags was given.
5775if test "${with_boot_ldflags+set}" = set; then :
5776 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5777 poststage1_ldflags=
5778 else
5779 poststage1_ldflags=$withval
5780 fi
5781else
5782 poststage1_ldflags=
bec93d73
ILT
5783 # In stages 2 and 3, default to linking libstdc++ and libgcc
5784 # statically. But if the user explicitly specified the libraries to
5785 # use, trust that they are doing what they want.
5786 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5787 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5788 fi
5789fi
5790
5791
5792
625afa23
RG
5793# GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5794# Basic setup is inlined here, actual checks are in config/cloog.m4 and
5795# config/isl.m4
5796
5797
5798# Check whether --with-cloog was given.
5799if test "${with_cloog+set}" = set; then :
5800 withval=$with_cloog;
5801fi
f8bf9252
SP
5802
5803
33ad93b9
RG
5804# Check whether --with-isl was given.
5805if test "${with_isl+set}" = set; then :
5806 withval=$with_isl;
5213506e 5807fi
f8bf9252 5808
f8bf9252 5809
eae1a5d4 5810# Treat --without-isl as a request to disable
625afa23 5811# GRAPHITE support and skip all following checks.
eae1a5d4 5812if test "x$with_isl" != "xno"; then
625afa23
RG
5813 # Check for ISL
5814
5815
33ad93b9
RG
5816# Check whether --with-isl-include was given.
5817if test "${with_isl_include+set}" = set; then :
5818 withval=$with_isl_include;
5213506e
RW
5819fi
5820
f8bf9252 5821
33ad93b9
RG
5822# Check whether --with-isl-lib was given.
5823if test "${with_isl_lib+set}" = set; then :
5824 withval=$with_isl_lib;
5213506e 5825fi
f8bf9252 5826
f8bf9252 5827
33ad93b9
RG
5828 # Check whether --enable-isl-version-check was given.
5829if test "${enable_isl_version_check+set}" = set; then :
5830 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5831else
5832 ENABLE_ISL_CHECK=yes
7d32a440
SP
5833fi
5834
5835
33ad93b9
RG
5836 # Initialize isllibs and islinc.
5837 case $with_isl in
5838 no)
5839 isllibs=
5840 islinc=
5841 ;;
5842 "" | yes)
5843 ;;
5844 *)
5845 isllibs="-L$with_isl/lib"
5846 islinc="-I$with_isl/include"
5847 ;;
5848 esac
5849 if test "x${with_isl_include}" != x ; then
5850 islinc="-I$with_isl_include"
5851 fi
5852 if test "x${with_isl_lib}" != x; then
5853 isllibs="-L$with_isl_lib"
5854 fi
5855 if test "x${islinc}" = x && test "x${isllibs}" = x \
5856 && test -d ${srcdir}/isl; then
5857 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5858 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5859 ENABLE_ISL_CHECK=no
2869f0ff
RB
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5861$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
33ad93b9 5862 fi
7d32a440 5863
eae1a5d4
RG
5864 islinc="-DCLOOG_INT_GMP ${islinc}"
5865 isllibs="${isllibs} -lisl"
5866
7d32a440 5867
7d32a440 5868
9847828b
RB
5869 if test "${ENABLE_ISL_CHECK}" = yes ; then
5870 _isl_saved_CFLAGS=$CFLAGS
5871 _isl_saved_LDFLAGS=$LDFLAGS
5872 _isl_saved_LIBS=$LIBS
5873
5874 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5875 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5876 LIBS="${_isl_saved_LIBS} -lisl"
5877
e0c0c325
SP
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5879$as_echo_n "checking for compatible ISL... " >&6; }
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 5881/* end confdefs.h. */
e0c0c325 5882#include <isl/val.h>
622dbadf
BC
5883int
5884main ()
5885{
e0c0c325 5886;
622dbadf
BC
5887 ;
5888 return 0;
5889}
5890_ACEOF
5891if ac_fn_c_try_link "$LINENO"; then :
9847828b 5892 gcc_cv_isl=yes
622dbadf
BC
5893else
5894 gcc_cv_isl=no
5895fi
5896rm -f core conftest.err conftest.$ac_objext \
5897 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5899$as_echo "$gcc_cv_isl" >&6; }
5900
5901 CFLAGS=$_isl_saved_CFLAGS
5902 LDFLAGS=$_isl_saved_LDFLAGS
5903 LIBS=$_isl_saved_LIBS
5904 fi
5905
5906
f8bf9252 5907
f8bf9252 5908
33ad93b9
RG
5909
5910
33ad93b9
RG
5911 if test "x${with_isl}" = xno; then
5912 graphite_requested=no
5913 elif test "x${with_isl}" != x \
5914 || test "x${with_isl_include}" != x \
5915 || test "x${with_isl_lib}" != x ; then
5916 graphite_requested=yes
5917 else
5918 graphite_requested=no
7d32a440 5919 fi
d789184e 5920
d789184e
SP
5921
5922
33ad93b9
RG
5923 if test "${gcc_cv_isl}" = no ; then
5924 isllibs=
5925 islinc=
5926 fi
5927
5928 if test "${graphite_requested}" = yes \
5929 && test "x${isllibs}" = x \
5930 && test "x${islinc}" = x ; then
f8bf9252 5931
33ad93b9
RG
5932 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5933 fi
f8bf9252 5934
d32ef397 5935
d789184e 5936
625afa23
RG
5937 if test "x$gcc_cv_isl" != "xno"; then
5938 # Check for CLOOG
5213506e 5939
d789184e 5940
9965e3cd 5941# Check whether --with-cloog-include was given.
5213506e
RW
5942if test "${with_cloog_include+set}" = set; then :
5943 withval=$with_cloog_include;
5944fi
d789184e 5945
d789184e 5946
9965e3cd 5947# Check whether --with-cloog-lib was given.
5213506e
RW
5948if test "${with_cloog_lib+set}" = set; then :
5949 withval=$with_cloog_lib;
5950fi
d789184e 5951
d789184e 5952
d32ef397
AS
5953 # Check whether --enable-cloog-version-check was given.
5954if test "${enable_cloog_version_check+set}" = set; then :
5955 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5956else
5957 ENABLE_CLOOG_CHECK=yes
5958fi
5959
5960
5961 # Initialize clooglibs and clooginc.
5962 case $with_cloog in
5963 no)
5964 clooglibs=
5965 clooginc=
5966 ;;
5967 "" | yes)
5968 ;;
5969 *)
5970 clooglibs="-L$with_cloog/lib"
5971 clooginc="-I$with_cloog/include"
5972 ;;
5973 esac
5974 if test "x${with_cloog_include}" != x ; then
5975 clooginc="-I$with_cloog_include"
5976 fi
5977 if test "x${with_cloog_lib}" != x; then
5978 clooglibs="-L$with_cloog_lib"
5979 fi
2869f0ff 5980 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
33ad93b9 5981 && test -d ${srcdir}/cloog; then
33ad93b9 5982 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
c41f1c42 5983 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include'
2869f0ff
RB
5984 ENABLE_CLOOG_CHECK=no
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
5986$as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
ab4173cf 5987 fi
ad0abd3c 5988
33ad93b9 5989 clooginc="-DCLOOG_INT_GMP ${clooginc}"
eae1a5d4 5990 clooglibs="${clooglibs} -lcloog-isl"
d32ef397
AS
5991
5992
5993
5994
5995
5996 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5997 _cloog_saved_CFLAGS=$CFLAGS
5998 _cloog_saved_LDFLAGS=$LDFLAGS
5999
33ad93b9
RG
6000 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6001 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
d32ef397 6002
09611faf
RG
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.1 of CLooG" >&5
6004$as_echo_n "checking for version 0.18.1 of CLooG... " >&6; }
2869f0ff 6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0ad394c
RB
6006/* end confdefs.h. */
6007#include "cloog/version.h"
6008int
6009main ()
6010{
6011#if CLOOG_VERSION_MAJOR != 0 \
6012 || CLOOG_VERSION_MINOR != 18 \
09611faf 6013 || CLOOG_VERSION_REVISION < 1
d0ad394c
RB
6014 choke me
6015 #endif
6016 ;
6017 return 0;
6018}
6019_ACEOF
6020if ac_fn_c_try_compile "$LINENO"; then :
6021 gcc_cv_cloog=yes
6022else
6023 gcc_cv_cloog=no
6024fi
6025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869f0ff 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
d0ad394c
RB
6027$as_echo "$gcc_cv_cloog" >&6; }
6028
6029 CFLAGS=$_cloog_saved_CFLAGS
6030 LDFLAGS=$_cloog_saved_LDFLAGS
6031 fi
6032
6033
f8bf9252
SP
6034
6035
d32ef397
AS
6036
6037
6038
6be7b668
JJ
6039 if test "x${with_cloog}" = xno; then
6040 graphite_requested=no
6041 elif test "x${with_cloog}" != x \
d32ef397
AS
6042 || test "x${with_cloog_include}" != x \
6043 || test "x${with_cloog_lib}" != x ; then
6044 graphite_requested=yes
6045 else
6046 graphite_requested=no
6047 fi
6048
6049
6050
6886e444 6051 if test "${gcc_cv_cloog}" = no ; then
d32ef397
AS
6052 clooglibs=
6053 clooginc=
6054 fi
6055
6056 if test "${graphite_requested}" = yes \
6057 && test "x${clooglibs}" = x \
6058 && test "x${clooginc}" = x ; then
6059
625afa23 6060 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
d32ef397
AS
6061 fi
6062
6063
625afa23 6064 fi
d32ef397
AS
6065fi
6066
eae1a5d4
RG
6067# If the ISL check failed, disable builds of in-tree
6068# variants of both ISL and CLooG
625afa23 6069if test "x$with_isl" = xno ||
625afa23 6070 test "x$gcc_cv_isl" = xno; then
32d024bf 6071 noconfigdirs="$noconfigdirs cloog isl"
625afa23
RG
6072 islinc=
6073 clooginc=
6074 clooglibs=
32d024bf
RG
6075fi
6076
eae1a5d4
RG
6077# If the CLooG check failed, disable builds of in-tree
6078# variants of CLooG
6079if test "x$with_cloog" = xno ||
6080 test "x$gcc_cv_cloog" = xno; then
6081 noconfigdirs="$noconfigdirs cloog isl"
6082 clooginc=
6083 clooglibs=
6084fi
6085
625afa23
RG
6086
6087
6088
6089
6090
d7f09764
DN
6091# Check for LTO support.
6092# Check whether --enable-lto was given.
6093if test "${enable_lto+set}" = set; then :
6094 enableval=$enable_lto; enable_lto=$enableval
6095else
6096 enable_lto=yes; default_enable_lto=yes
6097fi
6098
6099
7413962d 6100
9a02962b
DK
6101
6102
6103target_elf=no
6104case $target in
6105 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6106 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9a02962b
DK
6107 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6108 target_elf=no
6109 ;;
6110 *)
6111 target_elf=yes
6112 ;;
6113esac
6114
6115if test $target_elf = yes; then :
48215350
DK
6116 # ELF platforms build the lto-plugin always.
6117 build_lto_plugin=yes
9a02962b 6118
9a02962b
DK
6119else
6120 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6121 case $target in
2cd815e7 6122 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
48215350 6123 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6124 *) enable_lto=no ;;
6125 esac
9a02962b 6126 else
db50fe7d
IS
6127 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6128 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6129 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6130 # warn during gcc/ subconfigure; unless you're bootstrapping with
6131 # -flto it won't be needed until after installation anyway.
6132 case $target in
1cd0b716 6133 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6134 *) if test x"$enable_lto" = x"yes"; then
6135 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6136 fi
6137 ;;
6138 esac
6139 fi
1cd0b716 6140 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6141 # Build it unless LTO was explicitly disabled.
1cd0b716 6142 case $target in
48215350 6143 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6144 *) ;;
6145 esac
48215350 6146
9a02962b
DK
6147fi
6148
d7f09764 6149
45b3824d
TS
6150# Check whether --enable-linker-plugin-configure-flags was given.
6151if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6152 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6153else
6154 extra_linker_plugin_configure_flags=
6155fi
6156
6157
6158# Check whether --enable-linker-plugin-flags was given.
6159if test "${enable_linker_plugin_flags+set}" = set; then :
6160 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6161else
6162 extra_linker_plugin_flags=
6163fi
6164
6165
6166
f8bf9252 6167
0823efed 6168# By default, C and C++ are the only stage 1 languages.
e1888513 6169stage1_languages=,c,
2805b53a 6170
00020c16 6171# Target libraries that we bootstrap.
ad1e5170 6172bootstrap_target_libs=,target-libgcc,
00020c16 6173
55ffb5ed
NN
6174# Figure out what language subdirectories are present.
6175# Look if the user specified --enable-languages="..."; if not, use
6176# the environment variable $LANGUAGES if defined. $LANGUAGES might
6177# go away some day.
6178# NB: embedded tabs in this IF block -- do not untabify
6179if test -d ${srcdir}/gcc; then
6180 if test x"${enable_languages+set}" != xset; then
6181 if test x"${LANGUAGES+set}" = xset; then
6182 enable_languages="${LANGUAGES}"
6183 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6184 else
6185 enable_languages=all
6186 fi
6187 else
6188 if test x"${enable_languages}" = x ||
6189 test x"${enable_languages}" = xyes;
6190 then
6191 echo configure.in: --enable-languages needs at least one language argument 1>&2
6192 exit 1
6193 fi
6194 fi
6195 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6196
7f26dfa3
FXC
6197 # 'f95' is the old name for the 'fortran' language. We issue a warning
6198 # and make the substitution.
6199 case ,${enable_languages}, in
6200 *,f95,*)
6201 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6202 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6203 ;;
6204 esac
6205
0823efed
DN
6206 # If bootstrapping, C++ must be enabled.
6207 case ",$enable_languages,:$enable_bootstrap" in
6208 *,c++,*:*) ;;
6209 *:yes)
ff3ac0f4
ILT
6210 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6211 enable_languages="${enable_languages},c++"
6212 else
0823efed 6213 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6214 fi
6215 ;;
6216 esac
6217
55ffb5ed
NN
6218 # First scan to see if an enabled language requires some other language.
6219 # We assume that a given config-lang.in will list all the language
6220 # front ends it requires, even if some are required indirectly.
6221 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6222 case ${lang_frag} in
6223 ..) ;;
6224 # The odd quoting in the next line works around
6225 # an apparent bug in bash 1.12 on linux.
6226 ${srcdir}/gcc/[*]/config-lang.in) ;;
6227 *)
69ecd18f
ILT
6228 # From the config-lang.in, get $language, $lang_requires, and
6229 # $lang_requires_boot_languages.
55ffb5ed
NN
6230 language=
6231 lang_requires=
69ecd18f 6232 lang_requires_boot_languages=
55ffb5ed 6233 . ${lang_frag}
69ecd18f 6234 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6235 case ,${enable_languages}, in
6236 *,$other,*) ;;
6237 *,all,*) ;;
6238 *,$language,*)
6239 echo " \`$other' language required by \`$language'; enabling" 1>&2
6240 enable_languages="${enable_languages},${other}"
6241 ;;
6242 esac
6243 done
69ecd18f
ILT
6244 for other in ${lang_requires_boot_languages} ; do
6245 if test "$other" != "c"; then
6246 case ,${enable_stage1_languages}, in
6247 *,$other,*) ;;
6248 *,all,*) ;;
6249 *)
6250 case ,${enable_languages}, in
6251 *,$language,*)
6252 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6253 enable_stage1_languages="$enable_stage1_languages,${other}"
6254 ;;
6255 esac
6256 ;;
6257 esac
6258 fi
6259 done
55ffb5ed
NN
6260 ;;
6261 esac
6262 done
6263
e1888513 6264 new_enable_languages=,c,
d7f09764
DN
6265
6266 # If LTO is enabled, add the LTO front end.
d7f09764 6267 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6268 case ,${enable_languages}, in
6269 *,lto,*) ;;
6270 *) enable_languages="${enable_languages},lto" ;;
6271 esac
1cd0b716 6272 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6273 configdirs="$configdirs lto-plugin"
d7f09764
DN
6274 fi
6275 fi
6276
55ffb5ed 6277 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6278 potential_languages=,c,
55ffb5ed 6279
4da3b0f8
ILT
6280 enabled_target_libs=
6281 disabled_target_libs=
6282
55ffb5ed
NN
6283 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6284 case ${lang_frag} in
6285 ..) ;;
6286 # The odd quoting in the next line works around
6287 # an apparent bug in bash 1.12 on linux.
6288 ${srcdir}/gcc/[*]/config-lang.in) ;;
6289 *)
1c710c3c 6290 # From the config-lang.in, get $language, $target_libs,
2805b53a 6291 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6292 language=
6293 target_libs=
6294 lang_dirs=
1546bb64 6295 subdir_requires=
e1888513
PB
6296 boot_language=no
6297 build_by_default=yes
55ffb5ed 6298 . ${lang_frag}
e1888513
PB
6299 if test x${language} = x; then
6300 echo "${lang_frag} doesn't set \$language." 1>&2
6301 exit 1
6302 fi
6303
78767fd9 6304 if test "$language" = "c++"; then
0823efed 6305 boot_language=yes
00020c16
ILT
6306 fi
6307
178f875a 6308 add_this_lang=no
e1888513
PB
6309 case ,${enable_languages}, in
6310 *,${language},*)
d4a10d0a
SB
6311 # Language was explicitly selected; include it
6312 # unless it is C, which is enabled by default.
6313 if test "$language" != "c"; then
6314 add_this_lang=yes
6315 fi
55ffb5ed 6316 ;;
e1888513
PB
6317 *,all,*)
6318 # 'all' was selected, select it if it is a default language
178f875a
JM
6319 if test "$language" != "c"; then
6320 add_this_lang=${build_by_default}
6321 fi
55ffb5ed
NN
6322 ;;
6323 esac
6de9cd9a 6324
1546bb64 6325 # Disable languages that need other directories if these aren't available.
95695ad3 6326 for i in $subdir_requires; do
b6348cb3 6327 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6328 case ,${enable_languages}, in
6329 *,${language},*)
6330 # Specifically requested language; tell them.
5213506e 6331 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6332 ;;
6333 *)
6334 # Silently disable.
e1888513 6335 add_this_lang=unsupported
1546bb64
PB
6336 ;;
6337 esac
6338 done
6339
e1888513
PB
6340 # Disable Ada if no preexisting GNAT is available.
6341 case ,${enable_languages},:${language}:${have_gnat} in
6342 *,${language},*:ada:no)
6343 # Specifically requested language; tell them.
5213506e 6344 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6345 ;;
6346 *:ada:no)
6347 # Silently disable.
6348 add_this_lang=unsupported
6349 ;;
6350 esac
6351
4fab7234
HPN
6352 # Disable a language that is unsupported by the target.
6353 case " $unsupported_languages " in
6354 *" $language "*)
e1888513 6355 add_this_lang=unsupported
4fab7234
HPN
6356 ;;
6357 esac
6358
6de9cd9a 6359 case $add_this_lang in
e1888513 6360 unsupported)
55ffb5ed 6361 # Remove language-dependent dirs.
4da3b0f8
ILT
6362 disabled_target_libs="$disabled_target_libs $target_libs"
6363 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6364 ;;
e1888513
PB
6365 no)
6366 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6367 disabled_target_libs="$disabled_target_libs $target_libs"
6368 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6369 potential_languages="${potential_languages}${language},"
6370 ;;
6371 yes)
6372 new_enable_languages="${new_enable_languages}${language},"
6373 potential_languages="${potential_languages}${language},"
2805b53a 6374 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6375 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6376 case "${boot_language}:,$enable_stage1_languages," in
6377 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6378 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6379 case ",$stage1_languages," in
6380 *,$language,* | ,yes, | ,all,) ;;
6381 *) stage1_languages="${stage1_languages}${language}," ;;
6382 esac
00020c16
ILT
6383 # We need to bootstrap any supporting libraries.
6384 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6385 ;;
6386 esac
6387 ;;
55ffb5ed
NN
6388 esac
6389 ;;
6390 esac
6391 done
6392
4da3b0f8
ILT
6393 # Add target libraries which are only needed for disabled languages
6394 # to noconfigdirs.
6395 if test -n "$disabled_target_libs"; then
6396 for dir in $disabled_target_libs; do
6397 case " $enabled_target_libs " in
6398 *" ${dir} "*) ;;
6399 *) noconfigdirs="$noconfigdirs $dir" ;;
6400 esac
6401 done
6402 fi
6403
5213506e
RW
6404 # Check whether --enable-stage1-languages was given.
6405if test "${enable_stage1_languages+set}" = set; then :
6406 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6407 ,no,|,,)
6408 # Set it to something that will have no effect in the loop below
6409 enable_stage1_languages=c ;;
6410 ,yes,)
6411 enable_stage1_languages=`echo $new_enable_languages | \
6412 sed -e "s/^,//" -e "s/,$//" ` ;;
6413 *,all,*)
6414 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6415 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6416 esac
6417
6418 # Add "good" languages from enable_stage1_languages to stage1_languages,
6419 # while "bad" languages go in missing_languages. Leave no duplicates.
6420 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6421 case $potential_languages in
6422 *,$i,*)
6423 case $stage1_languages in
6424 *,$i,*) ;;
6425 *) stage1_languages="$stage1_languages$i," ;;
6426 esac ;;
6427 *)
6428 case $missing_languages in
6429 *,$i,*) ;;
6430 *) missing_languages="$missing_languages$i," ;;
6431 esac ;;
6432 esac
6433 done
5213506e
RW
6434fi
6435
e1888513
PB
6436
6437 # Remove leading/trailing commas that were added for simplicity
6438 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6439 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6440 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6441 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6442
55ffb5ed 6443 if test "x$missing_languages" != x; then
5213506e 6444 as_fn_error "
0cf085e4 6445The following requested languages could not be built: ${missing_languages}
5213506e 6446Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6447 fi
55ffb5ed
NN
6448 if test "x$new_enable_languages" != "x$enable_languages"; then
6449 echo The following languages will be built: ${new_enable_languages}
e1888513 6450 enable_languages="$new_enable_languages"
55ffb5ed 6451 fi
e1888513 6452
1c710c3c 6453
b2eaac4a 6454 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6455fi
6456
27079765
AH
6457# Handle --disable-<component> generically.
6458for dir in $configdirs $build_configdirs $target_configdirs ; do
6459 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6460 varname=`echo $dirname | sed -e s/+/_/g`
6461 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6462 noconfigdirs="$noconfigdirs $dir"
6463 fi
6464done
6465
7cd0cf9c 6466# Check for Boehm's garbage collector
5213506e
RW
6467# Check whether --enable-objc-gc was given.
6468if test "${enable_objc_gc+set}" = set; then :
6469 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6470 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6471 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6472 ;;
6473esac
5213506e
RW
6474fi
6475
7cd0cf9c
DA
6476
6477# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6478case ,${enable_languages},:${enable_objc_gc} in
6479 *,objc,*:yes)
7cd0cf9c
DA
6480 # Keep target-boehm-gc if requested for Objective-C.
6481 ;;
7cd0cf9c 6482 *)
2a79fd67
DA
6483 # Otherwise remove target-boehm-gc depending on target-libjava.
6484 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6485 noconfigdirs="$noconfigdirs target-boehm-gc"
6486 fi
7cd0cf9c
DA
6487 ;;
6488esac
6489
1007a55c 6490# Disable libcilkrts, libitm, libsanitizer, libvtv if we're not building C++
99776ebd 6491case ,${enable_languages}, in
1007a55c
JW
6492 *,c++,*)
6493 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6494 case "${noconfigdirs}" in
6495 *target-libstdc++-v3*)
6496 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6497 ;;
6498 *) ;;
6499 esac
6500 ;;
99776ebd 6501 *)
186bc287 6502 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6503 ;;
6504esac
6505
ee6a22df
L
6506# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6507# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6508# If we have the source for $noconfigdirs entries, add them to $notsupp.
6509
6510notsupp=""
6511for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6512 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6513 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6514 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6515 if test -r $srcdir/$dirname/configure ; then
6516 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6517 true
6518 else
6519 notsupp="$notsupp $dir"
6520 fi
6521 fi
6522 fi
ee6a22df
L
6523 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6524 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6525 if test -r $srcdir/$dirname/configure ; then
6526 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6527 true
6528 else
6529 notsupp="$notsupp $dir"
6530 fi
6531 fi
6532 fi
55ffb5ed
NN
6533 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6534 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6535 if test -r $srcdir/$dirname/configure ; then
6536 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6537 true
6538 else
6539 notsupp="$notsupp $dir"
6540 fi
6541 fi
6542 fi
6543done
6544
55ffb5ed
NN
6545# Quietly strip out all directories which aren't configurable in this tree.
6546# This relies on all configurable subdirectories being autoconfiscated, which
6547# is now the case.
23f6b2f9
PB
6548build_configdirs_all="$build_configdirs"
6549build_configdirs=
6550for i in ${build_configdirs_all} ; do
1c710c3c 6551 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6552 if test -f ${srcdir}/$j/configure ; then
6553 build_configdirs="${build_configdirs} $i"
6554 fi
6555done
6556
55ffb5ed
NN
6557configdirs_all="$configdirs"
6558configdirs=
6559for i in ${configdirs_all} ; do
6560 if test -f ${srcdir}/$i/configure ; then
6561 configdirs="${configdirs} $i"
6562 fi
6563done
23f6b2f9 6564
55ffb5ed
NN
6565target_configdirs_all="$target_configdirs"
6566target_configdirs=
6567for i in ${target_configdirs_all} ; do
1c710c3c 6568 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6569 if test -f ${srcdir}/$j/configure ; then
6570 target_configdirs="${target_configdirs} $i"
6571 fi
6572done
6573
45b3824d
TS
6574# libiberty-linker-plugin is special: it doesn't have its own source directory,
6575# so we have to add it after the preceding checks.
6576if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6577then
6578 case " $configdirs " in
6579 *" libiberty "*)
6580 # If we can build libiberty, we can also build libiberty-linker-plugin.
6581 configdirs="$configdirs libiberty-linker-plugin"
6582 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6583 --with-libiberty=../libiberty-linker-plugin";;
6584 *)
6585 as_fn_error "libiberty missing" "$LINENO" 5;;
6586 esac
6587fi
6588
fca38047
TS
6589# Sometimes we have special requirements for the host libiberty.
6590extra_host_libiberty_configure_flags=
6591case " $configdirs " in
6592 *" lto-plugin "* | *" libcc1 "*)
6593 # When these are to be built as shared libraries, the same applies to
6594 # libiberty.
6595 extra_host_libiberty_configure_flags=--enable-shared
6596 ;;
6597esac
6598
6599
55ffb5ed
NN
6600# Produce a warning message for the subdirs we can't configure.
6601# This isn't especially interesting in the Cygnus tree, but in the individual
6602# FSF releases, it's important to let people know when their machine isn't
6603# supported by the one or two programs in a package.
6604
6605if test -n "${notsupp}" && test -z "${norecursion}" ; then
6606 # If $appdirs is non-empty, at least one of those directories must still
6607 # be configured, or we error out. (E.g., if the gas release supports a
6608 # specified target in some subdirs but not the gas subdir, we shouldn't
6609 # pretend that all is well.)
6610 if test -n "$appdirs" ; then
6611 for dir in $appdirs ; do
6612 if test -r $dir/Makefile.in ; then
6613 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6614 appdirs=""
6615 break
6616 fi
23f6b2f9 6617 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6618 appdirs=""
6619 break
6620 fi
6621 fi
6622 done
6623 if test -n "$appdirs" ; then
6624 echo "*** This configuration is not supported by this package." 1>&2
6625 exit 1
6626 fi
6627 fi
6628 # Okay, some application will build, or we don't care to check. Still
6629 # notify of subdirs not getting built.
6630 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6631 echo " ${notsupp}" 1>&2
6632 echo " (Any other directories should still work fine.)" 1>&2
6633fi
6634
6635case "$host" in
6636 *msdosdjgpp*)
6637 enable_gdbtk=no ;;
6638esac
6639
c3a86da9
DJ
6640# To find our prefix, in gcc_cv_tool_prefix.
6641
6642# The user is always right.
6643if test "${PATH_SEPARATOR+set}" != set; then
6644 echo "#! /bin/sh" >conf$$.sh
6645 echo "exit 0" >>conf$$.sh
6646 chmod +x conf$$.sh
6647 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6648 PATH_SEPARATOR=';'
6649 else
6650 PATH_SEPARATOR=:
6651 fi
6652 rm -f conf$$.sh
6653fi
6654
6655
6656
6657if test "x$exec_prefix" = xNONE; then
6658 if test "x$prefix" = xNONE; then
6659 gcc_cv_tool_prefix=$ac_default_prefix
6660 else
6661 gcc_cv_tool_prefix=$prefix
6662 fi
6663else
6664 gcc_cv_tool_prefix=$exec_prefix
6665fi
6666
6667# If there is no compiler in the tree, use the PATH only. In any
6668# case, if there is no compiler in the tree nobody should use
6669# AS_FOR_TARGET and LD_FOR_TARGET.
6670if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6671 gcc_version=`cat $srcdir/gcc/BASE-VER`
6672 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6673 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6674 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6675 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6676 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6677 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6678else
6679 gcc_cv_tool_dirs=
6680fi
6681
6682if test x$build = x$target && test -n "$md_exec_prefix"; then
6683 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6684fi
6685
6686
6687
55ffb5ed
NN
6688copy_dirs=
6689
1c710c3c 6690
5213506e
RW
6691# Check whether --with-build-sysroot was given.
6692if test "${with_build_sysroot+set}" = set; then :
6693 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6694 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6695 fi
6696else
6697 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6698fi
526635cb
MM
6699
6700
c8aea42c 6701
5213506e
RW
6702
6703# Check whether --with-debug-prefix-map was given.
6704if test "${with_debug_prefix_map+set}" = set; then :
6705 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6706 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6707 for debug_map in $withval; do
6708 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6709 done
6710 fi
6711else
6712 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6713fi
6714
c8aea42c
PB
6715
6716
1c8bd6a3
PB
6717# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6718# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6719# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6720# We want to ensure that TARGET libraries (which we know are built with
6721# gcc) are built with "-O2 -g", so include those options when setting
6722# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6723if test "x$CFLAGS_FOR_TARGET" = x; then
6724 CFLAGS_FOR_TARGET=$CFLAGS
6725 case " $CFLAGS " in
6726 *" -O2 "*) ;;
bd8e704f 6727 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6728 esac
6729 case " $CFLAGS " in
6730 *" -g "* | *" -g3 "*) ;;
bd8e704f 6731 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6732 esac
6733fi
6734
6735
6736if test "x$CXXFLAGS_FOR_TARGET" = x; then
6737 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6738 case " $CXXFLAGS " in
6739 *" -O2 "*) ;;
bd8e704f 6740 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6741 esac
6742 case " $CXXFLAGS " in
6743 *" -g "* | *" -g3 "*) ;;
bd8e704f 6744 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6745 esac
6746fi
6747
6748
6f57bdf6
DK
6749
6750
55ffb5ed
NN
6751# Handle --with-headers=XXX. If the value is not "yes", the contents of
6752# the named directory are copied to $(tooldir)/sys-include.
6753if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6754 if test x${is_cross_compiler} = xno ; then
6755 echo 1>&2 '***' --with-headers is only supported when cross compiling
6756 exit 1
6757 fi
6758 if test x"${with_headers}" != xyes ; then
c3a86da9 6759 x=${gcc_cv_tool_prefix}
1c710c3c 6760 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6761 fi
6762fi
6763
6764# Handle --with-libs=XXX. If the value is not "yes", the contents of
6765# the name directories are copied to $(tooldir)/lib. Multiple directories
6766# are permitted.
6767if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6768 if test x${is_cross_compiler} = xno ; then
6769 echo 1>&2 '***' --with-libs is only supported when cross compiling
6770 exit 1
6771 fi
6772 if test x"${with_libs}" != xyes ; then
6773 # Copy the libraries in reverse order, so that files in the first named
6774 # library override files in subsequent libraries.
c3a86da9 6775 x=${gcc_cv_tool_prefix}
55ffb5ed 6776 for l in ${with_libs}; do
1c710c3c 6777 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6778 done
6779 fi
6780fi
6781
d7f09764 6782# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6783#
6784# This is done by determining whether or not the appropriate directory
6785# is available, and by checking whether or not specific configurations
6786# have requested that this magic not happen.
1c710c3c
DJ
6787#
6788# The command line options always override the explicit settings in
e8b05380
PB
6789# configure.in, and the settings in configure.in override this magic.
6790#
1c710c3c 6791# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6792# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6793# --without-gnu-ld options for the configure script. Similarly, if
6794# the default is to use the included zlib and you don't want to do that,
6795# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6796
6797if test x${use_gnu_as} = x &&
6798 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6799 with_gnu_as=yes
6800 extra_host_args="$extra_host_args --with-gnu-as"
6801fi
6802
6803if test x${use_gnu_ld} = x &&
5afab7ad 6804 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6805 with_gnu_ld=yes
6806 extra_host_args="$extra_host_args --with-gnu-ld"
6807fi
6808
d7f09764
DN
6809if test x${use_included_zlib} = x &&
6810 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6811 :
6812else
6813 with_system_zlib=yes
6814 extra_host_args="$extra_host_args --with-system-zlib"
6815fi
6816
e8b05380
PB
6817# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6818# can detect this case.
6819
6820if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6821 with_newlib=yes
6822 extra_host_args="$extra_host_args --with-newlib"
6823fi
6824
55ffb5ed
NN
6825# Handle ${copy_dirs}
6826set fnord ${copy_dirs}
6827shift
6828while test $# != 0 ; do
6829 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6830 :
6831 else
6832 echo Copying $1 to $2
6833
6834 # Use the install script to create the directory and all required
6835 # parent directories.
6836 if test -d $2 ; then
6837 :
6838 else
6839 echo >config.temp
6840 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6841 fi
6842
6843 # Copy the directory, assuming we have tar.
6844 # FIXME: Should we use B in the second tar? Not all systems support it.
6845 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6846
6847 # It is the responsibility of the user to correctly adjust all
6848 # symlinks. If somebody can figure out how to handle them correctly
6849 # here, feel free to add the code.
6850
6851 echo $1 > $2/COPIED
6852 fi
6853 shift; shift
6854done
6855
e8b05380
PB
6856# Determine a target-dependent exec_prefix that the installed
6857# gcc will search in. Keep this list sorted by triplet, with
6858# the *-*-osname triplets last.
6859md_exec_prefix=
6860case "${target}" in
30b74385 6861 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6862 md_exec_prefix=/dev/env/DJDIR/bin
6863 ;;
e8b05380 6864 *-*-hpux* | \
e8b05380 6865 *-*-nto-qnx* | \
6de66370 6866 *-*-solaris2*)
e8b05380
PB
6867 md_exec_prefix=/usr/ccs/bin
6868 ;;
6869esac
6870
671aa708
NN
6871extra_arflags_for_target=
6872extra_nmflags_for_target=
6873extra_ranlibflags_for_target=
6874target_makefile_frag=/dev/null
6875case "${target}" in
58e24147
AM
6876 spu-*-*)
6877 target_makefile_frag="config/mt-spu"
6878 ;;
d91491e5 6879 mips*-sde-elf* | mips*-mti-elf*)
4bf6c438
RS
6880 target_makefile_frag="config/mt-sde"
6881 ;;
1ec3b87b
RS
6882 mipsisa*-*-elfoabi*)
6883 target_makefile_frag="config/mt-mips-elfoabi"
6884 ;;
08d0963a
RS
6885 mips*-*-*linux* | mips*-*-gnu*)
6886 target_makefile_frag="config/mt-mips-gnu"
6887 ;;
707f1839
SL
6888 nios2-*-elf*)
6889 target_makefile_frag="config/mt-nios2-elf"
6890 ;;
416ac4d4 6891 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6892 target_makefile_frag="config/mt-gnu"
671aa708
NN
6893 ;;
6894 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6895 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6896 # commands to handle both 32-bit and 64-bit objects. These flags are
6897 # harmless if we're using GNU nm or ar.
6898 extra_arflags_for_target=" -X32_64"
6899 extra_nmflags_for_target=" -B -X32_64"
6900 ;;
671aa708
NN
6901esac
6902
6903alphaieee_frag=/dev/null
6904case $target in
6905 alpha*-*-*)
6906 # This just makes sure to use the -mieee option to build target libs.
6907 # This should probably be set individually by each library.
6908 alphaieee_frag="config/mt-alphaieee"
6909 ;;
6910esac
6911
6912# If --enable-target-optspace always use -Os instead of -O2 to build
6913# the target libraries, similarly if it is not specified, use -Os
6914# on selected platforms.
6915ospace_frag=/dev/null
6916case "${enable_target_optspace}:${target}" in
6917 yes:*)
6918 ospace_frag="config/mt-ospace"
6919 ;;
6920 :d30v-*)
6921 ospace_frag="config/mt-d30v"
6922 ;;
6923 :m32r-* | :d10v-* | :fr30-*)
6924 ospace_frag="config/mt-ospace"
6925 ;;
6926 no:* | :*)
6927 ;;
6928 *)
6929 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6930 ;;
6931esac
6932
671aa708
NN
6933# Some systems (e.g., one of the i386-aix systems the gas testers are
6934# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6935tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6936build_tooldir=${tooldir}
6937
671aa708
NN
6938# Create a .gdbinit file which runs the one in srcdir
6939# and tells GDB to look there for source files.
6940
6941if test -r ${srcdir}/.gdbinit ; then
6942 case ${srcdir} in
6943 .) ;;
6944 *) cat > ./.gdbinit <<EOF
6945# ${NO_EDIT}
6946dir ${srcdir}
6947dir .
6948source ${srcdir}/.gdbinit
6949EOF
6950 ;;
6951 esac
6952fi
6953
671aa708
NN
6954# Make sure that the compiler is able to generate an executable. If it
6955# can't, we are probably in trouble. We don't care whether we can run the
6956# executable--we might be using a cross compiler--we only care whether it
6957# can be created. At this point the main configure script has set CC.
6958we_are_ok=no
6959echo "int main () { return 0; }" > conftest.c
6960${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6961if test $? = 0 ; then
6962 if test -s conftest || test -s conftest.exe ; then
6963 we_are_ok=yes
6964 fi
1c710c3c 6965fi
671aa708
NN
6966case $we_are_ok in
6967 no)
6968 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6969 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6970 rm -f conftest*
6971 exit 1
6972 ;;
6973esac
6974rm -f conftest*
6975
d89f0ad6 6976# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6977case "${host}" in
6978 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6979 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6980 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6981 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6982esac
6983
d89f0ad6
AL
6984# On systems where the dynamic library environment variable is PATH,
6985# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6986# built executables to PATH.
6987if test "$RPATH_ENVVAR" = PATH; then
6988 GCC_SHLIB_SUBDIR=/shlib
6989else
6990 GCC_SHLIB_SUBDIR=
6991fi
6992
beeda1d9
JJ
6993# Adjust the toplevel makefile according to whether bootstrap was selected.
6994case $enable_bootstrap in
6995 yes)
6996 bootstrap_suffix=bootstrap
6997 BUILD_CONFIG=bootstrap-debug
6998 ;;
6999 no)
7000 bootstrap_suffix=no-bootstrap
7001 BUILD_CONFIG=
7002 ;;
7003esac
7004
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7006$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7007
7008
7009# Check whether --with-build-config was given.
7010if test "${with_build_config+set}" = set; then :
7011 withval=$with_build_config; case $with_build_config in
7012 yes) with_build_config= ;;
7013 no) with_build_config= BUILD_CONFIG= ;;
7014 esac
7015fi
7016
7017
7018if test "x${with_build_config}" != x; then
7019 BUILD_CONFIG=$with_build_config
7020else
7021 case $BUILD_CONFIG in
7022 bootstrap-debug)
7023 if echo "int f (void) { return 0; }" > conftest.c &&
7024 ${CC} -c conftest.c &&
7025 mv conftest.o conftest.o.g0 &&
7026 ${CC} -c -g conftest.c &&
7027 mv conftest.o conftest.o.g &&
7028 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7029 :
7030 else
7031 BUILD_CONFIG=
7032 fi
7033 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7034 ;;
7035 esac
7036fi
7037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7038$as_echo "$BUILD_CONFIG" >&6; }
7039
7040
7041# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7043$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7044# Check whether --enable-vtable-verify was given.
7045if test "${enable_vtable_verify+set}" = set; then :
7046 enableval=$enable_vtable_verify; case "$enableval" in
7047 yes) enable_vtable_verify=yes ;;
7048 no) enable_vtable_verify=no ;;
7049 *) enable_vtable_verify=no;;
7050 esac
7051else
7052 enable_vtable_verify=no
7053fi
7054
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7056$as_echo "$enable_vtable_verify" >&6; }
7057
671aa708
NN
7058# Record target_configdirs and the configure arguments for target and
7059# build configuration in Makefile.
7060target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7061build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7062bootstrap_fixincludes=no
671aa708 7063
ad1e5170
JR
7064# If we are building libgomp, bootstrap it.
7065if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7066 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7067fi
7068
beeda1d9
JJ
7069# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7070# or bootstrap-ubsan, bootstrap it.
7071if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7072 case "$BUILD_CONFIG" in
7073 *bootstrap-asan* | *bootstrap-ubsan* )
7074 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7075 bootstrap_fixincludes=yes
beeda1d9
JJ
7076 ;;
7077 esac
ac8701fe
L
7078fi
7079
beeda1d9
JJ
7080# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7081if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7082 test "$enable_vtable_verify" != no; then
2077db1b
CT
7083 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7084fi
7085
671aa708
NN
7086# Determine whether gdb needs tk/tcl or not.
7087# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7088# and in that case we want gdb to be built without tk. Ugh!
7089# In fact I believe gdb is the *only* package directly dependent on tk,
7090# so we should be able to put the 'maybe's in unconditionally and
7091# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7092# 100% sure that that's safe though.
e914a571 7093
b4f96efe 7094gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7095case "$enable_gdbtk" in
7096 no)
7097 GDB_TK="" ;;
e914a571
AC
7098 yes)
7099 GDB_TK="${gdb_tk}" ;;
671aa708 7100 *)
e914a571
AC
7101 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7102 # distro. Eventually someone will fix this and move Insight, nee
7103 # gdbtk to a separate directory.
7104 if test -d ${srcdir}/gdb/gdbtk ; then
7105 GDB_TK="${gdb_tk}"
7106 else
7107 GDB_TK=""
7108 fi
7109 ;;
671aa708 7110esac
ef9db8d5
DJ
7111CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7112INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7113
60975492 7114# Strip out unwanted targets.
8b87bb96
NN
7115
7116# While at that, we remove Makefiles if we were started for recursive
7117# configuration, so that the top-level Makefile reconfigures them,
7118# like we used to do when configure itself was recursive.
8b87bb96 7119
3e54529c
RW
7120# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7121# but now we're fixing up the Makefile ourselves with the additional
7122# commands passed to AC_CONFIG_FILES. Use separate variables
7123# extrasub-{build,host,target} not because there is any reason to split
7124# the substitutions up that way, but only to remain below the limit of
7125# 99 commands in a script, for HP-UX sed.
7126# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7127
79cd2b23
RW
7128case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7129 yes:yes:*\ gold\ *:*,c++,*) ;;
7130 yes:yes:*\ gold\ *:*)
7131 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7132 ;;
7133esac
7134
3e54529c 7135extrasub_build=
23f6b2f9 7136for module in ${build_configdirs} ; do
5607edfd
PB
7137 if test -z "${no_recursion}" \
7138 && test -f ${build_subdir}/${module}/Makefile; then
7139 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7140 rm -f ${build_subdir}/${module}/Makefile
7141 fi
3e54529c 7142 extrasub_build="$extrasub_build
5607edfd
PB
7143/^@if build-$module\$/d
7144/^@endif build-$module\$/d
7145/^@if build-$module-$bootstrap_suffix\$/d
7146/^@endif build-$module-$bootstrap_suffix\$/d"
7147done
3e54529c 7148extrasub_host=
5607edfd 7149for module in ${configdirs} ; do
a6fbc1e2 7150 if test -z "${no_recursion}"; then
f063a9ed 7151 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7152 if test -f ${file}; then
7153 echo 1>&2 "*** removing ${file} to force reconfigure"
7154 rm -f ${file}
7155 fi
7156 done
5607edfd 7157 fi
9e1c8fc1
JJ
7158 case ${module},${bootstrap_fixincludes} in
7159 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7160 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7161 esac
3e54529c 7162 extrasub_host="$extrasub_host
5607edfd
PB
7163/^@if $module\$/d
7164/^@endif $module\$/d
9e1c8fc1
JJ
7165/^@if $module-$host_bootstrap_suffix\$/d
7166/^@endif $module-$host_bootstrap_suffix\$/d"
5607edfd 7167done
3e54529c 7168extrasub_target=
5607edfd
PB
7169for module in ${target_configdirs} ; do
7170 if test -z "${no_recursion}" \
7171 && test -f ${target_subdir}/${module}/Makefile; then
7172 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7173 rm -f ${target_subdir}/${module}/Makefile
7174 fi
00020c16
ILT
7175
7176 # We only bootstrap target libraries listed in bootstrap_target_libs.
7177 case $bootstrap_target_libs in
7178 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7179 *) target_bootstrap_suffix=no-bootstrap ;;
7180 esac
7181
3e54529c 7182 extrasub_target="$extrasub_target
5607edfd
PB
7183/^@if target-$module\$/d
7184/^@endif target-$module\$/d
00020c16
ILT
7185/^@if target-$module-$target_bootstrap_suffix\$/d
7186/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7187done
7188
3e54529c
RW
7189# Do the final fixup along with target modules.
7190extrasub_target="$extrasub_target
60975492 7191/^@if /,/^@endif /d"
671aa708
NN
7192
7193# Create the serialization dependencies. This uses a temporary file.
7194
5213506e
RW
7195# Check whether --enable-serial-configure was given.
7196if test "${enable_serial_configure+set}" = set; then :
7197 enableval=$enable_serial_configure;
7198fi
ade82b16
AO
7199
7200
bf1d3e81
NN
7201case ${enable_serial_configure} in
7202 yes)
7203 enable_serial_build_configure=yes
7204 enable_serial_host_configure=yes
7205 enable_serial_target_configure=yes
7206 ;;
7207esac
7208
671aa708
NN
7209# These force 'configure's to be done one at a time, to avoid problems
7210# with contention over a shared config.cache.
7211rm -f serdep.tmp
ade82b16 7212echo '# serdep.tmp' > serdep.tmp
671aa708 7213olditem=
bf1d3e81 7214test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7215for item in ${build_configdirs} ; do
7216 case ${olditem} in
7217 "") ;;
ade82b16 7218 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7219 esac
7220 olditem=${item}
7221done
7222olditem=
bf1d3e81 7223test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7224for item in ${configdirs} ; do
7225 case ${olditem} in
7226 "") ;;
ade82b16 7227 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7228 esac
7229 olditem=${item}
7230done
7231olditem=
bf1d3e81 7232test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7233for item in ${target_configdirs} ; do
7234 case ${olditem} in
7235 "") ;;
ade82b16 7236 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7237 esac
7238 olditem=${item}
7239done
7240serialization_dependencies=serdep.tmp
7241
7242
ade82b16 7243# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7244# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7245# might not want to pass down to subconfigures. The exception being
7246# --cache-file=/dev/null, which is used to turn off the use of cache
7247# files altogether, and which should be passed on to subconfigures.
7248# Also strip program-prefix, program-suffix, and program-transform-name,
7249# so that we can pass down a consistent program-transform-name.
1c710c3c 7250baseargs=
29a63921 7251tbaseargs=
1c710c3c
DJ
7252keep_next=no
7253skip_next=no
7254eval "set -- $ac_configure_args"
44bfc3ac
DJ
7255for ac_arg
7256do
1c710c3c
DJ
7257 if test X"$skip_next" = X"yes"; then
7258 skip_next=no
7259 continue
7260 fi
7261 if test X"$keep_next" = X"yes"; then
7262 case $ac_arg in
7263 *\'*)
7264 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7265 esac
7266 baseargs="$baseargs '$ac_arg'"
29a63921 7267 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7268 keep_next=no
7269 continue
7270 fi
7271
7272 # Handle separated arguments. Based on the logic generated by
7273 # autoconf 2.59.
7274 case $ac_arg in
7275 *=* | --config-cache | -C | -disable-* | --disable-* \
7276 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7277 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7278 | -with-* | --with-* | -without-* | --without-* | --x)
7279 separate_arg=no
7280 ;;
7281 -*)
7282 separate_arg=yes
7283 ;;
7284 *)
7285 separate_arg=no
7286 ;;
7287 esac
7288
29a63921
AO
7289 skip_targ=no
7290 case $ac_arg in
7291
7292 --with-* | --without-*)
7293 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7294
7295 case $libopt in
7296 *[-_]include)
7297 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7298 ;;
7299 *[-_]lib)
7300 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7301 ;;
7302 *)
7303 lib=$libopt
7304 ;;
7305 esac
7306
7307
7308 case $lib in
eae1a5d4 7309 mpc | mpfr | gmp | isl | cloog)
29a63921
AO
7310 # If we're processing --with-$lib, --with-$lib-include or
7311 # --with-$lib-lib, for one of the libs above, and target is
7312 # different from host, don't pass the current argument to any
7313 # target library's configure.
7314 if test x$is_cross_compiler = xyes; then
7315 skip_targ=yes
7316 fi
7317 ;;
7318 esac
7319 ;;
7320 esac
7321
1c710c3c 7322 case "$ac_arg" in
f1a036e4
NC
7323 --cache-file=/dev/null | \
7324 -cache-file=/dev/null )
7325 # Handled here to avoid the test to skip args below.
7326 baseargs="$baseargs '$ac_arg'"
29a63921 7327 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7328 # Assert: $separate_arg should always be no.
7329 keep_next=$separate_arg
7330 ;;
1c710c3c
DJ
7331 --no*)
7332 continue
7333 ;;
7334 --c* | \
7335 --sr* | \
7336 --ho* | \
7337 --bu* | \
7338 --t* | \
7339 --program-* | \
7340 -cache_file* | \
7341 -srcdir* | \
7342 -host* | \
7343 -build* | \
7344 -target* | \
7345 -program-prefix* | \
7346 -program-suffix* | \
7347 -program-transform-name* )
7348 skip_next=$separate_arg
7349 continue
7350 ;;
7351 -*)
7352 # An option. Add it.
7353 case $ac_arg in
7354 *\'*)
7355 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7356 esac
7357 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7358 if test X"$skip_targ" = Xno; then
7359 tbaseargs="$tbaseargs '$ac_arg'"
7360 fi
1c710c3c
DJ
7361 keep_next=$separate_arg
7362 ;;
7363 *)
7364 # Either a variable assignment, or a nonopt (triplet). Don't
7365 # pass it down; let the Makefile handle this.
7366 continue
7367 ;;
7368 esac
7369done
7370# Remove the initial space we just introduced and, as these will be
7371# expanded by make, quote '$'.
7372baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7373
43bb47c2
DJ
7374# Add in --program-transform-name, after --program-prefix and
7375# --program-suffix have been applied to it. Autoconf has already
7376# doubled dollar signs and backslashes in program_transform_name; we want
7377# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7378# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7379# Also, because we want to override the logic in subdir configure scripts to
7380# choose program_transform_name, replace any s,x,x, with s,y,y,.
7381sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7382${program_transform_name}
7383EOF_SED
7384gcc_transform_name=`cat conftestsed.out`
7385rm -f conftestsed.out
7386baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7387tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7388if test "$silent" = yes; then
7389 baseargs="$baseargs --silent"
29a63921 7390 tbaseargs="$tbaseargs --silent"
d9acb717 7391fi
0115d4a3 7392baseargs="$baseargs --disable-option-checking"
29a63921 7393tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7394
ffedf511
RW
7395# Record and document user additions to sub configure arguments.
7396
7397
7398
7399
671aa708
NN
7400# For the build-side libraries, we just need to pretend we're native,
7401# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7402# desired. We can't even use the same cache file for all build-side
7403# libraries, as they're compiled differently; some with C, some with
7404# C++ or with different feature-enabling options.
7405build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7406
7407# For host modules, accept cache file option, or specification as blank.
7408case "${cache_file}" in
7409"") # empty
7410 cache_file_option="" ;;
7411/* | [A-Za-z]:[\\/]* ) # absolute path
7412 cache_file_option="--cache-file=${cache_file}" ;;
7413*) # relative path
7414 cache_file_option="--cache-file=../${cache_file}" ;;
7415esac
7416
09438bde
NN
7417# Host dirs don't like to share a cache file either, horribly enough.
7418# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7419host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7420
29a63921 7421target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7422
7423# Passing a --with-cross-host argument lets the target libraries know
7424# whether they are being built with a cross-compiler or being built
7425# native. However, it would be better to use other mechanisms to make the
7426# sorts of decisions they want to make on this basis. Please consider
7427# this option to be deprecated. FIXME.
7428if test x${is_cross_compiler} = xyes ; then
1c710c3c 7429 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7430fi
7431
79e0604d
FXC
7432# Special user-friendly check for native x86_64-linux build, if
7433# multilib is not explicitly enabled.
7434case "$target:$have_compiler:$host:$target:$enable_multilib" in
7435 x86_64-*linux*:yes:$build:$build:)
7436 # Make sure we have a developement environment that handles 32-bit
7437 dev64=no
7438 echo "int main () { return 0; }" > conftest.c
7439 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7440 if test $? = 0 ; then
7441 if test -s conftest || test -s conftest.exe ; then
7442 dev64=yes
7443 fi
7444 fi
7445 rm -f conftest*
7446 if test x${dev64} != xyes ; then
7447 as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7448 fi
7449 ;;
7450esac
7451
dc683a3f
RW
7452# Default to --enable-multilib.
7453if test x${enable_multilib} = x ; then
671aa708 7454 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7455fi
671aa708
NN
7456
7457# Pass --with-newlib if appropriate. Note that target_configdirs has
7458# changed from the earlier setting of with_newlib.
7459if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7460 target_configargs="--with-newlib ${target_configargs}"
7461fi
7462
6b9eb62c
NN
7463# Different target subdirs use different values of certain variables
7464# (notably CXX). Worse, multilibs use *lots* of different values.
7465# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7466# it doesn't automatically accept command-line overrides of them.
7467# This means it's not safe for target subdirs to share a cache file,
7468# which is disgusting, but there you have it. Hopefully this can be
7469# fixed in future. It's still worthwhile to use a cache file for each
7470# directory. I think.
7471
bebcd931
MS
7472# Pass the appropriate --build, --host, --target and --cache-file arguments.
7473# We need to pass --target, as newer autoconf's requires consistency
7474# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7475target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7476
671aa708
NN
7477FLAGS_FOR_TARGET=
7478case " $target_configdirs " in
7479 *" newlib "*)
7480 case " $target_configargs " in
7481 *" --with-newlib "*)
7482 case "$target" in
5d571eaa 7483 *-cygwin*)
443e6238 7484 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7485 ;;
671aa708
NN
7486 esac
7487
7488 # If we're not building GCC, don't discard standard headers.
7489 if test -d ${srcdir}/gcc; then
7490 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7491
7492 if test "${build}" != "${host}"; then
7493 # On Canadian crosses, CC_FOR_TARGET will have already been set
7494 # by `configure', so we won't have an opportunity to add -Bgcc/
7495 # to it. This is right: we don't want to search that directory
7496 # for binaries, but we want the header files in there, so add
7497 # them explicitly.
0463992b 7498 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7499
7500 # Someone might think of using the pre-installed headers on
7501 # Canadian crosses, in case the installed compiler is not fully
7502 # compatible with the compiler being built. In this case, it
7503 # would be better to flag an error than risking having
7504 # incompatible object files being constructed. We can't
7505 # guarantee that an error will be flagged, but let's hope the
7506 # compiler will do it, when presented with incompatible header
7507 # files.
7508 fi
7509 fi
7510
7511 case "${target}-${is_cross_compiler}" in
f2a0e225 7512 i[3456789]86-*-linux*-no)
671aa708
NN
7513 # Here host == target, so we don't need to build gcc,
7514 # so we don't want to discard standard headers.
7515 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7516 ;;
7517 *)
7518 # If we're building newlib, use its generic headers last, but search
7519 # for any libc-related directories first (so make it the last -B
7520 # switch).
7521 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
7522
7523 # If we're building libgloss, find the startup file, simulator library
7524 # and linker script.
7525 case " $target_configdirs " in
7526 *" libgloss "*)
7527 # Look for startup file, simulator library and maybe linker script.
7528 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7529 # Look for libnosys.a in case the target needs it.
7530 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7531 # Most targets have the linker script in the source directory.
7532 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7533 ;;
7534 esac
671aa708
NN
7535 ;;
7536 esac
7537 ;;
7538 esac
7539 ;;
7540esac
5d571eaa 7541
b91f0a41 7542case "$target" in
5d571eaa
OS
7543 x86_64-*mingw* | *-w64-mingw*)
7544 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7545 # however, use a symlink named 'mingw' in ${prefix} .
7546 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7547 ;;
7548 *-mingw*)
7549 # MinGW can't be handled as Cygwin above since it does not use newlib.
7550 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'
7551 ;;
b91f0a41 7552esac
671aa708 7553
6691a79e
ME
7554# Allow the user to override the flags for
7555# our build compiler if desired.
f019adc1
MF
7556if test x"${build}" = x"${host}" ; then
7557 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7558 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7559 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7560fi
6691a79e 7561
671aa708
NN
7562# On Canadian crosses, we'll be searching the right directories for
7563# the previously-installed cross compiler, so don't bother to add
7564# flags for directories within the install tree of the compiler
7565# being built; programs in there won't even run.
7566if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7567 # Search for pre-installed headers if nothing else fits.
9124bc53 7568 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
7569fi
7570
7571if test "x${use_gnu_ld}" = x &&
7572 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7573 # Arrange for us to find uninstalled linker scripts.
215c351a 7574 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7575fi
7576
e88a2c09
DD
7577# Search for other target-specific linker scripts and such.
7578case "${target}" in
3e19841a
PB
7579 mep*)
7580 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7581 ;;
e88a2c09
DD
7582esac
7583
671aa708 7584# Makefile fragments.
7b61653a
PE
7585for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7586do
7587 eval fragval=\$$frag
7588 if test $fragval != /dev/null; then
7589 eval $frag=${srcdir}/$fragval
7590 fi
7591done
671aa708
NN
7592
7593
7594
7595
7596
7597# Miscellanea: directories, flags, etc.
7598
7599
7600
7601
7602
7603
7604
d89f0ad6 7605
23f6b2f9 7606# Build module lists & subconfigure args.
671aa708
NN
7607
7608
7609
2abefe3d
PB
7610# Host module lists & subconfigure args.
7611
7612
7613
aae29963 7614
2abefe3d
PB
7615# Target module lists & subconfigure args.
7616
7617
7618
7619# Build tools.
7620
7621
7622
0999159b
PB
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
2abefe3d
PB
7637# Generate default definitions for YACC, M4, LEX and other programs that run
7638# on the build machine. These are used if the Makefile can't locate these
7639# programs in objdir.
7640MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7641
7642for ac_prog in 'bison -y' byacc yacc
7643do
1c710c3c 7644 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7645set dummy $ac_prog; ac_word=$2
5213506e
RW
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647$as_echo_n "checking for $ac_word... " >&6; }
7648if test "${ac_cv_prog_YACC+set}" = set; then :
7649 $as_echo_n "(cached) " >&6
2abefe3d
PB
7650else
7651 if test -n "$YACC"; then
7652 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7653else
1c710c3c
DJ
7654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
5213506e
RW
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7661 ac_cv_prog_YACC="$ac_prog"
5213506e 7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7663 break 2
7664 fi
7665done
5213506e
RW
7666 done
7667IFS=$as_save_IFS
1c710c3c 7668
2abefe3d
PB
7669fi
7670fi
1c710c3c 7671YACC=$ac_cv_prog_YACC
2abefe3d 7672if test -n "$YACC"; then
5213506e
RW
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7674$as_echo "$YACC" >&6; }
2abefe3d 7675else
5213506e
RW
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677$as_echo "no" >&6; }
2abefe3d
PB
7678fi
7679
5213506e 7680
1c710c3c 7681 test -n "$YACC" && break
2abefe3d
PB
7682done
7683test -n "$YACC" || YACC="$MISSING bison -y"
7684
7685case " $build_configdirs " in
7686 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7687esac
7688
7689for ac_prog in bison
7690do
1c710c3c 7691 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7692set dummy $ac_prog; ac_word=$2
5213506e
RW
7693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7694$as_echo_n "checking for $ac_word... " >&6; }
7695if test "${ac_cv_prog_BISON+set}" = set; then :
7696 $as_echo_n "(cached) " >&6
2abefe3d
PB
7697else
7698 if test -n "$BISON"; then
7699 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7700else
1c710c3c
DJ
7701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702for as_dir in $PATH
7703do
7704 IFS=$as_save_IFS
7705 test -z "$as_dir" && as_dir=.
5213506e
RW
7706 for ac_exec_ext in '' $ac_executable_extensions; do
7707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7708 ac_cv_prog_BISON="$ac_prog"
5213506e 7709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7710 break 2
7711 fi
7712done
5213506e
RW
7713 done
7714IFS=$as_save_IFS
1c710c3c 7715
2abefe3d
PB
7716fi
7717fi
1c710c3c 7718BISON=$ac_cv_prog_BISON
2abefe3d 7719if test -n "$BISON"; then
5213506e
RW
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7721$as_echo "$BISON" >&6; }
2abefe3d 7722else
5213506e
RW
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724$as_echo "no" >&6; }
2abefe3d
PB
7725fi
7726
5213506e 7727
1c710c3c 7728 test -n "$BISON" && break
2abefe3d
PB
7729done
7730test -n "$BISON" || BISON="$MISSING bison"
7731
7732case " $build_configdirs " in
7733 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7734esac
7735
7736for ac_prog in gm4 gnum4 m4
7737do
1c710c3c 7738 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7739set dummy $ac_prog; ac_word=$2
5213506e
RW
7740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741$as_echo_n "checking for $ac_word... " >&6; }
7742if test "${ac_cv_prog_M4+set}" = set; then :
7743 $as_echo_n "(cached) " >&6
2abefe3d
PB
7744else
7745 if test -n "$M4"; then
7746 ac_cv_prog_M4="$M4" # Let the user override the test.
7747else
1c710c3c
DJ
7748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749for as_dir in $PATH
7750do
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
5213506e
RW
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7755 ac_cv_prog_M4="$ac_prog"
5213506e 7756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7757 break 2
7758 fi
7759done
5213506e
RW
7760 done
7761IFS=$as_save_IFS
1c710c3c 7762
2abefe3d
PB
7763fi
7764fi
1c710c3c 7765M4=$ac_cv_prog_M4
2abefe3d 7766if test -n "$M4"; then
5213506e
RW
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7768$as_echo "$M4" >&6; }
2abefe3d 7769else
5213506e
RW
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771$as_echo "no" >&6; }
2abefe3d
PB
7772fi
7773
5213506e 7774
1c710c3c 7775 test -n "$M4" && break
2abefe3d
PB
7776done
7777test -n "$M4" || M4="$MISSING m4"
7778
7779case " $build_configdirs " in
7780 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7781esac
7782
7783for ac_prog in flex lex
7784do
1c710c3c 7785 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7786set dummy $ac_prog; ac_word=$2
5213506e
RW
7787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788$as_echo_n "checking for $ac_word... " >&6; }
7789if test "${ac_cv_prog_LEX+set}" = set; then :
7790 $as_echo_n "(cached) " >&6
2abefe3d
PB
7791else
7792 if test -n "$LEX"; then
7793 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7794else
1c710c3c
DJ
7795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796for as_dir in $PATH
7797do
7798 IFS=$as_save_IFS
7799 test -z "$as_dir" && as_dir=.
5213506e
RW
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7802 ac_cv_prog_LEX="$ac_prog"
5213506e 7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7804 break 2
7805 fi
7806done
5213506e
RW
7807 done
7808IFS=$as_save_IFS
1c710c3c 7809
2abefe3d
PB
7810fi
7811fi
1c710c3c 7812LEX=$ac_cv_prog_LEX
2abefe3d 7813if test -n "$LEX"; then
5213506e
RW
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7815$as_echo "$LEX" >&6; }
2abefe3d 7816else
5213506e
RW
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818$as_echo "no" >&6; }
2abefe3d
PB
7819fi
7820
5213506e 7821
1c710c3c 7822 test -n "$LEX" && break
2abefe3d
PB
7823done
7824test -n "$LEX" || LEX="$MISSING flex"
7825
7826case " $build_configdirs " in
7827 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7828 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7829esac
7830
7831for ac_prog in flex
7832do
1c710c3c 7833 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7834set dummy $ac_prog; ac_word=$2
5213506e
RW
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836$as_echo_n "checking for $ac_word... " >&6; }
7837if test "${ac_cv_prog_FLEX+set}" = set; then :
7838 $as_echo_n "(cached) " >&6
2abefe3d
PB
7839else
7840 if test -n "$FLEX"; then
7841 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7842else
1c710c3c
DJ
7843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844for as_dir in $PATH
7845do
7846 IFS=$as_save_IFS
7847 test -z "$as_dir" && as_dir=.
5213506e
RW
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7850 ac_cv_prog_FLEX="$ac_prog"
5213506e 7851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7852 break 2
7853 fi
7854done
5213506e
RW
7855 done
7856IFS=$as_save_IFS
1c710c3c 7857
2abefe3d
PB
7858fi
7859fi
1c710c3c 7860FLEX=$ac_cv_prog_FLEX
2abefe3d 7861if test -n "$FLEX"; then
5213506e
RW
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7863$as_echo "$FLEX" >&6; }
2abefe3d 7864else
5213506e
RW
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866$as_echo "no" >&6; }
2abefe3d
PB
7867fi
7868
5213506e 7869
1c710c3c 7870 test -n "$FLEX" && break
2abefe3d
PB
7871done
7872test -n "$FLEX" || FLEX="$MISSING flex"
7873
7874case " $build_configdirs " in
7875 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7876esac
7877
7878for ac_prog in makeinfo
7879do
1c710c3c 7880 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7881set dummy $ac_prog; ac_word=$2
5213506e
RW
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883$as_echo_n "checking for $ac_word... " >&6; }
7884if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7885 $as_echo_n "(cached) " >&6
2abefe3d
PB
7886else
7887 if test -n "$MAKEINFO"; then
7888 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7889else
1c710c3c
DJ
7890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891for as_dir in $PATH
7892do
7893 IFS=$as_save_IFS
7894 test -z "$as_dir" && as_dir=.
5213506e
RW
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7897 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7899 break 2
7900 fi
7901done
5213506e
RW
7902 done
7903IFS=$as_save_IFS
1c710c3c 7904
2abefe3d
PB
7905fi
7906fi
1c710c3c 7907MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7908if test -n "$MAKEINFO"; then
5213506e
RW
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7910$as_echo "$MAKEINFO" >&6; }
2abefe3d 7911else
5213506e
RW
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913$as_echo "no" >&6; }
2abefe3d
PB
7914fi
7915
5213506e 7916
1c710c3c 7917 test -n "$MAKEINFO" && break
2abefe3d
PB
7918done
7919test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7920
7921case " $build_configdirs " in
7922 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7923 *)
7924
d18ff35a 7925 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7926 # higher, else we use the "missing" dummy.
7927 if ${MAKEINFO} --version \
d18ff35a 7928 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7929 :
7930 else
7931 MAKEINFO="$MISSING makeinfo"
7932 fi
7933 ;;
7934
7935esac
671aa708 7936
2abefe3d 7937# FIXME: expect and dejagnu may become build tools?
671aa708 7938
2abefe3d
PB
7939for ac_prog in expect
7940do
1c710c3c 7941 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7942set dummy $ac_prog; ac_word=$2
5213506e
RW
7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944$as_echo_n "checking for $ac_word... " >&6; }
7945if test "${ac_cv_prog_EXPECT+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
2abefe3d
PB
7947else
7948 if test -n "$EXPECT"; then
7949 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7950else
1c710c3c
DJ
7951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952for as_dir in $PATH
7953do
7954 IFS=$as_save_IFS
7955 test -z "$as_dir" && as_dir=.
5213506e
RW
7956 for ac_exec_ext in '' $ac_executable_extensions; do
7957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7958 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7960 break 2
7961 fi
7962done
5213506e
RW
7963 done
7964IFS=$as_save_IFS
1c710c3c 7965
2abefe3d
PB
7966fi
7967fi
1c710c3c 7968EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7969if test -n "$EXPECT"; then
5213506e
RW
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7971$as_echo "$EXPECT" >&6; }
2abefe3d 7972else
5213506e
RW
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974$as_echo "no" >&6; }
2abefe3d 7975fi
671aa708 7976
5213506e 7977
1c710c3c 7978 test -n "$EXPECT" && break
2abefe3d
PB
7979done
7980test -n "$EXPECT" || EXPECT="expect"
671aa708 7981
2abefe3d
PB
7982case " $configdirs " in
7983 *" expect "*)
7984 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7985 ;;
7986esac
671aa708 7987
2abefe3d
PB
7988for ac_prog in runtest
7989do
1c710c3c 7990 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7991set dummy $ac_prog; ac_word=$2
5213506e
RW
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993$as_echo_n "checking for $ac_word... " >&6; }
7994if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7995 $as_echo_n "(cached) " >&6
2abefe3d
PB
7996else
7997 if test -n "$RUNTEST"; then
7998 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7999else
1c710c3c
DJ
8000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001for as_dir in $PATH
8002do
8003 IFS=$as_save_IFS
8004 test -z "$as_dir" && as_dir=.
5213506e
RW
8005 for ac_exec_ext in '' $ac_executable_extensions; do
8006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8007 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8009 break 2
8010 fi
8011done
5213506e
RW
8012 done
8013IFS=$as_save_IFS
1c710c3c 8014
2abefe3d
PB
8015fi
8016fi
1c710c3c 8017RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8018if test -n "$RUNTEST"; then
5213506e
RW
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8020$as_echo "$RUNTEST" >&6; }
2abefe3d 8021else
5213506e
RW
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023$as_echo "no" >&6; }
2abefe3d 8024fi
671aa708 8025
5213506e 8026
1c710c3c 8027 test -n "$RUNTEST" && break
2abefe3d
PB
8028done
8029test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8030
2abefe3d
PB
8031case " $configdirs " in
8032 *" dejagnu "*)
c394e891 8033 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8034 ;;
8035esac
671aa708
NN
8036
8037
671aa708 8038# Host tools.
ca9f4b81
AO
8039ncn_tool_prefix=
8040test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8041ncn_target_tool_prefix=
8042test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8043
278a7a38
AO
8044
8045
8046if test -n "$AR"; then
8047 ac_cv_prog_AR=$AR
8048elif test -n "$ac_cv_prog_AR"; then
8049 AR=$ac_cv_prog_AR
8050fi
8051
8052if test -n "$ac_cv_prog_AR"; then
8053 for ncn_progname in ar; do
8054 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8055set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057$as_echo_n "checking for $ac_word... " >&6; }
8058if test "${ac_cv_prog_AR+set}" = set; then :
8059 $as_echo_n "(cached) " >&6
278a7a38
AO
8060else
8061 if test -n "$AR"; then
8062 ac_cv_prog_AR="$AR" # Let the user override the test.
8063else
8064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065for as_dir in $PATH
8066do
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
5213506e
RW
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8071 ac_cv_prog_AR="${ncn_progname}"
5213506e 8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8073 break 2
8074 fi
8075done
5213506e
RW
8076 done
8077IFS=$as_save_IFS
278a7a38
AO
8078
8079fi
8080fi
8081AR=$ac_cv_prog_AR
8082if test -n "$AR"; then
5213506e
RW
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8084$as_echo "$AR" >&6; }
278a7a38 8085else
5213506e
RW
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087$as_echo "no" >&6; }
278a7a38
AO
8088fi
8089
5213506e 8090
278a7a38
AO
8091 done
8092fi
8093
8094for ncn_progname in ar; do
2693c0b0
PB
8095 if test -n "$ncn_tool_prefix"; then
8096 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8097set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8099$as_echo_n "checking for $ac_word... " >&6; }
8100if test "${ac_cv_prog_AR+set}" = set; then :
8101 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8102else
8103 if test -n "$AR"; then
8104 ac_cv_prog_AR="$AR" # Let the user override the test.
8105else
1c710c3c
DJ
8106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107for as_dir in $PATH
8108do
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
5213506e
RW
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8113 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8115 break 2
8116 fi
8117done
5213506e
RW
8118 done
8119IFS=$as_save_IFS
1c710c3c 8120
ca9f4b81
AO
8121fi
8122fi
1c710c3c 8123AR=$ac_cv_prog_AR
ca9f4b81 8124if test -n "$AR"; then
5213506e
RW
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8126$as_echo "$AR" >&6; }
ca9f4b81 8127else
5213506e
RW
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129$as_echo "no" >&6; }
ca9f4b81
AO
8130fi
8131
5213506e 8132
2693c0b0
PB
8133 fi
8134 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8136set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8138$as_echo_n "checking for $ac_word... " >&6; }
8139if test "${ac_cv_prog_AR+set}" = set; then :
8140 $as_echo_n "(cached) " >&6
ca9f4b81 8141else
2693c0b0 8142 if test -n "$AR"; then
af71363e
AS
8143 ac_cv_prog_AR="$AR" # Let the user override the test.
8144else
1c710c3c
DJ
8145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146for as_dir in $PATH
8147do
8148 IFS=$as_save_IFS
8149 test -z "$as_dir" && as_dir=.
5213506e
RW
8150 for ac_exec_ext in '' $ac_executable_extensions; do
8151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8152 ac_cv_prog_AR="${ncn_progname}"
5213506e 8153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8154 break 2
8155 fi
8156done
5213506e
RW
8157 done
8158IFS=$as_save_IFS
1c710c3c 8159
ca9f4b81
AO
8160fi
8161fi
1c710c3c 8162AR=$ac_cv_prog_AR
2693c0b0 8163if test -n "$AR"; then
5213506e
RW
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8165$as_echo "$AR" >&6; }
ca9f4b81 8166else
5213506e
RW
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8168$as_echo "no" >&6; }
ca9f4b81 8169fi
1c710c3c 8170
5213506e 8171
2693c0b0
PB
8172 fi
8173 test -n "$ac_cv_prog_AR" && break
8174done
8175
8176if test -z "$ac_cv_prog_AR" ; then
8177 set dummy ar
8178 if test $build = $host ; then
8179 AR="$2"
ca9f4b81 8180 else
2693c0b0 8181 AR="${ncn_tool_prefix}$2"
ca9f4b81 8182 fi
ca9f4b81
AO
8183fi
8184
278a7a38
AO
8185
8186
8187if test -n "$AS"; then
8188 ac_cv_prog_AS=$AS
8189elif test -n "$ac_cv_prog_AS"; then
8190 AS=$ac_cv_prog_AS
8191fi
8192
8193if test -n "$ac_cv_prog_AS"; then
8194 for ncn_progname in as; do
8195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8196set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198$as_echo_n "checking for $ac_word... " >&6; }
8199if test "${ac_cv_prog_AS+set}" = set; then :
8200 $as_echo_n "(cached) " >&6
278a7a38
AO
8201else
8202 if test -n "$AS"; then
8203 ac_cv_prog_AS="$AS" # Let the user override the test.
8204else
8205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206for as_dir in $PATH
8207do
8208 IFS=$as_save_IFS
8209 test -z "$as_dir" && as_dir=.
5213506e
RW
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8212 ac_cv_prog_AS="${ncn_progname}"
5213506e 8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8214 break 2
8215 fi
8216done
5213506e
RW
8217 done
8218IFS=$as_save_IFS
278a7a38
AO
8219
8220fi
8221fi
8222AS=$ac_cv_prog_AS
8223if test -n "$AS"; then
5213506e
RW
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8225$as_echo "$AS" >&6; }
278a7a38 8226else
5213506e
RW
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228$as_echo "no" >&6; }
278a7a38
AO
8229fi
8230
5213506e 8231
278a7a38
AO
8232 done
8233fi
8234
8235for ncn_progname in as; do
2693c0b0
PB
8236 if test -n "$ncn_tool_prefix"; then
8237 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8238set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240$as_echo_n "checking for $ac_word... " >&6; }
8241if test "${ac_cv_prog_AS+set}" = set; then :
8242 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8243else
8244 if test -n "$AS"; then
8245 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8246else
1c710c3c
DJ
8247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248for as_dir in $PATH
8249do
8250 IFS=$as_save_IFS
8251 test -z "$as_dir" && as_dir=.
5213506e
RW
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8254 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8256 break 2
8257 fi
8258done
5213506e
RW
8259 done
8260IFS=$as_save_IFS
1c710c3c 8261
ca9f4b81
AO
8262fi
8263fi
1c710c3c 8264AS=$ac_cv_prog_AS
ca9f4b81 8265if test -n "$AS"; then
5213506e
RW
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8267$as_echo "$AS" >&6; }
ca9f4b81 8268else
5213506e
RW
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270$as_echo "no" >&6; }
ca9f4b81
AO
8271fi
8272
5213506e 8273
2693c0b0
PB
8274 fi
8275 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8277set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279$as_echo_n "checking for $ac_word... " >&6; }
8280if test "${ac_cv_prog_AS+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
ca9f4b81 8282else
2693c0b0
PB
8283 if test -n "$AS"; then
8284 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8285else
1c710c3c
DJ
8286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287for as_dir in $PATH
8288do
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
5213506e
RW
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8293 ac_cv_prog_AS="${ncn_progname}"
5213506e 8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8295 break 2
8296 fi
8297done
5213506e
RW
8298 done
8299IFS=$as_save_IFS
1c710c3c 8300
ca9f4b81
AO
8301fi
8302fi
1c710c3c 8303AS=$ac_cv_prog_AS
2693c0b0 8304if test -n "$AS"; then
5213506e
RW
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8306$as_echo "$AS" >&6; }
ca9f4b81 8307else
5213506e
RW
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309$as_echo "no" >&6; }
ca9f4b81 8310fi
1c710c3c 8311
5213506e 8312
2693c0b0
PB
8313 fi
8314 test -n "$ac_cv_prog_AS" && break
8315done
8316
8317if test -z "$ac_cv_prog_AS" ; then
8318 set dummy as
8319 if test $build = $host ; then
8320 AS="$2"
ca9f4b81 8321 else
2693c0b0 8322 AS="${ncn_tool_prefix}$2"
ca9f4b81 8323 fi
ca9f4b81
AO
8324fi
8325
278a7a38
AO
8326
8327
8328if test -n "$DLLTOOL"; then
8329 ac_cv_prog_DLLTOOL=$DLLTOOL
8330elif test -n "$ac_cv_prog_DLLTOOL"; then
8331 DLLTOOL=$ac_cv_prog_DLLTOOL
8332fi
8333
8334if test -n "$ac_cv_prog_DLLTOOL"; then
8335 for ncn_progname in dlltool; do
8336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8337set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339$as_echo_n "checking for $ac_word... " >&6; }
8340if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8341 $as_echo_n "(cached) " >&6
278a7a38
AO
8342else
8343 if test -n "$DLLTOOL"; then
8344 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8345else
8346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347for as_dir in $PATH
8348do
8349 IFS=$as_save_IFS
8350 test -z "$as_dir" && as_dir=.
5213506e
RW
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8353 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8355 break 2
8356 fi
8357done
5213506e
RW
8358 done
8359IFS=$as_save_IFS
278a7a38
AO
8360
8361fi
8362fi
8363DLLTOOL=$ac_cv_prog_DLLTOOL
8364if test -n "$DLLTOOL"; then
5213506e
RW
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8366$as_echo "$DLLTOOL" >&6; }
278a7a38 8367else
5213506e
RW
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369$as_echo "no" >&6; }
278a7a38
AO
8370fi
8371
5213506e 8372
278a7a38
AO
8373 done
8374fi
8375
8376for ncn_progname in dlltool; do
2693c0b0
PB
8377 if test -n "$ncn_tool_prefix"; then
8378 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8379set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8381$as_echo_n "checking for $ac_word... " >&6; }
8382if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8383 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8384else
8385 if test -n "$DLLTOOL"; then
8386 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8387else
1c710c3c
DJ
8388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389for as_dir in $PATH
8390do
8391 IFS=$as_save_IFS
8392 test -z "$as_dir" && as_dir=.
5213506e
RW
8393 for ac_exec_ext in '' $ac_executable_extensions; do
8394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8395 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8397 break 2
8398 fi
8399done
5213506e
RW
8400 done
8401IFS=$as_save_IFS
1c710c3c 8402
ca9f4b81
AO
8403fi
8404fi
1c710c3c 8405DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8406if test -n "$DLLTOOL"; then
5213506e
RW
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8408$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8409else
5213506e
RW
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411$as_echo "no" >&6; }
ca9f4b81
AO
8412fi
8413
5213506e 8414
2693c0b0
PB
8415 fi
8416 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8417 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8418set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420$as_echo_n "checking for $ac_word... " >&6; }
8421if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8422 $as_echo_n "(cached) " >&6
ca9f4b81 8423else
2693c0b0
PB
8424 if test -n "$DLLTOOL"; then
8425 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8426else
1c710c3c
DJ
8427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428for as_dir in $PATH
8429do
8430 IFS=$as_save_IFS
8431 test -z "$as_dir" && as_dir=.
5213506e
RW
8432 for ac_exec_ext in '' $ac_executable_extensions; do
8433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8434 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8436 break 2
8437 fi
8438done
5213506e
RW
8439 done
8440IFS=$as_save_IFS
1c710c3c 8441
ca9f4b81
AO
8442fi
8443fi
1c710c3c 8444DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8445if test -n "$DLLTOOL"; then
5213506e
RW
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8447$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8448else
5213506e
RW
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450$as_echo "no" >&6; }
ca9f4b81 8451fi
1c710c3c 8452
5213506e 8453
2693c0b0
PB
8454 fi
8455 test -n "$ac_cv_prog_DLLTOOL" && break
8456done
8457
8458if test -z "$ac_cv_prog_DLLTOOL" ; then
8459 set dummy dlltool
8460 if test $build = $host ; then
8461 DLLTOOL="$2"
ca9f4b81 8462 else
2693c0b0 8463 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8464 fi
ca9f4b81
AO
8465fi
8466
278a7a38
AO
8467
8468
8469if test -n "$LD"; then
8470 ac_cv_prog_LD=$LD
8471elif test -n "$ac_cv_prog_LD"; then
8472 LD=$ac_cv_prog_LD
8473fi
8474
8475if test -n "$ac_cv_prog_LD"; then
8476 for ncn_progname in ld; do
8477 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8478set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480$as_echo_n "checking for $ac_word... " >&6; }
8481if test "${ac_cv_prog_LD+set}" = set; then :
8482 $as_echo_n "(cached) " >&6
278a7a38
AO
8483else
8484 if test -n "$LD"; then
8485 ac_cv_prog_LD="$LD" # Let the user override the test.
8486else
8487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488for as_dir in $PATH
8489do
8490 IFS=$as_save_IFS
8491 test -z "$as_dir" && as_dir=.
5213506e
RW
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8494 ac_cv_prog_LD="${ncn_progname}"
5213506e 8495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8496 break 2
8497 fi
8498done
5213506e
RW
8499 done
8500IFS=$as_save_IFS
278a7a38
AO
8501
8502fi
8503fi
8504LD=$ac_cv_prog_LD
8505if test -n "$LD"; then
5213506e
RW
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8507$as_echo "$LD" >&6; }
278a7a38 8508else
5213506e
RW
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510$as_echo "no" >&6; }
278a7a38
AO
8511fi
8512
5213506e 8513
278a7a38
AO
8514 done
8515fi
8516
8517for ncn_progname in ld; do
2693c0b0
PB
8518 if test -n "$ncn_tool_prefix"; then
8519 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8520set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8522$as_echo_n "checking for $ac_word... " >&6; }
8523if test "${ac_cv_prog_LD+set}" = set; then :
8524 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8525else
8526 if test -n "$LD"; then
8527 ac_cv_prog_LD="$LD" # Let the user override the test.
8528else
1c710c3c
DJ
8529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530for as_dir in $PATH
8531do
8532 IFS=$as_save_IFS
8533 test -z "$as_dir" && as_dir=.
5213506e
RW
8534 for ac_exec_ext in '' $ac_executable_extensions; do
8535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8536 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8538 break 2
8539 fi
8540done
5213506e
RW
8541 done
8542IFS=$as_save_IFS
1c710c3c 8543
ca9f4b81
AO
8544fi
8545fi
1c710c3c 8546LD=$ac_cv_prog_LD
ca9f4b81 8547if test -n "$LD"; then
5213506e
RW
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8549$as_echo "$LD" >&6; }
ca9f4b81 8550else
5213506e
RW
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552$as_echo "no" >&6; }
ca9f4b81
AO
8553fi
8554
5213506e 8555
2693c0b0
PB
8556 fi
8557 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8559set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8561$as_echo_n "checking for $ac_word... " >&6; }
8562if test "${ac_cv_prog_LD+set}" = set; then :
8563 $as_echo_n "(cached) " >&6
ca9f4b81 8564else
2693c0b0
PB
8565 if test -n "$LD"; then
8566 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8567else
1c710c3c
DJ
8568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569for as_dir in $PATH
8570do
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
5213506e
RW
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8575 ac_cv_prog_LD="${ncn_progname}"
5213506e 8576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8577 break 2
8578 fi
8579done
5213506e
RW
8580 done
8581IFS=$as_save_IFS
1c710c3c 8582
ca9f4b81
AO
8583fi
8584fi
1c710c3c 8585LD=$ac_cv_prog_LD
2693c0b0 8586if test -n "$LD"; then
5213506e
RW
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8588$as_echo "$LD" >&6; }
ca9f4b81 8589else
5213506e
RW
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591$as_echo "no" >&6; }
ca9f4b81 8592fi
1c710c3c 8593
5213506e 8594
2693c0b0
PB
8595 fi
8596 test -n "$ac_cv_prog_LD" && break
8597done
8598
8599if test -z "$ac_cv_prog_LD" ; then
8600 set dummy ld
8601 if test $build = $host ; then
8602 LD="$2"
ca9f4b81 8603 else
2693c0b0 8604 LD="${ncn_tool_prefix}$2"
ca9f4b81 8605 fi
ca9f4b81
AO
8606fi
8607
278a7a38
AO
8608
8609
8610if test -n "$LIPO"; then
8611 ac_cv_prog_LIPO=$LIPO
8612elif test -n "$ac_cv_prog_LIPO"; then
8613 LIPO=$ac_cv_prog_LIPO
8614fi
8615
8616if test -n "$ac_cv_prog_LIPO"; then
8617 for ncn_progname in lipo; do
8618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8619set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621$as_echo_n "checking for $ac_word... " >&6; }
8622if test "${ac_cv_prog_LIPO+set}" = set; then :
8623 $as_echo_n "(cached) " >&6
278a7a38
AO
8624else
8625 if test -n "$LIPO"; then
8626 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8627else
8628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629for as_dir in $PATH
8630do
8631 IFS=$as_save_IFS
8632 test -z "$as_dir" && as_dir=.
5213506e
RW
8633 for ac_exec_ext in '' $ac_executable_extensions; do
8634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8635 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8637 break 2
8638 fi
8639done
5213506e
RW
8640 done
8641IFS=$as_save_IFS
278a7a38
AO
8642
8643fi
8644fi
8645LIPO=$ac_cv_prog_LIPO
8646if test -n "$LIPO"; then
5213506e
RW
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8648$as_echo "$LIPO" >&6; }
278a7a38 8649else
5213506e
RW
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651$as_echo "no" >&6; }
278a7a38
AO
8652fi
8653
5213506e 8654
278a7a38
AO
8655 done
8656fi
8657
8658for ncn_progname in lipo; do
2abefe3d
PB
8659 if test -n "$ncn_tool_prefix"; then
8660 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8661set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8663$as_echo_n "checking for $ac_word... " >&6; }
8664if test "${ac_cv_prog_LIPO+set}" = set; then :
8665 $as_echo_n "(cached) " >&6
2abefe3d
PB
8666else
8667 if test -n "$LIPO"; then
8668 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8669else
1c710c3c
DJ
8670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671for as_dir in $PATH
8672do
8673 IFS=$as_save_IFS
8674 test -z "$as_dir" && as_dir=.
5213506e
RW
8675 for ac_exec_ext in '' $ac_executable_extensions; do
8676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8677 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8679 break 2
8680 fi
8681done
5213506e
RW
8682 done
8683IFS=$as_save_IFS
1c710c3c 8684
2abefe3d
PB
8685fi
8686fi
1c710c3c 8687LIPO=$ac_cv_prog_LIPO
2abefe3d 8688if test -n "$LIPO"; then
5213506e
RW
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8690$as_echo "$LIPO" >&6; }
2abefe3d 8691else
5213506e
RW
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8693$as_echo "no" >&6; }
2abefe3d
PB
8694fi
8695
5213506e 8696
2abefe3d
PB
8697 fi
8698 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8699 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8700set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8702$as_echo_n "checking for $ac_word... " >&6; }
8703if test "${ac_cv_prog_LIPO+set}" = set; then :
8704 $as_echo_n "(cached) " >&6
2abefe3d
PB
8705else
8706 if test -n "$LIPO"; then
8707 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8708else
1c710c3c
DJ
8709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710for as_dir in $PATH
8711do
8712 IFS=$as_save_IFS
8713 test -z "$as_dir" && as_dir=.
5213506e
RW
8714 for ac_exec_ext in '' $ac_executable_extensions; do
8715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8716 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8718 break 2
8719 fi
8720done
5213506e
RW
8721 done
8722IFS=$as_save_IFS
1c710c3c 8723
2abefe3d
PB
8724fi
8725fi
1c710c3c 8726LIPO=$ac_cv_prog_LIPO
2abefe3d 8727if test -n "$LIPO"; then
5213506e
RW
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8729$as_echo "$LIPO" >&6; }
2abefe3d 8730else
5213506e
RW
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8732$as_echo "no" >&6; }
2abefe3d 8733fi
1c710c3c 8734
5213506e 8735
2abefe3d
PB
8736 fi
8737 test -n "$ac_cv_prog_LIPO" && break
8738done
8739
8740if test -z "$ac_cv_prog_LIPO" ; then
8741 set dummy lipo
8742 if test $build = $host ; then
8743 LIPO="$2"
8744 else
8745 LIPO="${ncn_tool_prefix}$2"
8746 fi
8747fi
8748
278a7a38
AO
8749
8750
8751if test -n "$NM"; then
8752 ac_cv_prog_NM=$NM
8753elif test -n "$ac_cv_prog_NM"; then
8754 NM=$ac_cv_prog_NM
8755fi
8756
8757if test -n "$ac_cv_prog_NM"; then
8758 for ncn_progname in nm; do
8759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8760set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762$as_echo_n "checking for $ac_word... " >&6; }
8763if test "${ac_cv_prog_NM+set}" = set; then :
8764 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8765else
8766 if test -n "$NM"; then
8767 ac_cv_prog_NM="$NM" # Let the user override the test.
8768else
1c710c3c
DJ
8769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770for as_dir in $PATH
8771do
8772 IFS=$as_save_IFS
8773 test -z "$as_dir" && as_dir=.
5213506e
RW
8774 for ac_exec_ext in '' $ac_executable_extensions; do
8775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8776 ac_cv_prog_NM="${ncn_progname}"
5213506e 8777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8778 break 2
8779 fi
8780done
5213506e
RW
8781 done
8782IFS=$as_save_IFS
1c710c3c 8783
ca9f4b81
AO
8784fi
8785fi
1c710c3c 8786NM=$ac_cv_prog_NM
ca9f4b81 8787if test -n "$NM"; then
5213506e
RW
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8789$as_echo "$NM" >&6; }
ca9f4b81 8790else
5213506e
RW
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792$as_echo "no" >&6; }
ca9f4b81
AO
8793fi
8794
5213506e 8795
278a7a38
AO
8796 done
8797fi
8798
8799for ncn_progname in nm; do
8800 if test -n "$ncn_tool_prefix"; then
8801 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8802set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804$as_echo_n "checking for $ac_word... " >&6; }
8805if test "${ac_cv_prog_NM+set}" = set; then :
8806 $as_echo_n "(cached) " >&6
ca9f4b81 8807else
2693c0b0
PB
8808 if test -n "$NM"; then
8809 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8810else
1c710c3c
DJ
8811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812for as_dir in $PATH
8813do
8814 IFS=$as_save_IFS
8815 test -z "$as_dir" && as_dir=.
5213506e
RW
8816 for ac_exec_ext in '' $ac_executable_extensions; do
8817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8818 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8820 break 2
8821 fi
8822done
5213506e
RW
8823 done
8824IFS=$as_save_IFS
1c710c3c 8825
ca9f4b81
AO
8826fi
8827fi
1c710c3c 8828NM=$ac_cv_prog_NM
2693c0b0 8829if test -n "$NM"; then
5213506e
RW
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8831$as_echo "$NM" >&6; }
ca9f4b81 8832else
5213506e
RW
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834$as_echo "no" >&6; }
ca9f4b81 8835fi
1c710c3c 8836
5213506e 8837
2693c0b0 8838 fi
278a7a38
AO
8839 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8841set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8843$as_echo_n "checking for $ac_word... " >&6; }
8844if test "${ac_cv_prog_NM+set}" = set; then :
8845 $as_echo_n "(cached) " >&6
278a7a38
AO
8846else
8847 if test -n "$NM"; then
8848 ac_cv_prog_NM="$NM" # Let the user override the test.
8849else
8850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851for as_dir in $PATH
8852do
8853 IFS=$as_save_IFS
8854 test -z "$as_dir" && as_dir=.
5213506e
RW
8855 for ac_exec_ext in '' $ac_executable_extensions; do
8856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8857 ac_cv_prog_NM="${ncn_progname}"
5213506e 8858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8859 break 2
8860 fi
8861done
5213506e
RW
8862 done
8863IFS=$as_save_IFS
278a7a38
AO
8864
8865fi
8866fi
8867NM=$ac_cv_prog_NM
8868if test -n "$NM"; then
5213506e
RW
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8870$as_echo "$NM" >&6; }
278a7a38 8871else
5213506e
RW
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873$as_echo "no" >&6; }
278a7a38
AO
8874fi
8875
5213506e 8876
278a7a38
AO
8877 fi
8878 test -n "$ac_cv_prog_NM" && break
8879done
8880
8881if test -z "$ac_cv_prog_NM" ; then
8882 set dummy nm
8883 if test $build = $host ; then
8884 NM="$2"
8885 else
8886 NM="${ncn_tool_prefix}$2"
8887 fi
8888fi
8889
8890
8891
8892if test -n "$RANLIB"; then
8893 ac_cv_prog_RANLIB=$RANLIB
8894elif test -n "$ac_cv_prog_RANLIB"; then
8895 RANLIB=$ac_cv_prog_RANLIB
8896fi
8897
8898if test -n "$ac_cv_prog_RANLIB"; then
8899 for ncn_progname in ranlib; do
8900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8901set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903$as_echo_n "checking for $ac_word... " >&6; }
8904if test "${ac_cv_prog_RANLIB+set}" = set; then :
8905 $as_echo_n "(cached) " >&6
278a7a38
AO
8906else
8907 if test -n "$RANLIB"; then
8908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8909else
8910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911for as_dir in $PATH
8912do
8913 IFS=$as_save_IFS
8914 test -z "$as_dir" && as_dir=.
5213506e
RW
8915 for ac_exec_ext in '' $ac_executable_extensions; do
8916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8917 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8919 break 2
8920 fi
8921done
5213506e
RW
8922 done
8923IFS=$as_save_IFS
278a7a38
AO
8924
8925fi
8926fi
8927RANLIB=$ac_cv_prog_RANLIB
8928if test -n "$RANLIB"; then
5213506e
RW
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8930$as_echo "$RANLIB" >&6; }
278a7a38 8931else
5213506e
RW
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933$as_echo "no" >&6; }
278a7a38
AO
8934fi
8935
5213506e 8936
278a7a38
AO
8937 done
8938fi
ca9f4b81 8939
278a7a38 8940for ncn_progname in ranlib; do
2693c0b0
PB
8941 if test -n "$ncn_tool_prefix"; then
8942 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8943set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8945$as_echo_n "checking for $ac_word... " >&6; }
8946if test "${ac_cv_prog_RANLIB+set}" = set; then :
8947 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8948else
8949 if test -n "$RANLIB"; then
8950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8951else
1c710c3c
DJ
8952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953for as_dir in $PATH
8954do
8955 IFS=$as_save_IFS
8956 test -z "$as_dir" && as_dir=.
5213506e
RW
8957 for ac_exec_ext in '' $ac_executable_extensions; do
8958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8959 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8961 break 2
8962 fi
8963done
5213506e
RW
8964 done
8965IFS=$as_save_IFS
1c710c3c 8966
ca9f4b81
AO
8967fi
8968fi
1c710c3c 8969RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8970if test -n "$RANLIB"; then
5213506e
RW
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8972$as_echo "$RANLIB" >&6; }
ca9f4b81 8973else
5213506e
RW
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975$as_echo "no" >&6; }
ca9f4b81
AO
8976fi
8977
5213506e 8978
2693c0b0
PB
8979 fi
8980 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8982set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984$as_echo_n "checking for $ac_word... " >&6; }
8985if test "${ac_cv_prog_RANLIB+set}" = set; then :
8986 $as_echo_n "(cached) " >&6
ca9f4b81 8987else
2693c0b0
PB
8988 if test -n "$RANLIB"; then
8989 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8990else
1c710c3c
DJ
8991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992for as_dir in $PATH
8993do
8994 IFS=$as_save_IFS
8995 test -z "$as_dir" && as_dir=.
5213506e
RW
8996 for ac_exec_ext in '' $ac_executable_extensions; do
8997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8998 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9000 break 2
9001 fi
9002done
5213506e
RW
9003 done
9004IFS=$as_save_IFS
1c710c3c 9005
ca9f4b81
AO
9006fi
9007fi
1c710c3c 9008RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9009if test -n "$RANLIB"; then
5213506e
RW
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9011$as_echo "$RANLIB" >&6; }
ca9f4b81 9012else
5213506e
RW
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014$as_echo "no" >&6; }
ca9f4b81 9015fi
1c710c3c 9016
5213506e 9017
ca9f4b81 9018 fi
2693c0b0
PB
9019 test -n "$ac_cv_prog_RANLIB" && break
9020done
9021
9022if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9023 RANLIB="true"
ca9f4b81
AO
9024fi
9025
278a7a38
AO
9026
9027
9028if test -n "$STRIP"; then
9029 ac_cv_prog_STRIP=$STRIP
9030elif test -n "$ac_cv_prog_STRIP"; then
9031 STRIP=$ac_cv_prog_STRIP
9032fi
9033
9034if test -n "$ac_cv_prog_STRIP"; then
9035 for ncn_progname in strip; do
9036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9037set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9039$as_echo_n "checking for $ac_word... " >&6; }
9040if test "${ac_cv_prog_STRIP+set}" = set; then :
9041 $as_echo_n "(cached) " >&6
278a7a38
AO
9042else
9043 if test -n "$STRIP"; then
9044 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9045else
9046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047for as_dir in $PATH
9048do
9049 IFS=$as_save_IFS
9050 test -z "$as_dir" && as_dir=.
5213506e
RW
9051 for ac_exec_ext in '' $ac_executable_extensions; do
9052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9053 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9055 break 2
9056 fi
9057done
5213506e
RW
9058 done
9059IFS=$as_save_IFS
278a7a38
AO
9060
9061fi
9062fi
9063STRIP=$ac_cv_prog_STRIP
9064if test -n "$STRIP"; then
5213506e
RW
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9066$as_echo "$STRIP" >&6; }
278a7a38 9067else
5213506e
RW
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069$as_echo "no" >&6; }
278a7a38
AO
9070fi
9071
5213506e 9072
278a7a38
AO
9073 done
9074fi
9075
9076for ncn_progname in strip; do
2abefe3d
PB
9077 if test -n "$ncn_tool_prefix"; then
9078 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9079set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9081$as_echo_n "checking for $ac_word... " >&6; }
9082if test "${ac_cv_prog_STRIP+set}" = set; then :
9083 $as_echo_n "(cached) " >&6
2abefe3d
PB
9084else
9085 if test -n "$STRIP"; then
9086 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9087else
1c710c3c
DJ
9088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089for as_dir in $PATH
9090do
9091 IFS=$as_save_IFS
9092 test -z "$as_dir" && as_dir=.
5213506e
RW
9093 for ac_exec_ext in '' $ac_executable_extensions; do
9094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9095 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9097 break 2
9098 fi
9099done
5213506e
RW
9100 done
9101IFS=$as_save_IFS
1c710c3c 9102
2abefe3d
PB
9103fi
9104fi
1c710c3c 9105STRIP=$ac_cv_prog_STRIP
2abefe3d 9106if test -n "$STRIP"; then
5213506e
RW
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9108$as_echo "$STRIP" >&6; }
2abefe3d 9109else
5213506e
RW
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111$as_echo "no" >&6; }
2abefe3d
PB
9112fi
9113
5213506e 9114
2abefe3d
PB
9115 fi
9116 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9118set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9120$as_echo_n "checking for $ac_word... " >&6; }
9121if test "${ac_cv_prog_STRIP+set}" = set; then :
9122 $as_echo_n "(cached) " >&6
2abefe3d
PB
9123else
9124 if test -n "$STRIP"; then
9125 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9126else
1c710c3c
DJ
9127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128for as_dir in $PATH
9129do
9130 IFS=$as_save_IFS
9131 test -z "$as_dir" && as_dir=.
5213506e
RW
9132 for ac_exec_ext in '' $ac_executable_extensions; do
9133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9134 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9136 break 2
9137 fi
9138done
5213506e
RW
9139 done
9140IFS=$as_save_IFS
1c710c3c 9141
2abefe3d
PB
9142fi
9143fi
1c710c3c 9144STRIP=$ac_cv_prog_STRIP
2abefe3d 9145if test -n "$STRIP"; then
5213506e
RW
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9147$as_echo "$STRIP" >&6; }
2abefe3d 9148else
5213506e
RW
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150$as_echo "no" >&6; }
2abefe3d 9151fi
1c710c3c 9152
5213506e 9153
2abefe3d
PB
9154 fi
9155 test -n "$ac_cv_prog_STRIP" && break
9156done
9157
9158if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9159 STRIP="true"
2abefe3d
PB
9160fi
9161
278a7a38
AO
9162
9163
9164if test -n "$WINDRES"; then
9165 ac_cv_prog_WINDRES=$WINDRES
9166elif test -n "$ac_cv_prog_WINDRES"; then
9167 WINDRES=$ac_cv_prog_WINDRES
9168fi
9169
9170if test -n "$ac_cv_prog_WINDRES"; then
9171 for ncn_progname in windres; do
9172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9173set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9175$as_echo_n "checking for $ac_word... " >&6; }
9176if test "${ac_cv_prog_WINDRES+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
278a7a38
AO
9178else
9179 if test -n "$WINDRES"; then
9180 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9181else
9182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183for as_dir in $PATH
9184do
9185 IFS=$as_save_IFS
9186 test -z "$as_dir" && as_dir=.
5213506e
RW
9187 for ac_exec_ext in '' $ac_executable_extensions; do
9188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9189 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9191 break 2
9192 fi
9193done
5213506e
RW
9194 done
9195IFS=$as_save_IFS
278a7a38
AO
9196
9197fi
9198fi
9199WINDRES=$ac_cv_prog_WINDRES
9200if test -n "$WINDRES"; then
5213506e
RW
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9202$as_echo "$WINDRES" >&6; }
278a7a38 9203else
5213506e
RW
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205$as_echo "no" >&6; }
278a7a38
AO
9206fi
9207
5213506e 9208
278a7a38
AO
9209 done
9210fi
9211
9212for ncn_progname in windres; do
2693c0b0
PB
9213 if test -n "$ncn_tool_prefix"; then
9214 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9215set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9217$as_echo_n "checking for $ac_word... " >&6; }
9218if test "${ac_cv_prog_WINDRES+set}" = set; then :
9219 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9220else
9221 if test -n "$WINDRES"; then
9222 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9223else
1c710c3c
DJ
9224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225for as_dir in $PATH
9226do
9227 IFS=$as_save_IFS
9228 test -z "$as_dir" && as_dir=.
5213506e
RW
9229 for ac_exec_ext in '' $ac_executable_extensions; do
9230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9231 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9233 break 2
9234 fi
9235done
5213506e
RW
9236 done
9237IFS=$as_save_IFS
1c710c3c 9238
ca9f4b81
AO
9239fi
9240fi
1c710c3c 9241WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9242if test -n "$WINDRES"; then
5213506e
RW
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9244$as_echo "$WINDRES" >&6; }
ca9f4b81 9245else
5213506e
RW
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9247$as_echo "no" >&6; }
ca9f4b81
AO
9248fi
9249
5213506e 9250
2693c0b0
PB
9251 fi
9252 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9254set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9256$as_echo_n "checking for $ac_word... " >&6; }
9257if test "${ac_cv_prog_WINDRES+set}" = set; then :
9258 $as_echo_n "(cached) " >&6
ca9f4b81 9259else
2693c0b0
PB
9260 if test -n "$WINDRES"; then
9261 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9262else
1c710c3c
DJ
9263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9264for as_dir in $PATH
9265do
9266 IFS=$as_save_IFS
9267 test -z "$as_dir" && as_dir=.
5213506e
RW
9268 for ac_exec_ext in '' $ac_executable_extensions; do
9269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9270 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9272 break 2
9273 fi
9274done
5213506e
RW
9275 done
9276IFS=$as_save_IFS
1c710c3c 9277
ca9f4b81
AO
9278fi
9279fi
1c710c3c 9280WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9281if test -n "$WINDRES"; then
5213506e
RW
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9283$as_echo "$WINDRES" >&6; }
ca9f4b81 9284else
5213506e
RW
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286$as_echo "no" >&6; }
ca9f4b81 9287fi
1c710c3c 9288
5213506e 9289
2693c0b0
PB
9290 fi
9291 test -n "$ac_cv_prog_WINDRES" && break
9292done
9293
9294if test -z "$ac_cv_prog_WINDRES" ; then
9295 set dummy windres
9296 if test $build = $host ; then
9297 WINDRES="$2"
ca9f4b81 9298 else
2693c0b0 9299 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9300 fi
ca9f4b81
AO
9301fi
9302
278a7a38
AO
9303
9304
901119ae
KT
9305if test -n "$WINDMC"; then
9306 ac_cv_prog_WINDMC=$WINDMC
9307elif test -n "$ac_cv_prog_WINDMC"; then
9308 WINDMC=$ac_cv_prog_WINDMC
9309fi
9310
9311if test -n "$ac_cv_prog_WINDMC"; then
9312 for ncn_progname in windmc; do
9313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9314set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9316$as_echo_n "checking for $ac_word... " >&6; }
9317if test "${ac_cv_prog_WINDMC+set}" = set; then :
9318 $as_echo_n "(cached) " >&6
901119ae
KT
9319else
9320 if test -n "$WINDMC"; then
9321 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9322else
9323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324for as_dir in $PATH
9325do
9326 IFS=$as_save_IFS
9327 test -z "$as_dir" && as_dir=.
5213506e
RW
9328 for ac_exec_ext in '' $ac_executable_extensions; do
9329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9330 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9332 break 2
9333 fi
9334done
5213506e
RW
9335 done
9336IFS=$as_save_IFS
901119ae
KT
9337
9338fi
9339fi
9340WINDMC=$ac_cv_prog_WINDMC
9341if test -n "$WINDMC"; then
5213506e
RW
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9343$as_echo "$WINDMC" >&6; }
901119ae 9344else
5213506e
RW
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9346$as_echo "no" >&6; }
901119ae
KT
9347fi
9348
5213506e 9349
901119ae
KT
9350 done
9351fi
9352
9353for ncn_progname in windmc; do
9354 if test -n "$ncn_tool_prefix"; then
9355 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9356set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9358$as_echo_n "checking for $ac_word... " >&6; }
9359if test "${ac_cv_prog_WINDMC+set}" = set; then :
9360 $as_echo_n "(cached) " >&6
901119ae
KT
9361else
9362 if test -n "$WINDMC"; then
9363 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9364else
9365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366for as_dir in $PATH
9367do
9368 IFS=$as_save_IFS
9369 test -z "$as_dir" && as_dir=.
5213506e
RW
9370 for ac_exec_ext in '' $ac_executable_extensions; do
9371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9372 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9374 break 2
9375 fi
9376done
5213506e
RW
9377 done
9378IFS=$as_save_IFS
901119ae
KT
9379
9380fi
9381fi
9382WINDMC=$ac_cv_prog_WINDMC
9383if test -n "$WINDMC"; then
5213506e
RW
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9385$as_echo "$WINDMC" >&6; }
901119ae 9386else
5213506e
RW
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388$as_echo "no" >&6; }
901119ae
KT
9389fi
9390
5213506e 9391
901119ae
KT
9392 fi
9393 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9395set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9397$as_echo_n "checking for $ac_word... " >&6; }
9398if test "${ac_cv_prog_WINDMC+set}" = set; then :
9399 $as_echo_n "(cached) " >&6
901119ae
KT
9400else
9401 if test -n "$WINDMC"; then
9402 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9403else
9404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9405for as_dir in $PATH
9406do
9407 IFS=$as_save_IFS
9408 test -z "$as_dir" && as_dir=.
5213506e
RW
9409 for ac_exec_ext in '' $ac_executable_extensions; do
9410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9411 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9413 break 2
9414 fi
9415done
5213506e
RW
9416 done
9417IFS=$as_save_IFS
901119ae
KT
9418
9419fi
9420fi
9421WINDMC=$ac_cv_prog_WINDMC
9422if test -n "$WINDMC"; then
5213506e
RW
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9424$as_echo "$WINDMC" >&6; }
901119ae 9425else
5213506e
RW
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9427$as_echo "no" >&6; }
901119ae
KT
9428fi
9429
5213506e 9430
901119ae
KT
9431 fi
9432 test -n "$ac_cv_prog_WINDMC" && break
9433done
9434
9435if test -z "$ac_cv_prog_WINDMC" ; then
9436 set dummy windmc
9437 if test $build = $host ; then
9438 WINDMC="$2"
9439 else
9440 WINDMC="${ncn_tool_prefix}$2"
9441 fi
9442fi
9443
9444
9445
278a7a38
AO
9446if test -n "$OBJCOPY"; then
9447 ac_cv_prog_OBJCOPY=$OBJCOPY
9448elif test -n "$ac_cv_prog_OBJCOPY"; then
9449 OBJCOPY=$ac_cv_prog_OBJCOPY
9450fi
9451
9452if test -n "$ac_cv_prog_OBJCOPY"; then
9453 for ncn_progname in objcopy; do
9454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9455set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9457$as_echo_n "checking for $ac_word... " >&6; }
9458if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9459 $as_echo_n "(cached) " >&6
278a7a38
AO
9460else
9461 if test -n "$OBJCOPY"; then
9462 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9463else
9464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465for as_dir in $PATH
9466do
9467 IFS=$as_save_IFS
9468 test -z "$as_dir" && as_dir=.
5213506e
RW
9469 for ac_exec_ext in '' $ac_executable_extensions; do
9470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9471 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9473 break 2
9474 fi
9475done
5213506e
RW
9476 done
9477IFS=$as_save_IFS
278a7a38
AO
9478
9479fi
9480fi
9481OBJCOPY=$ac_cv_prog_OBJCOPY
9482if test -n "$OBJCOPY"; then
5213506e
RW
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9484$as_echo "$OBJCOPY" >&6; }
278a7a38 9485else
5213506e
RW
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487$as_echo "no" >&6; }
278a7a38
AO
9488fi
9489
5213506e 9490
278a7a38
AO
9491 done
9492fi
9493
9494for ncn_progname in objcopy; do
2693c0b0
PB
9495 if test -n "$ncn_tool_prefix"; then
9496 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9497set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9499$as_echo_n "checking for $ac_word... " >&6; }
9500if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9501 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9502else
9503 if test -n "$OBJCOPY"; then
9504 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9505else
1c710c3c
DJ
9506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9507for as_dir in $PATH
9508do
9509 IFS=$as_save_IFS
9510 test -z "$as_dir" && as_dir=.
5213506e
RW
9511 for ac_exec_ext in '' $ac_executable_extensions; do
9512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9513 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9515 break 2
9516 fi
9517done
5213506e
RW
9518 done
9519IFS=$as_save_IFS
1c710c3c 9520
ca9f4b81
AO
9521fi
9522fi
1c710c3c 9523OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9524if test -n "$OBJCOPY"; then
5213506e
RW
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9526$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9527else
5213506e
RW
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9529$as_echo "no" >&6; }
ca9f4b81
AO
9530fi
9531
5213506e 9532
2693c0b0
PB
9533 fi
9534 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9536set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9538$as_echo_n "checking for $ac_word... " >&6; }
9539if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9540 $as_echo_n "(cached) " >&6
ca9f4b81 9541else
2693c0b0
PB
9542 if test -n "$OBJCOPY"; then
9543 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9544else
1c710c3c
DJ
9545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9546for as_dir in $PATH
9547do
9548 IFS=$as_save_IFS
9549 test -z "$as_dir" && as_dir=.
5213506e
RW
9550 for ac_exec_ext in '' $ac_executable_extensions; do
9551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9552 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9554 break 2
9555 fi
9556done
5213506e
RW
9557 done
9558IFS=$as_save_IFS
1c710c3c 9559
ca9f4b81
AO
9560fi
9561fi
1c710c3c 9562OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9563if test -n "$OBJCOPY"; then
5213506e
RW
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9565$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9566else
5213506e
RW
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9568$as_echo "no" >&6; }
ca9f4b81 9569fi
1c710c3c 9570
5213506e 9571
2693c0b0
PB
9572 fi
9573 test -n "$ac_cv_prog_OBJCOPY" && break
9574done
9575
9576if test -z "$ac_cv_prog_OBJCOPY" ; then
9577 set dummy objcopy
9578 if test $build = $host ; then
9579 OBJCOPY="$2"
ca9f4b81 9580 else
2693c0b0 9581 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9582 fi
ca9f4b81
AO
9583fi
9584
278a7a38
AO
9585
9586
9587if test -n "$OBJDUMP"; then
9588 ac_cv_prog_OBJDUMP=$OBJDUMP
9589elif test -n "$ac_cv_prog_OBJDUMP"; then
9590 OBJDUMP=$ac_cv_prog_OBJDUMP
9591fi
9592
9593if test -n "$ac_cv_prog_OBJDUMP"; then
9594 for ncn_progname in objdump; do
9595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9596set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598$as_echo_n "checking for $ac_word... " >&6; }
9599if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9600 $as_echo_n "(cached) " >&6
278a7a38
AO
9601else
9602 if test -n "$OBJDUMP"; then
9603 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9604else
9605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606for as_dir in $PATH
9607do
9608 IFS=$as_save_IFS
9609 test -z "$as_dir" && as_dir=.
5213506e
RW
9610 for ac_exec_ext in '' $ac_executable_extensions; do
9611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9612 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9614 break 2
9615 fi
9616done
5213506e
RW
9617 done
9618IFS=$as_save_IFS
278a7a38
AO
9619
9620fi
9621fi
9622OBJDUMP=$ac_cv_prog_OBJDUMP
9623if test -n "$OBJDUMP"; then
5213506e
RW
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9625$as_echo "$OBJDUMP" >&6; }
278a7a38 9626else
5213506e
RW
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628$as_echo "no" >&6; }
278a7a38
AO
9629fi
9630
5213506e 9631
278a7a38
AO
9632 done
9633fi
9634
9635for ncn_progname in objdump; do
2693c0b0
PB
9636 if test -n "$ncn_tool_prefix"; then
9637 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9638set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640$as_echo_n "checking for $ac_word... " >&6; }
9641if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9642 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9643else
9644 if test -n "$OBJDUMP"; then
9645 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9646else
1c710c3c
DJ
9647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648for as_dir in $PATH
9649do
9650 IFS=$as_save_IFS
9651 test -z "$as_dir" && as_dir=.
5213506e
RW
9652 for ac_exec_ext in '' $ac_executable_extensions; do
9653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9654 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9656 break 2
9657 fi
9658done
5213506e
RW
9659 done
9660IFS=$as_save_IFS
1c710c3c 9661
ca9f4b81
AO
9662fi
9663fi
1c710c3c 9664OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9665if test -n "$OBJDUMP"; then
5213506e
RW
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9667$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9668else
5213506e
RW
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9670$as_echo "no" >&6; }
ca9f4b81
AO
9671fi
9672
5213506e 9673
2693c0b0
PB
9674 fi
9675 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9677set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9679$as_echo_n "checking for $ac_word... " >&6; }
9680if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9681 $as_echo_n "(cached) " >&6
ca9f4b81 9682else
2693c0b0
PB
9683 if test -n "$OBJDUMP"; then
9684 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9685else
1c710c3c
DJ
9686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687for as_dir in $PATH
9688do
9689 IFS=$as_save_IFS
9690 test -z "$as_dir" && as_dir=.
5213506e
RW
9691 for ac_exec_ext in '' $ac_executable_extensions; do
9692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9693 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9695 break 2
9696 fi
9697done
5213506e
RW
9698 done
9699IFS=$as_save_IFS
1c710c3c 9700
ca9f4b81
AO
9701fi
9702fi
1c710c3c 9703OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9704if test -n "$OBJDUMP"; then
5213506e
RW
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9706$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9707else
5213506e
RW
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9709$as_echo "no" >&6; }
ca9f4b81 9710fi
1c710c3c 9711
5213506e 9712
2693c0b0
PB
9713 fi
9714 test -n "$ac_cv_prog_OBJDUMP" && break
9715done
9716
9717if test -z "$ac_cv_prog_OBJDUMP" ; then
9718 set dummy objdump
9719 if test $build = $host ; then
9720 OBJDUMP="$2"
ca9f4b81 9721 else
2693c0b0 9722 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9723 fi
ca9f4b81
AO
9724fi
9725
671aa708
NN
9726
9727
e7a82751
RM
9728if test -n "$READELF"; then
9729 ac_cv_prog_READELF=$READELF
9730elif test -n "$ac_cv_prog_READELF"; then
9731 READELF=$ac_cv_prog_READELF
9732fi
9733
9734if test -n "$ac_cv_prog_READELF"; then
9735 for ncn_progname in readelf; do
9736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9737set dummy ${ncn_progname}; ac_word=$2
9738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9739$as_echo_n "checking for $ac_word... " >&6; }
9740if test "${ac_cv_prog_READELF+set}" = set; then :
9741 $as_echo_n "(cached) " >&6
9742else
9743 if test -n "$READELF"; then
9744 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9745else
9746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747for as_dir in $PATH
9748do
9749 IFS=$as_save_IFS
9750 test -z "$as_dir" && as_dir=.
9751 for ac_exec_ext in '' $ac_executable_extensions; do
9752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9753 ac_cv_prog_READELF="${ncn_progname}"
9754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9755 break 2
9756 fi
9757done
9758 done
9759IFS=$as_save_IFS
9760
9761fi
9762fi
9763READELF=$ac_cv_prog_READELF
9764if test -n "$READELF"; then
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9766$as_echo "$READELF" >&6; }
9767else
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9769$as_echo "no" >&6; }
9770fi
9771
9772
9773 done
9774fi
9775
9776for ncn_progname in readelf; do
9777 if test -n "$ncn_tool_prefix"; then
9778 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9779set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9781$as_echo_n "checking for $ac_word... " >&6; }
9782if test "${ac_cv_prog_READELF+set}" = set; then :
9783 $as_echo_n "(cached) " >&6
9784else
9785 if test -n "$READELF"; then
9786 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9787else
9788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789for as_dir in $PATH
9790do
9791 IFS=$as_save_IFS
9792 test -z "$as_dir" && as_dir=.
9793 for ac_exec_ext in '' $ac_executable_extensions; do
9794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9795 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9797 break 2
9798 fi
9799done
9800 done
9801IFS=$as_save_IFS
9802
9803fi
9804fi
9805READELF=$ac_cv_prog_READELF
9806if test -n "$READELF"; then
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9808$as_echo "$READELF" >&6; }
9809else
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9811$as_echo "no" >&6; }
9812fi
9813
9814
9815 fi
9816 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9818set dummy ${ncn_progname}; ac_word=$2
9819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9820$as_echo_n "checking for $ac_word... " >&6; }
9821if test "${ac_cv_prog_READELF+set}" = set; then :
9822 $as_echo_n "(cached) " >&6
9823else
9824 if test -n "$READELF"; then
9825 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9826else
9827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9828for as_dir in $PATH
9829do
9830 IFS=$as_save_IFS
9831 test -z "$as_dir" && as_dir=.
9832 for ac_exec_ext in '' $ac_executable_extensions; do
9833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9834 ac_cv_prog_READELF="${ncn_progname}"
9835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9836 break 2
9837 fi
9838done
9839 done
9840IFS=$as_save_IFS
9841
9842fi
9843fi
9844READELF=$ac_cv_prog_READELF
9845if test -n "$READELF"; then
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9847$as_echo "$READELF" >&6; }
9848else
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9850$as_echo "no" >&6; }
9851fi
9852
9853
9854 fi
9855 test -n "$ac_cv_prog_READELF" && break
9856done
9857
9858if test -z "$ac_cv_prog_READELF" ; then
9859 set dummy readelf
9860 if test $build = $host ; then
9861 READELF="$2"
9862 else
9863 READELF="${ncn_tool_prefix}$2"
9864 fi
9865fi
9866
9867
9868
671aa708
NN
9869
9870
9871
2abefe3d 9872# Target tools.
1c710c3c 9873
5213506e
RW
9874# Check whether --with-build-time-tools was given.
9875if test "${with_build_time_tools+set}" = set; then :
9876 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9877 x/*) ;;
9878 *)
9879 with_build_time_tools=
5213506e
RW
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9881$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9882 ;;
9883 esac
ca9f4b81 9884else
e8b05380 9885 with_build_time_tools=
5213506e
RW
9886fi
9887
ca9f4b81 9888
278a7a38
AO
9889
9890
9891if test -n "$CC_FOR_TARGET"; then
9892 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9893elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9894 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9895fi
9896
9897if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9898 for ncn_progname in cc gcc; do
9899 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9900set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9902$as_echo_n "checking for $ac_word... " >&6; }
9903if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9904 $as_echo_n "(cached) " >&6
278a7a38
AO
9905else
9906 if test -n "$CC_FOR_TARGET"; then
9907 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9908else
9909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9910for as_dir in $PATH
9911do
9912 IFS=$as_save_IFS
9913 test -z "$as_dir" && as_dir=.
5213506e
RW
9914 for ac_exec_ext in '' $ac_executable_extensions; do
9915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9916 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9918 break 2
9919 fi
9920done
5213506e
RW
9921 done
9922IFS=$as_save_IFS
278a7a38
AO
9923
9924fi
9925fi
9926CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9927if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9929$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9930else
5213506e
RW
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932$as_echo "no" >&6; }
278a7a38
AO
9933fi
9934
5213506e 9935
278a7a38
AO
9936 done
9937fi
9938
9939if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9940 for ncn_progname in cc gcc; do
5213506e
RW
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9942$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9943 if test -x $with_build_time_tools/${ncn_progname}; then
9944 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9946$as_echo "yes" >&6; }
72a7ab82 9947 break
e8b05380 9948 else
5213506e
RW
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950$as_echo "no" >&6; }
72a7ab82
AP
9951 fi
9952 done
4de997d1
PB
9953fi
9954
e8b05380
PB
9955if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9956 for ncn_progname in cc gcc; do
9957 if test -n "$ncn_target_tool_prefix"; then
9958 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9959set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9961$as_echo_n "checking for $ac_word... " >&6; }
9962if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9963 $as_echo_n "(cached) " >&6
4de997d1
PB
9964else
9965 if test -n "$CC_FOR_TARGET"; then
9966 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9967else
1c710c3c
DJ
9968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969for as_dir in $PATH
9970do
9971 IFS=$as_save_IFS
9972 test -z "$as_dir" && as_dir=.
5213506e
RW
9973 for ac_exec_ext in '' $ac_executable_extensions; do
9974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9975 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9977 break 2
9978 fi
9979done
5213506e
RW
9980 done
9981IFS=$as_save_IFS
1c710c3c 9982
4de997d1
PB
9983fi
9984fi
1c710c3c 9985CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9986if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9988$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9989else
5213506e
RW
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9991$as_echo "no" >&6; }
4de997d1
PB
9992fi
9993
5213506e 9994
e8b05380
PB
9995 fi
9996 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9997 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9998set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000$as_echo_n "checking for $ac_word... " >&6; }
10001if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10002 $as_echo_n "(cached) " >&6
4de997d1 10003else
2693c0b0
PB
10004 if test -n "$CC_FOR_TARGET"; then
10005 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10006else
1c710c3c
DJ
10007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10008for as_dir in $PATH
10009do
10010 IFS=$as_save_IFS
10011 test -z "$as_dir" && as_dir=.
5213506e
RW
10012 for ac_exec_ext in '' $ac_executable_extensions; do
10013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10014 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10016 break 2
10017 fi
10018done
5213506e
RW
10019 done
10020IFS=$as_save_IFS
1c710c3c 10021
4de997d1
PB
10022fi
10023fi
1c710c3c 10024CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10025if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10027$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10028else
5213506e
RW
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10030$as_echo "no" >&6; }
4de997d1 10031fi
1c710c3c 10032
5213506e 10033
e8b05380
PB
10034 fi
10035 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10036 done
10037fi
1c710c3c 10038
2693c0b0
PB
10039if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10040 set dummy cc gcc
10041 if test $build = $target ; then
10042 CC_FOR_TARGET="$2"
4de997d1 10043 else
2693c0b0 10044 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10045 fi
1c00b503
PB
10046else
10047 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10048fi
10049
278a7a38
AO
10050
10051
10052if test -n "$CXX_FOR_TARGET"; then
10053 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10054elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10055 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10056fi
10057
10058if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10059 for ncn_progname in c++ g++ cxx gxx; do
10060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10061set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10063$as_echo_n "checking for $ac_word... " >&6; }
10064if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10065 $as_echo_n "(cached) " >&6
278a7a38
AO
10066else
10067 if test -n "$CXX_FOR_TARGET"; then
10068 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10069else
10070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071for as_dir in $PATH
10072do
10073 IFS=$as_save_IFS
10074 test -z "$as_dir" && as_dir=.
5213506e
RW
10075 for ac_exec_ext in '' $ac_executable_extensions; do
10076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10077 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10079 break 2
10080 fi
10081done
5213506e
RW
10082 done
10083IFS=$as_save_IFS
278a7a38
AO
10084
10085fi
10086fi
10087CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10088if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10090$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10091else
5213506e
RW
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10093$as_echo "no" >&6; }
278a7a38
AO
10094fi
10095
5213506e 10096
278a7a38
AO
10097 done
10098fi
10099
10100if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10101 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10103$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10104 if test -x $with_build_time_tools/${ncn_progname}; then
10105 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10107$as_echo "yes" >&6; }
e8b05380
PB
10108 break
10109 else
5213506e
RW
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111$as_echo "no" >&6; }
e8b05380
PB
10112 fi
10113 done
10114fi
10115
10116if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10117 for ncn_progname in c++ g++ cxx gxx; do
10118 if test -n "$ncn_target_tool_prefix"; then
10119 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10120set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122$as_echo_n "checking for $ac_word... " >&6; }
10123if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10124 $as_echo_n "(cached) " >&6
4de997d1
PB
10125else
10126 if test -n "$CXX_FOR_TARGET"; then
10127 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10128else
1c710c3c
DJ
10129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130for as_dir in $PATH
10131do
10132 IFS=$as_save_IFS
10133 test -z "$as_dir" && as_dir=.
5213506e
RW
10134 for ac_exec_ext in '' $ac_executable_extensions; do
10135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10136 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10138 break 2
10139 fi
10140done
5213506e
RW
10141 done
10142IFS=$as_save_IFS
1c710c3c 10143
4de997d1
PB
10144fi
10145fi
1c710c3c 10146CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10147if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10149$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10150else
5213506e
RW
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152$as_echo "no" >&6; }
4de997d1
PB
10153fi
10154
5213506e 10155
e8b05380
PB
10156 fi
10157 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10159set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10161$as_echo_n "checking for $ac_word... " >&6; }
10162if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10163 $as_echo_n "(cached) " >&6
4de997d1 10164else
2693c0b0
PB
10165 if test -n "$CXX_FOR_TARGET"; then
10166 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10167else
1c710c3c
DJ
10168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10169for as_dir in $PATH
10170do
10171 IFS=$as_save_IFS
10172 test -z "$as_dir" && as_dir=.
5213506e
RW
10173 for ac_exec_ext in '' $ac_executable_extensions; do
10174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10175 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10177 break 2
10178 fi
10179done
5213506e
RW
10180 done
10181IFS=$as_save_IFS
1c710c3c 10182
4de997d1
PB
10183fi
10184fi
1c710c3c 10185CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10186if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10188$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10189else
5213506e
RW
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10191$as_echo "no" >&6; }
4de997d1 10192fi
1c710c3c 10193
5213506e 10194
e8b05380
PB
10195 fi
10196 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10197 done
10198fi
1c710c3c 10199
2693c0b0
PB
10200if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10201 set dummy c++ g++ cxx gxx
10202 if test $build = $target ; then
10203 CXX_FOR_TARGET="$2"
4de997d1 10204 else
2693c0b0 10205 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10206 fi
1c00b503
PB
10207else
10208 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10209fi
10210
278a7a38
AO
10211
10212
10213if test -n "$GCC_FOR_TARGET"; then
10214 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10215elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10216 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10217fi
10218
10219if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10220 for ncn_progname in gcc; do
10221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10222set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10224$as_echo_n "checking for $ac_word... " >&6; }
10225if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10226 $as_echo_n "(cached) " >&6
278a7a38
AO
10227else
10228 if test -n "$GCC_FOR_TARGET"; then
10229 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10230else
10231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10232for as_dir in $PATH
10233do
10234 IFS=$as_save_IFS
10235 test -z "$as_dir" && as_dir=.
5213506e
RW
10236 for ac_exec_ext in '' $ac_executable_extensions; do
10237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10238 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10240 break 2
10241 fi
10242done
5213506e
RW
10243 done
10244IFS=$as_save_IFS
278a7a38
AO
10245
10246fi
10247fi
10248GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10249if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10251$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10252else
5213506e
RW
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10254$as_echo "no" >&6; }
278a7a38
AO
10255fi
10256
5213506e 10257
278a7a38
AO
10258 done
10259fi
10260
10261if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10262 for ncn_progname in gcc; do
5213506e
RW
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10264$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10265 if test -x $with_build_time_tools/${ncn_progname}; then
10266 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10268$as_echo "yes" >&6; }
e8b05380
PB
10269 break
10270 else
5213506e
RW
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10272$as_echo "no" >&6; }
e8b05380
PB
10273 fi
10274 done
10275fi
10276
10277if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10278 for ncn_progname in gcc; do
10279 if test -n "$ncn_target_tool_prefix"; then
10280 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10281set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10283$as_echo_n "checking for $ac_word... " >&6; }
10284if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10285 $as_echo_n "(cached) " >&6
ca9f4b81 10286else
e8b05380
PB
10287 if test -n "$GCC_FOR_TARGET"; then
10288 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10289else
1c710c3c
DJ
10290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10291for as_dir in $PATH
10292do
10293 IFS=$as_save_IFS
10294 test -z "$as_dir" && as_dir=.
5213506e
RW
10295 for ac_exec_ext in '' $ac_executable_extensions; do
10296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10297 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10299 break 2
10300 fi
10301done
5213506e
RW
10302 done
10303IFS=$as_save_IFS
1c710c3c 10304
ca9f4b81
AO
10305fi
10306fi
1c710c3c 10307GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10308if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10310$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10311else
5213506e
RW
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313$as_echo "no" >&6; }
ca9f4b81
AO
10314fi
10315
5213506e 10316
e8b05380
PB
10317 fi
10318 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10320set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10322$as_echo_n "checking for $ac_word... " >&6; }
10323if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10324 $as_echo_n "(cached) " >&6
ca9f4b81 10325else
e8b05380
PB
10326 if test -n "$GCC_FOR_TARGET"; then
10327 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10328else
1c710c3c
DJ
10329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330for as_dir in $PATH
10331do
10332 IFS=$as_save_IFS
10333 test -z "$as_dir" && as_dir=.
5213506e
RW
10334 for ac_exec_ext in '' $ac_executable_extensions; do
10335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10336 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10338 break 2
10339 fi
10340done
5213506e
RW
10341 done
10342IFS=$as_save_IFS
1c710c3c 10343
ca9f4b81
AO
10344fi
10345fi
1c710c3c 10346GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10347if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10349$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10350else
5213506e
RW
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352$as_echo "no" >&6; }
ca9f4b81 10353fi
1c710c3c 10354
5213506e 10355
e8b05380
PB
10356 fi
10357 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10358 done
10359fi
1c710c3c 10360
e8b05380
PB
10361if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10362 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10363else
10364 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10365fi
10366
278a7a38
AO
10367
10368
10369if test -n "$GCJ_FOR_TARGET"; then
10370 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10371elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10372 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10373fi
10374
10375if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10376 for ncn_progname in gcj; do
10377 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10378set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380$as_echo_n "checking for $ac_word... " >&6; }
10381if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10382 $as_echo_n "(cached) " >&6
278a7a38
AO
10383else
10384 if test -n "$GCJ_FOR_TARGET"; then
10385 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10386else
10387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10388for as_dir in $PATH
10389do
10390 IFS=$as_save_IFS
10391 test -z "$as_dir" && as_dir=.
5213506e
RW
10392 for ac_exec_ext in '' $ac_executable_extensions; do
10393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10394 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10396 break 2
10397 fi
10398done
5213506e
RW
10399 done
10400IFS=$as_save_IFS
278a7a38
AO
10401
10402fi
10403fi
10404GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10405if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10407$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10408else
5213506e
RW
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410$as_echo "no" >&6; }
278a7a38
AO
10411fi
10412
5213506e 10413
278a7a38
AO
10414 done
10415fi
10416
10417if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10418 for ncn_progname in gcj; do
5213506e
RW
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10420$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10421 if test -x $with_build_time_tools/${ncn_progname}; then
10422 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10424$as_echo "yes" >&6; }
e8b05380
PB
10425 break
10426 else
5213506e
RW
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428$as_echo "no" >&6; }
e8b05380
PB
10429 fi
10430 done
10431fi
10432
10433if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10434 for ncn_progname in gcj; do
10435 if test -n "$ncn_target_tool_prefix"; then
10436 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10437set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10439$as_echo_n "checking for $ac_word... " >&6; }
10440if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10441 $as_echo_n "(cached) " >&6
e8b05380 10442else
fb0103e5
RG
10443 if test -n "$GCJ_FOR_TARGET"; then
10444 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10445else
1c710c3c
DJ
10446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10447for as_dir in $PATH
10448do
10449 IFS=$as_save_IFS
10450 test -z "$as_dir" && as_dir=.
5213506e
RW
10451 for ac_exec_ext in '' $ac_executable_extensions; do
10452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10453 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10455 break 2
10456 fi
10457done
5213506e
RW
10458 done
10459IFS=$as_save_IFS
1c710c3c 10460
e8b05380
PB
10461fi
10462fi
278a7a38
AO
10463GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10464if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10466$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10467else
5213506e
RW
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10469$as_echo "no" >&6; }
278a7a38
AO
10470fi
10471
5213506e 10472
278a7a38
AO
10473 fi
10474 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10475 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10476set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10478$as_echo_n "checking for $ac_word... " >&6; }
10479if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10480 $as_echo_n "(cached) " >&6
278a7a38
AO
10481else
10482 if test -n "$GCJ_FOR_TARGET"; then
10483 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10484else
10485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10486for as_dir in $PATH
10487do
10488 IFS=$as_save_IFS
10489 test -z "$as_dir" && as_dir=.
5213506e
RW
10490 for ac_exec_ext in '' $ac_executable_extensions; do
10491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10492 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10494 break 2
10495 fi
10496done
5213506e
RW
10497 done
10498IFS=$as_save_IFS
278a7a38
AO
10499
10500fi
10501fi
10502GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10503if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10505$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10506else
5213506e
RW
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10508$as_echo "no" >&6; }
278a7a38
AO
10509fi
10510
5213506e 10511
278a7a38
AO
10512 fi
10513 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10514 done
10515fi
10516
10517if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10518 set dummy gcj
10519 if test $build = $target ; then
10520 GCJ_FOR_TARGET="$2"
10521 else
10522 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10523 fi
1c00b503
PB
10524else
10525 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10526fi
10527
10528
10529
10530if test -n "$GFORTRAN_FOR_TARGET"; then
10531 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10532elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10533 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10534fi
10535
278a7a38
AO
10536if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10537 for ncn_progname in gfortran; do
10538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10539set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10541$as_echo_n "checking for $ac_word... " >&6; }
10542if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10543 $as_echo_n "(cached) " >&6
e8b05380 10544else
278a7a38
AO
10545 if test -n "$GFORTRAN_FOR_TARGET"; then
10546 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10547else
1c710c3c
DJ
10548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10549for as_dir in $PATH
10550do
10551 IFS=$as_save_IFS
10552 test -z "$as_dir" && as_dir=.
5213506e
RW
10553 for ac_exec_ext in '' $ac_executable_extensions; do
10554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10555 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10557 break 2
10558 fi
10559done
5213506e
RW
10560 done
10561IFS=$as_save_IFS
1c710c3c 10562
e8b05380
PB
10563fi
10564fi
278a7a38
AO
10565GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10566if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10568$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10569else
5213506e
RW
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10571$as_echo "no" >&6; }
e8b05380 10572fi
1c710c3c 10573
5213506e 10574
e8b05380
PB
10575 done
10576fi
1c710c3c 10577
278a7a38 10578if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10579 for ncn_progname in gfortran; do
5213506e
RW
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10581$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10582 if test -x $with_build_time_tools/${ncn_progname}; then
10583 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10585$as_echo "yes" >&6; }
e8b05380
PB
10586 break
10587 else
5213506e
RW
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10589$as_echo "no" >&6; }
e8b05380
PB
10590 fi
10591 done
10592fi
10593
10594if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10595 for ncn_progname in gfortran; do
10596 if test -n "$ncn_target_tool_prefix"; then
10597 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10598set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10600$as_echo_n "checking for $ac_word... " >&6; }
10601if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10602 $as_echo_n "(cached) " >&6
e8b05380
PB
10603else
10604 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10605 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10606else
10607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10608for as_dir in $PATH
10609do
10610 IFS=$as_save_IFS
10611 test -z "$as_dir" && as_dir=.
5213506e
RW
10612 for ac_exec_ext in '' $ac_executable_extensions; do
10613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10614 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10616 break 2
10617 fi
10618done
5213506e
RW
10619 done
10620IFS=$as_save_IFS
1c710c3c 10621
e8b05380
PB
10622fi
10623fi
1c710c3c 10624GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10625if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10627$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10628else
5213506e
RW
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630$as_echo "no" >&6; }
e8b05380
PB
10631fi
10632
5213506e 10633
e8b05380
PB
10634 fi
10635 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10637set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10639$as_echo_n "checking for $ac_word... " >&6; }
10640if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10641 $as_echo_n "(cached) " >&6
e8b05380
PB
10642else
10643 if test -n "$GFORTRAN_FOR_TARGET"; then
10644 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10645else
1c710c3c
DJ
10646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10647for as_dir in $PATH
10648do
10649 IFS=$as_save_IFS
10650 test -z "$as_dir" && as_dir=.
5213506e
RW
10651 for ac_exec_ext in '' $ac_executable_extensions; do
10652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10653 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10655 break 2
10656 fi
10657done
5213506e
RW
10658 done
10659IFS=$as_save_IFS
1c710c3c 10660
e8b05380
PB
10661fi
10662fi
1c710c3c 10663GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10664if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10666$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10667else
5213506e
RW
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10669$as_echo "no" >&6; }
e8b05380 10670fi
1c710c3c 10671
5213506e 10672
e8b05380
PB
10673 fi
10674 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10675 done
10676fi
1c710c3c 10677
e8b05380
PB
10678if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10679 set dummy gfortran
2693c0b0 10680 if test $build = $target ; then
e8b05380 10681 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10682 else
e8b05380
PB
10683 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10684 fi
1c00b503
PB
10685else
10686 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10687fi
10688
10689
10690
632e2a07
ILT
10691if test -n "$GOC_FOR_TARGET"; then
10692 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10693elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10694 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10695fi
10696
10697if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10698 for ncn_progname in gccgo; do
10699 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10700set dummy ${ncn_progname}; ac_word=$2
10701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10702$as_echo_n "checking for $ac_word... " >&6; }
10703if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10704 $as_echo_n "(cached) " >&6
10705else
10706 if test -n "$GOC_FOR_TARGET"; then
10707 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10708else
10709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10710for as_dir in $PATH
10711do
10712 IFS=$as_save_IFS
10713 test -z "$as_dir" && as_dir=.
10714 for ac_exec_ext in '' $ac_executable_extensions; do
10715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10716 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10718 break 2
10719 fi
10720done
10721 done
10722IFS=$as_save_IFS
10723
10724fi
10725fi
10726GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10727if test -n "$GOC_FOR_TARGET"; then
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10729$as_echo "$GOC_FOR_TARGET" >&6; }
10730else
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732$as_echo "no" >&6; }
10733fi
10734
10735
10736 done
10737fi
10738
10739if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10740 for ncn_progname in gccgo; do
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10742$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10743 if test -x $with_build_time_tools/${ncn_progname}; then
10744 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10746$as_echo "yes" >&6; }
10747 break
10748 else
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10750$as_echo "no" >&6; }
10751 fi
10752 done
10753fi
10754
10755if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10756 for ncn_progname in gccgo; do
10757 if test -n "$ncn_target_tool_prefix"; then
10758 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10759set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10761$as_echo_n "checking for $ac_word... " >&6; }
10762if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10763 $as_echo_n "(cached) " >&6
10764else
10765 if test -n "$GOC_FOR_TARGET"; then
10766 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10767else
10768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10769for as_dir in $PATH
10770do
10771 IFS=$as_save_IFS
10772 test -z "$as_dir" && as_dir=.
10773 for ac_exec_ext in '' $ac_executable_extensions; do
10774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10775 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10777 break 2
10778 fi
10779done
10780 done
10781IFS=$as_save_IFS
10782
10783fi
10784fi
10785GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10786if test -n "$GOC_FOR_TARGET"; then
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10788$as_echo "$GOC_FOR_TARGET" >&6; }
10789else
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10791$as_echo "no" >&6; }
10792fi
10793
10794
10795 fi
10796 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10797 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10798set dummy ${ncn_progname}; ac_word=$2
10799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10800$as_echo_n "checking for $ac_word... " >&6; }
10801if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10802 $as_echo_n "(cached) " >&6
10803else
10804 if test -n "$GOC_FOR_TARGET"; then
10805 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10806else
10807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808for as_dir in $PATH
10809do
10810 IFS=$as_save_IFS
10811 test -z "$as_dir" && as_dir=.
10812 for ac_exec_ext in '' $ac_executable_extensions; do
10813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10814 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10816 break 2
10817 fi
10818done
10819 done
10820IFS=$as_save_IFS
10821
10822fi
10823fi
10824GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10825if test -n "$GOC_FOR_TARGET"; then
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10827$as_echo "$GOC_FOR_TARGET" >&6; }
10828else
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830$as_echo "no" >&6; }
10831fi
10832
10833
10834 fi
10835 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10836 done
10837fi
10838
10839if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10840 set dummy gccgo
10841 if test $build = $target ; then
10842 GOC_FOR_TARGET="$2"
10843 else
10844 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10845 fi
10846else
10847 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10848fi
10849
10850
10851
e8b05380
PB
10852cat > conftest.c << \EOF
10853#ifdef __GNUC__
10854 gcc_yay;
10855#endif
10856EOF
10857if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10858 have_gcc_for_target=yes
10859else
10860 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10861 have_gcc_for_target=no
10862fi
10863rm conftest.c
10864
10865
10866
10867
10868if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10869 if test -n "$with_build_time_tools"; then
5213506e
RW
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10871$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10872 if test -x $with_build_time_tools/ar; then
10873 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10874 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10876$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10877 else
5213506e
RW
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879$as_echo "no" >&6; }
d1f8db0c 10880 fi
e8b05380
PB
10881 elif test $build != $host && test $have_gcc_for_target = yes; then
10882 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10883 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10884 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10885 fi
10886fi
3e19841a 10887if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10888 # Extract the first word of "ar", so it can be a program name with args.
10889set dummy ar; ac_word=$2
5213506e
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_AR_FOR_TARGET+set}" = set; then :
10893 $as_echo_n "(cached) " >&6
e8b05380 10894else
1c710c3c
DJ
10895 case $AR_FOR_TARGET in
10896 [\\/]* | ?:[\\/]*)
e8b05380
PB
10897 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10898 ;;
e8b05380 10899 *)
1c710c3c
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=.
5213506e
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
1c710c3c 10907 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10909 break 2
10910 fi
10911done
5213506e
RW
10912 done
10913IFS=$as_save_IFS
1c710c3c 10914
e8b05380
PB
10915 ;;
10916esac
10917fi
1c710c3c 10918AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10919if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10921$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10922else
5213506e
RW
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924$as_echo "no" >&6; }
4de997d1
PB
10925fi
10926
5213506e 10927
e8b05380
PB
10928fi
10929if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10930
10931
10932if test -n "$AR_FOR_TARGET"; then
10933 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10934elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10935 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10936fi
10937
10938if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10939 for ncn_progname in ar; 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
5213506e
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_AR_FOR_TARGET+set}" = set; then :
10945 $as_echo_n "(cached) " >&6
278a7a38
AO
10946else
10947 if test -n "$AR_FOR_TARGET"; then
10948 ac_cv_prog_AR_FOR_TARGET="$AR_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=.
5213506e
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
278a7a38 10957 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10959 break 2
10960 fi
10961done
5213506e
RW
10962 done
10963IFS=$as_save_IFS
278a7a38
AO
10964
10965fi
10966fi
10967AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10968if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10970$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10971else
5213506e
RW
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973$as_echo "no" >&6; }
278a7a38
AO
10974fi
10975
5213506e 10976
278a7a38
AO
10977 done
10978fi
10979
10980if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10981 for ncn_progname in ar; do
5213506e
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; }
d1f8db0c
PB
10984 if test -x $with_build_time_tools/${ncn_progname}; then
10985 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10987$as_echo "yes" >&6; }
e8b05380
PB
10988 break
10989 else
5213506e
RW
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991$as_echo "no" >&6; }
e8b05380
PB
10992 fi
10993 done
10994fi
10995
10996if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10997 for ncn_progname in ar; 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.
2693c0b0 11000set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
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_AR_FOR_TARGET+set}" = set; then :
11004 $as_echo_n "(cached) " >&6
4de997d1 11005else
e8b05380
PB
11006 if test -n "$AR_FOR_TARGET"; then
11007 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 11008else
1c710c3c
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=.
5213506e
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
1c710c3c 11016 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11018 break 2
11019 fi
11020done
5213506e
RW
11021 done
11022IFS=$as_save_IFS
1c710c3c 11023
4de997d1
PB
11024fi
11025fi
1c710c3c 11026AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11027if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11029$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 11030else
5213506e
RW
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11032$as_echo "no" >&6; }
4de997d1
PB
11033fi
11034
5213506e 11035
e8b05380
PB
11036 fi
11037 if test -z "$ac_cv_prog_AR_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
5213506e
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_AR_FOR_TARGET+set}" = set; then :
11043 $as_echo_n "(cached) " >&6
e8b05380
PB
11044else
11045 if test -n "$AR_FOR_TARGET"; then
11046 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11047else
1c710c3c
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=.
5213506e
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
1c710c3c 11055 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11057 break 2
11058 fi
11059done
5213506e
RW
11060 done
11061IFS=$as_save_IFS
1c710c3c 11062
e8b05380
PB
11063fi
11064fi
1c710c3c 11065AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11066if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11068$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11069else
5213506e
RW
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071$as_echo "no" >&6; }
e8b05380 11072fi
1c710c3c 11073
5213506e 11074
e8b05380
PB
11075 fi
11076 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11077 done
11078fi
1c710c3c 11079
e8b05380
PB
11080if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11081 set dummy ar
11082 if test $build = $target ; then
11083 AR_FOR_TARGET="$2"
11084 else
11085 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11086 fi
1c00b503
PB
11087else
11088 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11089fi
11090
d1f8db0c
PB
11091else
11092 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11093fi
11094
11095
11096
11097
11098if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11099 if test -n "$with_build_time_tools"; then
5213506e
RW
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11101$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11102 if test -x $with_build_time_tools/as; then
11103 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11104 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11106$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11107 else
5213506e
RW
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109$as_echo "no" >&6; }
d1f8db0c 11110 fi
e8b05380
PB
11111 elif test $build != $host && test $have_gcc_for_target = yes; then
11112 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11113 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11114 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11115 fi
11116fi
3e19841a 11117if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11118 # Extract the first word of "as", so it can be a program name with args.
11119set dummy as; ac_word=$2
5213506e
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_AS_FOR_TARGET+set}" = set; then :
11123 $as_echo_n "(cached) " >&6
e8b05380 11124else
1c710c3c
DJ
11125 case $AS_FOR_TARGET in
11126 [\\/]* | ?:[\\/]*)
e8b05380
PB
11127 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11128 ;;
e8b05380 11129 *)
1c710c3c
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=.
5213506e
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
1c710c3c 11137 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11139 break 2
11140 fi
11141done
5213506e
RW
11142 done
11143IFS=$as_save_IFS
1c710c3c 11144
e8b05380
PB
11145 ;;
11146esac
11147fi
1c710c3c 11148AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11149if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11151$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11152else
5213506e
RW
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154$as_echo "no" >&6; }
e8b05380
PB
11155fi
11156
5213506e 11157
e8b05380
PB
11158fi
11159if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11160
11161
11162if test -n "$AS_FOR_TARGET"; then
11163 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11164elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11165 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11166fi
11167
11168if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11169 for ncn_progname in as; 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
5213506e
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_AS_FOR_TARGET+set}" = set; then :
11175 $as_echo_n "(cached) " >&6
278a7a38
AO
11176else
11177 if test -n "$AS_FOR_TARGET"; then
11178 ac_cv_prog_AS_FOR_TARGET="$AS_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=.
5213506e
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
278a7a38 11187 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11189 break 2
11190 fi
11191done
5213506e
RW
11192 done
11193IFS=$as_save_IFS
278a7a38
AO
11194
11195fi
11196fi
11197AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11198if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11200$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11201else
5213506e
RW
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11203$as_echo "no" >&6; }
278a7a38
AO
11204fi
11205
5213506e 11206
278a7a38
AO
11207 done
11208fi
11209
11210if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11211 for ncn_progname in as; do
5213506e
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; }
d1f8db0c
PB
11214 if test -x $with_build_time_tools/${ncn_progname}; then
11215 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11217$as_echo "yes" >&6; }
e8b05380
PB
11218 break
11219 else
5213506e
RW
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221$as_echo "no" >&6; }
e8b05380
PB
11222 fi
11223 done
11224fi
11225
11226if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11227 for ncn_progname in as; 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
5213506e
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_AS_FOR_TARGET+set}" = set; then :
11234 $as_echo_n "(cached) " >&6
e8b05380
PB
11235else
11236 if test -n "$AS_FOR_TARGET"; then
11237 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11238else
1c710c3c
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=.
5213506e
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
1c710c3c 11246 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11248 break 2
11249 fi
11250done
5213506e
RW
11251 done
11252IFS=$as_save_IFS
1c710c3c 11253
e8b05380
PB
11254fi
11255fi
1c710c3c 11256AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11257if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11259$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11260else
5213506e
RW
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262$as_echo "no" >&6; }
e8b05380
PB
11263fi
11264
5213506e 11265
e8b05380
PB
11266 fi
11267 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11269set dummy ${ncn_progname}; ac_word=$2
5213506e
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_AS_FOR_TARGET+set}" = set; then :
11273 $as_echo_n "(cached) " >&6
4de997d1 11274else
e8b05380
PB
11275 if test -n "$AS_FOR_TARGET"; then
11276 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11277else
1c710c3c
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=.
5213506e
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
1c710c3c 11285 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11287 break 2
11288 fi
11289done
5213506e
RW
11290 done
11291IFS=$as_save_IFS
1c710c3c 11292
4de997d1
PB
11293fi
11294fi
1c710c3c 11295AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11296if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11298$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11299else
5213506e
RW
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11301$as_echo "no" >&6; }
4de997d1 11302fi
1c710c3c 11303
5213506e 11304
e8b05380
PB
11305 fi
11306 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11307 done
11308fi
1c710c3c 11309
e8b05380
PB
11310if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11311 set dummy as
11312 if test $build = $target ; then
11313 AS_FOR_TARGET="$2"
11314 else
11315 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11316 fi
1c00b503
PB
11317else
11318 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11319fi
2693c0b0 11320
d1f8db0c
PB
11321else
11322 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11323fi
11324
e8b05380
PB
11325
11326
11327
11328if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11329 if test -n "$with_build_time_tools"; then
5213506e
RW
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11331$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11332 if test -x $with_build_time_tools/dlltool; then
11333 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11334 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11336$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11337 else
5213506e
RW
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339$as_echo "no" >&6; }
d1f8db0c 11340 fi
e8b05380
PB
11341 elif test $build != $host && test $have_gcc_for_target = yes; then
11342 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11343 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11344 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11345 fi
11346fi
3e19841a 11347if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11348 # Extract the first word of "dlltool", so it can be a program name with args.
11349set dummy dlltool; ac_word=$2
5213506e
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_DLLTOOL_FOR_TARGET+set}" = set; then :
11353 $as_echo_n "(cached) " >&6
4de997d1 11354else
1c710c3c
DJ
11355 case $DLLTOOL_FOR_TARGET in
11356 [\\/]* | ?:[\\/]*)
e8b05380
PB
11357 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11358 ;;
e8b05380 11359 *)
1c710c3c
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=.
5213506e
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
1c710c3c 11367 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11369 break 2
11370 fi
11371done
5213506e
RW
11372 done
11373IFS=$as_save_IFS
1c710c3c 11374
e8b05380
PB
11375 ;;
11376esac
4de997d1 11377fi
1c710c3c 11378DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11379if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11381$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11382else
5213506e
RW
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384$as_echo "no" >&6; }
4de997d1
PB
11385fi
11386
5213506e 11387
e8b05380
PB
11388fi
11389if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11390
11391
11392if test -n "$DLLTOOL_FOR_TARGET"; then
11393 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11394elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11395 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11396fi
11397
11398if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11399 for ncn_progname in dlltool; 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
5213506e
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_DLLTOOL_FOR_TARGET+set}" = set; then :
11405 $as_echo_n "(cached) " >&6
278a7a38
AO
11406else
11407 if test -n "$DLLTOOL_FOR_TARGET"; then
11408 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_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=.
5213506e
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
278a7a38 11417 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11419 break 2
11420 fi
11421done
5213506e
RW
11422 done
11423IFS=$as_save_IFS
278a7a38
AO
11424
11425fi
11426fi
11427DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11428if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11430$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11431else
5213506e
RW
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433$as_echo "no" >&6; }
278a7a38
AO
11434fi
11435
5213506e 11436
278a7a38
AO
11437 done
11438fi
11439
11440if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11441 for ncn_progname in dlltool; do
5213506e
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; }
d1f8db0c
PB
11444 if test -x $with_build_time_tools/${ncn_progname}; then
11445 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11447$as_echo "yes" >&6; }
e8b05380
PB
11448 break
11449 else
5213506e
RW
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11451$as_echo "no" >&6; }
e8b05380
PB
11452 fi
11453 done
11454fi
11455
11456if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11457 for ncn_progname in dlltool; 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
5213506e
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_DLLTOOL_FOR_TARGET+set}" = set; then :
11464 $as_echo_n "(cached) " >&6
4de997d1 11465else
e8b05380
PB
11466 if test -n "$DLLTOOL_FOR_TARGET"; then
11467 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11468else
1c710c3c
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=.
5213506e
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
1c710c3c 11476 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11478 break 2
11479 fi
11480done
5213506e
RW
11481 done
11482IFS=$as_save_IFS
1c710c3c 11483
4de997d1
PB
11484fi
11485fi
1c710c3c 11486DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11487if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11489$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11490else
5213506e
RW
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492$as_echo "no" >&6; }
4de997d1 11493fi
4de997d1 11494
5213506e 11495
e8b05380
PB
11496 fi
11497 if test -z "$ac_cv_prog_DLLTOOL_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
5213506e
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_DLLTOOL_FOR_TARGET+set}" = set; then :
11503 $as_echo_n "(cached) " >&6
4de997d1 11504else
e8b05380
PB
11505 if test -n "$DLLTOOL_FOR_TARGET"; then
11506 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11507else
1c710c3c
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=.
5213506e
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
1c710c3c 11515 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11517 break 2
11518 fi
11519done
5213506e
RW
11520 done
11521IFS=$as_save_IFS
1c710c3c 11522
4de997d1
PB
11523fi
11524fi
1c710c3c 11525DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11526if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11528$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11529else
5213506e
RW
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531$as_echo "no" >&6; }
4de997d1 11532fi
1c710c3c 11533
5213506e 11534
e8b05380
PB
11535 fi
11536 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11537 done
11538fi
1c710c3c 11539
e8b05380
PB
11540if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11541 set dummy dlltool
11542 if test $build = $target ; then
11543 DLLTOOL_FOR_TARGET="$2"
11544 else
11545 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11546 fi
1c00b503
PB
11547else
11548 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11549fi
11550
d1f8db0c
PB
11551else
11552 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11553fi
11554
4de997d1 11555
e8b05380
PB
11556
11557
11558if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11559 if test -n "$with_build_time_tools"; then
5213506e
RW
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11561$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11562 if test -x $with_build_time_tools/ld; then
11563 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11564 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11566$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11567 else
5213506e
RW
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569$as_echo "no" >&6; }
d1f8db0c 11570 fi
e8b05380
PB
11571 elif test $build != $host && test $have_gcc_for_target = yes; then
11572 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11573 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11574 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11575 fi
e8b05380 11576fi
3e19841a 11577if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11578 # Extract the first word of "ld", so it can be a program name with args.
11579set dummy ld; ac_word=$2
5213506e
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_LD_FOR_TARGET+set}" = set; then :
11583 $as_echo_n "(cached) " >&6
4de997d1 11584else
1c710c3c
DJ
11585 case $LD_FOR_TARGET in
11586 [\\/]* | ?:[\\/]*)
e8b05380
PB
11587 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11588 ;;
e8b05380 11589 *)
1c710c3c
DJ
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=.
5213506e
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
1c710c3c 11597 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11599 break 2
11600 fi
11601done
5213506e
RW
11602 done
11603IFS=$as_save_IFS
1c710c3c 11604
e8b05380
PB
11605 ;;
11606esac
4de997d1 11607fi
1c710c3c 11608LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11609if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11611$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11612else
5213506e
RW
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614$as_echo "no" >&6; }
4de997d1 11615fi
2693c0b0 11616
5213506e 11617
e8b05380
PB
11618fi
11619if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11620
11621
11622if test -n "$LD_FOR_TARGET"; then
11623 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11624elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11625 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11626fi
11627
11628if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11629 for ncn_progname in ld; 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
5213506e
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_LD_FOR_TARGET+set}" = set; then :
11635 $as_echo_n "(cached) " >&6
278a7a38
AO
11636else
11637 if test -n "$LD_FOR_TARGET"; then
11638 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11639else
11640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641for as_dir in $PATH
11642do
11643 IFS=$as_save_IFS
11644 test -z "$as_dir" && as_dir=.
5213506e
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
278a7a38 11647 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11649 break 2
11650 fi
11651done
5213506e
RW
11652 done
11653IFS=$as_save_IFS
278a7a38
AO
11654
11655fi
11656fi
11657LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11658if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11660$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11661else
5213506e
RW
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663$as_echo "no" >&6; }
278a7a38
AO
11664fi
11665
5213506e 11666
278a7a38
AO
11667 done
11668fi
11669
11670if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11671 for ncn_progname in ld; do
5213506e
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; }
d1f8db0c
PB
11674 if test -x $with_build_time_tools/${ncn_progname}; then
11675 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11677$as_echo "yes" >&6; }
e8b05380
PB
11678 break
11679 else
5213506e
RW
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681$as_echo "no" >&6; }
e8b05380
PB
11682 fi
11683 done
ca9f4b81
AO
11684fi
11685
e8b05380
PB
11686if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11687 for ncn_progname in ld; 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.
2693c0b0 11690set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
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_LD_FOR_TARGET+set}" = set; then :
11694 $as_echo_n "(cached) " >&6
ca9f4b81 11695else
4de997d1
PB
11696 if test -n "$LD_FOR_TARGET"; then
11697 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11698else
1c710c3c
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=.
5213506e
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
1c710c3c 11706 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11708 break 2
11709 fi
11710done
5213506e
RW
11711 done
11712IFS=$as_save_IFS
1c710c3c 11713
ca9f4b81
AO
11714fi
11715fi
1c710c3c 11716LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11717if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11719$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11720else
5213506e
RW
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722$as_echo "no" >&6; }
ca9f4b81
AO
11723fi
11724
5213506e 11725
e8b05380
PB
11726 fi
11727 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11729set dummy ${ncn_progname}; ac_word=$2
5213506e
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_LD_FOR_TARGET+set}" = set; then :
11733 $as_echo_n "(cached) " >&6
ca9f4b81 11734else
2693c0b0
PB
11735 if test -n "$LD_FOR_TARGET"; then
11736 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11737else
1c710c3c
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=.
5213506e
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
1c710c3c 11745 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11747 break 2
11748 fi
11749done
5213506e
RW
11750 done
11751IFS=$as_save_IFS
1c710c3c 11752
ca9f4b81
AO
11753fi
11754fi
1c710c3c 11755LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11756if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11758$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11759else
5213506e
RW
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761$as_echo "no" >&6; }
ca9f4b81 11762fi
1c710c3c 11763
5213506e 11764
e8b05380
PB
11765 fi
11766 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11767 done
11768fi
1c710c3c 11769
2693c0b0
PB
11770if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11771 set dummy ld
11772 if test $build = $target ; then
11773 LD_FOR_TARGET="$2"
ca9f4b81 11774 else
2693c0b0 11775 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11776 fi
1c00b503
PB
11777else
11778 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11779fi
11780
d1f8db0c
PB
11781else
11782 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11783fi
11784
11785
11786
11787
11788if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11789 if test -n "$with_build_time_tools"; then
5213506e
RW
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11791$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11792 if test -x $with_build_time_tools/lipo; then
11793 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11794 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11796$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11797 else
5213506e
RW
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799$as_echo "no" >&6; }
d1f8db0c 11800 fi
e8b05380
PB
11801 elif test $build != $host && test $have_gcc_for_target = yes; then
11802 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11803 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11804 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11805 fi
11806fi
278a7a38
AO
11807if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11808 # Extract the first word of "lipo", so it can be a program name with args.
11809set dummy lipo; ac_word=$2
5213506e
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_LIPO_FOR_TARGET+set}" = set; then :
11813 $as_echo_n "(cached) " >&6
278a7a38
AO
11814else
11815 case $LIPO_FOR_TARGET in
11816 [\\/]* | ?:[\\/]*)
11817 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11818 ;;
11819 *)
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=.
5213506e
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
278a7a38 11827 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11829 break 2
11830 fi
11831done
5213506e
RW
11832 done
11833IFS=$as_save_IFS
278a7a38
AO
11834
11835 ;;
11836esac
11837fi
11838LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11839if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11841$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11842else
5213506e
RW
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844$as_echo "no" >&6; }
278a7a38
AO
11845fi
11846
5213506e 11847
278a7a38
AO
11848fi
11849if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11850
11851
11852if test -n "$LIPO_FOR_TARGET"; then
11853 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11854elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11855 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11856fi
11857
11858if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11859 for ncn_progname in lipo; 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
5213506e
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_LIPO_FOR_TARGET+set}" = set; then :
11865 $as_echo_n "(cached) " >&6
e8b05380 11866else
278a7a38
AO
11867 if test -n "$LIPO_FOR_TARGET"; then
11868 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11869else
11870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11871for as_dir in $PATH
1c710c3c
DJ
11872do
11873 IFS=$as_save_IFS
11874 test -z "$as_dir" && as_dir=.
5213506e
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
278a7a38 11877 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11879 break 2
11880 fi
11881done
5213506e
RW
11882 done
11883IFS=$as_save_IFS
1c710c3c 11884
e8b05380 11885fi
278a7a38
AO
11886fi
11887LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11888if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11890$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11891else
5213506e
RW
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893$as_echo "no" >&6; }
e8b05380
PB
11894fi
11895
5213506e 11896
278a7a38 11897 done
e8b05380 11898fi
278a7a38
AO
11899
11900if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11901 for ncn_progname in lipo; do
5213506e
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; }
d1f8db0c
PB
11904 if test -x $with_build_time_tools/${ncn_progname}; then
11905 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11907$as_echo "yes" >&6; }
e8b05380
PB
11908 break
11909 else
5213506e
RW
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911$as_echo "no" >&6; }
e8b05380
PB
11912 fi
11913 done
11914fi
11915
11916if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11917 for ncn_progname in lipo; 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.
2693c0b0 11920set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
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_LIPO_FOR_TARGET+set}" = set; then :
11924 $as_echo_n "(cached) " >&6
040b1c5a
GK
11925else
11926 if test -n "$LIPO_FOR_TARGET"; then
11927 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11928else
1c710c3c
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=.
5213506e
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
1c710c3c 11936 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11938 break 2
11939 fi
11940done
5213506e
RW
11941 done
11942IFS=$as_save_IFS
1c710c3c 11943
040b1c5a
GK
11944fi
11945fi
1c710c3c 11946LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11947if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11949$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11950else
5213506e
RW
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952$as_echo "no" >&6; }
040b1c5a
GK
11953fi
11954
5213506e 11955
e8b05380
PB
11956 fi
11957 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11959set dummy ${ncn_progname}; ac_word=$2
5213506e
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_LIPO_FOR_TARGET+set}" = set; then :
11963 $as_echo_n "(cached) " >&6
040b1c5a
GK
11964else
11965 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11966 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11967else
1c710c3c
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=.
5213506e
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
1c710c3c 11975 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11977 break 2
11978 fi
11979done
5213506e
RW
11980 done
11981IFS=$as_save_IFS
1c710c3c 11982
040b1c5a
GK
11983fi
11984fi
1c710c3c 11985LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11986if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11988$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11989else
5213506e
RW
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991$as_echo "no" >&6; }
040b1c5a 11992fi
1c710c3c 11993
5213506e 11994
e8b05380
PB
11995 fi
11996 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11997 done
11998fi
1c710c3c 11999
040b1c5a
GK
12000if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12001 set dummy lipo
12002 if test $build = $target ; then
12003 LIPO_FOR_TARGET="$2"
12004 else
12005 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12006 fi
1c00b503
PB
12007else
12008 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
12009fi
12010
d1f8db0c
PB
12011else
12012 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
12013fi
12014
12015
12016
12017
12018if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12019 if test -n "$with_build_time_tools"; then
5213506e
RW
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12021$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12022 if test -x $with_build_time_tools/nm; then
12023 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12024 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12026$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 12027 else
5213506e
RW
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029$as_echo "no" >&6; }
d1f8db0c 12030 fi
e8b05380
PB
12031 elif test $build != $host && test $have_gcc_for_target = yes; then
12032 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
12033 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12034 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
12035 fi
12036fi
3e19841a 12037if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12038 # Extract the first word of "nm", so it can be a program name with args.
12039set dummy nm; ac_word=$2
5213506e
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_NM_FOR_TARGET+set}" = set; then :
12043 $as_echo_n "(cached) " >&6
e8b05380 12044else
1c710c3c
DJ
12045 case $NM_FOR_TARGET in
12046 [\\/]* | ?:[\\/]*)
e8b05380
PB
12047 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12048 ;;
e8b05380 12049 *)
1c710c3c
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=.
5213506e
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
1c710c3c 12057 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12059 break 2
12060 fi
12061done
5213506e
RW
12062 done
12063IFS=$as_save_IFS
1c710c3c 12064
e8b05380
PB
12065 ;;
12066esac
12067fi
1c710c3c 12068NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12069if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12071$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12072else
5213506e
RW
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074$as_echo "no" >&6; }
e8b05380
PB
12075fi
12076
5213506e 12077
e8b05380
PB
12078fi
12079if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12080
12081
12082if test -n "$NM_FOR_TARGET"; then
12083 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12084elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12085 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12086fi
12087
12088if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12089 for ncn_progname in nm; 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
5213506e
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_NM_FOR_TARGET+set}" = set; then :
12095 $as_echo_n "(cached) " >&6
278a7a38
AO
12096else
12097 if test -n "$NM_FOR_TARGET"; then
12098 ac_cv_prog_NM_FOR_TARGET="$NM_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=.
5213506e
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
278a7a38 12107 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12109 break 2
12110 fi
12111done
5213506e
RW
12112 done
12113IFS=$as_save_IFS
278a7a38
AO
12114
12115fi
12116fi
12117NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12118if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12120$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12121else
5213506e
RW
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123$as_echo "no" >&6; }
278a7a38
AO
12124fi
12125
5213506e 12126
278a7a38
AO
12127 done
12128fi
12129
12130if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12131 for ncn_progname in nm; do
5213506e
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; }
d1f8db0c
PB
12134 if test -x $with_build_time_tools/${ncn_progname}; then
12135 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12137$as_echo "yes" >&6; }
e8b05380
PB
12138 break
12139 else
5213506e
RW
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12141$as_echo "no" >&6; }
e8b05380
PB
12142 fi
12143 done
12144fi
12145
12146if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12147 for ncn_progname in nm; 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.
040b1c5a 12150set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
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_NM_FOR_TARGET+set}" = set; then :
12154 $as_echo_n "(cached) " >&6
ca9f4b81 12155else
4de997d1
PB
12156 if test -n "$NM_FOR_TARGET"; then
12157 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12158else
1c710c3c
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=.
5213506e
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
1c710c3c 12166 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12168 break 2
12169 fi
12170done
5213506e
RW
12171 done
12172IFS=$as_save_IFS
1c710c3c 12173
ca9f4b81
AO
12174fi
12175fi
1c710c3c 12176NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12177if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12179$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12180else
5213506e
RW
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182$as_echo "no" >&6; }
ca9f4b81
AO
12183fi
12184
5213506e 12185
e8b05380
PB
12186 fi
12187 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12189set dummy ${ncn_progname}; ac_word=$2
5213506e
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_NM_FOR_TARGET+set}" = set; then :
12193 $as_echo_n "(cached) " >&6
ca9f4b81 12194else
2693c0b0
PB
12195 if test -n "$NM_FOR_TARGET"; then
12196 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12197else
1c710c3c
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=.
5213506e
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
1c710c3c 12205 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12207 break 2
12208 fi
12209done
5213506e
RW
12210 done
12211IFS=$as_save_IFS
1c710c3c 12212
ca9f4b81
AO
12213fi
12214fi
1c710c3c 12215NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12216if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12218$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12219else
5213506e
RW
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12221$as_echo "no" >&6; }
ca9f4b81 12222fi
1c710c3c 12223
5213506e 12224
e8b05380
PB
12225 fi
12226 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12227 done
12228fi
1c710c3c 12229
2693c0b0
PB
12230if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12231 set dummy nm
12232 if test $build = $target ; then
12233 NM_FOR_TARGET="$2"
ca9f4b81 12234 else
2693c0b0 12235 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12236 fi
1c00b503
PB
12237else
12238 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12239fi
12240
d1f8db0c
PB
12241else
12242 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12243fi
12244
12245
12246
12247
12248if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12249 if test -n "$with_build_time_tools"; then
5213506e
RW
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12251$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12252 if test -x $with_build_time_tools/objdump; then
12253 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12254 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12256$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12257 else
5213506e
RW
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259$as_echo "no" >&6; }
d1f8db0c 12260 fi
e8b05380
PB
12261 elif test $build != $host && test $have_gcc_for_target = yes; then
12262 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12263 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12264 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12265 fi
12266fi
3e19841a 12267if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12268 # Extract the first word of "objdump", so it can be a program name with args.
12269set dummy objdump; ac_word=$2
5213506e
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_OBJDUMP_FOR_TARGET+set}" = set; then :
12273 $as_echo_n "(cached) " >&6
e8b05380 12274else
1c710c3c
DJ
12275 case $OBJDUMP_FOR_TARGET in
12276 [\\/]* | ?:[\\/]*)
e8b05380
PB
12277 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12278 ;;
e8b05380 12279 *)
1c710c3c
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=.
5213506e
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
1c710c3c 12287 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12289 break 2
12290 fi
12291done
5213506e
RW
12292 done
12293IFS=$as_save_IFS
1c710c3c 12294
e8b05380
PB
12295 ;;
12296esac
12297fi
1c710c3c 12298OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12299if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12301$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12302else
5213506e
RW
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304$as_echo "no" >&6; }
e8b05380
PB
12305fi
12306
5213506e 12307
e8b05380
PB
12308fi
12309if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12310
12311
12312if test -n "$OBJDUMP_FOR_TARGET"; then
12313 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12314elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12315 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12316fi
12317
12318if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12319 for ncn_progname in objdump; 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
5213506e
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_OBJDUMP_FOR_TARGET+set}" = set; then :
12325 $as_echo_n "(cached) " >&6
278a7a38
AO
12326else
12327 if test -n "$OBJDUMP_FOR_TARGET"; then
12328 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_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=.
5213506e
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
278a7a38 12337 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12339 break 2
12340 fi
12341done
5213506e
RW
12342 done
12343IFS=$as_save_IFS
278a7a38
AO
12344
12345fi
12346fi
12347OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12348if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12350$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12351else
5213506e
RW
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353$as_echo "no" >&6; }
278a7a38
AO
12354fi
12355
5213506e 12356
278a7a38
AO
12357 done
12358fi
12359
12360if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12361 for ncn_progname in objdump; do
5213506e
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; }
d1f8db0c
PB
12364 if test -x $with_build_time_tools/${ncn_progname}; then
12365 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12367$as_echo "yes" >&6; }
e8b05380
PB
12368 break
12369 else
5213506e
RW
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371$as_echo "no" >&6; }
e8b05380
PB
12372 fi
12373 done
12374fi
12375
12376if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12377 for ncn_progname in objdump; 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.
2693c0b0 12380set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
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_OBJDUMP_FOR_TARGET+set}" = set; then :
12384 $as_echo_n "(cached) " >&6
d739199a
DJ
12385else
12386 if test -n "$OBJDUMP_FOR_TARGET"; then
12387 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12388else
1c710c3c
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=.
5213506e
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
1c710c3c 12396 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12398 break 2
12399 fi
12400done
5213506e
RW
12401 done
12402IFS=$as_save_IFS
1c710c3c 12403
d739199a
DJ
12404fi
12405fi
1c710c3c 12406OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12407if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12409$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12410else
5213506e
RW
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12412$as_echo "no" >&6; }
d739199a
DJ
12413fi
12414
5213506e 12415
e8b05380
PB
12416 fi
12417 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12419set dummy ${ncn_progname}; ac_word=$2
5213506e
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_OBJDUMP_FOR_TARGET+set}" = set; then :
12423 $as_echo_n "(cached) " >&6
d739199a
DJ
12424else
12425 if test -n "$OBJDUMP_FOR_TARGET"; then
12426 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12427else
1c710c3c
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=.
5213506e
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
1c710c3c 12435 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12437 break 2
12438 fi
12439done
5213506e
RW
12440 done
12441IFS=$as_save_IFS
1c710c3c 12442
d739199a
DJ
12443fi
12444fi
1c710c3c 12445OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12446if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12448$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12449else
5213506e
RW
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12451$as_echo "no" >&6; }
d739199a 12452fi
1c710c3c 12453
5213506e 12454
e8b05380
PB
12455 fi
12456 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12457 done
12458fi
1c710c3c 12459
d739199a
DJ
12460if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12461 set dummy objdump
12462 if test $build = $target ; then
12463 OBJDUMP_FOR_TARGET="$2"
12464 else
12465 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12466 fi
1c00b503
PB
12467else
12468 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12469fi
12470
d1f8db0c
PB
12471else
12472 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12473fi
12474
12475
12476
12477
12478if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12479 if test -n "$with_build_time_tools"; then
5213506e
RW
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12481$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12482 if test -x $with_build_time_tools/ranlib; then
12483 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12484 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12486$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12487 else
5213506e
RW
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489$as_echo "no" >&6; }
d1f8db0c 12490 fi
e8b05380
PB
12491 elif test $build != $host && test $have_gcc_for_target = yes; then
12492 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12493 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12494 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12495 fi
12496fi
3e19841a 12497if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12498 # Extract the first word of "ranlib", so it can be a program name with args.
12499set dummy ranlib; ac_word=$2
5213506e
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_RANLIB_FOR_TARGET+set}" = set; then :
12503 $as_echo_n "(cached) " >&6
e8b05380 12504else
1c710c3c
DJ
12505 case $RANLIB_FOR_TARGET in
12506 [\\/]* | ?:[\\/]*)
e8b05380
PB
12507 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12508 ;;
e8b05380 12509 *)
1c710c3c
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=.
5213506e
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
1c710c3c 12517 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12519 break 2
12520 fi
12521done
5213506e
RW
12522 done
12523IFS=$as_save_IFS
1c710c3c 12524
e8b05380
PB
12525 ;;
12526esac
12527fi
1c710c3c 12528RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12529if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12531$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12532else
5213506e
RW
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534$as_echo "no" >&6; }
e8b05380
PB
12535fi
12536
5213506e 12537
e8b05380
PB
12538fi
12539if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12540
12541
12542if test -n "$RANLIB_FOR_TARGET"; then
12543 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12544elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12545 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12546fi
12547
12548if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12549 for ncn_progname in ranlib; 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
5213506e
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_RANLIB_FOR_TARGET+set}" = set; then :
12555 $as_echo_n "(cached) " >&6
278a7a38
AO
12556else
12557 if test -n "$RANLIB_FOR_TARGET"; then
12558 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_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=.
5213506e
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
278a7a38 12567 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12569 break 2
12570 fi
12571done
5213506e
RW
12572 done
12573IFS=$as_save_IFS
278a7a38
AO
12574
12575fi
12576fi
12577RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12578if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12580$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12581else
5213506e
RW
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583$as_echo "no" >&6; }
278a7a38
AO
12584fi
12585
5213506e 12586
278a7a38
AO
12587 done
12588fi
12589
12590if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12591 for ncn_progname in ranlib; do
5213506e
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; }
d1f8db0c
PB
12594 if test -x $with_build_time_tools/${ncn_progname}; then
12595 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12597$as_echo "yes" >&6; }
e8b05380
PB
12598 break
12599 else
5213506e
RW
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12601$as_echo "no" >&6; }
e8b05380
PB
12602 fi
12603 done
12604fi
12605
12606if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12607 for ncn_progname in ranlib; 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.
d739199a 12610set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
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_RANLIB_FOR_TARGET+set}" = set; then :
12614 $as_echo_n "(cached) " >&6
ca9f4b81 12615else
4de997d1
PB
12616 if test -n "$RANLIB_FOR_TARGET"; then
12617 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12618else
1c710c3c
DJ
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=.
5213506e
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
1c710c3c 12626 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12628 break 2
12629 fi
12630done
5213506e
RW
12631 done
12632IFS=$as_save_IFS
1c710c3c 12633
ca9f4b81
AO
12634fi
12635fi
1c710c3c 12636RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12637if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12639$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12640else
5213506e
RW
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12642$as_echo "no" >&6; }
ca9f4b81
AO
12643fi
12644
5213506e 12645
e8b05380
PB
12646 fi
12647 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12648 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12649set dummy ${ncn_progname}; ac_word=$2
5213506e
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_RANLIB_FOR_TARGET+set}" = set; then :
12653 $as_echo_n "(cached) " >&6
ca9f4b81 12654else
2693c0b0
PB
12655 if test -n "$RANLIB_FOR_TARGET"; then
12656 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12657else
1c710c3c
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=.
5213506e
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
1c710c3c 12665 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12667 break 2
12668 fi
12669done
5213506e
RW
12670 done
12671IFS=$as_save_IFS
1c710c3c 12672
ca9f4b81
AO
12673fi
12674fi
1c710c3c 12675RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12676if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12678$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12679else
5213506e
RW
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681$as_echo "no" >&6; }
ca9f4b81 12682fi
1c710c3c 12683
5213506e 12684
e8b05380
PB
12685 fi
12686 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12687 done
12688fi
1c710c3c 12689
e8b05380
PB
12690if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12691 set dummy ranlib
12692 if test $build = $target ; then
12693 RANLIB_FOR_TARGET="$2"
12694 else
12695 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12696 fi
1c00b503
PB
12697else
12698 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12699fi
2693c0b0 12700
d1f8db0c
PB
12701else
12702 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12703fi
12704
e8b05380
PB
12705
12706
12707
e7a82751
RM
12708if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12709 if test -n "$with_build_time_tools"; then
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12711$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12712 if test -x $with_build_time_tools/readelf; then
12713 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12714 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12716$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12717 else
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719$as_echo "no" >&6; }
12720 fi
12721 elif test $build != $host && test $have_gcc_for_target = yes; then
12722 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12723 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12724 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12725 fi
12726fi
12727if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12728 # Extract the first word of "readelf", so it can be a program name with args.
12729set dummy readelf; ac_word=$2
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_READELF_FOR_TARGET+set}" = set; then :
12733 $as_echo_n "(cached) " >&6
12734else
12735 case $READELF_FOR_TARGET in
12736 [\\/]* | ?:[\\/]*)
12737 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12738 ;;
12739 *)
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=.
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
12747 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12749 break 2
12750 fi
12751done
12752 done
12753IFS=$as_save_IFS
12754
12755 ;;
12756esac
12757fi
12758READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12759if test -n "$READELF_FOR_TARGET"; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12761$as_echo "$READELF_FOR_TARGET" >&6; }
12762else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764$as_echo "no" >&6; }
12765fi
12766
12767
12768fi
12769if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12770
12771
12772if test -n "$READELF_FOR_TARGET"; then
12773 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12774elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12775 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12776fi
12777
12778if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12779 for ncn_progname in readelf; 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
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_READELF_FOR_TARGET+set}" = set; then :
12785 $as_echo_n "(cached) " >&6
12786else
12787 if test -n "$READELF_FOR_TARGET"; then
12788 ac_cv_prog_READELF_FOR_TARGET="$READELF_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=.
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
12797 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12799 break 2
12800 fi
12801done
12802 done
12803IFS=$as_save_IFS
12804
12805fi
12806fi
12807READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12808if test -n "$READELF_FOR_TARGET"; then
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12810$as_echo "$READELF_FOR_TARGET" >&6; }
12811else
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12813$as_echo "no" >&6; }
12814fi
12815
12816
12817 done
12818fi
12819
12820if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12821 for ncn_progname in readelf; do
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; }
12824 if test -x $with_build_time_tools/${ncn_progname}; then
12825 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12827$as_echo "yes" >&6; }
12828 break
12829 else
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12831$as_echo "no" >&6; }
12832 fi
12833 done
12834fi
12835
12836if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12837 for ncn_progname in readelf; 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.
12840set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
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_READELF_FOR_TARGET+set}" = set; then :
12844 $as_echo_n "(cached) " >&6
12845else
12846 if test -n "$READELF_FOR_TARGET"; then
12847 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12848else
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=.
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
12856 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12858 break 2
12859 fi
12860done
12861 done
12862IFS=$as_save_IFS
12863
12864fi
12865fi
12866READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12867if test -n "$READELF_FOR_TARGET"; then
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12869$as_echo "$READELF_FOR_TARGET" >&6; }
12870else
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872$as_echo "no" >&6; }
12873fi
12874
12875
12876 fi
12877 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12879set dummy ${ncn_progname}; ac_word=$2
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_READELF_FOR_TARGET+set}" = set; then :
12883 $as_echo_n "(cached) " >&6
12884else
12885 if test -n "$READELF_FOR_TARGET"; then
12886 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12887else
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=.
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
12895 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12897 break 2
12898 fi
12899done
12900 done
12901IFS=$as_save_IFS
12902
12903fi
12904fi
12905READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12906if test -n "$READELF_FOR_TARGET"; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12908$as_echo "$READELF_FOR_TARGET" >&6; }
12909else
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911$as_echo "no" >&6; }
12912fi
12913
12914
12915 fi
12916 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12917 done
12918fi
12919
12920if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12921 set dummy readelf
12922 if test $build = $target ; then
12923 READELF_FOR_TARGET="$2"
12924 else
12925 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12926 fi
12927else
12928 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12929fi
12930
12931else
12932 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12933fi
12934
12935
12936
12937
e8b05380
PB
12938if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12939 if test -n "$with_build_time_tools"; then
5213506e
RW
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12941$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12942 if test -x $with_build_time_tools/strip; then
12943 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12944 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12946$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12947 else
5213506e
RW
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12949$as_echo "no" >&6; }
d1f8db0c 12950 fi
e8b05380
PB
12951 elif test $build != $host && test $have_gcc_for_target = yes; then
12952 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12953 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12954 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12955 fi
12956fi
3e19841a 12957if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12958 # Extract the first word of "strip", so it can be a program name with args.
12959set dummy strip; ac_word=$2
5213506e
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_STRIP_FOR_TARGET+set}" = set; then :
12963 $as_echo_n "(cached) " >&6
e8b05380 12964else
1c710c3c
DJ
12965 case $STRIP_FOR_TARGET in
12966 [\\/]* | ?:[\\/]*)
e8b05380
PB
12967 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12968 ;;
e8b05380 12969 *)
1c710c3c
DJ
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=.
5213506e
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
1c710c3c 12977 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12979 break 2
12980 fi
12981done
5213506e
RW
12982 done
12983IFS=$as_save_IFS
1c710c3c 12984
e8b05380
PB
12985 ;;
12986esac
12987fi
1c710c3c 12988STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12989if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12991$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12992else
5213506e
RW
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994$as_echo "no" >&6; }
e8b05380
PB
12995fi
12996
5213506e 12997
e8b05380
PB
12998fi
12999if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13000
13001
13002if test -n "$STRIP_FOR_TARGET"; then
13003 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13004elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13005 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13006fi
13007
13008if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13009 for ncn_progname in strip; 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
5213506e
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_STRIP_FOR_TARGET+set}" = set; then :
13015 $as_echo_n "(cached) " >&6
278a7a38
AO
13016else
13017 if test -n "$STRIP_FOR_TARGET"; then
13018 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_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=.
5213506e
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
278a7a38 13027 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13029 break 2
13030 fi
13031done
5213506e
RW
13032 done
13033IFS=$as_save_IFS
278a7a38
AO
13034
13035fi
13036fi
13037STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13038if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13040$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13041else
5213506e
RW
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043$as_echo "no" >&6; }
278a7a38
AO
13044fi
13045
5213506e 13046
278a7a38
AO
13047 done
13048fi
13049
13050if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13051 for ncn_progname in strip; do
5213506e
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; }
d1f8db0c
PB
13054 if test -x $with_build_time_tools/${ncn_progname}; then
13055 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13057$as_echo "yes" >&6; }
e8b05380
PB
13058 break
13059 else
5213506e
RW
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13061$as_echo "no" >&6; }
e8b05380
PB
13062 fi
13063 done
13064fi
13065
13066if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13067 for ncn_progname in strip; 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.
040b1c5a 13070set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
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_STRIP_FOR_TARGET+set}" = set; then :
13074 $as_echo_n "(cached) " >&6
af71363e
AS
13075else
13076 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13077 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_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=.
5213506e
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
1c710c3c 13086 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13088 break 2
13089 fi
13090done
5213506e
RW
13091 done
13092IFS=$as_save_IFS
1c710c3c 13093
040b1c5a
GK
13094fi
13095fi
1c710c3c 13096STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13097if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13099$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13100else
5213506e
RW
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13102$as_echo "no" >&6; }
040b1c5a
GK
13103fi
13104
5213506e 13105
e8b05380
PB
13106 fi
13107 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13109set dummy ${ncn_progname}; ac_word=$2
5213506e
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_STRIP_FOR_TARGET+set}" = set; then :
13113 $as_echo_n "(cached) " >&6
040b1c5a
GK
13114else
13115 if test -n "$STRIP_FOR_TARGET"; then
13116 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13117else
1c710c3c
DJ
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=.
5213506e
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
1c710c3c 13125 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13127 break 2
13128 fi
13129done
5213506e
RW
13130 done
13131IFS=$as_save_IFS
1c710c3c 13132
040b1c5a
GK
13133fi
13134fi
1c710c3c 13135STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13136if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13138$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13139else
5213506e
RW
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141$as_echo "no" >&6; }
040b1c5a 13142fi
1c710c3c 13143
5213506e 13144
e8b05380
PB
13145 fi
13146 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13147 done
13148fi
1c710c3c 13149
040b1c5a
GK
13150if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13151 set dummy strip
13152 if test $build = $target ; then
13153 STRIP_FOR_TARGET="$2"
13154 else
13155 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13156 fi
1c00b503
PB
13157else
13158 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13159fi
13160
d1f8db0c
PB
13161else
13162 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13163fi
13164
13165
13166
13167
13168if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13169 if test -n "$with_build_time_tools"; then
5213506e
RW
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13171$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13172 if test -x $with_build_time_tools/windres; then
13173 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13174 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13176$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13177 else
5213506e
RW
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179$as_echo "no" >&6; }
d1f8db0c 13180 fi
e8b05380
PB
13181 elif test $build != $host && test $have_gcc_for_target = yes; then
13182 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13183 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13184 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13185 fi
13186fi
3e19841a 13187if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13188 # Extract the first word of "windres", so it can be a program name with args.
13189set dummy windres; ac_word=$2
5213506e
RW
13190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13191$as_echo_n "checking for $ac_word... " >&6; }
13192if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13193 $as_echo_n "(cached) " >&6
e8b05380 13194else
1c710c3c
DJ
13195 case $WINDRES_FOR_TARGET in
13196 [\\/]* | ?:[\\/]*)
e8b05380
PB
13197 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13198 ;;
e8b05380 13199 *)
1c710c3c
DJ
13200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13201for as_dir in $gcc_cv_tool_dirs
13202do
13203 IFS=$as_save_IFS
13204 test -z "$as_dir" && as_dir=.
5213506e
RW
13205 for ac_exec_ext in '' $ac_executable_extensions; do
13206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13207 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13209 break 2
13210 fi
13211done
5213506e
RW
13212 done
13213IFS=$as_save_IFS
1c710c3c 13214
e8b05380
PB
13215 ;;
13216esac
13217fi
1c710c3c 13218WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13219if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13221$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13222else
5213506e
RW
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224$as_echo "no" >&6; }
e8b05380
PB
13225fi
13226
5213506e 13227
e8b05380
PB
13228fi
13229if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13230
13231
13232if test -n "$WINDRES_FOR_TARGET"; then
13233 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13234elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13235 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13236fi
13237
13238if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13239 for ncn_progname in windres; do
13240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13241set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13243$as_echo_n "checking for $ac_word... " >&6; }
13244if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13245 $as_echo_n "(cached) " >&6
278a7a38
AO
13246else
13247 if test -n "$WINDRES_FOR_TARGET"; then
13248 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13249else
13250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13251for as_dir in $PATH
13252do
13253 IFS=$as_save_IFS
13254 test -z "$as_dir" && as_dir=.
5213506e
RW
13255 for ac_exec_ext in '' $ac_executable_extensions; do
13256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13257 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13259 break 2
13260 fi
13261done
5213506e
RW
13262 done
13263IFS=$as_save_IFS
278a7a38
AO
13264
13265fi
13266fi
13267WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13268if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13270$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13271else
5213506e
RW
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13273$as_echo "no" >&6; }
278a7a38
AO
13274fi
13275
5213506e 13276
278a7a38
AO
13277 done
13278fi
13279
13280if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13281 for ncn_progname in windres; do
5213506e
RW
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13283$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13284 if test -x $with_build_time_tools/${ncn_progname}; then
13285 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13287$as_echo "yes" >&6; }
e8b05380
PB
13288 break
13289 else
5213506e
RW
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13291$as_echo "no" >&6; }
e8b05380
PB
13292 fi
13293 done
13294fi
13295
13296if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13297 for ncn_progname in windres; do
13298 if test -n "$ncn_target_tool_prefix"; then
13299 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13300set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13302$as_echo_n "checking for $ac_word... " >&6; }
13303if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13304 $as_echo_n "(cached) " >&6
ca9f4b81 13305else
4de997d1
PB
13306 if test -n "$WINDRES_FOR_TARGET"; then
13307 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13308else
1c710c3c
DJ
13309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310for as_dir in $PATH
13311do
13312 IFS=$as_save_IFS
13313 test -z "$as_dir" && as_dir=.
5213506e
RW
13314 for ac_exec_ext in '' $ac_executable_extensions; do
13315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13316 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13318 break 2
13319 fi
13320done
5213506e
RW
13321 done
13322IFS=$as_save_IFS
1c710c3c 13323
ca9f4b81
AO
13324fi
13325fi
1c710c3c 13326WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13327if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13329$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13330else
5213506e
RW
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13332$as_echo "no" >&6; }
ca9f4b81
AO
13333fi
13334
5213506e 13335
e8b05380
PB
13336 fi
13337 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13338 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13339set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13341$as_echo_n "checking for $ac_word... " >&6; }
13342if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13343 $as_echo_n "(cached) " >&6
ca9f4b81 13344else
2693c0b0
PB
13345 if test -n "$WINDRES_FOR_TARGET"; then
13346 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13347else
1c710c3c
DJ
13348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13349for as_dir in $PATH
13350do
13351 IFS=$as_save_IFS
13352 test -z "$as_dir" && as_dir=.
5213506e
RW
13353 for ac_exec_ext in '' $ac_executable_extensions; do
13354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13355 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13357 break 2
13358 fi
13359done
5213506e
RW
13360 done
13361IFS=$as_save_IFS
1c710c3c 13362
ca9f4b81
AO
13363fi
13364fi
1c710c3c 13365WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13366if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13368$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13369else
5213506e
RW
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13371$as_echo "no" >&6; }
ca9f4b81 13372fi
1c710c3c 13373
5213506e 13374
e8b05380
PB
13375 fi
13376 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13377 done
13378fi
1c710c3c 13379
2693c0b0
PB
13380if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13381 set dummy windres
13382 if test $build = $target ; then
13383 WINDRES_FOR_TARGET="$2"
ca9f4b81 13384 else
2693c0b0 13385 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13386 fi
1c00b503
PB
13387else
13388 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13389fi
13390
d1f8db0c
PB
13391else
13392 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13393fi
13394
4977bab6 13395
901119ae
KT
13396
13397
13398if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13399 if test -n "$with_build_time_tools"; then
5213506e
RW
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13401$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13402 if test -x $with_build_time_tools/windmc; then
13403 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13404 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13406$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13407 else
5213506e
RW
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13409$as_echo "no" >&6; }
901119ae
KT
13410 fi
13411 elif test $build != $host && test $have_gcc_for_target = yes; then
13412 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13413 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13414 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13415 fi
13416fi
13417if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13418 # Extract the first word of "windmc", so it can be a program name with args.
13419set dummy windmc; ac_word=$2
5213506e
RW
13420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13421$as_echo_n "checking for $ac_word... " >&6; }
13422if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13423 $as_echo_n "(cached) " >&6
901119ae
KT
13424else
13425 case $WINDMC_FOR_TARGET in
13426 [\\/]* | ?:[\\/]*)
13427 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13428 ;;
13429 *)
13430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431for as_dir in $gcc_cv_tool_dirs
13432do
13433 IFS=$as_save_IFS
13434 test -z "$as_dir" && as_dir=.
5213506e
RW
13435 for ac_exec_ext in '' $ac_executable_extensions; do
13436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13437 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13439 break 2
13440 fi
13441done
5213506e
RW
13442 done
13443IFS=$as_save_IFS
901119ae
KT
13444
13445 ;;
13446esac
13447fi
13448WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13449if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13451$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13452else
5213506e
RW
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454$as_echo "no" >&6; }
901119ae
KT
13455fi
13456
5213506e 13457
901119ae
KT
13458fi
13459if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13460
13461
13462if test -n "$WINDMC_FOR_TARGET"; then
13463 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13464elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13465 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13466fi
13467
13468if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13469 for ncn_progname in windmc; do
13470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13471set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13473$as_echo_n "checking for $ac_word... " >&6; }
13474if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13475 $as_echo_n "(cached) " >&6
901119ae
KT
13476else
13477 if test -n "$WINDMC_FOR_TARGET"; then
13478 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13479else
13480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481for as_dir in $PATH
13482do
13483 IFS=$as_save_IFS
13484 test -z "$as_dir" && as_dir=.
5213506e
RW
13485 for ac_exec_ext in '' $ac_executable_extensions; do
13486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13487 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13489 break 2
13490 fi
13491done
5213506e
RW
13492 done
13493IFS=$as_save_IFS
901119ae
KT
13494
13495fi
13496fi
13497WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13498if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13500$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13501else
5213506e
RW
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13503$as_echo "no" >&6; }
901119ae
KT
13504fi
13505
5213506e 13506
901119ae
KT
13507 done
13508fi
13509
13510if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13511 for ncn_progname in windmc; do
5213506e
RW
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13513$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13514 if test -x $with_build_time_tools/${ncn_progname}; then
13515 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13517$as_echo "yes" >&6; }
901119ae
KT
13518 break
13519 else
5213506e
RW
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521$as_echo "no" >&6; }
901119ae
KT
13522 fi
13523 done
13524fi
13525
13526if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13527 for ncn_progname in windmc; do
13528 if test -n "$ncn_target_tool_prefix"; then
13529 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13530set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13532$as_echo_n "checking for $ac_word... " >&6; }
13533if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13534 $as_echo_n "(cached) " >&6
901119ae
KT
13535else
13536 if test -n "$WINDMC_FOR_TARGET"; then
13537 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13538else
13539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13540for as_dir in $PATH
13541do
13542 IFS=$as_save_IFS
13543 test -z "$as_dir" && as_dir=.
5213506e
RW
13544 for ac_exec_ext in '' $ac_executable_extensions; do
13545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13546 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13548 break 2
13549 fi
13550done
5213506e
RW
13551 done
13552IFS=$as_save_IFS
901119ae
KT
13553
13554fi
13555fi
13556WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13557if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13559$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13560else
5213506e
RW
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13562$as_echo "no" >&6; }
901119ae
KT
13563fi
13564
5213506e 13565
901119ae
KT
13566 fi
13567 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13569set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13571$as_echo_n "checking for $ac_word... " >&6; }
13572if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13573 $as_echo_n "(cached) " >&6
901119ae
KT
13574else
13575 if test -n "$WINDMC_FOR_TARGET"; then
13576 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13577else
13578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13579for as_dir in $PATH
13580do
13581 IFS=$as_save_IFS
13582 test -z "$as_dir" && as_dir=.
5213506e
RW
13583 for ac_exec_ext in '' $ac_executable_extensions; do
13584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13585 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13587 break 2
13588 fi
13589done
5213506e
RW
13590 done
13591IFS=$as_save_IFS
901119ae
KT
13592
13593fi
13594fi
13595WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13596if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13598$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13599else
5213506e
RW
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13601$as_echo "no" >&6; }
901119ae
KT
13602fi
13603
5213506e 13604
901119ae
KT
13605 fi
13606 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13607 done
13608fi
13609
13610if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13611 set dummy windmc
13612 if test $build = $target ; then
13613 WINDMC_FOR_TARGET="$2"
13614 else
13615 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13616 fi
1c00b503
PB
13617else
13618 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13619fi
13620
13621else
13622 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13623fi
13624
13625
2abefe3d
PB
13626RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13627
5213506e
RW
13628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13629$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13630if test "x${build}" != "x${host}" ; then
e8b05380
PB
13631 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13632 # We already found the complete path
172e41aa 13633 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13635$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13636 else
13637 # Canadian cross, just use what we found
5213506e
RW
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13639$as_echo "pre-installed" >&6; }
e8b05380 13640 fi
2abefe3d
PB
13641else
13642 ok=yes
13643 case " ${configdirs} " in
13644 *" binutils "*) ;;
13645 *) ok=no ;;
13646 esac
1c710c3c 13647
2abefe3d
PB
13648 if test $ok = yes; then
13649 # An in-tree tool is available and we can use it
13650 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13652$as_echo "just compiled" >&6; }
e8b05380
PB
13653 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13654 # We already found the complete path
172e41aa 13655 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13657$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13658 elif test "x$target" = "x$host"; then
13659 # We can use an host tool
13660 AR_FOR_TARGET='$(AR)'
5213506e
RW
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13662$as_echo "host tool" >&6; }
2abefe3d
PB
13663 else
13664 # We need a cross tool
5213506e
RW
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13666$as_echo "pre-installed" >&6; }
2abefe3d
PB
13667 fi
13668fi
0b0dc272 13669
5213506e
RW
13670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13671$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13672if test "x${build}" != "x${host}" ; then
e8b05380
PB
13673 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13674 # We already found the complete path
172e41aa 13675 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13677$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13678 else
13679 # Canadian cross, just use what we found
5213506e
RW
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13681$as_echo "pre-installed" >&6; }
e8b05380 13682 fi
2abefe3d
PB
13683else
13684 ok=yes
13685 case " ${configdirs} " in
13686 *" gas "*) ;;
13687 *) ok=no ;;
13688 esac
1c710c3c 13689
2abefe3d
PB
13690 if test $ok = yes; then
13691 # An in-tree tool is available and we can use it
13692 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13694$as_echo "just compiled" >&6; }
e8b05380
PB
13695 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13696 # We already found the complete path
172e41aa 13697 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13699$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13700 elif test "x$target" = "x$host"; then
13701 # We can use an host tool
13702 AS_FOR_TARGET='$(AS)'
5213506e
RW
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13704$as_echo "host tool" >&6; }
2abefe3d
PB
13705 else
13706 # We need a cross tool
5213506e
RW
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13708$as_echo "pre-installed" >&6; }
2abefe3d
PB
13709 fi
13710fi
0b0dc272 13711
5213506e
RW
13712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13713$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13714if test "x${build}" != "x${host}" ; then
e8b05380
PB
13715 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13716 # We already found the complete path
172e41aa 13717 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13719$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13720 else
13721 # Canadian cross, just use what we found
5213506e
RW
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13723$as_echo "pre-installed" >&6; }
e8b05380 13724 fi
2abefe3d
PB
13725else
13726 ok=yes
13727 case " ${configdirs} " in
13728 *" gcc "*) ;;
13729 *) ok=no ;;
13730 esac
1c710c3c 13731
2abefe3d
PB
13732 if test $ok = yes; then
13733 # An in-tree tool is available and we can use it
13734 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13736$as_echo "just compiled" >&6; }
e8b05380
PB
13737 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13738 # We already found the complete path
172e41aa 13739 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13741$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13742 elif test "x$target" = "x$host"; then
13743 # We can use an host tool
13744 CC_FOR_TARGET='$(CC)'
5213506e
RW
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13746$as_echo "host tool" >&6; }
2abefe3d
PB
13747 else
13748 # We need a cross tool
5213506e
RW
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13750$as_echo "pre-installed" >&6; }
2abefe3d
PB
13751 fi
13752fi
0b0dc272 13753
5213506e
RW
13754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13755$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13756if test "x${build}" != "x${host}" ; then
e8b05380
PB
13757 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13758 # We already found the complete path
172e41aa 13759 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13761$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13762 else
13763 # Canadian cross, just use what we found
5213506e
RW
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13765$as_echo "pre-installed" >&6; }
e8b05380 13766 fi
2abefe3d
PB
13767else
13768 ok=yes
13769 case " ${configdirs} " in
13770 *" gcc "*) ;;
13771 *) ok=no ;;
13772 esac
13773 case ,${enable_languages}, in
13774 *,c++,*) ;;
13775 *) ok=no ;;
13776 esac
13777 if test $ok = yes; then
13778 # An in-tree tool is available and we can use it
2077db1b 13779 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13781$as_echo "just compiled" >&6; }
e8b05380
PB
13782 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13783 # We already found the complete path
172e41aa 13784 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13786$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13787 elif test "x$target" = "x$host"; then
13788 # We can use an host tool
13789 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13791$as_echo "host tool" >&6; }
2abefe3d
PB
13792 else
13793 # We need a cross tool
5213506e
RW
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13795$as_echo "pre-installed" >&6; }
2abefe3d
PB
13796 fi
13797fi
0b0dc272 13798
5213506e
RW
13799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13800$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13801if test "x${build}" != "x${host}" ; then
e8b05380
PB
13802 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13803 # We already found the complete path
172e41aa 13804 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13806$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13807 else
13808 # Canadian cross, just use what we found
5213506e
RW
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13810$as_echo "pre-installed" >&6; }
e8b05380 13811 fi
2abefe3d
PB
13812else
13813 ok=yes
13814 case " ${configdirs} " in
13815 *" gcc "*) ;;
13816 *) ok=no ;;
13817 esac
13818 case ,${enable_languages}, in
13819 *,c++,*) ;;
13820 *) ok=no ;;
13821 esac
13822 if test $ok = yes; then
13823 # An in-tree tool is available and we can use it
2077db1b 13824 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13826$as_echo "just compiled" >&6; }
e8b05380
PB
13827 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13828 # We already found the complete path
172e41aa 13829 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
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; }
2abefe3d
PB
13832 elif test "x$target" = "x$host"; then
13833 # We can use an host tool
13834 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13836$as_echo "host tool" >&6; }
2abefe3d
PB
13837 else
13838 # We need a cross tool
5213506e
RW
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13840$as_echo "pre-installed" >&6; }
2abefe3d
PB
13841 fi
13842fi
0b0dc272 13843
5213506e
RW
13844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13845$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13846if test "x${build}" != "x${host}" ; then
e8b05380
PB
13847 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13848 # We already found the complete path
172e41aa 13849 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
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; }
e8b05380
PB
13852 else
13853 # Canadian cross, just use what we found
5213506e
RW
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13855$as_echo "pre-installed" >&6; }
e8b05380 13856 fi
2abefe3d
PB
13857else
13858 ok=yes
13859 case " ${configdirs} " in
13860 *" binutils "*) ;;
13861 *) ok=no ;;
13862 esac
1c710c3c 13863
2abefe3d
PB
13864 if test $ok = yes; then
13865 # An in-tree tool is available and we can use it
13866 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13868$as_echo "just compiled" >&6; }
e8b05380
PB
13869 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13870 # We already found the complete path
172e41aa 13871 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
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; }
2abefe3d
PB
13874 elif test "x$target" = "x$host"; then
13875 # We can use an host tool
13876 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13878$as_echo "host tool" >&6; }
2abefe3d
PB
13879 else
13880 # We need a cross tool
5213506e
RW
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13882$as_echo "pre-installed" >&6; }
2abefe3d
PB
13883 fi
13884fi
0b0dc272 13885
5213506e
RW
13886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13887$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13888if test "x${build}" != "x${host}" ; then
e8b05380
PB
13889 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13890 # We already found the complete path
172e41aa 13891 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
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; }
e8b05380
PB
13894 else
13895 # Canadian cross, just use what we found
5213506e
RW
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13897$as_echo "pre-installed" >&6; }
e8b05380 13898 fi
2abefe3d
PB
13899else
13900 ok=yes
13901 case " ${configdirs} " in
13902 *" gcc "*) ;;
13903 *) ok=no ;;
13904 esac
1c710c3c 13905
2abefe3d
PB
13906 if test $ok = yes; then
13907 # An in-tree tool is available and we can use it
13908 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13910$as_echo "just compiled" >&6; }
e8b05380
PB
13911 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13912 # We already found the complete path
172e41aa 13913 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
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; }
2abefe3d
PB
13916 elif test "x$target" = "x$host"; then
13917 # We can use an host tool
13918 GCC_FOR_TARGET='$()'
5213506e
RW
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13920$as_echo "host tool" >&6; }
2abefe3d
PB
13921 else
13922 # We need a cross tool
5213506e
RW
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13924$as_echo "pre-installed" >&6; }
2abefe3d
PB
13925 fi
13926fi
0b0dc272 13927
5213506e
RW
13928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13929$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13930if test "x${build}" != "x${host}" ; then
e8b05380
PB
13931 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13932 # We already found the complete path
172e41aa 13933 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13935$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13936 else
13937 # Canadian cross, just use what we found
5213506e
RW
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13939$as_echo "pre-installed" >&6; }
e8b05380 13940 fi
2abefe3d
PB
13941else
13942 ok=yes
13943 case " ${configdirs} " in
13944 *" gcc "*) ;;
13945 *) ok=no ;;
13946 esac
13947 case ,${enable_languages}, in
13948 *,java,*) ;;
13949 *) ok=no ;;
13950 esac
13951 if test $ok = yes; then
13952 # An in-tree tool is available and we can use it
13953 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13955$as_echo "just compiled" >&6; }
e8b05380
PB
13956 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13957 # We already found the complete path
172e41aa 13958 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13960$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13961 elif test "x$target" = "x$host"; then
13962 # We can use an host tool
13963 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13965$as_echo "host tool" >&6; }
2abefe3d
PB
13966 else
13967 # We need a cross tool
5213506e
RW
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13969$as_echo "pre-installed" >&6; }
2abefe3d
PB
13970 fi
13971fi
0b0dc272 13972
5213506e
RW
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13974$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13975if test "x${build}" != "x${host}" ; then
e8b05380
PB
13976 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13977 # We already found the complete path
172e41aa 13978 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13980$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13981 else
13982 # Canadian cross, just use what we found
5213506e
RW
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13984$as_echo "pre-installed" >&6; }
e8b05380 13985 fi
2abefe3d
PB
13986else
13987 ok=yes
13988 case " ${configdirs} " in
13989 *" gcc "*) ;;
13990 *) ok=no ;;
13991 esac
13992 case ,${enable_languages}, in
13993 *,fortran,*) ;;
13994 *) ok=no ;;
13995 esac
13996 if test $ok = yes; then
13997 # An in-tree tool is available and we can use it
13998 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14000$as_echo "just compiled" >&6; }
e8b05380
PB
14001 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14002 # We already found the complete path
172e41aa 14003 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14005$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14006 elif test "x$target" = "x$host"; then
14007 # We can use an host tool
14008 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14010$as_echo "host tool" >&6; }
2abefe3d
PB
14011 else
14012 # We need a cross tool
5213506e
RW
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14014$as_echo "pre-installed" >&6; }
2abefe3d
PB
14015 fi
14016fi
0b0dc272 14017
632e2a07
ILT
14018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14019$as_echo_n "checking where to find the target gccgo... " >&6; }
14020if test "x${build}" != "x${host}" ; then
14021 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14022 # We already found the complete path
14023 ac_dir=`dirname $GOC_FOR_TARGET`
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14025$as_echo "pre-installed in $ac_dir" >&6; }
14026 else
14027 # Canadian cross, just use what we found
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14029$as_echo "pre-installed" >&6; }
14030 fi
14031else
14032 ok=yes
14033 case " ${configdirs} " in
14034 *" gcc "*) ;;
14035 *) ok=no ;;
14036 esac
14037 case ,${enable_languages}, in
14038 *,go,*) ;;
14039 *) ok=no ;;
14040 esac
14041 if test $ok = yes; then
14042 # An in-tree tool is available and we can use it
14043 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14045$as_echo "just compiled" >&6; }
14046 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14047 # We already found the complete path
14048 ac_dir=`dirname $GOC_FOR_TARGET`
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14050$as_echo "pre-installed in $ac_dir" >&6; }
14051 elif test "x$target" = "x$host"; then
14052 # We can use an host tool
14053 GOC_FOR_TARGET='$(GOC)'
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14055$as_echo "host tool" >&6; }
14056 else
14057 # We need a cross tool
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14059$as_echo "pre-installed" >&6; }
14060 fi
14061fi
14062
5213506e
RW
14063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14064$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14065if test "x${build}" != "x${host}" ; then
e8b05380
PB
14066 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14067 # We already found the complete path
172e41aa 14068 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14070$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14071 else
14072 # Canadian cross, just use what we found
5213506e
RW
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14074$as_echo "pre-installed" >&6; }
e8b05380 14075 fi
2abefe3d
PB
14076else
14077 ok=yes
14078 case " ${configdirs} " in
14079 *" ld "*) ;;
14080 *) ok=no ;;
14081 esac
1c710c3c 14082
2abefe3d
PB
14083 if test $ok = yes; then
14084 # An in-tree tool is available and we can use it
14085 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14087$as_echo "just compiled" >&6; }
e8b05380
PB
14088 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14089 # We already found the complete path
172e41aa 14090 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14092$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14093 elif test "x$target" = "x$host"; then
14094 # We can use an host tool
14095 LD_FOR_TARGET='$(LD)'
5213506e
RW
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14097$as_echo "host tool" >&6; }
2abefe3d
PB
14098 else
14099 # We need a cross tool
5213506e
RW
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14101$as_echo "pre-installed" >&6; }
2abefe3d
PB
14102 fi
14103fi
0b0dc272 14104
5213506e
RW
14105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14106$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14107if test "x${build}" != "x${host}" ; then
e8b05380
PB
14108 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14109 # We already found the complete path
172e41aa 14110 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14112$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14113 else
14114 # Canadian cross, just use what we found
5213506e
RW
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14116$as_echo "pre-installed" >&6; }
e8b05380 14117 fi
2abefe3d 14118else
e8b05380
PB
14119 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14120 # We already found the complete path
172e41aa 14121 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14123$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14124 elif test "x$target" = "x$host"; then
2abefe3d
PB
14125 # We can use an host tool
14126 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14128$as_echo "host tool" >&6; }
2abefe3d
PB
14129 else
14130 # We need a cross tool
5213506e
RW
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14132$as_echo "pre-installed" >&6; }
2abefe3d
PB
14133 fi
14134fi
0b0dc272 14135
5213506e
RW
14136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14137$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14138if test "x${build}" != "x${host}" ; then
e8b05380
PB
14139 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14140 # We already found the complete path
172e41aa 14141 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14143$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14144 else
14145 # Canadian cross, just use what we found
5213506e
RW
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14147$as_echo "pre-installed" >&6; }
e8b05380 14148 fi
2abefe3d
PB
14149else
14150 ok=yes
14151 case " ${configdirs} " in
14152 *" binutils "*) ;;
14153 *) ok=no ;;
14154 esac
1c710c3c 14155
2abefe3d
PB
14156 if test $ok = yes; then
14157 # An in-tree tool is available and we can use it
14158 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14160$as_echo "just compiled" >&6; }
e8b05380
PB
14161 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14162 # We already found the complete path
172e41aa 14163 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14165$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14166 elif test "x$target" = "x$host"; then
14167 # We can use an host tool
14168 NM_FOR_TARGET='$(NM)'
5213506e
RW
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14170$as_echo "host tool" >&6; }
2abefe3d
PB
14171 else
14172 # We need a cross tool
5213506e
RW
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14174$as_echo "pre-installed" >&6; }
2abefe3d
PB
14175 fi
14176fi
0b0dc272 14177
5213506e
RW
14178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14179$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14180if test "x${build}" != "x${host}" ; then
e8b05380
PB
14181 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14182 # We already found the complete path
172e41aa 14183 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14185$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14186 else
14187 # Canadian cross, just use what we found
5213506e
RW
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14189$as_echo "pre-installed" >&6; }
e8b05380 14190 fi
2abefe3d
PB
14191else
14192 ok=yes
14193 case " ${configdirs} " in
14194 *" binutils "*) ;;
14195 *) ok=no ;;
14196 esac
1c710c3c 14197
2abefe3d
PB
14198 if test $ok = yes; then
14199 # An in-tree tool is available and we can use it
14200 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14202$as_echo "just compiled" >&6; }
e8b05380
PB
14203 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14204 # We already found the complete path
172e41aa 14205 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14207$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14208 elif test "x$target" = "x$host"; then
14209 # We can use an host tool
14210 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14212$as_echo "host tool" >&6; }
2abefe3d
PB
14213 else
14214 # We need a cross tool
5213506e
RW
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14216$as_echo "pre-installed" >&6; }
2abefe3d
PB
14217 fi
14218fi
0b0dc272 14219
5213506e
RW
14220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14221$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14222if test "x${build}" != "x${host}" ; then
e8b05380
PB
14223 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14224 # We already found the complete path
172e41aa 14225 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14227$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14228 else
14229 # Canadian cross, just use what we found
5213506e
RW
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14231$as_echo "pre-installed" >&6; }
e8b05380 14232 fi
2abefe3d
PB
14233else
14234 ok=yes
14235 case " ${configdirs} " in
14236 *" binutils "*) ;;
14237 *) ok=no ;;
14238 esac
1c710c3c 14239
2abefe3d
PB
14240 if test $ok = yes; then
14241 # An in-tree tool is available and we can use it
14242 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14244$as_echo "just compiled" >&6; }
e8b05380
PB
14245 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14246 # We already found the complete path
172e41aa 14247 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14249$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14250 elif test "x$target" = "x$host"; then
14251 # We can use an host tool
14252 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14254$as_echo "host tool" >&6; }
2abefe3d
PB
14255 else
14256 # We need a cross tool
5213506e
RW
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14258$as_echo "pre-installed" >&6; }
2abefe3d
PB
14259 fi
14260fi
0b0dc272 14261
e7a82751
RM
14262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14263$as_echo_n "checking where to find the target readelf... " >&6; }
14264if test "x${build}" != "x${host}" ; then
14265 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14266 # We already found the complete path
14267 ac_dir=`dirname $READELF_FOR_TARGET`
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14269$as_echo "pre-installed in $ac_dir" >&6; }
14270 else
14271 # Canadian cross, just use what we found
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14273$as_echo "pre-installed" >&6; }
14274 fi
14275else
14276 ok=yes
14277 case " ${configdirs} " in
14278 *" binutils "*) ;;
14279 *) ok=no ;;
14280 esac
14281
14282 if test $ok = yes; then
14283 # An in-tree tool is available and we can use it
14284 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14286$as_echo "just compiled" >&6; }
14287 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14288 # We already found the complete path
14289 ac_dir=`dirname $READELF_FOR_TARGET`
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14291$as_echo "pre-installed in $ac_dir" >&6; }
14292 elif test "x$target" = "x$host"; then
14293 # We can use an host tool
14294 READELF_FOR_TARGET='$(READELF)'
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14296$as_echo "host tool" >&6; }
14297 else
14298 # We need a cross tool
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14300$as_echo "pre-installed" >&6; }
14301 fi
14302fi
14303
5213506e
RW
14304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14305$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14306if test "x${build}" != "x${host}" ; then
e8b05380
PB
14307 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14308 # We already found the complete path
172e41aa 14309 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14311$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14312 else
14313 # Canadian cross, just use what we found
5213506e
RW
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14315$as_echo "pre-installed" >&6; }
e8b05380 14316 fi
2abefe3d
PB
14317else
14318 ok=yes
14319 case " ${configdirs} " in
14320 *" binutils "*) ;;
14321 *) ok=no ;;
14322 esac
1c710c3c 14323
2abefe3d
PB
14324 if test $ok = yes; then
14325 # An in-tree tool is available and we can use it
455c8f48 14326 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14328$as_echo "just compiled" >&6; }
e8b05380
PB
14329 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14330 # We already found the complete path
172e41aa 14331 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14333$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14334 elif test "x$target" = "x$host"; then
14335 # We can use an host tool
14336 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14338$as_echo "host tool" >&6; }
2abefe3d
PB
14339 else
14340 # We need a cross tool
5213506e
RW
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14342$as_echo "pre-installed" >&6; }
2abefe3d
PB
14343 fi
14344fi
0b0dc272 14345
5213506e
RW
14346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14347$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14348if test "x${build}" != "x${host}" ; then
e8b05380
PB
14349 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14350 # We already found the complete path
172e41aa 14351 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14353$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14354 else
14355 # Canadian cross, just use what we found
5213506e
RW
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14357$as_echo "pre-installed" >&6; }
e8b05380 14358 fi
2abefe3d
PB
14359else
14360 ok=yes
14361 case " ${configdirs} " in
14362 *" binutils "*) ;;
14363 *) ok=no ;;
14364 esac
1c710c3c 14365
2abefe3d
PB
14366 if test $ok = yes; then
14367 # An in-tree tool is available and we can use it
14368 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14370$as_echo "just compiled" >&6; }
e8b05380
PB
14371 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14372 # We already found the complete path
172e41aa 14373 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14375$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14376 elif test "x$target" = "x$host"; then
14377 # We can use an host tool
14378 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14380$as_echo "host tool" >&6; }
2abefe3d
PB
14381 else
14382 # We need a cross tool
5213506e
RW
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14384$as_echo "pre-installed" >&6; }
2abefe3d 14385 fi
671aa708 14386fi
be912515 14387
5213506e
RW
14388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14389$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14390if test "x${build}" != "x${host}" ; then
14391 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14392 # We already found the complete path
14393 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14395$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14396 else
14397 # Canadian cross, just use what we found
5213506e
RW
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14399$as_echo "pre-installed" >&6; }
901119ae
KT
14400 fi
14401else
14402 ok=yes
14403 case " ${configdirs} " in
14404 *" binutils "*) ;;
14405 *) ok=no ;;
14406 esac
14407
14408 if test $ok = yes; then
14409 # An in-tree tool is available and we can use it
14410 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14412$as_echo "just compiled" >&6; }
901119ae
KT
14413 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14414 # We already found the complete path
14415 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14417$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14418 elif test "x$target" = "x$host"; then
14419 # We can use an host tool
14420 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14422$as_echo "host tool" >&6; }
901119ae
KT
14423 else
14424 # We need a cross tool
5213506e
RW
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14426$as_echo "pre-installed" >&6; }
901119ae
KT
14427 fi
14428fi
14429
be912515
NN
14430
14431
2abefe3d 14432
0b0dc272 14433
671aa708
NN
14434# Certain tools may need extra flags.
14435AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14436RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14437NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14438
2abefe3d
PB
14439# When building target libraries, except in a Canadian cross, we use
14440# the same toolchain as the compiler we just built.
14441COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14442COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14443COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14444if test $host = $build; then
14445 case " $configdirs " in
14446 *" gcc "*)
14447 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14448 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14449 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14450 ;;
14451 esac
14452fi
14453
14454
14455
14456
14457
5213506e
RW
14458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14459$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14460# Check whether --enable-maintainer-mode was given.
14461if test "${enable_maintainer_mode+set}" = set; then :
14462 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14463else
14464 USE_MAINTAINER_MODE=no
5213506e
RW
14465fi
14466
14467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14468$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14469
14470
14471if test "$USE_MAINTAINER_MODE" = yes; then
14472 MAINTAINER_MODE_TRUE=
14473 MAINTAINER_MODE_FALSE='#'
14474else
14475 MAINTAINER_MODE_TRUE='#'
14476 MAINTAINER_MODE_FALSE=
1c710c3c 14477fi
ee03dc5e
AO
14478MAINT=$MAINTAINER_MODE_TRUE
14479
2805b53a
NN
14480# ---------------------
14481# GCC bootstrap support
14482# ---------------------
14483
14484# Stage specific cflags for build.
14485stage1_cflags="-g"
14486case $build in
14487 vax-*-*)
14488 case ${GCC} in
14489 yes) stage1_cflags="-g -Wa,-J" ;;
14490 *) stage1_cflags="-g -J" ;;
14491 esac ;;
2805b53a
NN
14492esac
14493
0b50988a 14494
2805b53a 14495
8efea775 14496# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14497# Check whether --enable-stage1-checking was given.
14498if test "${enable_stage1_checking+set}" = set; then :
14499 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14500else
e643dc23 14501 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14502 stage1_checking=--enable-checking=yes,types
8efea775 14503else
e643dc23 14504 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14505fi
5213506e 14506fi
8efea775
PB
14507
14508
2aeb72e9 14509
5213506e
RW
14510# Enable -Werror in bootstrap stage2 and later.
14511# Check whether --enable-werror was given.
14512if test "${enable_werror+set}" = set; then :
14513 enableval=$enable_werror;
2805b53a 14514else
416cfb5e 14515 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14516 enable_werror=yes
88fceb68
PB
14517else
14518 enable_werror=no
14519fi
5213506e
RW
14520fi
14521
09a9c095
NN
14522case ${enable_werror} in
14523 yes) stage2_werror_flag="--enable-werror-always" ;;
14524 *) stage2_werror_flag="" ;;
2805b53a
NN
14525esac
14526
14527
459260ec
DM
14528# Enable --enable-host-shared.
14529# Check whether --enable-host-shared was given.
14530if test "${enable_host_shared+set}" = set; then :
14531 enableval=$enable_host_shared; host_shared=$enableval
14532else
14533 host_shared=no
14534fi
14535
14536
14537
f2689b09
SE
14538# Specify what files to not compare during bootstrap.
14539
14540compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14541case "$target" in
14542 hppa*64*-*-hpux*) ;;
14543 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14544 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14545esac
14546
14547
5213506e
RW
14548ac_config_files="$ac_config_files Makefile"
14549
1c710c3c 14550cat >confcache <<\_ACEOF
671aa708
NN
14551# This file is a shell script that caches the results of configure
14552# tests run on this system so they can be shared between configure
1c710c3c
DJ
14553# scripts and configure runs, see configure's option --config-cache.
14554# It is not useful on other systems. If it contains results you don't
14555# want to keep, you may remove or edit it.
671aa708 14556#
1c710c3c
DJ
14557# config.status only pays attention to the cache file if you give it
14558# the --recheck option to rerun configure.
671aa708 14559#
1c710c3c
DJ
14560# `ac_cv_env_foo' variables (set or unset) will be overridden when
14561# loading this file, other *unset* `ac_cv_foo' will be assigned the
14562# following values.
14563
14564_ACEOF
14565
671aa708
NN
14566# The following way of writing the cache mishandles newlines in values,
14567# but we know of no workaround that is simple, portable, and efficient.
5213506e 14568# So, we kill variables containing newlines.
671aa708
NN
14569# Ultrix sh set writes to stderr and can't be redirected directly,
14570# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14571(
14572 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14573 eval ac_val=\$$ac_var
14574 case $ac_val in #(
14575 *${as_nl}*)
14576 case $ac_var in #(
14577 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14578$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14579 esac
14580 case $ac_var in #(
14581 _ | IFS | as_nl) ;; #(
14582 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14583 *) { eval $ac_var=; unset $ac_var;} ;;
14584 esac ;;
14585 esac
14586 done
14587
1c710c3c 14588 (set) 2>&1 |
5213506e
RW
14589 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14590 *${as_nl}ac_space=\ *)
14591 # `set' does not quote correctly, so add quotes: double-quote
14592 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14593 sed -n \
14594 "s/'/'\\\\''/g;
14595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14596 ;; #(
1c710c3c
DJ
14597 *)
14598 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14600 ;;
5213506e
RW
14601 esac |
14602 sort
14603) |
1c710c3c 14604 sed '
5213506e 14605 /^ac_cv_env_/b end
1c710c3c 14606 t clear
5213506e 14607 :clear
1c710c3c
DJ
14608 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14609 t end
5213506e
RW
14610 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14611 :end' >>confcache
14612if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14613 if test -w "$cache_file"; then
14614 test "x$cache_file" != "x/dev/null" &&
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14616$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14617 cat confcache >$cache_file
671aa708 14618 else
5213506e
RW
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14620$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14621 fi
4977bab6 14622fi
671aa708 14623rm -f confcache
79c06341 14624
671aa708
NN
14625test "x$prefix" = xNONE && prefix=$ac_default_prefix
14626# Let make expand exec_prefix.
14627test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14628
671aa708
NN
14629# Transform confdefs.h into DEFS.
14630# Protect against shell expansion while executing Makefile rules.
14631# Protect against Makefile macro expansion.
1c710c3c
DJ
14632#
14633# If the first sed substitution is executed (which looks for macros that
5213506e 14634# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14635# look for a macro that doesn't take arguments.
5213506e
RW
14636ac_script='
14637:mline
14638/\\$/{
14639 N
14640 s,\\\n,,
14641 b mline
14642}
1c710c3c 14643t clear
5213506e
RW
14644:clear
14645s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14646t quote
5213506e 14647s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14648t quote
5213506e
RW
14649b any
14650:quote
14651s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14652s/\[/\\&/g
14653s/\]/\\&/g
14654s/\$/$$/g
14655H
14656:any
14657${
14658 g
14659 s/^\n//
14660 s/\n/ /g
14661 p
14662}
14663'
14664DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14665
14666
14667ac_libobjs=
14668ac_ltlibobjs=
14669for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14670 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14671 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14672 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14673 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14674 # will be set to the directory where LIBOBJS objects are built.
14675 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14676 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14677done
14678LIBOBJS=$ac_libobjs
fb0103e5 14679
1c710c3c 14680LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14681
af71363e 14682
1c710c3c
DJ
14683
14684: ${CONFIG_STATUS=./config.status}
5213506e 14685ac_write_fail=0
1c710c3c
DJ
14686ac_clean_files_save=$ac_clean_files
14687ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14688{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14689$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14690as_write_fail=0
14691cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14692#! $SHELL
14693# Generated by $as_me.
671aa708 14694# Run this file to recreate the current configuration.
671aa708 14695# Compiler output produced by configure, useful for debugging
1c710c3c 14696# configure, is in config.log if it exists.
0b0dc272 14697
1c710c3c
DJ
14698debug=false
14699ac_cs_recheck=false
14700ac_cs_silent=false
1c710c3c 14701
5213506e
RW
14702SHELL=\${CONFIG_SHELL-$SHELL}
14703export SHELL
14704_ASEOF
14705cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14706## -------------------- ##
14707## M4sh Initialization. ##
14708## -------------------- ##
14709
14710# Be more Bourne compatible
14711DUALCASE=1; export DUALCASE # for MKS sh
14712if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14713 emulate sh
14714 NULLCMD=:
5213506e 14715 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14716 # is contrary to our usage. Disable this feature.
14717 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14718 setopt NO_GLOB_SUBST
14719else
14720 case `(set -o) 2>/dev/null` in #(
14721 *posix*) :
14722 set -o posix ;; #(
14723 *) :
14724 ;;
14725esac
1c710c3c 14726fi
1c710c3c 14727
5213506e
RW
14728
14729as_nl='
14730'
14731export as_nl
14732# Printing a long string crashes Solaris 7 /usr/bin/printf.
14733as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14734as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14735as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14736# Prefer a ksh shell builtin over an external printf program on Solaris,
14737# but without wasting forks for bash or zsh.
14738if test -z "$BASH_VERSION$ZSH_VERSION" \
14739 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14740 as_echo='print -r --'
14741 as_echo_n='print -rn --'
14742elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14743 as_echo='printf %s\n'
14744 as_echo_n='printf %s'
14745else
14746 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14747 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14748 as_echo_n='/usr/ucb/echo -n'
14749 else
14750 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14751 as_echo_n_body='eval
14752 arg=$1;
14753 case $arg in #(
14754 *"$as_nl"*)
14755 expr "X$arg" : "X\\(.*\\)$as_nl";
14756 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14757 esac;
14758 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14759 '
14760 export as_echo_n_body
14761 as_echo_n='sh -c $as_echo_n_body as_echo'
14762 fi
14763 export as_echo_body
14764 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14765fi
14766
5213506e
RW
14767# The user is always right.
14768if test "${PATH_SEPARATOR+set}" != set; then
14769 PATH_SEPARATOR=:
14770 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14771 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14772 PATH_SEPARATOR=';'
14773 }
14774fi
14775
14776
14777# IFS
14778# We need space, tab and new line, in precisely that order. Quoting is
14779# there to prevent editors from complaining about space-tab.
14780# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14781# splitting by setting IFS to empty value.)
14782IFS=" "" $as_nl"
14783
14784# Find who we are. Look in the path if we contain no directory separator.
14785case $0 in #((
14786 *[\\/]* ) as_myself=$0 ;;
14787 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14788for as_dir in $PATH
14789do
14790 IFS=$as_save_IFS
14791 test -z "$as_dir" && as_dir=.
14792 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14793 done
14794IFS=$as_save_IFS
14795
14796 ;;
14797esac
14798# We did not find ourselves, most probably we were run as `sh COMMAND'
14799# in which case we are not to be found in the path.
14800if test "x$as_myself" = x; then
14801 as_myself=$0
14802fi
14803if test ! -f "$as_myself"; then
14804 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14805 exit 1
14806fi
1c710c3c 14807
5213506e
RW
14808# Unset variables that we do not need and which cause bugs (e.g. in
14809# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14810# suppresses any "Segmentation fault" message there. '((' could
14811# trigger a bug in pdksh 5.2.14.
14812for as_var in BASH_ENV ENV MAIL MAILPATH
14813do eval test x\${$as_var+set} = xset \
14814 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14815done
1c710c3c
DJ
14816PS1='$ '
14817PS2='> '
14818PS4='+ '
14819
14820# NLS nuisances.
5213506e
RW
14821LC_ALL=C
14822export LC_ALL
14823LANGUAGE=C
14824export LANGUAGE
14825
14826# CDPATH.
14827(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14828
14829
14830# as_fn_error ERROR [LINENO LOG_FD]
14831# ---------------------------------
14832# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14833# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14834# script with status $?, using 1 if that was 0.
14835as_fn_error ()
14836{
14837 as_status=$?; test $as_status -eq 0 && as_status=1
14838 if test "$3"; then
14839 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14840 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14841 fi
5213506e
RW
14842 $as_echo "$as_me: error: $1" >&2
14843 as_fn_exit $as_status
14844} # as_fn_error
14845
14846
14847# as_fn_set_status STATUS
14848# -----------------------
14849# Set $? to STATUS, without forking.
14850as_fn_set_status ()
14851{
14852 return $1
14853} # as_fn_set_status
14854
14855# as_fn_exit STATUS
14856# -----------------
14857# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14858as_fn_exit ()
14859{
14860 set +e
14861 as_fn_set_status $1
14862 exit $1
14863} # as_fn_exit
14864
14865# as_fn_unset VAR
14866# ---------------
14867# Portably unset VAR.
14868as_fn_unset ()
14869{
14870 { eval $1=; unset $1;}
14871}
14872as_unset=as_fn_unset
14873# as_fn_append VAR VALUE
14874# ----------------------
14875# Append the text in VALUE to the end of the definition contained in VAR. Take
14876# advantage of any shell optimizations that allow amortized linear growth over
14877# repeated appends, instead of the typical quadratic growth present in naive
14878# implementations.
14879if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14880 eval 'as_fn_append ()
14881 {
14882 eval $1+=\$2
14883 }'
14884else
14885 as_fn_append ()
14886 {
14887 eval $1=\$$1\$2
14888 }
14889fi # as_fn_append
14890
14891# as_fn_arith ARG...
14892# ------------------
14893# Perform arithmetic evaluation on the ARGs, and store the result in the
14894# global $as_val. Take advantage of shells that can avoid forks. The arguments
14895# must be portable across $(()) and expr.
14896if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14897 eval 'as_fn_arith ()
14898 {
14899 as_val=$(( $* ))
14900 }'
14901else
14902 as_fn_arith ()
14903 {
14904 as_val=`expr "$@" || test $? -eq 1`
14905 }
14906fi # as_fn_arith
14907
1c710c3c 14908
5213506e
RW
14909if expr a : '\(a\)' >/dev/null 2>&1 &&
14910 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14911 as_expr=expr
14912else
14913 as_expr=false
14914fi
14915
5213506e 14916if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14917 as_basename=basename
14918else
14919 as_basename=false
14920fi
14921
5213506e
RW
14922if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14923 as_dirname=dirname
14924else
14925 as_dirname=false
14926fi
1c710c3c 14927
5213506e 14928as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14929$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14930 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14931 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14932$as_echo X/"$0" |
14933 sed '/^.*\/\([^/][^/]*\)\/*$/{
14934 s//\1/
14935 q
14936 }
14937 /^X\/\(\/\/\)$/{
14938 s//\1/
14939 q
14940 }
14941 /^X\/\(\/\).*/{
14942 s//\1/
14943 q
14944 }
14945 s/.*/./; q'`
2aeb72e9 14946
2aeb72e9
DD
14947# Avoid depending upon Character Ranges.
14948as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14949as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14950as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14951as_cr_digits='0123456789'
14952as_cr_alnum=$as_cr_Letters$as_cr_digits
14953
5213506e
RW
14954ECHO_C= ECHO_N= ECHO_T=
14955case `echo -n x` in #(((((
14956-n*)
14957 case `echo 'xy\c'` in
14958 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14959 xy) ECHO_C='\c';;
14960 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14961 ECHO_T=' ';;
14962 esac;;
14963*)
14964 ECHO_N='-n';;
1c710c3c
DJ
14965esac
14966
5213506e
RW
14967rm -f conf$$ conf$$.exe conf$$.file
14968if test -d conf$$.dir; then
14969 rm -f conf$$.dir/conf$$.file
1c710c3c 14970else
5213506e
RW
14971 rm -f conf$$.dir
14972 mkdir conf$$.dir 2>/dev/null
1c710c3c 14973fi
5213506e
RW
14974if (echo >conf$$.file) 2>/dev/null; then
14975 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14976 as_ln_s='ln -s'
5213506e
RW
14977 # ... but there are two gotchas:
14978 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14979 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14980 # In both cases, we have to default to `cp -p'.
14981 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14982 as_ln_s='cp -p'
14983 elif ln conf$$.file conf$$ 2>/dev/null; then
14984 as_ln_s=ln
14985 else
14986 as_ln_s='cp -p'
2aeb72e9 14987 fi
1c710c3c
DJ
14988else
14989 as_ln_s='cp -p'
14990fi
5213506e
RW
14991rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14992rmdir conf$$.dir 2>/dev/null
14993
14994
14995# as_fn_mkdir_p
14996# -------------
14997# Create "$as_dir" as a directory, including parents if necessary.
14998as_fn_mkdir_p ()
14999{
15000
15001 case $as_dir in #(
15002 -*) as_dir=./$as_dir;;
15003 esac
15004 test -d "$as_dir" || eval $as_mkdir_p || {
15005 as_dirs=
15006 while :; do
15007 case $as_dir in #(
15008 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15009 *) as_qdir=$as_dir;;
15010 esac
15011 as_dirs="'$as_qdir' $as_dirs"
15012 as_dir=`$as_dirname -- "$as_dir" ||
15013$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15014 X"$as_dir" : 'X\(//\)[^/]' \| \
15015 X"$as_dir" : 'X\(//\)$' \| \
15016 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15017$as_echo X"$as_dir" |
15018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15019 s//\1/
15020 q
15021 }
15022 /^X\(\/\/\)[^/].*/{
15023 s//\1/
15024 q
15025 }
15026 /^X\(\/\/\)$/{
15027 s//\1/
15028 q
15029 }
15030 /^X\(\/\).*/{
15031 s//\1/
15032 q
15033 }
15034 s/.*/./; q'`
15035 test -d "$as_dir" && break
15036 done
15037 test -z "$as_dirs" || eval "mkdir $as_dirs"
15038 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15039
1c710c3c 15040
5213506e 15041} # as_fn_mkdir_p
1c710c3c 15042if mkdir -p . 2>/dev/null; then
5213506e 15043 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15044else
15045 test -d ./-p && rmdir ./-p
15046 as_mkdir_p=false
15047fi
15048
5213506e
RW
15049if test -x / >/dev/null 2>&1; then
15050 as_test_x='test -x'
15051else
15052 if ls -dL / >/dev/null 2>&1; then
15053 as_ls_L_option=L
15054 else
15055 as_ls_L_option=
15056 fi
15057 as_test_x='
15058 eval sh -c '\''
15059 if test -d "$1"; then
15060 test -d "$1/.";
15061 else
15062 case $1 in #(
15063 -*)set "./$1";;
15064 esac;
15065 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15066 ???[sx]*):;;*)false;;esac;fi
15067 '\'' sh
15068 '
15069fi
15070as_executable_p=$as_test_x
1c710c3c
DJ
15071
15072# Sed expression to map a string onto a valid CPP name.
15073as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15074
15075# Sed expression to map a string onto a valid variable name.
15076as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15077
15078
1c710c3c 15079exec 6>&1
5213506e
RW
15080## ----------------------------------- ##
15081## Main body of $CONFIG_STATUS script. ##
15082## ----------------------------------- ##
15083_ASEOF
15084test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15085
15086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15087# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15088# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15089# values after options handling.
15090ac_log="
1c710c3c 15091This file was extended by $as_me, which was
5213506e 15092generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15093
15094 CONFIG_FILES = $CONFIG_FILES
15095 CONFIG_HEADERS = $CONFIG_HEADERS
15096 CONFIG_LINKS = $CONFIG_LINKS
15097 CONFIG_COMMANDS = $CONFIG_COMMANDS
15098 $ $0 $@
15099
5213506e
RW
15100on `(hostname || uname -n) 2>/dev/null | sed 1q`
15101"
15102
1c710c3c
DJ
15103_ACEOF
15104
5213506e
RW
15105case $ac_config_files in *"
15106"*) set x $ac_config_files; shift; ac_config_files=$*;;
15107esac
1c710c3c 15108
2aeb72e9 15109
2aeb72e9 15110
5213506e
RW
15111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15112# Files that config.status was made for.
15113config_files="$ac_config_files"
1c710c3c 15114
5213506e 15115_ACEOF
2aeb72e9 15116
5213506e 15117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15118ac_cs_usage="\
5213506e
RW
15119\`$as_me' instantiates files and other configuration actions
15120from templates according to the current configuration. Unless the files
15121and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15122
5213506e 15123Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15124
15125 -h, --help print this help, then exit
5213506e
RW
15126 -V, --version print version number and configuration settings, then exit
15127 -q, --quiet, --silent
15128 do not print progress messages
1c710c3c
DJ
15129 -d, --debug don't remove temporary files
15130 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15131 --file=FILE[:TEMPLATE]
15132 instantiate the configuration file FILE
1c710c3c
DJ
15133
15134Configuration files:
15135$config_files
15136
5213506e 15137Report bugs to the package provider."
2aeb72e9 15138
5213506e
RW
15139_ACEOF
15140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15141ac_cs_version="\\
15142config.status
5213506e
RW
15143configured by $0, generated by GNU Autoconf 2.64,
15144 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15145
5213506e 15146Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15147This config.status script is free software; the Free Software Foundation
15148gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15149
15150ac_pwd='$ac_pwd'
15151srcdir='$srcdir'
15152INSTALL='$INSTALL'
87264276 15153AWK='$AWK'
5213506e 15154test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15155_ACEOF
15156
5213506e
RW
15157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15158# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15159ac_need_defaults=:
15160while test $# != 0
a4b9e93e 15161do
1c710c3c
DJ
15162 case $1 in
15163 --*=*)
5213506e
RW
15164 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15165 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15166 ac_shift=:
15167 ;;
5213506e 15168 *)
1c710c3c
DJ
15169 ac_option=$1
15170 ac_optarg=$2
15171 ac_shift=shift
15172 ;;
1c710c3c
DJ
15173 esac
15174
15175 case $ac_option in
15176 # Handling of the options.
671aa708 15177 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15178 ac_cs_recheck=: ;;
5213506e
RW
15179 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15180 $as_echo "$ac_cs_version"; exit ;;
15181 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15182 debug=: ;;
15183 --file | --fil | --fi | --f )
15184 $ac_shift
5213506e
RW
15185 case $ac_optarg in
15186 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15187 esac
15188 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15189 ac_need_defaults=false;;
5213506e
RW
15190 --he | --h | --help | --hel | -h )
15191 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15193 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15194 ac_cs_silent=: ;;
15195
15196 # This is an error.
5213506e
RW
15197 -*) as_fn_error "unrecognized option: \`$1'
15198Try \`$0 --help' for more information." ;;
1c710c3c 15199
5213506e
RW
15200 *) as_fn_append ac_config_targets " $1"
15201 ac_need_defaults=false ;;
1c710c3c 15202
0b0dc272 15203 esac
1c710c3c 15204 shift
0b0dc272
AM
15205done
15206
1c710c3c 15207ac_configure_extra_args=
0b0dc272 15208
1c710c3c
DJ
15209if $ac_cs_silent; then
15210 exec 6>/dev/null
15211 ac_configure_extra_args="$ac_configure_extra_args --silent"
15212fi
0b0dc272 15213
1c710c3c 15214_ACEOF
5213506e 15215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15216if \$ac_cs_recheck; then
5213506e
RW
15217 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15218 shift
15219 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15220 CONFIG_SHELL='$SHELL'
15221 export CONFIG_SHELL
15222 exec "\$@"
1c710c3c
DJ
15223fi
15224
15225_ACEOF
5213506e
RW
15226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15227exec 5>>config.log
15228{
15229 echo
15230 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15231## Running $as_me. ##
15232_ASBOX
15233 $as_echo "$ac_log"
15234} >&5
1c710c3c 15235
5213506e
RW
15236_ACEOF
15237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15238#
15239# INIT-COMMANDS
15240#
15241extrasub_build="$extrasub_build"
15242 extrasub_host="$extrasub_host"
15243 extrasub_target="$extrasub_target"
15244
5213506e 15245_ACEOF
1c710c3c 15246
5213506e 15247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15248
5213506e 15249# Handling of arguments.
1c710c3c
DJ
15250for ac_config_target in $ac_config_targets
15251do
5213506e
RW
15252 case $ac_config_target in
15253 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15254
15255 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15256 esac
15257done
15258
5213506e 15259
1c710c3c
DJ
15260# If the user did not use the arguments to specify the items to instantiate,
15261# then the envvar interface is used. Set only those that are not.
15262# We use the long form for the default assignment because of an extremely
15263# bizarre bug on SunOS 4.1.3.
15264if $ac_need_defaults; then
15265 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15266fi
15267
15268# Have a temporary directory for convenience. Make it in the build tree
5213506e 15269# simply because there is no reason against having it here, and in addition,
1c710c3c 15270# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15271# Hook for its removal unless debugging.
15272# Note that there is a small window in which the directory will not be cleaned:
15273# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15274$debug ||
15275{
5213506e
RW
15276 tmp=
15277 trap 'exit_status=$?
15278 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15279' 0
15280 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15281}
1c710c3c
DJ
15282# Create a (secure) tmp directory for tmp files.
15283
15284{
5213506e 15285 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15286 test -n "$tmp" && test -d "$tmp"
15287} ||
15288{
5213506e
RW
15289 tmp=./conf$$-$RANDOM
15290 (umask 077 && mkdir "$tmp")
15291} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15292
15293# Set up the scripts for CONFIG_FILES section.
15294# No need to generate them if there are no CONFIG_FILES.
15295# This happens for instance with `./config.status config.h'.
15296if test -n "$CONFIG_FILES"; then
15297
15298if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15299 ac_cs_awk_getline=:
15300 ac_cs_awk_pipe_init=
15301 ac_cs_awk_read_file='
15302 while ((getline aline < (F[key])) > 0)
15303 print(aline)
15304 close(F[key])'
15305 ac_cs_awk_pipe_fini=
15306else
15307 ac_cs_awk_getline=false
15308 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15309 ac_cs_awk_read_file='
15310 print "|#_!!_#|"
15311 print "cat " F[key] " &&"
15312 '$ac_cs_awk_pipe_init
15313 # The final `:' finishes the AND list.
15314 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15315fi
15316ac_cr=`echo X | tr X '\015'`
15317# On cygwin, bash can eat \r inside `` if the user requested igncr.
15318# But we know of no other shell where ac_cr would be empty at this
15319# point, so we can use a bashism as a fallback.
15320if test "x$ac_cr" = x; then
15321 eval ac_cr=\$\'\\r\'
15322fi
15323ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15324if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15325 ac_cs_awk_cr='\r'
15326else
15327 ac_cs_awk_cr=$ac_cr
15328fi
15329
15330echo 'BEGIN {' >"$tmp/subs1.awk" &&
15331_ACEOF
15332
15333# Create commands to substitute file output variables.
1c710c3c 15334{
5213506e
RW
15335 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15336 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15337 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15338 echo "_ACAWK" &&
15339 echo "_ACEOF"
15340} >conf$$files.sh &&
15341. ./conf$$files.sh ||
15342 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15343rm -f conf$$files.sh
1c710c3c 15344
5213506e
RW
15345{
15346 echo "cat >conf$$subs.awk <<_ACEOF" &&
15347 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15348 echo "_ACEOF"
15349} >conf$$subs.sh ||
15350 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15351ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15352ac_delim='%!_!# '
15353for ac_last_try in false false false false false :; do
15354 . ./conf$$subs.sh ||
15355 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15356
15357 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15358 if test $ac_delim_n = $ac_delim_num; then
15359 break
15360 elif $ac_last_try; then
15361 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15362 else
15363 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15364 fi
15365done
15366rm -f conf$$subs.sh
15367
15368cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15369cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15370_ACEOF
5213506e
RW
15371sed -n '
15372h
15373s/^/S["/; s/!.*/"]=/
15374p
15375g
15376s/^[^!]*!//
15377:repl
15378t repl
15379s/'"$ac_delim"'$//
15380t delim
15381:nl
15382h
15383s/\(.\{148\}\).*/\1/
15384t more1
15385s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15386p
15387n
15388b repl
15389:more1
15390s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15391p
15392g
15393s/.\{148\}//
15394t nl
15395:delim
15396h
15397s/\(.\{148\}\).*/\1/
15398t more2
15399s/["\\]/\\&/g; s/^/"/; s/$/"/
15400p
15401b
15402:more2
15403s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15404p
15405g
15406s/.\{148\}//
15407t delim
15408' <conf$$subs.awk | sed '
15409/^[^""]/{
15410 N
15411 s/\n//
15412}
15413' >>$CONFIG_STATUS || ac_write_fail=1
15414rm -f conf$$subs.awk
15415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15416_ACAWK
15417cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15418 for (key in S) S_is_set[key] = 1
15419 FS = "\a"
15420 \$ac_cs_awk_pipe_init
15421}
15422{
15423 line = $ 0
15424 nfields = split(line, field, "@")
15425 substed = 0
15426 len = length(field[1])
15427 for (i = 2; i < nfields; i++) {
15428 key = field[i]
15429 keylen = length(key)
15430 if (S_is_set[key]) {
15431 value = S[key]
15432 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15433 len += length(value) + length(field[++i])
15434 substed = 1
15435 } else
15436 len += 1 + keylen
15437 }
15438 if (nfields == 3 && !substed) {
15439 key = field[2]
15440 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15441 \$ac_cs_awk_read_file
15442 next
15443 }
15444 }
15445 print line
15446}
15447\$ac_cs_awk_pipe_fini
15448_ACAWK
15449_ACEOF
15450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15451if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15452 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15453else
15454 cat
15455fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15456 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15457_ACEOF
15458
15459# VPATH may cause trouble with some makes, so we remove $(srcdir),
15460# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15461# trailing colons and then remove the whole line if VPATH becomes empty
15462# (actually we leave an empty line to preserve line numbers).
15463if test "x$srcdir" = x.; then
15464 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15465s/:*\$(srcdir):*/:/
15466s/:*\${srcdir}:*/:/
15467s/:*@srcdir@:*/:/
15468s/^\([^=]*=[ ]*\):*/\1/
15469s/:*$//
15470s/^[^=]*=[ ]*$//
15471}'
15472fi
2aeb72e9 15473
5213506e
RW
15474cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15475fi # test -n "$CONFIG_FILES"
2aeb72e9 15476
1c710c3c 15477
5213506e
RW
15478eval set X " :F $CONFIG_FILES "
15479shift
15480for ac_tag
15481do
15482 case $ac_tag in
15483 :[FHLC]) ac_mode=$ac_tag; continue;;
15484 esac
15485 case $ac_mode$ac_tag in
15486 :[FHL]*:*);;
15487 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15488 :[FH]-) ac_tag=-:-;;
15489 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15490 esac
15491 ac_save_IFS=$IFS
15492 IFS=:
15493 set x $ac_tag
15494 IFS=$ac_save_IFS
15495 shift
15496 ac_file=$1
15497 shift
79c06341 15498
5213506e
RW
15499 case $ac_mode in
15500 :L) ac_source=$1;;
15501 :[FH])
15502 ac_file_inputs=
15503 for ac_f
15504 do
15505 case $ac_f in
15506 -) ac_f="$tmp/stdin";;
15507 *) # Look for the file first in the build tree, then in the source tree
15508 # (if the path is not absolute). The absolute path cannot be DOS-style,
15509 # because $ac_f cannot contain `:'.
15510 test -f "$ac_f" ||
15511 case $ac_f in
15512 [\\/$]*) false;;
15513 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15514 esac ||
15515 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15516 esac
15517 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15518 as_fn_append ac_file_inputs " '$ac_f'"
15519 done
1c710c3c 15520
5213506e
RW
15521 # Let's still pretend it is `configure' which instantiates (i.e., don't
15522 # use $as_me), people would be surprised to read:
15523 # /* config.h. Generated by config.status. */
15524 configure_input='Generated from '`
15525 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15526 `' by configure.'
15527 if test x"$ac_file" != x-; then
15528 configure_input="$ac_file. $configure_input"
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15530$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15531 fi
5213506e
RW
15532 # Neutralize special characters interpreted by sed in replacement strings.
15533 case $configure_input in #(
15534 *\&* | *\|* | *\\* )
15535 ac_sed_conf_input=`$as_echo "$configure_input" |
15536 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15537 *) ac_sed_conf_input=$configure_input;;
15538 esac
11a67599 15539
5213506e
RW
15540 case $ac_tag in
15541 *:-:* | *:-) cat >"$tmp/stdin" \
15542 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15543 esac
15544 ;;
11a67599
ZW
15545 esac
15546
5213506e 15547 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15548$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15549 X"$ac_file" : 'X\(//\)[^/]' \| \
15550 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15551 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15552$as_echo X"$ac_file" |
15553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15554 s//\1/
15555 q
15556 }
15557 /^X\(\/\/\)[^/].*/{
15558 s//\1/
15559 q
15560 }
15561 /^X\(\/\/\)$/{
15562 s//\1/
15563 q
15564 }
15565 /^X\(\/\).*/{
15566 s//\1/
15567 q
15568 }
15569 s/.*/./; q'`
15570 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15571 ac_builddir=.
0b0dc272 15572
5213506e
RW
15573case "$ac_dir" in
15574.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15575*)
15576 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15577 # A ".." for each directory in $ac_dir_suffix.
15578 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15579 case $ac_top_builddir_sub in
15580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15582 esac ;;
15583esac
15584ac_abs_top_builddir=$ac_pwd
15585ac_abs_builddir=$ac_pwd$ac_dir_suffix
15586# for backward compatibility:
15587ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15588
15589case $srcdir in
5213506e 15590 .) # We are building in place.
1c710c3c 15591 ac_srcdir=.
5213506e
RW
15592 ac_top_srcdir=$ac_top_builddir_sub
15593 ac_abs_top_srcdir=$ac_pwd ;;
15594 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15595 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15596 ac_top_srcdir=$srcdir
15597 ac_abs_top_srcdir=$srcdir ;;
15598 *) # Relative name.
15599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15600 ac_top_srcdir=$ac_top_build_prefix$srcdir
15601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15602esac
5213506e 15603ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15604
0b0dc272 15605
5213506e
RW
15606 case $ac_mode in
15607 :F)
15608 #
15609 # CONFIG_FILE
15610 #
1c710c3c
DJ
15611
15612 case $INSTALL in
15613 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15614 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15615 esac
5213506e 15616_ACEOF
11a67599 15617
5213506e
RW
15618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15619# If the template does not know about datarootdir, expand it.
15620# FIXME: This hack should be removed a few years after 2.60.
15621ac_datarootdir_hack=; ac_datarootdir_seen=
15622ac_sed_dataroot='
15623/datarootdir/ {
15624 p
15625 q
15626}
15627/@datadir@/p
15628/@docdir@/p
15629/@infodir@/p
15630/@localedir@/p
15631/@mandir@/p'
15632case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15633*datarootdir*) ac_datarootdir_seen=yes;;
15634*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15636$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15637_ACEOF
5213506e
RW
15638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15639 ac_datarootdir_hack='
15640 s&@datadir@&$datadir&g
15641 s&@docdir@&$docdir&g
15642 s&@infodir@&$infodir&g
15643 s&@localedir@&$localedir&g
15644 s&@mandir@&$mandir&g
15645 s&\\\${datarootdir}&$datarootdir&g' ;;
15646esac
15647_ACEOF
15648
15649# Neutralize VPATH when `$srcdir' = `.'.
15650# Shell code in configure.ac might set extrasub.
15651# FIXME: do we really want to maintain this feature?
15652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15653ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15654$extrasub
15655_ACEOF
5213506e 15656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15657:t
15658/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15659s|@configure_input@|$ac_sed_conf_input|;t t
15660s&@top_builddir@&$ac_top_builddir_sub&;t t
15661s&@top_build_prefix@&$ac_top_build_prefix&;t t
15662s&@srcdir@&$ac_srcdir&;t t
15663s&@abs_srcdir@&$ac_abs_srcdir&;t t
15664s&@top_srcdir@&$ac_top_srcdir&;t t
15665s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15666s&@builddir@&$ac_builddir&;t t
15667s&@abs_builddir@&$ac_abs_builddir&;t t
15668s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15669s&@INSTALL@&$ac_INSTALL&;t t
15670$ac_datarootdir_hack
15671"
15672eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15673if $ac_cs_awk_getline; then
15674 $AWK -f "$tmp/subs.awk"
15675else
15676 $AWK -f "$tmp/subs.awk" | $SHELL
15677fi >$tmp/out \
15678 || as_fn_error "could not create $ac_file" "$LINENO" 5
15679
15680test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15681 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15682 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15684which seems to be undefined. Please make sure it is defined." >&5
15685$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15686which seems to be undefined. Please make sure it is defined." >&2;}
15687
15688 rm -f "$tmp/stdin"
15689 case $ac_file in
15690 -) cat "$tmp/out" && rm -f "$tmp/out";;
15691 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15692 esac \
15693 || as_fn_error "could not create $ac_file" "$LINENO" 5
15694 ;;
11a67599 15695
11a67599 15696
79c06341 15697
5213506e
RW
15698 esac
15699
3e54529c
RW
15700
15701 case $ac_file$ac_mode in
15702 "Makefile":F) sed "$extrasub_build" Makefile |
15703 sed "$extrasub_host" |
15704 sed "$extrasub_target" > mf$$
15705 mv -f mf$$ Makefile ;;
15706
15707 esac
5213506e
RW
15708done # for ac_tag
15709
15710
15711as_fn_exit 0
1c710c3c 15712_ACEOF
1c710c3c
DJ
15713ac_clean_files=$ac_clean_files_save
15714
5213506e
RW
15715test $ac_write_fail = 0 ||
15716 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15717
1c710c3c
DJ
15718
15719# configure is writing to config.log, and then calls config.status.
15720# config.status does its own redirection, appending to config.log.
15721# Unfortunately, on DOS this fails, as config.log is still kept open
15722# by configure, so config.status won't be able to write to it; its
15723# output is simply discarded. So we exec the FD to /dev/null,
15724# effectively closing config.log, so it can be properly (re)opened and
15725# appended to by config.status. When coming back to configure, we
15726# need to make the FD available again.
15727if test "$no_create" != yes; then
15728 ac_cs_success=:
15729 ac_config_status_args=
15730 test "$silent" = yes &&
15731 ac_config_status_args="$ac_config_status_args --quiet"
15732 exec 5>/dev/null
15733 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15734 exec 5>>config.log
15735 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15736 # would make configure fail if this is the last instruction.
5213506e
RW
15737 $ac_cs_success || as_fn_exit $?
15738fi
15739if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15741$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15742fi
79c06341 15743
This page took 5.267292 seconds and 5 git commands to generate.